/**
 * Stepfox Hotel Booking: discovery components
 * (handle `stepfox-hb-components`, dep `stepfox-hb`).
 *
 * Blocks: search-form, search-filters, stay-grid, stay-carousel, stay-card,
 * destination-grid, vibe-grid, travel-insights, stats-counter.
 * (Stay cards live in cards.css; hosts / engage UI in their own files.)
 *
 * RULES
 * 1. Every colour is a palette preset `var(--wp--preset--color--<slug>, <light>)`
 *    read ONCE into the local `--sfc-*` aliases declared on the component
 *    roots (not :root), so the theme's dark re-map flips everything. The
 *    fallbacks are the Getaway light palette. White / dark scrims are used only
 *    over photography. Text on filled brand colours uses the `base` preset.
 * 2. Mobile first. Layout widens at 600 / 769 / 1025px (Stepfox Looks devices:
 *    mobile <=768, tablet <=1024). The page never scrolls sideways.
 * 3. Motion is decorative only and is switched off under
 *    prefers-reduced-motion; hover lifts are gated on (hover:hover).
 * 4. JS-only states hang off classes the scripts add (`is-enhanced`,
 *    `is-ready`, `is-sheet-open` ...), so without JS every form is complete.
 *    The filters bar also keys on the pre-paint `html.sfhb-js` class so it
 *    never jumps when the script boots.
 * 5. Logical properties where cheap (RTL).
 */

/* ======================================================================
   0. LOCAL TOKENS
   ====================================================================== */

