/*
 * Tour search / archive UI.
 *
 * Loaded only on the tour archive (/tour-category/) and on a page using the
 * Tours Search template - see etg_enqueue_tour_customization_styles().
 *
 * Presentation only. No markup, query, ordering or URL behaviour depends on
 * anything in here.
 *
 * Four things to know before editing:
 *
 * 1. The results grid is plain CSS, not Isotope. The search page renders
 *    `.qodef-tours-row-inner-holder`, while the Isotope code in tours.js and
 *    etg-tour-customizations.js only ever touches
 *    `.qodef-tours-list-holder-inner`, which this page does not have. That is
 *    why the grid can be switched from the theme's inline-block percentages to
 *    a real grid safely - and why this page must never be given an Isotope
 *    class.
 *
 * 2. Specificity is deliberate, not decorative. _content.scss pins the two
 *    columns with four classes, and _filters.scss styles the sidebar through
 *    `.qodef-tours-search-main-filters-holder.qodef-boxed-widget ...`. Column
 *    rules therefore carry `.qodef-full-width.clearfix` and panel rules carry
 *    `.etg-tour-filters.qodef-boxed-widget`. Dropping either prefix puts the
 *    old rule back in charge.
 *
 * 3. The field skin is the booking form's, matched value for value: ~48px
 *    tall, #fbfcfe on a #dce3eb hairline, 12px radius, icon at 14px, orange
 *    focus ring. Those rules live in etg-tour-customizations.css under
 *    `.single-tour-item .qodef-tours-booking-form-holder`, and that sheet is
 *    only enqueued on a single tour, so the values are restated here rather
 *    than loading a single-tour stylesheet on the archive. Change both.
 *
 * 4. The card itself is not styled here. etg-tour-card.css owns it, including
 *    the 3:2 image box and the fixed title and excerpt heights that keep every
 *    card in a row the same height.
 */

.qodef-tours-search-page-holder {
	--etg-search-ink: #172033;
	--etg-search-body: #26364a;
	--etg-search-muted: #5f6d7e;
	--etg-search-faint: #7a8796;
	--etg-search-line: #dce3eb;
	--etg-search-line-soft: #edf0f4;
	--etg-search-surface: #fff;
	--etg-search-field: #fbfcfe;
	--etg-search-page: #f4f6f9;
	--etg-search-accent: #e76f20;
	--etg-search-accent-bright: #ff8a3a;
	--etg-search-accent-deep: #c9540c;
	--etg-search-radius: 18px;
	--etg-search-radius-sm: 12px;
	--etg-search-gutter: 24px;
	/* Clears the theme's sticky header. Used by both the sticky filter column
	   and the height its scrollport is allowed to take. */
	--etg-search-sticky-top: 110px;
}

/* The theme only border-boxes inside the filter holder, so padding on the
   results header and the pagination would otherwise add to their width and
   push them past the column. Scoped to the parts this file builds; the cards
   are left alone. */
.qodef-tours-search-page-holder .qodef-search-ordering-holder,
.qodef-tours-search-page-holder .qodef-search-ordering-holder *,
.qodef-tours-search-page-holder .etg-tour-filters,
.qodef-tours-search-page-holder .etg-tour-filters *,
.qodef-tours-search-page-holder .qodef-tours-search-pagination,
.qodef-tours-search-page-holder .qodef-tours-search-pagination *,
.qodef-tours-search-page-holder .etg-tour-search-empty {
	box-sizing: border-box;
}

/* Page frame
   ========================================================================== */

/* Two theme rules between them make `position: sticky` inert on this page.
   Both are released only on the search screen, through the body class this
   plugin adds.

   1. `html { overflow-y: scroll !important }` (the theme's modules.min.css,
      there to keep a scrollbar gutter on short pages). A non-visible overflow
      on the root element makes the root the scrollport for sticky
      positioning, and the root box itself never scrolls - so every sticky
      element on the site sits still while the page moves under it. Verified
      with a synthetic sticky probe: inert on this page and on /blog/, and
      sticking the moment the declaration is released. The archive is always
      taller than the viewport, so the gutter it gives up was doing nothing
      here. Setting the y axis alone is enough: with one axis visible and the
      other not, CSS computes the visible one to `auto`, so the x axis follows
      back to visible on its own.

      `:has()` is the only handle on <html> from a stylesheet - the theme's
      Modernizr rewrites `html.className` wholesale, so a class added in PHP
      would not survive. A browser without `:has()` simply keeps today's
      behaviour, where the column scrolls away; the panel's own scrollport
      below still works. The site's own Additional CSS already uses `:has()`.

   2. `.qodef-wrapper-inner` is clipped on both axes, which would make it the
      scrollport instead. `overflow-x: clip` keeps the horizontal clipping the
      theme wants without creating a scroll container; the `overflow: visible`
      in front is the fallback for browsers without `clip`, where <body>'s own
      `overflow-x: hidden` still catches any spill. */
:root:has(body.etg-tour-search-screen) {
	overflow-y: visible !important;
}

body.etg-tour-search-screen .qodef-wrapper-inner {
	overflow: visible;
	overflow-x: clip;
}

/* The gutters the theme uses on a full-width band. */
.qodef-tours-search-page-holder .qodef-full-width {
	padding: 0 40px;
	background-color: var(--etg-search-page);
}

@media only screen and (max-width: 680px) {
	.qodef-tours-search-page-holder .qodef-full-width {
		padding: 0 16px;
	}
}

/* The cap. 1600px rather than the theme's 1300px content container: this page
   carries a 320px filter column beside the results, so at 1300px the four-card
   row the design calls for would fall to ~220px per card - narrower than the
   cards already are at 1366px. 1600px keeps four cards at ~290px and still
   stops the band running to the edge of a 1920px screen. */
.qodef-tours-search-page-holder .qodef-full-width .qodef-full-width-inner .etg-tour-search-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--etg-search-gutter);
	align-items: start;
	box-sizing: border-box;
	max-width: 1600px;
	margin: 0 auto;
}

.qodef-tours-search-page-holder .qodef-full-width.clearfix .qodef-full-width-inner .etg-tour-search-container > .qodef-grid-col-10,
.qodef-tours-search-page-holder .qodef-full-width.clearfix .qodef-full-width-inner .etg-tour-search-container > .qodef-grid-col-2 {
	float: none;
	width: auto;
	min-width: 0;
	padding: 0;
}

@media only screen and (min-width: 1025px) {
	.qodef-tours-search-page-holder .qodef-full-width .qodef-full-width-inner .etg-tour-search-container {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 32px;
	}

	.qodef-tours-search-page-holder .qodef-full-width.clearfix .qodef-full-width-inner .etg-tour-search-container > .qodef-grid-col-2 {
		position: sticky;
		top: var(--etg-search-sticky-top);
	}
}

@media only screen and (min-width: 1441px) {
	.qodef-tours-search-page-holder .qodef-full-width .qodef-full-width-inner .etg-tour-search-container {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 36px;
	}
}

/* Results header: count and sort
   ========================================================================== */

.qodef-tours-search-page-holder .qodef-search-ordering-holder {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 16px 20px;
	background-color: var(--etg-search-surface);
	border: 1px solid #e4e9ef;
	border-radius: var(--etg-search-radius);
	box-shadow: 0 10px 26px rgba(23, 43, 77, 0.07);
}

.qodef-tours-search-page-holder .qodef-search-results-count {
	margin: 0;
	color: var(--etg-search-muted);
	font-size: 15px;
	line-height: 1.4;
}

.qodef-tours-search-page-holder .qodef-search-results-count strong {
	color: var(--etg-search-ink);
	font-weight: 700;
}

.qodef-tours-search-page-holder .qodef-search-ordering-items-holder {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	min-width: 0;
}

.qodef-tours-search-page-holder .qodef-search-ordering-label {
	color: var(--etg-search-faint);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.qodef-tours-search-page-holder .qodef-search-ordering-items-holder .qodef-search-ordering-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 4px;
	list-style: none;
	background-color: #f1f4f8;
	border-radius: 999px;
}