.sfhb-search-form,
.sfhb-search-filters,
.sfhb-stay-grid,
.sfhb-stay-carousel,
.sfhb-stay-card,
.sfhb-destination-grid,
.sfhb-vibe-grid,
.sfhb-travel-insights,
.sfhb-stats-counter {
	--sfc-base: var(--wp--preset--color--base, #f6f1e9);
	--sfc-panel: var(--wp--preset--color--panel, #fffdf9);
	--sfc-panel-2: var(--wp--preset--color--panel-2, #ece4d6);
	--sfc-line: var(--wp--preset--color--line, rgba(15, 42, 48, 0.12));
	--sfc-edge: var(--wp--preset--color--edge, rgba(15, 42, 48, 0.09));
	--sfc-ink: var(--wp--preset--color--ink, #0f2a30);
	--sfc-muted: var(--wp--preset--color--muted, #566669);
	--sfc-accent: var(--wp--preset--color--accent, #b4492a);
	/* Terracotta deep enough to carry a label in light; the bright night
	   terracotta itself in dark. Every filled CTA / badge with text. */
	--sfc-accent-strong: var(--sfhb-accent-strong, var(--wp--preset--color--accent, #b4492a));
	--sfc-accent-2: var(--wp--preset--color--accent-2, #0b6c7e);
	--sfc-neon: var(--wp--preset--color--neon, #2f7d57);
	--sfc-navy: var(--wp--preset--color--violet, #34456b);
	--sfc-turf: var(--wp--preset--color--turf, #d9ebe8);
	--sfc-gold: var(--wp--preset--color--gold, #a6760a);
	--sfc-glass: var(--wp--preset--color--glass, rgba(255, 253, 249, 0.88));
	--sfc-glass-2: var(--wp--preset--color--glass-2, rgba(246, 241, 233, 0.82));
	--sfc-on-fill: var(--wp--preset--color--base, #f6f1e9);
	--sfc-f-display: var(--wp--preset--font-family--display, "Fraunces", Georgia, "Times New Roman", serif);
	--sfc-f-ui: var(--wp--preset--font-family--ui, "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif);
	--sfc-f-body: var(--wp--preset--font-family--body, "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif);
	--sfc-f-num: var(--wp--preset--font-family--num, var(--wp--preset--font-family--ui, "Figtree", system-ui, sans-serif));
	--sfc-shadow-1: var(--wp--preset--shadow--depth-1, 0 1px 2px rgba(15, 42, 48, 0.06), 0 2px 6px rgba(15, 42, 48, 0.04));
	--sfc-shadow-2: var(--wp--preset--shadow--depth-2, 0 2px 4px rgba(15, 42, 48, 0.05), 0 10px 28px rgba(15, 42, 48, 0.08));
	--sfc-shadow-3: var(--wp--preset--shadow--depth-3, 0 6px 14px rgba(15, 42, 48, 0.08), 0 22px 48px rgba(15, 42, 48, 0.12));
	--sfc-shadow-4: var(--wp--preset--shadow--depth-4, 0 12px 28px rgba(15, 42, 48, 0.12), 0 40px 80px rgba(15, 42, 48, 0.18));
	--sfc-ring: 0 0 0 3px color-mix(in srgb, var(--sfc-accent-2) 30%, transparent);
	--sfc-r-card: var(--sfhb-radius-card, 16px);
	--sfc-r-btn: var(--sfhb-radius-btn, 12px);
	--sfc-r-input: var(--sfhb-radius-input, 12px);
	--sfc-gap: clamp(16px, 2vw, 28px);
	--sfc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	box-sizing: border-box;
	color: var(--sfc-ink);
	font-family: var(--sfc-f-body);
}

:where(.sfhb-search-form, .sfhb-search-filters, .sfhb-stay-grid, .sfhb-stay-carousel, .sfhb-stay-card, .sfhb-destination-grid, .sfhb-vibe-grid, .sfhb-travel-insights, .sfhb-stats-counter) *,
:where(.sfhb-search-form, .sfhb-search-filters, .sfhb-stay-grid, .sfhb-stay-carousel, .sfhb-stay-card, .sfhb-destination-grid, .sfhb-vibe-grid, .sfhb-travel-insights, .sfhb-stats-counter) *::before,
:where(.sfhb-search-form, .sfhb-search-filters, .sfhb-stay-grid, .sfhb-stay-carousel, .sfhb-stay-card, .sfhb-destination-grid, .sfhb-vibe-grid, .sfhb-travel-insights, .sfhb-stats-counter) *::after {
	box-sizing: border-box;
}

/* ======================================================================
   1. SHARED ATOMS
   ====================================================================== */

:where(.sfhb-search-form, .sfhb-search-filters, .sfhb-stay-grid, .sfhb-destination-grid, .sfhb-vibe-grid, .sfhb-travel-insights) .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.sfhb-search-form .sfhb-i,
.sfhb-search-filters .sfhb-i,
.sfhb-stay-carousel .sfhb-i,
.sfhb-stay-grid .sfhb-i,
.sfhb-destination-grid .sfhb-i,
.sfhb-vibe-grid .sfhb-i,
.sfhb-travel-insights .sfhb-i,
.sfhb-stats-counter .sfhb-i {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/* Select with chevron. */
.sfhb-sel {
	position: relative;
	display: block;
	min-width: 0;
}

.sfhb-sel > select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	padding-inline-end: 26px;
	cursor: pointer;
	text-overflow: ellipsis;
}

.sfhb-sel > .sfhb-i {
	position: absolute;
	top: 50%;
	inset-inline-end: 2px;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--sfc-muted);
}

.sfhb-sel.is-framed > select {
	min-height: 48px;
	padding: 0 40px 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-input);
	background-color: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 600 15px/1.3 var(--sfc-f-ui);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sfhb-sel.is-framed > .sfhb-i {
	inset-inline-end: 14px;
}

.sfhb-sel.is-framed > select:focus-visible {
	outline: none;
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

@media (hover: hover) {
	.sfhb-sel.is-framed > select:hover {
		border-color: color-mix(in srgb, var(--sfc-ink) 35%, transparent);
	}
}

:where(.sfhb-search-form, .sfhb-search-filters) .sfhb-sel > select:focus-visible {
	outline: none;
}

:where(.sfhb-search-filters) .sfhb-input {
	font-family: var(--sfc-f-ui);
}

:where(.sfhb-search-form, .sfhb-search-filters, .sfhb-stay-grid) .sfhb-field {
	position: relative;
	min-width: 0;
}

:where(.sfhb-search-form, .sfhb-search-filters) .sfhb-field__label {
	display: block;
	margin: 0;
	color: var(--sfc-muted);
	font: 700 11px/1.2 var(--sfc-f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Chips under the search form. */
.sfhb-search-form .sfhb-qchip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--sfc-edge);
	border-radius: 999px;
	background: var(--sfc-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--sfc-ink);
	font: 600 13px/1 var(--sfc-f-ui);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sfhb-search-form .sfhb-qchip .sfhb-i {
	color: var(--sfc-accent);
}

.sfhb-search-form .sfhb-qchip:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfhb-search-form .sfhb-qchip:hover {
		background: var(--sfc-panel);
		border-color: var(--sfc-line);
		transform: translateY(-1px);
	}
}

/* Scroll container for wide tables. */
.sfhb-travel-insights .sfhb-scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

/* Generic grid used by stay-grid. */
.sfhb-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sfc-gap);
	align-items: stretch;
}

.sfhb-grid > * {
	min-width: 0;
}

@media (min-width: 600px) {
	.sfhb-grid:not([style*="--sfhb-cols:1"]) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.sfhb-grid:not([style*="--sfhb-cols:1"]) {
		grid-template-columns: repeat(var(--sfhb-cols, 3), minmax(0, 1fr));
	}
}

/* ======================================================================
   2. SEARCH FORM  (hero | bar | stacked)
   ====================================================================== */

/* The form lays itself out by ITS OWN width (container queries), not the
 * viewport, so it works in a hero, a content column, a sidebar, an Elementor
 * inner container or the editor canvas alike. Its own layer (z-index) lets the
 * destination suggestions paint over the quick chips and whatever section
 * follows the form. */
.sfhb-search-form {
	position: relative;
	z-index: 5;
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	container: sfhb-sf / inline-size;
	contain-intrinsic-inline-size: 300px;
}

.sfhb-sf {
	position: relative;
	z-index: 2;
	margin: 0;
}

/* While the suggestions (or a picker popover) are open the whole form rises above
 * any sibling section that has its own stacking context. */
.sfhb-search-form.has-open,
.sfhb-search-form:focus-within {
	z-index: 60;
}

.sfhb-sf .sfhb-field__label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Fields: a grid of cells on a panel. */
.sfhb-sf__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	border-radius: 18px;
	background: var(--sfc-panel);
}

.sfhb-sf__fields > .sfhb-field {
	padding: 12px 16px;
	border-top: 1px solid var(--sfc-line);
}

.sfhb-sf__fields > .sfhb-field:first-child {
	border-top: 0;
}

.sfhb-sf__fields > .sfhb-field--dest,
.sfhb-sf__fields > .sfhb-field--dates,
.sfhb-sf__go {
	grid-column: 1 / -1;
}

/* Phones: guests and type share a row when both exist, else each is full width. */
.sfhb-sf__fields > .sfhb-field--guests:not(:has(+ .sfhb-field--type)),
.sfhb-sf__fields > .sfhb-field--type:not(.sfhb-field--guests + .sfhb-field--type) {
	grid-column: 1 / -1;
}

.sfhb-sf__fields > .sfhb-field--guests + .sfhb-field--type {
	border-inline-start: 1px solid var(--sfc-line);
}

.sfhb-sf .sfhb-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sfhb-sf .sfhb-field__control {
	width: 100%;
	min-height: 28px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--sfc-ink);
	font: 600 15px/1.3 var(--sfc-f-ui);
	box-shadow: none;
}

.sfhb-sf .sfhb-field__control::placeholder {
	color: var(--sfc-muted);
	opacity: 1;
	font-weight: 500;
}

.sfhb-sf .sfhb-field__control:focus-visible {
	outline: none;
	box-shadow: none;
}

.sfhb-sf .sfhb-field:focus-within {
	background: color-mix(in srgb, var(--sfc-panel-2) 55%, transparent);
}

.sfhb-sf .sfhb-sel > select {
	padding-inline-end: 24px;
}

.sfhb-field__wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.sfhb-field__wrap > .sfhb-i {
	color: var(--sfc-accent);
}

.sfhb-field__wrap > select,
.sfhb-field__wrap > .sfhb-sel,
.sfhb-field__wrap > input,
.sfhb-field__wrap > .sfhb-field__control,
.sfhb-field__body {
	flex: 1 1 auto;
	min-width: 0;
}

.sfhb-field__body {
	display: block;
}

/* The picker buttons of P-BOOK-A are `.sfhb-field__control` buttons: text, not a box. */
.sfhb-sf button.sfhb-field__control {
	text-align: start;
	cursor: pointer;
}

/* P-BOOK-A pickers inside a cell: neutral, they bring their own popovers. */
:where(.sfhb-sf) [data-sfhb-daterange],
:where(.sfhb-sf) [data-sfhb-guests] {
	display: block;
	min-width: 0;
	font-family: var(--sfc-f-ui);
}

/* Native fallbacks (no picker script): date pair + guest selects. */
.sfhb-field__pair {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sfhb-field__half {
	flex: 1 1 0;
	min-width: 0;
}

.sfhb-field__dash {
	color: var(--sfc-muted);
	font: 600 14px/1 var(--sfc-f-ui);
}

.sfhb-sf input[type="date"].sfhb-field__control {
	min-height: 28px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.sfhb-sf input[type="date"]::-webkit-calendar-picker-indicator {
	margin: 0;
	padding: 0 0 0 2px;
}

.sfhb-sf .sfhb-field__pair .sfhb-field__control {
	font-size: 14px;
}

.sfhb-sf__go {
	display: flex;
	padding: 8px;
}

.sfhb-sf__submit {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: 14px;
	background: var(--sfc-accent-strong);
	color: var(--sfc-on-fill);
	font: 800 16px/1 var(--sfc-f-ui);
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--sfc-accent) 80%, transparent);
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sfhb-sf__submit:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--sfc-accent) 40%, transparent);
	outline-offset: 2px;
}

.sfhb-sf__submit.is-loading [data-sfhb-submit-label] {
	opacity: 0.7;
}

@media (hover: hover) {
	.sfhb-sf__submit:hover {
		background: color-mix(in srgb, var(--sfc-accent-strong) 88%, var(--sfc-ink));
		transform: translateY(-1px);
		box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--sfc-accent) 85%, transparent);
	}
}

/* Hero: glass panel over photography. */
.sfhb-search-form--hero .sfhb-sf {
	padding: 10px;
	border: 1px solid var(--sfc-edge);
	border-radius: 26px;
	background: var(--sfc-glass);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: var(--sfc-shadow-3), inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent);
	text-align: start;
}

.sfhb-search-form--hero .sfhb-sf__fields {
	box-shadow: var(--sfc-shadow-1);
}

/* Bar: one compact row on a solid panel. */
.sfhb-search-form--bar .sfhb-sf {
	padding: 6px;
	border: 1px solid var(--sfc-line);
	border-radius: 20px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfhb-search-form--bar .sfhb-sf__fields {
	background: transparent;
}

.sfhb-search-form--bar .sfhb-sf__submit {
	min-height: 48px;
}

/* Stacked: sidebar card with framed controls. */
.sfhb-search-form--stacked .sfhb-sf {
	padding: 18px;
	border: 1px solid var(--sfc-line);
	border-radius: 22px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfhb-search-form--stacked .sfhb-sf__fields {
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	background: transparent;
}

.sfhb-search-form--stacked .sfhb-sf__fields > * {
	grid-column: 1 / -1;
}

.sfhb-search-form--stacked .sfhb-sf__fields > .sfhb-field {
	padding: 0;
	border: 0;
}

.sfhb-search-form--stacked .sfhb-sf .sfhb-field:focus-within {
	background: transparent;
}

.sfhb-search-form--stacked .sfhb-field__wrap {
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-input);
	background: var(--sfc-panel-2);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sfhb-search-form--stacked .sfhb-field__wrap:focus-within {
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

.sfhb-search-form--stacked .sfhb-sf__go {
	padding: 6px 0 0;
}

/* Quick chips. */
.sfhb-sf__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px 10px;
	margin-top: 16px;
}

/* Centred heroes: core's text-align class (or `is-chips-center`) centres the row. */
.sfhb-search-form.has-text-align-center .sfhb-sf__chips,
.sfhb-search-form.is-chips-center .sfhb-sf__chips {
	justify-content: center;
}

.sfhb-sf__chips ul {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-sf__chips li {
	display: inline-flex;
}

.sfhb-sf__chips-label {
	color: inherit;
	opacity: 0.85;
	font: 700 13px/1 var(--sfc-f-ui);
	letter-spacing: 0.02em;
}

.sfhb-search-form--stacked .sfhb-sf__chips {
	justify-content: flex-start;
}

/* Hero sits on photography: the label is on-photo white. */
.sfhb-search-form--hero .sfhb-sf__chips-label {
	color: #fff;
	opacity: 1;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Wider layouts, by the form's own width.
 *  <600px  : phones / narrow columns: stacked cells + full-width button.
 *  600px+  : two rows: destination + Search, then dates | guests | type.
 *  960px+  : one row. */
@container sfhb-sf (min-width: 600px) {
	.sfhb-search-form--hero .sfhb-sf__fields,
	.sfhb-search-form--bar .sfhb-sf__fields {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	/* Line break between the two rows. */
	.sfhb-search-form--hero .sfhb-sf__fields::after,
	.sfhb-search-form--bar .sfhb-sf__fields::after {
		content: "";
		order: 2;
		flex: 0 0 100%;
		height: 0;
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field {
		order: 3;
		flex: 1 1 0;
		padding: 12px 18px;
		border-top: 1px solid var(--sfc-line);
		border-inline-start: 1px solid var(--sfc-line);
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field--dest,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field--dest {
		order: 0;
		border-top: 0;
		border-inline-start: 0;
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field--dates,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field--dates {
		flex-grow: 1.5;
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-sf__go,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-sf__go {
		order: 1;
		flex: 0 0 auto;
		min-width: 200px;
	}

	/* First cell of the second row. */
	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field--dest + .sfhb-field,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field--dest + .sfhb-field {
		border-inline-start: 0;
	}

	/* No destination field: a single row ending with the button. */
	.sfhb-search-form--hero .sfhb-sf__fields:not(:has(> .sfhb-field--dest))::after,
	.sfhb-search-form--bar .sfhb-sf__fields:not(:has(> .sfhb-field--dest))::after {
		display: none;
	}

	.sfhb-search-form--hero .sfhb-sf__fields:not(:has(> .sfhb-field--dest)) > .sfhb-sf__go,
	.sfhb-search-form--bar .sfhb-sf__fields:not(:has(> .sfhb-field--dest)) > .sfhb-sf__go {
		order: 4;
	}

	.sfhb-search-form--hero .sfhb-sf__fields:not(:has(> .sfhb-field--dest)) > .sfhb-field,
	.sfhb-search-form--bar .sfhb-sf__fields:not(:has(> .sfhb-field--dest)) > .sfhb-field {
		border-top: 0;
	}

	.sfhb-search-form--hero .sfhb-sf__fields:not(:has(> .sfhb-field--dest)) > .sfhb-field:first-of-type,
	.sfhb-search-form--bar .sfhb-sf__fields:not(:has(> .sfhb-field--dest)) > .sfhb-field:first-of-type {
		border-inline-start: 0;
	}

	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field {
		padding: 10px 16px;
	}
}

@container sfhb-sf (min-width: 960px) {
	.sfhb-search-form--hero .sfhb-sf__fields,
	.sfhb-search-form--bar .sfhb-sf__fields {
		flex-wrap: nowrap;
	}

	.sfhb-search-form--hero .sfhb-sf__fields::after,
	.sfhb-search-form--bar .sfhb-sf__fields::after {
		display: none;
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field,
	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field--dest + .sfhb-field,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field--dest + .sfhb-field {
		order: 0;
		padding: 14px 20px;
		border-top: 0;
		border-inline-start: 1px solid var(--sfc-line);
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field:first-child,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field:first-child {
		border-inline-start: 0;
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field--dest,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field--dest {
		flex-grow: 1.55;
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field--dates,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field--dates {
		flex-grow: 1.45;
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-field--guests,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field--guests {
		flex-grow: 0.9;
	}

	.sfhb-search-form--hero .sfhb-sf__fields > .sfhb-sf__go,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-sf__go,
	.sfhb-search-form--hero .sfhb-sf__fields:not(:has(> .sfhb-field--dest)) > .sfhb-sf__go,
	.sfhb-search-form--bar .sfhb-sf__fields:not(:has(> .sfhb-field--dest)) > .sfhb-sf__go {
		order: 9;
		flex: none;
		min-width: 0;
	}

	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field,
	.sfhb-search-form--bar .sfhb-sf__fields > .sfhb-field--dest + .sfhb-field {
		padding: 10px 16px;
	}
}

@container sfhb-sf (min-width: 1000px) {
	.sfhb-search-form--hero .sfhb-sf {
		padding: 12px;
	}

	.sfhb-search-form--hero .sfhb-sf__submit {
		min-height: 60px;
		padding: 0 32px;
	}
}

/* ---- Destination combobox (carousel.js drives the listbox) ---- */
.sfhb-suggest {
	position: relative;
}

.sfhb-suggest__input {
	text-overflow: ellipsis;
}

.sfhb-suggest__clear {
	position: absolute;
	top: 50%;
	inset-inline-end: 0;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sfc-panel-2);
	color: var(--sfc-muted);
	cursor: pointer;
	transform: translateY(-50%);
}

.sfhb-suggest__clear[hidden] {
	display: none;
}

.sfhb-suggest__clear:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 1px;
}

.sfhb-suggest__input {
	padding-inline-end: 28px;
}

.sfhb-suggest__list {
	position: absolute;
	top: calc(100% + 16px);
	inset-inline-start: -44px;
	z-index: 80;
	width: max(calc(100% + 60px), 340px);
	max-width: calc(100vw - 32px);
	max-height: min(380px, 60vh);
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	border: 1px solid var(--sfc-line);
	border-radius: 18px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-4);
	text-align: start;
}

.sfhb-suggest__list[hidden] {
	display: none;
}

.sfhb-search-form--stacked .sfhb-suggest__list {
	inset-inline-start: -14px;
	width: calc(100% + 28px);
	min-width: 260px;
	top: calc(100% + 12px);
}

.sfhb-suggest__list.is-up {
	top: auto;
	bottom: calc(100% + 40px);
}

.sfhb-search-form--stacked .sfhb-suggest__list.is-up {
	bottom: calc(100% + 12px);
}

.sfhb-suggest__group {
	padding: 12px 12px 6px;
	color: var(--sfc-muted);
	font: 800 11px/1 var(--sfc-f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sfhb-suggest__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--sfc-ink);
	font: 600 14px/1.3 var(--sfc-f-ui);
	cursor: pointer;
}

.sfhb-suggest__opt > .sfhb-i {
	width: 34px;
	height: 34px;
	padding: 8px;
	border-radius: 10px;
	background: var(--sfc-panel-2);
	color: var(--sfc-accent);
}

.sfhb-suggest__name {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfhb-suggest__parent {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--sfc-muted);
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfhb-suggest__count {
	flex: none;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--sfc-panel-2);
	color: var(--sfc-muted);
	font: 700 11px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
}

.sfhb-suggest__thumb {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--sfc-panel-2);
}

.sfhb-suggest__opt mark {
	padding: 0;
	background: transparent;
	color: var(--sfc-accent-strong);
	font-weight: 800;
}

.sfhb-suggest__opt.is-active,
.sfhb-suggest__opt:hover {
	background: var(--sfc-panel-2);
}

.sfhb-suggest__opt[aria-selected="true"] .sfhb-suggest__name {
	color: var(--sfc-accent-2);
}

.sfhb-suggest__empty {
	padding: 14px 12px;
	color: var(--sfc-muted);
	font: 500 13px/1.4 var(--sfc-f-ui);
}

/* ======================================================================
   3. SEARCH FILTERS  (bar | sidebar ; sheet on phones)
   ====================================================================== */

.sfhb-search-filters {
	position: relative;
	z-index: 20;
	width: 100%;
}

.sfhb-filters__form {
	margin: 0;
}

/* An open popover rises above sibling sections with their own stacking context. */
.sfhb-search-filters--bar:has(.sfhb-pop[open]) {
	z-index: 70;
}

.sfhb-filters__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.sfhb-filters__panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.sfhb-filters__sheet-head {
	display: none;
}

.sfhb-filters__fields {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Pill-shaped controls: popover buttons, the phone "Filters" button, sort. */
.sfhb-pop__btn,
.sfhb-filters__open,
.sfhb-filters__sort .sfhb-sel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 600 14px/1 var(--sfc-f-ui);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.sfhb-filters__sort .sfhb-sel:focus-within {
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

.sfhb-filters__sort .sfhb-field__control {
	min-height: 42px;
	padding: 0 22px 0 0;
	border: 0;
	background: transparent;
	color: var(--sfc-ink);
	font: 600 14px/1 var(--sfc-f-ui);
	box-shadow: none;
}

.sfhb-filters__sort .sfhb-field__control:focus {
	outline: none;
	box-shadow: none;
}

/* Popovers (<details>). */
.sfhb-pop {
	position: relative;
}

.sfhb-pop > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.sfhb-pop > summary::-webkit-details-marker {
	display: none;
}

.sfhb-pop__btn:focus-visible {
	outline: none;
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

.sfhb-pop__value:empty {
	display: none;
}

.sfhb-pop__value {
	color: var(--sfc-accent-2);
	font-weight: 700;
}

.sfhb-pop__title + .sfhb-pop__value:not(:empty)::before {
	content: "·";
	margin-inline-end: 6px;
	color: var(--sfc-muted);
}

.sfhb-pop__btn > .sfhb-i {
	color: var(--sfc-muted);
	transition: transform 0.2s ease;
}

.sfhb-pop[open] > .sfhb-pop__btn {
	border-color: var(--sfc-ink);
}

.sfhb-pop[open] > .sfhb-pop__btn > .sfhb-i {
	transform: rotate(180deg);
}

.sfhb-pop.is-active > .sfhb-pop__btn {
	border-color: color-mix(in srgb, var(--sfc-accent-2) 55%, transparent);
	background: color-mix(in srgb, var(--sfc-turf) 70%, var(--sfc-panel));
}

.sfhb-pop__panel {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: max-content;
	min-width: 320px;
	max-width: min(560px, calc(100vw - 32px));
	padding: 20px;
	border: 1px solid var(--sfc-line);
	border-radius: 20px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-4);
	animation: sfhb-pop-in 0.18s var(--sfc-ease);
}

.sfhb-pop--wide .sfhb-pop__panel {
	width: min(600px, calc(100vw - 32px));
	max-height: min(70vh, 640px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

@keyframes sfhb-pop-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

.sfhb-pop__section {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sfhb-pop__section > legend {
	padding: 0;
	margin-bottom: 10px;
}

/* ---- Price range ---- */
.sfhb-prange {
	display: grid;
	gap: 12px;
	min-width: min(340px, 100%);
}

.sfhb-prange__hist {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 56px;
}

.sfhb-prange__hist i {
	flex: 1 1 0;
	height: calc(var(--h, 0) * 1%);
	min-height: 3px;
	border-radius: 3px 3px 0 0;
	background: color-mix(in srgb, var(--sfc-ink) 12%, transparent);
	transition: background-color 0.15s ease;
}

.sfhb-prange__hist i.is-in {
	background: color-mix(in srgb, var(--sfc-accent-2) 55%, transparent);
}

.sfhb-prange__track {
	position: relative;
	display: none;
	height: 28px;
}

.sfhb-prange.is-ready .sfhb-prange__track {
	display: block;
}

.sfhb-prange__track::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 4px;
	background: var(--sfc-panel-2);
}

.sfhb-prange__fill {
	position: absolute;
	top: 50%;
	inset-inline-start: var(--sfhb-lo, 0%);
	inset-inline-end: calc(100% - var(--sfhb-hi, 100%));
	height: 4px;
	margin-top: -2px;
	border-radius: 4px;
	background: var(--sfc-accent-2);
}

.sfhb-prange__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	background: none;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
}

.sfhb-prange__input::-webkit-slider-runnable-track {
	height: 28px;
	background: none;
}

.sfhb-prange__input::-moz-range-track {
	height: 28px;
	background: none;
}

.sfhb-prange__input::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	border: 2px solid var(--sfc-ink);
	border-radius: 50%;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-2);
	cursor: grab;
	pointer-events: auto;
}

.sfhb-prange__input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 2px solid var(--sfc-ink);
	border-radius: 50%;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-2);
	cursor: grab;
	pointer-events: auto;
}

.sfhb-prange__input:active::-webkit-slider-thumb {
	cursor: grabbing;
}

.sfhb-prange__input:focus-visible::-webkit-slider-thumb {
	box-shadow: var(--sfc-ring);
}

.sfhb-prange__input:focus-visible::-moz-range-thumb {
	box-shadow: var(--sfc-ring);
}

.sfhb-prange__input:focus {
	outline: none;
}

/* The upper thumb is on top, unless both sit at the far end. */
.sfhb-prange__input[data-sfhb-range-lo] {
	z-index: 2;
}

.sfhb-prange__input[data-sfhb-range-hi] {
	z-index: 3;
}

.sfhb-prange.is-lo-top .sfhb-prange__input[data-sfhb-range-lo] {
	z-index: 4;
}

.sfhb-prange__vals {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.sfhb-prange__val {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.sfhb-prange__sep {
	padding-bottom: 14px;
	color: var(--sfc-muted);
}

.sfhb-prange__money {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-input);
	background: var(--sfc-panel);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sfhb-prange__money:focus-within {
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

.sfhb-prange__cur {
	color: var(--sfc-muted);
	font: 700 15px/1 var(--sfc-f-num);
}

.sfhb-prange__num {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sfc-ink);
	font: 700 16px/1.2 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
}

.sfhb-prange__num::-webkit-outer-spin-button,
.sfhb-prange__num::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.sfhb-prange__num:focus {
	outline: none;
}

.sfhb-prange__note {
	color: var(--sfc-muted);
	font: 500 12px/1.3 var(--sfc-f-ui);
}

/* Keyword field (framed text input). */
.sfhb-search-filters input.sfhb-input {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-input);
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 600 15px/1.3 var(--sfc-f-ui);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sfhb-search-filters input.sfhb-input:focus-visible {
	outline: none;
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

/* Single-section popovers already carry their title: drop the duplicate legend
 * in the sidebar and in the phone sheet. */
.sfhb-search-filters--sidebar .sfhb-pop__legend,
.sfhb-search-filters--sidebar .sfhb-pop--amenity .sfhb-pop__section > legend,
.sfhb-search-filters--sidebar .sfhb-pop--booking .sfhb-pop__section > legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ---- Pills (stars, rating, bedrooms) ---- */
.sfhb-fpills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sfhb-fpill,
.sfhb-ftag,
.sfhb-fcheck,
.sfhb-fswitch {
	position: relative;
	cursor: pointer;
}

.sfhb-fpill input,
.sfhb-ftag input,
.sfhb-fcheck input,
.sfhb-fswitch input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.sfhb-fpill {
	display: inline-flex;
}

.sfhb-fpill span {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 56px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 700 13px/1 var(--sfc-f-ui);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sfhb-fpill span b {
	font: 800 14px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
}

.sfhb-fpill span small {
	font: 600 10px/1 var(--sfc-f-ui);
	letter-spacing: 0.02em;
	opacity: 0.8;
}

.sfhb-fpill span:has(b) {
	flex-direction: column;
	min-height: 50px;
	padding-block: 6px;
	border-radius: 18px;
}

.sfhb-fpill span .sfhb-i {
	margin-inline-start: 2px;
	color: var(--sfc-gold);
}

.sfhb-fpill input:checked + span {
	border-color: var(--sfc-ink);
	background: var(--sfc-ink);
	color: var(--sfc-base);
}

.sfhb-fpill input:checked + span .sfhb-i {
	color: inherit;
}

.sfhb-fpill input:focus-visible + span {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfhb-fpill:hover input:not(:checked) + span {
		border-color: var(--sfc-ink);
	}
}

/* ---- Checkboxes (types, amenities) + facet counts ---- */
.sfhb-fchecks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 14px;
}

.sfhb-fchecks--types {
	max-height: 280px;
	overflow-y: auto;
	padding-inline-end: 4px;
}

.sfhb-fcheck {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	color: var(--sfc-ink);
	font: 500 14px/1.25 var(--sfc-f-ui);
}

.sfhb-fcheck__box {
	display: grid;
	flex: none;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1.5px solid color-mix(in srgb, var(--sfc-ink) 35%, transparent);
	border-radius: 6px;
	background: var(--sfc-panel);
	color: transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sfhb-fcheck input:checked + .sfhb-fcheck__box {
	border-color: var(--sfc-accent-2);
	background: var(--sfc-accent-2);
	color: var(--sfc-on-fill);
}

.sfhb-fcheck input:focus-visible + .sfhb-fcheck__box {
	box-shadow: var(--sfc-ring);
}

.sfhb-fcheck__label {
	flex: 1 1 auto;
	min-width: 0;
}

.sfhb-fcount {
	flex: none;
	min-width: 24px;
	padding: 3px 7px;
	border-radius: 999px;
	background: var(--sfc-panel-2);
	color: var(--sfc-muted);
	font: 700 11px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	text-align: center;
	transition: opacity 0.15s ease;
}

.sfhb-fcount[data-empty] {
	opacity: 0.5;
}

.sfhb-fcheck:has(.sfhb-fcount[data-empty]:not(:checked)) .sfhb-fcheck__label,
.sfhb-ftag:has(.sfhb-fcount[data-empty]) {
	color: var(--sfc-muted);
}

/* Vibe chips. */
.sfhb-ftags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sfhb-ftag {
	display: inline-flex;
}

.sfhb-ftag span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 8px 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 600 13px/1 var(--sfc-f-ui);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sfhb-ftag span:not(:has(.sfhb-fcount)) {
	padding-inline-end: 14px;
}

.sfhb-ftag input:checked + span {
	border-color: var(--sfc-accent-2);
	background: var(--sfc-accent-2);
	color: var(--sfc-on-fill);
}

.sfhb-ftag input:checked + span .sfhb-fcount {
	background: color-mix(in srgb, var(--sfc-on-fill) 22%, transparent);
	color: inherit;
}

.sfhb-ftag input:focus-visible + span {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfhb-ftag:hover input:not(:checked) + span {
		border-color: var(--sfc-ink);
	}
}

/* Booking-option switches. */
.sfhb-fswitches {
	display: grid;
	gap: 4px;
}

.sfhb-fswitch {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
}

.sfhb-fswitch__track {
	position: relative;
	flex: none;
	width: 44px;
	height: 26px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--sfc-ink) 22%, transparent);
	transition: background-color 0.18s ease;
}

.sfhb-fswitch__track > span {
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
	transition: transform 0.18s var(--sfc-ease);
}

.sfhb-fswitch input:checked + .sfhb-fswitch__track {
	background: var(--sfc-neon);
}

.sfhb-fswitch input:checked + .sfhb-fswitch__track > span {
	transform: translateX(18px);
}

[dir="rtl"] .sfhb-fswitch input:checked + .sfhb-fswitch__track > span {
	transform: translateX(-18px);
}

.sfhb-fswitch input:focus-visible + .sfhb-fswitch__track {
	box-shadow: var(--sfc-ring);
}

.sfhb-fswitch__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sfhb-fswitch__text strong {
	color: var(--sfc-ink);
	font: 700 14px/1.25 var(--sfc-f-ui);
}

.sfhb-fswitch__text small {
	color: var(--sfc-muted);
	font: 500 12px/1.3 var(--sfc-f-ui);
}

/* Amenity groups. */
.sfhb-amenities {
	display: grid;
	gap: 6px;
}

.sfhb-agroup {
	border-top: 1px solid var(--sfc-line);
}

.sfhb-agroup__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 0;
	color: var(--sfc-ink);
	font: 800 13px/1.2 var(--sfc-f-ui);
	list-style: none;
	cursor: pointer;
}

.sfhb-agroup__head::-webkit-details-marker {
	display: none;
}

.sfhb-agroup__head .sfhb-i {
	color: var(--sfc-muted);
	transition: transform 0.2s ease;
}

.sfhb-agroup[open] > .sfhb-agroup__head .sfhb-i {
	transform: rotate(180deg);
}

.sfhb-agroup__head:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
	border-radius: 6px;
}

.sfhb-agroup > .sfhb-fchecks {
	padding-bottom: 10px;
}

/* Actions + meta. */
.sfhb-filters__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.sfhb-filters__reset {
	color: var(--sfc-muted);
	font: 700 14px/1 var(--sfc-f-ui);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfhb-filters__reset:hover {
	color: var(--sfc-ink);
}

.sfhb-filters__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--sfc-accent-strong);
	color: var(--sfc-on-fill);
	font: 800 14px/1 var(--sfc-f-ui);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.sfhb-filters__apply:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--sfc-accent) 40%, transparent);
	outline-offset: 2px;
}

.sfhb-filters__apply.is-loading {
	opacity: 0.75;
}

@media (hover: hover) {
	.sfhb-filters__apply:hover {
		background: color-mix(in srgb, var(--sfc-accent-strong) 88%, var(--sfc-ink));
	}
}

.sfhb-filters__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-inline-start: auto;
}

.sfhb-filters__count {
	margin: 0;
	color: var(--sfc-muted);
	font: 600 14px/1.2 var(--sfc-f-ui);
	white-space: nowrap;
}

.sfhb-filters__count strong {
	color: var(--sfc-ink);
	font-family: var(--sfc-f-num);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.sfhb-filters__sort {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sfhb-filters__sort .sfhb-field__label {
	margin: 0;
}

.sfhb-filters__sort .sfhb-sel {
	padding: 0 14px;
}

.sfhb-filters__sort .sfhb-sel > .sfhb-i {
	inset-inline-end: 12px;
}

.sfhb-filters__open {
	display: none;
	cursor: pointer;
}

.sfhb-filters__badge {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--sfc-accent-strong);
	color: var(--sfc-on-fill);
	font: 800 11px/1 var(--sfc-f-num);
}

/* Active chips. */
.sfhb-filters__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.sfhb-filters__chips li {
	display: inline-flex;
}

.sfhb-search-filters .sfhb-achip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 10px 0 12px;
	border: 1px solid color-mix(in srgb, var(--sfc-accent-2) 30%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--sfc-turf) 75%, var(--sfc-panel));
	color: var(--sfc-ink);
	font: 700 13px/1 var(--sfc-f-ui);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sfhb-search-filters .sfhb-achip:hover {
	border-color: var(--sfc-accent-2);
}

.sfhb-search-filters .sfhb-achip:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

.sfhb-search-filters .sfhb-achip .sfhb-i {
	color: var(--sfc-muted);
}

.sfhb-filters__clear {
	color: var(--sfc-accent-2);
	font: 700 13px/1 var(--sfc-f-ui);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfhb-filters__scrim {
	display: none;
}

/* Per-popover Apply (desktop bar with JS); hidden everywhere else. */
.sfhb-pop__foot {
	display: none;
}

/* Meta row: count, active chips, sort. */
.sfhb-filters__meta .sfhb-filters__chips {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.sfhb-filters__meta .sfhb-filters__sort {
	margin-inline-start: auto;
}

/* Desktop bar: everything on one line, Apply inline. */
@media (min-width: 769px) {
	.sfhb-search-filters--bar .sfhb-filters__panel {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
	}

	.sfhb-search-filters--bar .sfhb-filters__actions {
		gap: 10px;
	}

	.sfhb-search-filters--bar .sfhb-filters__meta {
		flex: 1 0 100%;
		margin: 4px 0 0;
	}

	/* Pre-paint: `html.sfhb-js` (CORE scheme script in <head>) already lays the
	 * bar out as carousel.js will (per-popover Apply, no Reset/Apply row), so
	 * nothing moves when it boots (CLS). `.is-fallback` (inline guard printed
	 * before carousel.js) restores the no-JS form if the script never ran. */
	:is(.sfhb-js .sfhb-search-filters--bar:where(:not(.is-fallback)), .sfhb-search-filters--bar.is-enhanced) .sfhb-filters__actions {
		display: none;
	}

	:is(.sfhb-js .sfhb-search-filters--bar:where(:not(.is-fallback)), .sfhb-search-filters--bar.is-enhanced) .sfhb-pop__foot {
		display: flex;
		justify-content: flex-end;
		margin-top: 2px;
		padding-top: 14px;
		border-top: 1px solid var(--sfc-line);
	}

	:is(.sfhb-js .sfhb-search-filters--bar:where(:not(.is-fallback)), .sfhb-search-filters--bar.is-enhanced) .sfhb-pop__apply {
		min-height: 42px;
		border-radius: 999px;
	}
}

/* Sidebar layout. */
.sfhb-search-filters--sidebar .sfhb-filters__bar {
	flex-direction: column;
	align-items: stretch;
}

.sfhb-search-filters--sidebar .sfhb-filters__meta {
	order: -1;
	justify-content: space-between;
	margin-inline-start: 0;
}

.sfhb-search-filters--sidebar .sfhb-filters__panel {
	padding: 18px;
	border: 1px solid var(--sfc-line);
	border-radius: 22px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfhb-search-filters--sidebar .sfhb-filters__fields {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.sfhb-search-filters--sidebar .sfhb-pop {
	padding: 16px 0;
	border-bottom: 1px solid var(--sfc-line);
}

.sfhb-search-filters--sidebar .sfhb-pop:first-child {
	padding-top: 0;
}

.sfhb-search-filters--sidebar .sfhb-pop__btn {
	display: flex;
	width: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--sfc-ink);
	font-size: 15px;
	font-weight: 800;
	pointer-events: none;
}

.sfhb-search-filters--sidebar .sfhb-pop__btn > .sfhb-i {
	display: none;
}

.sfhb-search-filters--sidebar .sfhb-pop.is-active > .sfhb-pop__btn,
.sfhb-search-filters--sidebar .sfhb-pop[open] > .sfhb-pop__btn {
	background: transparent;
}

.sfhb-search-filters--sidebar .sfhb-pop__panel {
	position: static;
	width: auto;
	min-width: 0;
	max-width: none;
	max-height: none;
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	animation: none;
	overflow: visible;
}

.sfhb-search-filters--sidebar .sfhb-fchecks {
	grid-template-columns: minmax(0, 1fr);
}

.sfhb-search-filters--sidebar .sfhb-fchecks--types {
	max-height: none;
}

.sfhb-search-filters--sidebar .sfhb-prange {
	min-width: 0;
}

.sfhb-search-filters--sidebar .sfhb-filters__actions {
	justify-content: space-between;
}

.sfhb-search-filters--sidebar .sfhb-filters__apply {
	flex: 1 1 auto;
	max-width: 220px;
}

/* Phones: Filters button + bottom sheet. Keyed on the pre-paint `html.sfhb-js`
 * (not only on `.is-enhanced`, which carousel.js adds after load) so the bar
 * paints collapsed and the grid below never jumps up (CLS). No JS, or the
 * `.is-fallback` guard: the full stacked form stays inline. */
@media (max-width: 768px) {
	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__open {
		display: inline-flex;
		flex: none;
		order: 1;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__bar {
		flex-wrap: wrap;
	}

	:is(.sfhb-js .sfhb-search-filters--sidebar:where(:not(.is-fallback)), .sfhb-search-filters--sidebar.is-enhanced) .sfhb-filters__bar {
		flex-direction: row;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__meta {
		display: contents;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__sort {
		order: 2;
		margin-inline-start: auto;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__meta .sfhb-filters__chips {
		order: 3;
		flex: 1 0 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__meta .sfhb-filters__chips::-webkit-scrollbar {
		display: none;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__sort .sfhb-field__label,
	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__count {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__panel {
		position: fixed;
		inset: auto 0 0;
		z-index: 100001;
		display: flex;
		flex-direction: column;
		gap: 0;
		width: 100%;
		max-height: 88vh;
		max-height: 88dvh;
		padding: 0;
		border: 0;
		border-radius: 24px 24px 0 0;
		background: var(--sfc-panel);
		box-shadow: var(--sfc-shadow-4);
		transform: translateY(105%);
		visibility: hidden;
		transition: transform 0.3s var(--sfc-ease), visibility 0s linear 0.3s;
	}

	.sfhb-search-filters.is-sheet-open .sfhb-filters__panel {
		transform: none;
		visibility: visible;
		transition: transform 0.3s var(--sfc-ease);
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__sheet-head {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 18px 12px;
		border-bottom: 1px solid var(--sfc-line);
		font: 800 18px/1 var(--sfc-f-ui);
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__sheet-head::before {
		content: "";
		position: absolute;
		top: 7px;
		inset-inline-start: 50%;
		width: 40px;
		height: 4px;
		border-radius: 4px;
		background: var(--sfc-line);
		transform: translateX(-50%);
	}

	.sfhb-filters__close {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 1px solid var(--sfc-line);
		border-radius: 50%;
		background: var(--sfc-panel);
		color: var(--sfc-ink);
		cursor: pointer;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__fields {
		flex: 1 1 auto;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
		padding: 4px 18px 12px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-pop {
		padding: 18px 0;
		border-bottom: 1px solid var(--sfc-line);
	}

	.sfhb-search-filters.is-sheet-open {
		z-index: 100000;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-pop__btn {
		display: flex;
		width: 100%;
		min-height: 0;
		padding: 0;
		border: 0;
		background: transparent;
		font-size: 16px;
		font-weight: 800;
		pointer-events: none;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-pop__btn > .sfhb-i {
		display: none;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-pop__panel {
		position: static;
		width: auto;
		min-width: 0;
		max-width: none;
		max-height: none;
		margin-top: 14px;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		animation: none;
		overflow: visible;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-prange {
		min-width: 0;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-pop__legend,
	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-pop--amenity .sfhb-pop__section > legend,
	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-pop--booking .sfhb-pop__section > legend {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-fchecks--types {
		max-height: none;
		overflow: visible;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__actions {
		justify-content: space-between;
		padding: 12px 18px max(12px, env(safe-area-inset-bottom));
		border-top: 1px solid var(--sfc-line);
		background: var(--sfc-panel);
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__apply {
		flex: 1 1 auto;
		max-width: 260px;
		min-height: 50px;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__scrim {
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: block;
		background: rgba(8, 22, 26, 0.5);
		opacity: 0;
		transition: opacity 0.25s ease;
	}

	.sfhb-search-filters.is-sheet-open .sfhb-filters__scrim {
		opacity: 1;
	}

	:is(.sfhb-js .sfhb-search-filters:where(:not(.is-fallback)), .sfhb-search-filters.is-enhanced) .sfhb-filters__scrim[hidden] {
		display: none;
	}
}

/* ======================================================================
   4. STAY GRID + PAGINATION
   ====================================================================== */

.sfhb-stay-grid--row .sfhb-stay-grid__list {
	grid-template-columns: minmax(0, 1fr);
}

/* Phone layout "Swipe rail": one row of cards that scrolls sideways with
 * snap points (the next card peeks in) instead of a tall stack. */
@media (max-width: 599px) {
	.sfhb-stay-grid.is-mobile-rail .sfhb-stay-grid__list {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(84%, 340px);
		gap: 14px;
		margin-inline: calc(-1 * var(--sfhb-rail-bleed, 0px));
		padding: 4px var(--sfhb-rail-bleed, 0px) 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--sfhb-rail-bleed, 0px);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.sfhb-stay-grid.is-mobile-rail .sfhb-stay-grid__list::-webkit-scrollbar {
		display: none;
	}

	.sfhb-stay-grid.is-mobile-rail .sfhb-stay-grid__list > * {
		scroll-snap-align: start;
	}
}

/* Archive grid with no results (same anatomy as the map-search empty state). */
.sfhb-gempty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: clamp(36px, 6vw, 64px) 24px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-card);
	background: var(--sfc-panel);
	text-align: center;
}

.sfhb-gempty__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: var(--sfc-panel-2);
	color: var(--sfc-accent);
}

.sfhb-gempty__title {
	margin: 0;
	color: var(--sfc-ink);
	font: 500 clamp(22px, 2.6vw, 28px)/1.2 var(--sfc-f-display);
	letter-spacing: -0.01em;
}

.sfhb-gempty__text {
	max-width: 46ch;
	margin: 0;
	color: var(--sfc-muted);
	font: 400 15px/1.6 var(--sfc-f-body);
}

.sfhb-gempty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 10px 0 0;
}

.sfhb-gempty__actions .sfhb-btn {
	min-height: 44px;
	font-family: var(--sfc-f-ui);
}

.sfhb-pagination {
	margin-top: clamp(28px, 4vw, 48px);
}

/* paginate_links( type=list ) prints <ul class="page-numbers">: the list
 * itself must never pick up the pill styles of its items. */
.sfhb-pagination ul,
.sfhb-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	list-style: none;
}

.sfhb-pagination li {
	display: inline-flex;
	margin: 0;
	padding: 0;
}

.sfhb-pagination li::before {
	content: none;
}

.sfhb-pagination a.page-numbers,
.sfhb-pagination span.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 700 14px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sfhb-pagination .page-numbers.current {
	border-color: var(--sfc-ink);
	background: var(--sfc-ink);
	color: var(--sfc-base);
}

.sfhb-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.sfhb-pagination a.page-numbers:hover {
	border-color: var(--sfc-ink);
}

.sfhb-pagination .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.sfhb-pagination .prev.page-numbers,
.sfhb-pagination .next.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 16px;
	font-family: var(--sfc-f-ui);
}

.sfhb-pagination .prev.page-numbers {
	padding-left: 12px;
}

.sfhb-pagination .next.page-numbers {
	padding-right: 12px;
}

.sfhb-pagination__count {
	margin: 14px 0 0;
	color: var(--sfc-muted);
	font: 600 13px/1.4 var(--sfc-f-ui);
	font-variant-numeric: tabular-nums;
	text-align: center;
}

/* Phones: icon-only Previous / Next (the label stays for screen readers). */
@media (max-width: 599px) {
	.sfhb-pagination .prev.page-numbers,
	.sfhb-pagination .next.page-numbers {
		padding: 0;
	}

	.sfhb-pagination__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}


/* ======================================================================
   5. STAY CAROUSEL
   ====================================================================== */

.sfhb-carousel {
	--sfhb-cgap: clamp(14px, 1.6vw, 24px);
	position: relative;
}

.sfhb-carousel__viewport {
	position: relative;
}

.sfhb-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 86%;
	gap: var(--sfhb-cgap);
	margin: -8px -4px;
	padding: 8px 4px 22px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 4px;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sfhb-carousel__track::-webkit-scrollbar {
	display: none;
}

.sfhb-carousel__track:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 4px;
	border-radius: var(--sfc-r-card);
}

.sfhb-carousel__slide {
	display: flex;
	min-width: 0;
	scroll-snap-align: start;
}

.sfhb-carousel__slide > * {
	width: 100%;
}

@media (min-width: 600px) {
	.sfhb-carousel__track {
		grid-auto-columns: calc((100% - var(--sfhb-cgap)) / 2);
	}

	.sfhb-carousel[style*="--sfhb-per-view:1"] .sfhb-carousel__track {
		grid-auto-columns: 100%;
	}
}

@media (min-width: 1025px) {
	.sfhb-carousel__track {
		grid-auto-columns: calc((100% - (var(--sfhb-per-view, 3) - 1) * var(--sfhb-cgap)) / var(--sfhb-per-view, 3));
	}
}

@media (prefers-reduced-motion: no-preference) {
	.sfhb-carousel__track {
		scroll-behavior: smooth;
	}
}

.sfhb-carousel__arrow {
	position: absolute;
	top: calc(50% - 40px);
	z-index: 5;
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--sfc-line);
	border-radius: 50%;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	box-shadow: var(--sfc-shadow-2);
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}

.sfhb-carousel__arrow--prev {
	left: -22px;
}

.sfhb-carousel__arrow--next {
	right: -22px;
}

.sfhb-carousel__arrow:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

.sfhb-carousel__arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

.sfhb-carousel.is-static .sfhb-carousel__arrow,
.sfhb-carousel.is-static .sfhb-carousel__dots {
	display: none;
}

@media (min-width: 769px) and (hover: hover) {
	.sfhb-carousel.is-ready .sfhb-carousel__arrow {
		display: grid;
	}

	.sfhb-carousel__arrow:hover {
		background: var(--sfc-ink);
		color: var(--sfc-base);
		transform: scale(1.05);
	}
}

@media (max-width: 1280px) {
	.sfhb-carousel__arrow--prev {
		left: 8px;
	}

	.sfhb-carousel__arrow--next {
		right: 8px;
	}
}

.sfhb-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 24px;
	margin-top: 4px;
}

.sfhb-carousel__dot {
	position: relative;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sfhb-carousel__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--sfc-ink) 22%, transparent);
	transition: width 0.25s var(--sfc-ease), background-color 0.2s ease;
}

.sfhb-carousel__dot[aria-current="true"] {
	width: 36px;
}

.sfhb-carousel__dot[aria-current="true"]::before {
	width: 24px;
	background: var(--sfc-accent);
}

.sfhb-carousel__dot:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 0;
	border-radius: 8px;
}

.sfhb-carousel__play {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: 8px;
	padding: 0;
	border: 1px solid var(--sfc-line);
	border-radius: 50%;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	cursor: pointer;
}

.sfhb-carousel__play svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}


/* ======================================================================
   6. DESTINATION GRID  (tiles | grid | chips)
   ====================================================================== */

.sfhb-destination-grid__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(12px, 1.6vw, 20px);
}

/* The tile: a photo with the name, count and "from" price laid over a scrim.
 * The scrim stays dark in both colour schemes: it belongs to the photograph. */
.sfhb-dtile {
	position: relative;
	display: block;
	min-height: 240px;
	overflow: hidden;
	border-radius: 22px;
	background: var(--sfc-turf);
	color: #fff;
	isolation: isolate;
	box-shadow: var(--sfc-shadow-1);
	transition: box-shadow 0.25s ease, transform 0.25s var(--sfc-ease);
}

.sfhb-dtile__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.sfhb-dtile__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--sfc-ease);
}

.sfhb-dtile__ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--sfc-accent-2), var(--sfc-navy));
	color: rgba(255, 255, 255, 0.75);
}

.sfhb-dtile__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 22, 26, 0.86) 0%, rgba(8, 22, 26, 0.56) 40%, rgba(8, 22, 26, 0.12) 72%, rgba(8, 22, 26, 0) 100%);
}

.sfhb-dtile__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
}

.sfhb-dtile__parent {
	font: 800 11px/1 var(--sfc-f-ui);
	letter-spacing: 0.12em;
	opacity: 0.85;
	text-transform: uppercase;
}

.sfhb-dtile__name {
	margin: 0;
	color: inherit;
	font: 500 clamp(22px, 2.2vw, 28px)/1.1 var(--sfc-f-display);
	letter-spacing: -0.01em;
	text-shadow: 0 1px 12px rgba(8, 22, 26, 0.45);
}

.sfhb-dtile__link {
	color: inherit;
	text-decoration: none;
}

/* The whole tile is the link target. */
.sfhb-dtile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sfhb-dtile__link:focus-visible {
	outline: none;
}

.sfhb-dtile:has(.sfhb-dtile__link:focus-visible) {
	outline: 3px solid var(--sfc-accent-2);
	outline-offset: 3px;
}

.sfhb-dtile__tagline {
	max-width: 36ch;
	margin: 0;
	font: 500 14px/1.45 var(--sfc-f-body);
	opacity: 0.92;
}

.sfhb-dtile__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 2px 0 0;
	font: 600 13px/1.3 var(--sfc-f-ui);
}

.sfhb-dtile__meta > span + span::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin-inline-end: 12px;
	border-radius: 50%;
	background: currentColor;
	vertical-align: middle;
	opacity: 0.7;
}

.sfhb-dtile__from strong {
	font-family: var(--sfc-f-num);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.sfhb-dtile__go {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sfc-glass);
	color: var(--sfc-ink);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.25s var(--sfc-ease);
}

@media (hover: hover) {
	.sfhb-dtile:hover {
		box-shadow: var(--sfc-shadow-3);
		transform: translateY(-3px);
	}

	.sfhb-dtile:hover .sfhb-dtile__img {
		transform: scale(1.05);
	}

	.sfhb-dtile:hover .sfhb-dtile__go {
		opacity: 1;
		transform: none;
	}
}

/* Grid: uniform portrait tiles. */
@media (min-width: 600px) {
	.sfhb-destination-grid--grid .sfhb-destination-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.sfhb-destination-grid--grid .sfhb-destination-grid__list {
		grid-template-columns: repeat(var(--sfhb-cols, 4), minmax(0, 1fr));
	}
}

.sfhb-destination-grid--grid .sfhb-dtile {
	aspect-ratio: 4 / 5;
	min-height: 0;
}

/* Tiles: one feature tile + a block of smaller ones (editorial).
 * Phones/tablets: the feature tile is a full-width first row, the rest pair up. */
.sfhb-destination-grid--tiles .sfhb-destination-grid__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: 300px;
	grid-auto-rows: 210px;
}

.sfhb-destination-grid--tiles .sfhb-destination-grid__list > .sfhb-dtile {
	height: 100%;
	min-height: 0;
}

.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :first-child {
	grid-column: 1 / -1;
}

@media (max-width: 599px) {
	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :not(:first-child) .sfhb-dtile__body {
		padding: 14px;
	}

	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :not(:first-child) .sfhb-dtile__name {
		font-size: 20px;
	}

	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :not(:first-child) .sfhb-dtile__meta {
		font-size: 12px;
	}

	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :not(:first-child) .sfhb-dtile__meta > span + span {
		display: block;
		width: 100%;
	}

	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :not(:first-child) .sfhb-dtile__meta > span + span::before {
		display: none;
	}
}

/* An even tile count leaves the last tile alone after the feature row: close full width. */
@media (max-width: 1024px) {
	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :last-child:nth-child(even) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 600px) {
	.sfhb-destination-grid--tiles .sfhb-destination-grid__list {
		grid-template-rows: 360px;
		grid-auto-rows: 250px;
	}
}

@media (min-width: 1025px) {
	.sfhb-destination-grid--tiles .sfhb-destination-grid__list {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: none;
		grid-auto-rows: clamp(220px, 19vw, 290px);
	}

	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :first-child {
		grid-column: auto;
		grid-row: span 2;
	}

	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :last-child:nth-child(even) {
		grid-column: auto;
	}

	/* Close the last row: the feature tile + 4 fills two rows of a 3-col grid,
	 * every further row holds 3. A lone tail tile spans the row (or the 2 free cells). */
	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :last-child:nth-child(4),
	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :last-child:nth-child(3n + 7) {
		grid-column: span 2;
	}

	.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :last-child:nth-child(3n + 6) {
		grid-column: 1 / -1;
	}
}

.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :first-child .sfhb-dtile__name {
	font-size: clamp(30px, 3.4vw, 48px);
}

.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :first-child .sfhb-dtile__body {
	gap: 8px;
	padding: clamp(22px, 3vw, 36px);
}

.sfhb-destination-grid--tiles .sfhb-destination-grid__list > :first-child .sfhb-dtile__tagline {
	font-size: 16px;
}

/* Chips layout. */
.sfhb-destination-grid__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-destination-grid__chips li {
	display: inline-flex;
	min-width: 0;
}

.sfhb-dtile--chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 5px 14px 5px 5px;
	overflow: visible;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	box-shadow: none;
	color: var(--sfc-ink);
	font: 700 14px/1 var(--sfc-f-ui);
	text-decoration: none;
	isolation: auto;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.sfhb-dtile--chip .sfhb-dtile__media {
	position: static;
	z-index: auto;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--sfc-turf);
}

.sfhb-dtile--chip .sfhb-dtile__ph {
	background: var(--sfc-turf);
	color: var(--sfc-accent-2);
}

.sfhb-dtile--chip .sfhb-dtile__name {
	margin: 0;
	font: 700 14px/1 var(--sfc-f-ui);
	letter-spacing: 0;
	text-shadow: none;
}

.sfhb-dtile--chip .sfhb-dtile__count {
	min-width: 24px;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--sfc-panel-2);
	color: var(--sfc-muted);
	font: 700 11px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.sfhb-dtile--chip:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfhb-dtile--chip:hover {
		border-color: var(--sfc-ink);
		box-shadow: none;
		transform: translateY(-1px);
	}
}

/* ======================================================================
   7. VIBE GRID  (tiles | chips)
   ====================================================================== */

.sfhb-vibe-grid__list,
.sfhb-vibe-grid__chips {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-vibe-grid__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(12px, 1.6vw, 20px);
}

@media (min-width: 600px) {
	.sfhb-vibe-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.sfhb-vibe-grid__list {
		grid-template-columns: repeat(var(--sfhb-cols, 3), minmax(0, 1fr));
	}
}

.sfhb-vibe-grid__list > li {
	display: flex;
	min-width: 0;
}

.sfhb-vtile {
	position: relative;
	display: block;
	width: 100%;
	min-height: 200px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 22px;
	background: var(--sfhb-vibe, var(--sfc-accent-2));
	color: #fff;
	text-decoration: none;
	isolation: isolate;
	box-shadow: var(--sfc-shadow-1);
	transition: box-shadow 0.25s ease, transform 0.25s var(--sfc-ease);
}

.sfhb-vtile__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.sfhb-vtile__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--sfc-ease);
}

.sfhb-vtile__ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--sfhb-vibe, var(--sfc-accent-2)), color-mix(in srgb, var(--sfhb-vibe, var(--sfc-accent-2)) 60%, #0a1316));
	color: rgba(255, 255, 255, 0.7);
}

/* The wash takes the collection colour (term meta hb_color), dark at the base. */
.sfhb-vtile__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, color-mix(in srgb, var(--sfhb-vibe, var(--sfc-accent-2)) 72%, #0a1316) 0%, color-mix(in srgb, var(--sfhb-vibe, var(--sfc-accent-2)) 30%, transparent) 46%, rgba(8, 22, 26, 0) 74%);
}

.sfhb-vtile__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
}

.sfhb-vtile__name {
	font: 500 clamp(22px, 2.2vw, 28px)/1.1 var(--sfc-f-display);
	letter-spacing: -0.01em;
}

.sfhb-vtile__tag {
	max-width: 32ch;
	font: 500 14px/1.4 var(--sfc-f-body);
	opacity: 0.92;
}

.sfhb-vtile__count {
	margin-top: 4px;
	font: 700 12px/1 var(--sfc-f-ui);
	letter-spacing: 0.04em;
	opacity: 0.9;
	text-transform: uppercase;
}

.sfhb-vtile__go {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sfc-glass);
	color: var(--sfc-ink);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.25s var(--sfc-ease);
}

.sfhb-vtile:focus-visible {
	outline: 3px solid var(--sfc-accent-2);
	outline-offset: 3px;
}

@media (hover: hover) {
	.sfhb-vtile:hover {
		box-shadow: var(--sfc-shadow-3);
		transform: translateY(-3px);
	}

	.sfhb-vtile:hover .sfhb-vtile__img {
		transform: scale(1.05);
	}

	.sfhb-vtile:hover .sfhb-vtile__go {
		opacity: 1;
		transform: none;
	}
}

.sfhb-vibe-grid__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sfhb-vchip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 8px 0 16px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 700 14px/1 var(--sfc-f-ui);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sfhb-vchip:not(:has(.sfhb-vchip__count)) {
	padding-inline-end: 16px;
}

.sfhb-vchip .sfhb-i {
	color: var(--sfc-accent);
}

.sfhb-vchip__count {
	min-width: 26px;
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--sfc-panel-2);
	color: var(--sfc-muted);
	font: 700 11px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.sfhb-vchip:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfhb-vchip:hover {
		border-color: var(--sfc-ink);
		transform: translateY(-1px);
	}
}

/* ======================================================================
   8. TRAVEL INSIGHTS  (band | cards | chart)
   ====================================================================== */

.sfhb-ms__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: clamp(18px, 2.4vw, 28px);
}