.qodef-tours-search-page-holder .qodef-search-ordering-list .qodef-search-ordering-item {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.qodef-tours-search-page-holder .qodef-search-ordering-list .qodef-search-ordering-item > a {
	display: block;
	padding: 7px 14px;
	color: var(--etg-search-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	text-transform: capitalize;
	background-color: transparent;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 0 0 0 rgba(23, 43, 77, 0);
	transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

/* The theme draws a 13px #FFE500 highlighter bar behind the label on hover and
   on focus (`.qodef-search-ordering-holder ... li a span::before`, which it
   animates from width 0 to 100%). Against these pills it reads as a rendering
   fault - a yellow block under half the text. The pill is the hover state
   here, so the bar goes. Four classes to the theme's three, so this wins
   without `!important`. */
.qodef-tours-search-page-holder .qodef-search-ordering-list .qodef-search-ordering-item > a span::before {
	content: none;
}

/* White pill on the #f1f4f8 track: the previous #e2e8f0 was grey on grey and
   barely registered. Only colour and shadow change, so nothing reflows. */
.qodef-tours-search-page-holder .qodef-search-ordering-list .qodef-search-ordering-item > a:hover {
	color: var(--etg-search-ink);
	background-color: var(--etg-search-surface);
	box-shadow: 0 1px 3px rgba(23, 43, 77, 0.14);
}

.qodef-tours-search-page-holder .qodef-search-ordering-list .qodef-search-ordering-item.qodef-search-ordering-item-active > a {
	color: #fff;
	background-color: var(--etg-search-accent);
	box-shadow: 0 2px 6px rgba(201, 84, 12, 0.28);
}

/* The selected pill still has to answer the pointer, or hovering it looks
   dead next to the others. */
.qodef-tours-search-page-holder .qodef-search-ordering-list .qodef-search-ordering-item.qodef-search-ordering-item-active > a:hover {
	color: #fff;
	background-color: var(--etg-search-accent-deep);
	box-shadow: 0 2px 8px rgba(201, 84, 12, 0.36);
}

/* The ring sits on the #f1f4f8 track, where orange on orange would vanish
   against the selected pill - the white gap is what separates them. */
.qodef-tours-search-page-holder .qodef-search-ordering-list .qodef-search-ordering-item > a:focus-visible {
	outline: 2px solid var(--etg-search-accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--etg-search-surface);
}

/* Results grid
   ========================================================================== */

.qodef-tours-search-page-holder .qodef-tours-search-content {
	padding-top: var(--etg-search-gutter);
}

.qodef-tours-search-page-holder .qodef-tours-search-content.qodef-tours-searching {
	opacity: 0.45;
	transition: opacity 160ms ease;
}

.qodef-tours-search-page-holder .qodef-tours-search-content .qodef-tours-row {
	padding: 0;
}

.qodef-tours-search-page-holder .qodef-tours-search-content .qodef-tours-row .qodef-tours-row-inner-holder {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
	margin: 0;
}

/* The theme sizes items with a percentage width and a padding gutter; the grid
   owns both now, so those have to come off or every card keeps a 15px inset. */
.qodef-tours-search-page-holder .qodef-tours-search-content .qodef-tours-row .qodef-tours-row-item {
	display: block;
	width: auto;
	margin: 0;
	padding: 0;
	vertical-align: top;
}

.qodef-tours-search-page-holder .etg-tour-search-empty {
	grid-column: 1 / -1;
	padding: 48px 24px;
	text-align: center;
	background-color: var(--etg-search-surface);
	border: 1px dashed var(--etg-search-line);
	border-radius: var(--etg-search-radius);
}

.qodef-tours-search-page-holder .etg-tour-search-empty-title {
	margin: 0 0 6px;
	color: var(--etg-search-ink);
	font-size: 19px;
	font-weight: 700;
}

.qodef-tours-search-page-holder .etg-tour-search-empty-text {
	margin: 0;
	color: var(--etg-search-muted);
	font-size: 15px;
}

@media only screen and (min-width: 681px) {
	.qodef-tours-search-page-holder .qodef-tours-search-content .qodef-tours-row .qodef-tours-row-inner-holder {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (min-width: 1025px) {
	.qodef-tours-search-page-holder .qodef-tours-search-content .qodef-tours-row .qodef-tours-row-inner-holder {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media only screen and (min-width: 1441px) {
	.qodef-tours-search-page-holder .qodef-tours-search-content .qodef-tours-row .qodef-tours-row-inner-holder {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
}

/* Filter panel shell
   ========================================================================== */

.qodef-tours-search-page-holder .qodef-sidebar {
	margin: 0;
}

.qodef-tours-search-page-holder .widget.qodef-tours-main-search-filters {
	margin: 0 0 24px;
	padding: 0;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget {
	padding: 0;
	background: transparent;
	border: 0;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-panel {
	padding: 22px 20px 24px;
	background-color: var(--etg-search-surface);
	border: 1px solid #e4e9ef;
	border-radius: var(--etg-search-radius);
	box-shadow: 0 16px 40px rgba(23, 43, 77, 0.1);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-head {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--etg-search-line-soft);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-search-main-filters-title {
	margin: 0;
	text-align: left;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-search-main-filters-title span {
	color: var(--etg-search-ink);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-search-main-filters-fields {
	padding: 0;
}

/* Fields - the booking form skin, see note 3 in the file header
   ========================================================================== */

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field {
	margin: 0 0 14px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-label,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filter-legend {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 6px;
	padding: 0;
	color: var(--etg-search-faint);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.4;
	text-transform: uppercase;
	cursor: default;
}

/* _filters.scss paints a checkbox square on every label inside this holder;
   these are field labels, not checkboxes. */
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-label::before,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filter-legend::before {
	content: none;
}

/* The box lives on the wrapper, not the control. typeahead sets
   `background-color: transparent` inline on the input it takes over so its
   hint shows through, and an inline style beats any rule here; painting the
   wrapper sidesteps that instead of fighting it with !important. */
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-control {
	position: relative;
	display: block;
	box-sizing: border-box;
	padding: 0;
	background-color: var(--etg-search-field);
	border: 1px solid var(--etg-search-line);
	border-radius: var(--etg-search-radius-sm);
	box-shadow: 0 1px 2px rgba(23, 43, 77, 0.04);
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control:focus-within,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-control:focus-within {
	background-color: #fff;
	border-color: var(--etg-search-accent-bright);
	box-shadow: 0 0 0 3px rgba(255, 138, 58, 0.16);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control input[type='text'],
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control select,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-control input[type='number'] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 12px 14px 12px 42px;
	color: var(--etg-search-body);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	background-color: transparent;
	border: 0;
	border-radius: var(--etg-search-radius-sm);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control input[type='text']:focus,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control select:focus,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-control input[type='number']:focus {
	outline: none;
	background-color: transparent;
	border: 0;
	box-shadow: none;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control .qodef-tours-input-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	z-index: 2;
	color: #8c98a8;
	font-size: 16px;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
	transition: color 160ms ease;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control:focus-within .qodef-tours-input-icon {
	color: var(--etg-search-accent);
}

/* appearance:none removes the native select arrow, so draw one. */
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-select::after {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #8c98a8;
	border-bottom: 2px solid #8c98a8;
	content: '';
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-select select {
	padding-right: 36px;
	cursor: pointer;
}

/* typeahead wraps the input in its own span, so the field box has to keep its
   shape through that wrapper. */
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control .twitter-typeahead {
	display: block !important;
	width: 100%;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control .tt-hint {
	color: #aab4c0;
	background-color: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control .tt-menu {
	left: 0 !important;
	box-sizing: border-box;
	width: 100%;
	margin-top: 6px;
	padding: 6px;
	overflow: hidden;
	font-size: 14px;
	background-color: #fff;
	border: 1px solid var(--etg-search-line);
	border-radius: var(--etg-search-radius-sm);
	box-shadow: 0 14px 30px rgba(23, 43, 77, 0.14);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control .tt-suggestion {
	padding: 8px 10px;
	line-height: 1.4;
	border-radius: 8px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control .tt-suggestion:hover,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-field-control .tt-suggestion.tt-cursor {
	color: #fff;
	background-color: var(--etg-search-accent);
}

/* Groups
   ========================================================================== */

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filter-group {
	margin: 20px 0 0;
	padding: 18px 0 0;
	border: 0;
	border-top: 1px solid var(--etg-search-line-soft);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filter-legend {
	margin-bottom: 12px;
}

/* Price
   ========================================================================== */

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-summary {
	margin: 0 0 12px;
	color: var(--etg-search-muted);
	font-size: 13px;
	line-height: 1.4;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-summary .etg-tour-price-bound {
	color: var(--etg-search-ink);
	font-weight: 600;
	white-space: nowrap;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-range-input {
	height: 6px;
	margin: 10px 10px 22px;
	background-color: #e6ebf1;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-range-input .noUi-base,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-range-input .noUi-background {
	background-color: transparent;
	box-shadow: none;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-range-input .noUi-connect {
	background-color: var(--etg-search-accent);
	border-radius: 999px;
	box-shadow: none;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-range-input .noUi-handle {
	top: -7px;
	left: -10px;
	width: 20px;
	height: 20px;
	background-color: #fff;
	border: 3px solid var(--etg-search-accent);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(23, 43, 77, 0.22);
	cursor: grab;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-range-input .noUi-handle:active {
	cursor: grabbing;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-range-input .noUi-handle::before,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-range-input .noUi-handle::after {
	content: none;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-inputs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-field {
	margin: 0;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-control {
	position: relative;
	display: block;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-control input[type='number'] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-control input[type='number']::-webkit-inner-spin-button,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-control input[type='number']::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-symbol {
	position: absolute;
	top: 50%;
	z-index: 2;
	color: var(--etg-search-faint);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-symbol-left .etg-tour-price-symbol {
	left: 14px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-symbol-left input[type='number'] {
	padding-left: 32px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-symbol-right .etg-tour-price-symbol {
	right: 14px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-price-symbol-right input[type='number'] {
	padding-right: 32px;
	padding-left: 14px;
}

/* Tour types
   ========================================================================== */

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-type-list {
	max-height: 268px;
	margin: 0 -6px;
	padding: 2px 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-type-list::-webkit-scrollbar {
	width: 6px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-type-list::-webkit-scrollbar-thumb {
	background-color: #d4dbe4;
	border-radius: 999px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item {
	position: relative;
	margin: 0 0 2px;
}

/* The old rule hid the checkbox outright, which took it out of the tab order
   and left the control unusable from the keyboard. It sits under the drawn box
   now, and the whole row is the hit target. */
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item input[type='checkbox'] {
	position: absolute;
	top: 9px;
	left: 9px;
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
	opacity: 0;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item label {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
	padding: 7px 8px;
	color: var(--etg-search-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
	border-radius: 9px;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease;
	-webkit-user-select: none;
	user-select: none;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item label::before {
	display: inline-block;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	margin: 0;
	background-color: #fff;
	border: 2px solid #c6d0dc;
	border-radius: 5px;
	content: '';
	transition: background-color 140ms ease, border-color 140ms ease;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item label:hover {
	background-color: #f4f7fb;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item input[type='checkbox']:checked + label::before {
	background-color: var(--etg-search-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.4l3.2 3.2L13 5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 13px 13px;
	border-color: var(--etg-search-accent);
	content: '';
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item input[type='checkbox']:checked + label {
	color: var(--etg-search-ink);
	font-weight: 600;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item input[type='checkbox']:focus-visible + label {
	outline: 2px solid var(--etg-search-accent);
	outline-offset: 1px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item label .etg-tour-type-name {
	position: static;
	top: auto;
	flex: 1 1 auto;
	min-width: 0;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .qodef-tours-type-filter-item label .etg-tour-type-count {
	position: static;
	top: auto;
	flex: 0 0 auto;
	padding: 1px 8px;
	color: var(--etg-search-faint);
	font-size: 11px;
	font-weight: 600;
	background-color: #f1f4f8;
	border-radius: 999px;
}

/* Actions
   ========================================================================== */

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-actions {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--etg-search-line-soft);
	text-align: center;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-actions .qodef-btn,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-actions input[type='submit'] {
	display: block;
	box-sizing: border-box;
	/* The theme absolutely positions .qodef-btn, which took Apply out of flow
	   and dropped it on top of Reset. */
	position: static;
	float: none;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 18px;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-transform: none;
	background-color: var(--etg-search-accent);
	border: 0;
	border-radius: var(--etg-search-radius-sm);
	box-shadow: 0 8px 18px rgba(231, 111, 32, 0.28);
	cursor: pointer;
	transition: background-color 160ms ease, box-shadow 160ms ease;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-actions .qodef-btn:hover,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-actions input[type='submit']:hover {
	color: #fff;
	background-color: var(--etg-search-accent-deep);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-actions input[type='submit']:focus-visible {
	outline: 2px solid var(--etg-search-accent-deep);
	outline-offset: 2px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-reset {
	display: inline-block;
	margin-top: 12px;
	padding: 6px 4px;
	color: var(--etg-search-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-reset:hover {
	color: var(--etg-search-accent-deep);
}

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-reset:focus-visible {
	outline: 2px solid var(--etg-search-accent);
	outline-offset: 2px;
}

/* Pagination
   ========================================================================== */

.qodef-tours-search-page-holder .qodef-tours-search-pagination {
	display: block;
	margin: 28px 0 46px;
	text-align: center;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li > a,
.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li > span {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	color: var(--etg-search-muted);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	background-color: var(--etg-search-surface);
	border: 1px solid #e4e9ef;
	border-radius: 10px;
	transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li > a:hover {
	color: var(--etg-search-ink);
	background-color: #fff;
	border-color: #c6d0dc;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li > a:focus-visible {
	outline: 2px solid var(--etg-search-accent);
	outline-offset: 2px;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.active > span {
	position: static;
	top: auto;
	color: #fff;
	background-color: var(--etg-search-accent);
	border: 1px solid var(--etg-search-accent);
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.etg-pagination-gap > span {
	min-width: 28px;
	padding: 0;
	color: var(--etg-search-faint);
	background-color: transparent;
	border-color: transparent;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.qodef-pagination-prev,
.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.qodef-pagination-next {
	margin: 0;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.qodef-pagination-prev > a,
.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.qodef-pagination-prev > span,
.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.qodef-pagination-next > a,
.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.qodef-pagination-next > span {
	gap: 7px;
	color: var(--etg-search-ink);
	font-size: 14px;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li.etg-pagination-disabled > span {
	color: #b6bfca;
	background-color: #f1f4f8;
	border-color: #e7ecf2;
	cursor: default;
}

.qodef-tours-search-page-holder .qodef-tours-search-pagination .ion-chevron-left,
.qodef-tours-search-page-holder .qodef-tours-search-pagination .ion-chevron-right {
	font-size: 11px;
}

.qodef-tours-search-page-holder .etg-pagination-status {
	margin: 12px 0 0;
	color: var(--etg-search-faint);
	font-size: 13px;
}

@media only screen and (max-width: 480px) {
	.qodef-tours-search-page-holder .qodef-tours-search-pagination .etg-pagination-arrow-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		white-space: nowrap;
		clip-path: inset(50%);
	}

	.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li > a,
	.qodef-tours-search-page-holder .qodef-tours-search-pagination ul li > span {
		min-width: 38px;
		padding: 0 8px;
	}
}

/* Mobile filter drawer
   ========================================================================== */

.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-toggle,
.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-close {
	display: none;
}

@media only screen and (max-width: 1024px) {
	/* The sidebar follows the results in the document, which is the right
	   reading order, but the control that opens it has to come first. */
	.qodef-tours-search-page-holder .qodef-full-width.clearfix .qodef-full-width-inner .etg-tour-search-container > .qodef-grid-col-2 {
		order: -1;
	}

	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-toggle {
		display: flex;
		gap: 10px;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: 100%;
		min-height: 48px;
		padding: 12px 18px;
		color: var(--etg-search-ink);
		font-family: inherit;
		font-size: 15px;
		font-weight: 700;
		background-color: var(--etg-search-surface);
		border: 1px solid #e4e9ef;
		border-radius: var(--etg-search-radius-sm);
		box-shadow: 0 8px 20px rgba(23, 43, 77, 0.08);
		cursor: pointer;
	}

	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-toggle:focus-visible {
		outline: 2px solid var(--etg-search-accent);
		outline-offset: 2px;
	}

	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-toggle-icon {
		box-sizing: border-box;
		width: 16px;
		height: 12px;
		border-top: 2px solid var(--etg-search-accent);
		border-bottom: 2px solid var(--etg-search-accent);
	}

	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		min-width: 22px;
		height: 22px;
		padding: 0 6px;
		color: #fff;
		font-size: 12px;
		font-weight: 700;
		background-color: var(--etg-search-accent);
		border-radius: 999px;
	}

	/* The panel is only collapsed when the script is there to open it again. */
	.qodef-tours-search-page-holder .etg-tour-filters-js.qodef-boxed-widget .etg-tour-filters-panel {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		box-sizing: border-box;
		width: min(400px, 92vw);
		max-height: 100%;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-radius: 0;
		box-shadow: -18px 0 46px rgba(23, 43, 77, 0.22);
		transform: translateX(102%);
		transition: transform 240ms ease, visibility 240ms ease;
		visibility: hidden;
	}

	/* `.qodef-content` is a z-index:100 stacking context and the theme's mobile
	   header is a z-index:110 sibling of it, so a fixed panel inside the
	   content can never paint over the header. Lift the context, and only
	   while the drawer is open. */
	body.etg-tour-filters-body-open .qodef-content {
		z-index: 1002;
	}

	.qodef-tours-search-page-holder .etg-tour-filters-js.etg-tour-filters-open .etg-tour-filters-panel {
		transform: none;
		visibility: visible;
	}

	.qodef-tours-search-page-holder .etg-tour-filters-js .etg-tour-filters-backdrop {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1000;
		background-color: rgba(14, 23, 38, 0.5);
		opacity: 0;
		transition: opacity 240ms ease, visibility 240ms ease;
		visibility: hidden;
	}

	.qodef-tours-search-page-holder .etg-tour-filters-js.etg-tour-filters-open .etg-tour-filters-backdrop {
		opacity: 1;
		visibility: visible;
	}

	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-close {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: 38px;
		height: 38px;
		padding: 0;
		color: var(--etg-search-muted);
		font-size: 24px;
		line-height: 1;
		background-color: #f1f4f8;
		border: 0;
		border-radius: 10px;
		cursor: pointer;
	}

	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-close:focus-visible {
		outline: 2px solid var(--etg-search-accent);
		outline-offset: 2px;
	}

	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-type-list {
		max-height: none;
	}

	/* The drawer scrolls, and the whole tour-type list is in it, so Apply has
	   to stay reachable instead of sitting below a long scroll. */
	.qodef-tours-search-page-holder .etg-tour-filters-js.qodef-boxed-widget .etg-tour-filters-panel {
		padding-bottom: 0;
	}

	.qodef-tours-search-page-holder .etg-tour-filters-js.qodef-boxed-widget .etg-tour-filters-actions {
		position: sticky;
		bottom: 0;
		margin-top: 0;
		padding: 14px 0 18px;
		background-color: var(--etg-search-surface);
		box-shadow: 0 -10px 18px -10px rgba(23, 43, 77, 0.18);
	}
}

/* Desktop filter: keep the scroll confined to the long tour-type list
   ====================================================================
   The previous version made the complete sidebar a scrollport. That produces
   a very tall scrollbar beside the whole filter and makes a wheel gesture feel
   like it is acting on the document. Only the repeating checkbox list needs
   to scroll; the search fields and Apply button should remain in place. */

@media only screen and (min-width: 1025px) {
	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-filters-panel {
		max-height: none;
		overflow: visible;
	}

	/* A compact list is easier to scan. `overscroll-behavior` stops the page
	   from taking over when the list reaches either end. */
	.qodef-tours-search-page-holder .etg-tour-filters.qodef-boxed-widget .etg-tour-type-list {
		max-height: 250px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qodef-tours-search-page-holder .etg-tour-filters-js .etg-tour-filters-panel,
	.qodef-tours-search-page-holder .etg-tour-filters-js .etg-tour-filters-backdrop {
		transition: none;
	}
}