.sfhb-ms__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--sfc-accent-2);
	font: 800 12px/1 var(--sfc-f-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sfhb-ms__title {
	margin: 0;
	color: var(--sfc-ink);
	font: 500 clamp(26px, 3vw, 38px)/1.1 var(--sfc-f-display);
	letter-spacing: -0.015em;
}

.sfhb-ms__updated,
.sfhb-ms__foot {
	margin: 0;
	color: var(--sfc-muted);
	font: 600 13px/1.4 var(--sfc-f-ui);
}

.sfhb-ms__foot {
	margin-top: 18px;
	font-size: 12px;
}

.sfhb-ms__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0;
}

.sfhb-ms__item {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

.sfhb-ms__label {
	order: 0;
	margin: 0 0 10px;
	color: var(--sfc-muted);
	font: 700 13px/1.3 var(--sfc-f-ui);
}

.sfhb-ms__value {
	order: 1;
	margin: 0;
	color: var(--sfc-ink);
	font: 800 clamp(28px, 3.4vw, 44px)/1 var(--sfc-f-num);
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sfhb-ms__note {
	order: 2;
	margin: 10px 0 0;
	color: var(--sfc-muted);
	font: 600 13px/1.4 var(--sfc-f-ui);
}

/* Band. */
.sfhb-travel-insights--band .sfhb-ms__item {
	padding: 18px 16px;
	border-top: 1px solid var(--sfc-line);
}

.sfhb-travel-insights--band .sfhb-ms__item:nth-child(-n+2) {
	border-top: 0;
}

.sfhb-travel-insights--band .sfhb-ms__item:nth-child(even) {
	border-left: 1px solid var(--sfc-line);
}

@media (min-width: 900px) {
	.sfhb-travel-insights--band .sfhb-ms__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.sfhb-travel-insights--band .sfhb-ms__item {
		padding: 6px clamp(18px, 2.4vw, 32px);
		border-top: 0;
		border-left: 1px solid var(--sfc-line);
	}

	.sfhb-travel-insights--band .sfhb-ms__item:first-child {
		padding-left: 0;
		border-left: 0;
	}
}

/* Cards. */
.sfhb-travel-insights--cards .sfhb-ms__list {
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(12px, 1.6vw, 20px);
}

@media (min-width: 600px) {
	.sfhb-travel-insights--cards .sfhb-ms__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.sfhb-travel-insights--cards .sfhb-ms__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sfhb-travel-insights--cards .sfhb-ms__item {
	padding: 22px 22px 20px;
	border: 1px solid var(--sfc-line);
	border-radius: calc(var(--sfc-r-card) + 4px);
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfhb-ms__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--sfc-turf);
	color: var(--sfc-accent-2);
}

.sfhb-travel-insights--cards .sfhb-ms__value {
	font-size: clamp(26px, 2.6vw, 34px);
}

.sfhb-ms__meter {
	order: 3;
	height: 6px;
	margin: 14px 0 0;
	overflow: hidden;
	border-radius: 999px;
	background: var(--sfc-panel-2);
}

.sfhb-ms__meter span {
	display: block;
	width: var(--sfhb-pct, 0%);
	height: 100%;
	border-radius: inherit;
	background: var(--sfc-accent);
}

/* Chart. */
.sfhb-ms__chart {
	margin: 0;
	padding: clamp(18px, 2.4vw, 28px);
	border: 1px solid var(--sfc-line);
	border-radius: calc(var(--sfc-r-card) + 4px);
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfhb-ms__chart-cap {
	margin: 0 0 18px;
	color: var(--sfc-muted);
	font: 700 13px/1.3 var(--sfc-f-ui);
	letter-spacing: 0.02em;
}

.sfhb-ms__rows {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-ms__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"name value"
		"bar bar";
	align-items: center;
	gap: 6px 14px;
}

/* The 3-column row (name | bar | value) follows the chart's own width, not the viewport:
 * in a half-width Elementor column the bar track would otherwise resolve to 0px. */
.sfhb-ms__chart {
	container-type: inline-size;
	container-name: sfhb-ms;
}

@container sfhb-ms (min-width: 400px) {
	.sfhb-ms__row {
		grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) minmax(64px, auto);
		grid-template-areas: "name bar value";
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 600px) {
		.sfhb-ms__row {
			grid-template-columns: minmax(120px, 190px) minmax(96px, 1fr) minmax(64px, auto);
			grid-template-areas: "name bar value";
		}
	}
}

.sfhb-ms__row-name {
	grid-area: name;
	min-width: 0;
	overflow: hidden;
	color: var(--sfc-ink);
	font: 700 14px/1.3 var(--sfc-f-ui);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfhb-ms__row-name a {
	color: inherit;
	text-decoration: none;
}

.sfhb-ms__row-name a:hover {
	color: var(--sfc-accent-2);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfhb-ms__bar {
	grid-area: bar;
	display: block;
	width: 100%;
	height: 14px;
	overflow: hidden;
	border-radius: 999px;
}

.sfhb-ms__bar-track {
	fill: var(--sfc-panel-2);
}

.sfhb-ms__bar-fill {
	fill: var(--sfc-accent-2);
	transform-box: fill-box;
	transform-origin: 0 50%;
}

.sfhb-ms__bar-fill.is-top {
	fill: var(--sfc-accent);
}

.sfhb-ms__row-value {
	grid-area: value;
	color: var(--sfc-ink);
	font: 800 14px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.sfhb-ms__row-n {
	display: block;
	margin-top: 4px;
	color: var(--sfc-muted);
	font: 600 11px/1 var(--sfc-f-ui);
}

@media (prefers-reduced-motion: no-preference) {
	.sfhb-ms__bar-fill {
		animation: sfhb-grow 0.9s var(--sfc-ease) both;
		animation-delay: calc(var(--i, 0) * 70ms);
	}

	.sfhb-ms__row {
		--i: 0;
	}
}

@keyframes sfhb-grow {
	from {
		transform: scaleX(0);
	}
}

.sfhb-ms__table {
	margin-top: 14px;
}

.sfhb-ms__table > summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--sfc-accent-2);
	font: 700 13px/1 var(--sfc-f-ui);
	cursor: pointer;
}

.sfhb-ms__table table {
	width: 100%;
	margin-top: 12px;
	border-collapse: collapse;
	font: 500 14px/1.4 var(--sfc-f-ui);
	font-variant-numeric: tabular-nums;
}

.sfhb-ms__table th,
.sfhb-ms__table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--sfc-line);
	text-align: right;
	white-space: nowrap;
}

.sfhb-ms__table th:first-child,
.sfhb-ms__table td:first-child {
	text-align: left;
}

.sfhb-ms__table thead th {
	color: var(--sfc-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}


/* ======================================================================
   9. STATS COUNTER
   ====================================================================== */

.sfhb-counter__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.sfhb-counter__list {
		grid-template-columns: repeat(var(--sfhb-cols, 4), minmax(0, 1fr));
	}
}

.sfhb-counter__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.sfhb-counter__num {
	display: flex;
	align-items: baseline;
	color: var(--sfc-ink);
	font: 500 clamp(40px, 5vw, 68px)/0.95 var(--sfc-f-display);
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums lining-nums;
}

.sfhb-counter__affix {
	color: var(--sfc-accent-strong);
	font-size: 0.7em;
}

.sfhb-counter__label {
	color: var(--sfc-muted);
	font: 700 14px/1.35 var(--sfc-f-ui);
}

.sfhb-stats-counter--plain .sfhb-counter__item {
	padding-top: 18px;
	border-top: 2px solid var(--sfc-ink);
}

.sfhb-stats-counter--cards .sfhb-counter__item {
	padding: 24px;
	border: 1px solid var(--sfc-line);
	border-radius: calc(var(--sfc-r-card) + 4px);
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfhb-counter__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 8px;
	border-radius: 12px;
	background: var(--sfc-turf);
	color: var(--sfc-accent-2);
}


/* Chart + top-rated list side by side when the block itself is wide enough, stacked
   when it sits in a half / third-width column (flex-wrap follows the container width,
   not the viewport: in a 280px aside the names were cut to 80px). */
.sfhb-ms__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sfc-gap);
	align-items: flex-start;
}

.sfhb-ms__main {
	flex: 1.7 1 480px;
	min-width: 0;
}

.sfhb-ms__grid:not(.has-top) > .sfhb-ms__main {
	flex-basis: 100%;
}

.sfhb-ms__grid > .sfhb-ms__top {
	flex: 1 1 300px;
	min-width: 0;
}

.sfhb-ms__top {
	padding: clamp(18px, 2.4vw, 26px);
	border: 1px solid var(--sfc-line);
	border-radius: calc(var(--sfc-r-card) + 4px);
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfhb-ms__top-title {
	margin: 0 0 12px;
	color: var(--sfc-ink);
	font: 500 20px/1.2 var(--sfc-f-display);
	letter-spacing: -0.01em;
}

.sfhb-ms__toplist {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-ms__top-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 14px;
	color: var(--sfc-ink);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.sfhb-ms__top-item a:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 1px;
}

@media (hover: hover) {
	.sfhb-ms__top-item a:hover {
		background: var(--sfc-panel-2);
	}
}

.sfhb-ms__top-img {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	object-fit: cover;
}

.sfhb-ms__top-img--ph {
	display: grid;
	place-items: center;
	background: var(--sfc-turf);
	color: var(--sfc-accent-2);
}

.sfhb-ms__top-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.sfhb-ms__top-text strong {
	display: -webkit-box;
	overflow: hidden;
	font: 700 14px/1.25 var(--sfc-f-ui);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow-wrap: anywhere;
}

.sfhb-ms__top-text small {
	overflow: hidden;
	color: var(--sfc-muted);
	font: 500 12px/1.2 var(--sfc-f-ui);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfhb-ms__score {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 2px 4px;
	max-width: 84px;
	color: var(--sfc-ink);
	font: 800 15px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
}

.sfhb-ms__score small {
	flex: 1 0 100%;
	color: var(--sfc-muted);
	font: 500 11px/1 var(--sfc-f-ui);
	text-align: end;
}

.sfhb-ms__star {
	display: inline-flex;
	color: var(--sfc-gold);
}

/* ======================================================================
   10. REDUCED MOTION + PRINT
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
	.sfhb-search-form *,
	.sfhb-search-filters *,
	.sfhb-stay-carousel *,
	.sfhb-destination-grid *,
	.sfhb-vibe-grid *,
	.sfhb-travel-insights *,
	.sfhb-stats-counter * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.sfhb-dtile,
	.sfhb-vtile {
		transform: none !important;
	}
}

@media print {
	.sfhb-search-filters,
	.sfhb-search-form,
	.sfhb-carousel__arrow,
	.sfhb-carousel__dots {
		display: none !important;
	}

	.sfhb-carousel__track {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow: visible;
	}

	.sfhb-dtile__go,
	.sfhb-vtile__go {
		display: none;
	}
}
