/*!
 * Getaway / Stepfox Hotel Booking — tokens, atoms, dark scheme (handle `stepfox-hb`).
 *
 * Every block's `style` and enqueued globally on the front end. Component
 * sheets (cards, stay, booking, components, hosts, map, reviews, engage,
 * checkout) load AFTER this one and may override any atom at equal specificity.
 *
 *  1. Light palette FALLBACKS (sea-glass · terracotta · linen) — :where(:root),
 *     zero specificity: a block theme's theme.json (or the Elementor theme's
 *     theme.css) always wins.
 *  2. Dark scheme — :root[data-sfhb-scheme="dark"] re-maps all 16 colour
 *     presets, the gradients and the shadows. Written by includes/scheme.php.
 *  3. Tokens — --sfhb-* (radii, spacing, fonts, shadows, motion, availability).
 *  4. Atoms — .sfhb-btn, .sfhb-icon-btn, .sfhb-chip, .sfhb-badge, .sfhb-rating,
 *     .sfhb-stars, .sfhb-pill--*, .sfhb-input/.sfhb-select/.sfhb-textarea/
 *     .sfhb-range/.sfhb-check, .sfhb-field, .sfhb-seg, .sfhb-icon, .sfhb-avatar,
 *     .sfhb-glass, .sfhb-popover, .sfhb-divider, .sfhb-section-head, .sfhb-avail,
 *     .sfhb-price, .sfhb-empty, .sfhb-skeleton, .sfhb-visually-hidden,
 *     .sfhb-reveal, theme toggle, toaster, sticky bar base, loops & field helpers.
 *
 * House rule: every colour is var(--wp--preset--color--<slug>) so the dark
 * scheme flips everything. Hex values appear only in sections 1–2, the print
 * palette and the fixed on-photo white. Text on filled brand colours uses the
 * `panel`/`base` presets (white only over photography). Availability is never
 * colour alone: open = sage + check/price, booked = muted + strikethrough,
 * closed = hatch pattern.
 */

/* ==========================================================================
   1. Light palette fallbacks (theme presets win)
   ========================================================================== */

:where(:root) {
	--wp--preset--color--base: #f6f1e9;
	--wp--preset--color--panel: #fffdf9;
	--wp--preset--color--panel-2: #ece4d6;
	--wp--preset--color--line: rgba(15, 42, 48, 0.12);
	--wp--preset--color--ink: #0f2a30;
	--wp--preset--color--muted: #566669;
	--wp--preset--color--accent: #b4492a;
	--wp--preset--color--accent-2: #0b6c7e;
	--wp--preset--color--neon: #2f7d57;
	--wp--preset--color--violet: #34456b;
	--wp--preset--color--turf: #d9ebe8;
	--wp--preset--color--gold: #a6760a;
	--wp--preset--color--glass: rgba(255, 253, 249, 0.88);
	--wp--preset--color--glass-2: rgba(246, 241, 233, 0.82);
	--wp--preset--color--edge: rgba(15, 42, 48, 0.09);
	--wp--preset--color--transparent: rgba(0, 0, 0, 0);

	/* Terracotta already carries 12–15px labels: 4.8:1 with the linen label
	   colour. Kept as its own token so component sheets can darken a fill
	   without touching the accent used for icons, dots and underlines. */
	--sfhb-accent-strong: var(--wp--preset--color--accent);

	--wp--preset--gradient--brand: linear-gradient(135deg, #b4492a 0%, #e8a05a 100%);
	--wp--preset--gradient--ocean: linear-gradient(135deg, #0b6c7e 0%, #34456b 100%);
	--wp--preset--gradient--dusk: linear-gradient(180deg, #34456b 0%, #0a1316 100%);
	--wp--preset--gradient--scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 24, 28, 0.66) 100%);

	--wp--preset--shadow--depth-0: 0 1px 0 rgba(15, 42, 48, 0.04);
	--wp--preset--shadow--depth-1: 0 1px 2px rgba(15, 42, 48, 0.07), 0 1px 3px rgba(15, 42, 48, 0.06);
	--wp--preset--shadow--depth-2: 0 6px 16px -6px rgba(15, 42, 48, 0.16), 0 2px 4px -2px rgba(15, 42, 48, 0.07);
	--wp--preset--shadow--depth-3: 0 14px 32px -12px rgba(15, 42, 48, 0.24), 0 4px 10px -4px rgba(15, 42, 48, 0.09);
	--wp--preset--shadow--depth-4: 0 28px 64px -20px rgba(15, 42, 48, 0.34), 0 10px 24px -10px rgba(15, 42, 48, 0.15);
	--wp--preset--shadow--ring: 0 0 0 1px rgba(15, 42, 48, 0.12);
	--wp--preset--shadow--ring-hot: 0 0 0 3px rgba(180, 73, 42, 0.30);
}

:root[data-sfhb-scheme="light"] {
	color-scheme: light;
}

/* ==========================================================================
   2. Dark scheme — re-maps the presets themselves, so core blocks, Elementor
      chrome and every plugin component switch through one contract.
   ========================================================================== */

:root[data-sfhb-scheme="dark"] {
	color-scheme: dark;

	--wp--preset--color--base: #0a1316;
	--wp--preset--color--panel: #111d21;
	--wp--preset--color--panel-2: #19292e;
	--wp--preset--color--line: rgba(255, 255, 255, 0.10);
	--wp--preset--color--ink: #eef4f2;
	--wp--preset--color--muted: #9fb1b3;
	--wp--preset--color--accent: #ff8d66;
	--wp--preset--color--accent-2: #5fd0de;
	--wp--preset--color--neon: #7fe0a9;
	--wp--preset--color--violet: #aab9e8;
	--wp--preset--color--turf: #12292d;
	--wp--preset--color--gold: #f4c95d;
	--wp--preset--color--glass: rgba(10, 19, 22, 0.84);
	--wp--preset--color--glass-2: rgba(25, 41, 46, 0.74);
	--wp--preset--color--edge: rgba(255, 255, 255, 0.11);
	--wp--preset--color--transparent: rgba(0, 0, 0, 0);

	/* The bright night terracotta already passes with near-black text. */
	--sfhb-accent-strong: var(--wp--preset--color--accent);

	--wp--preset--gradient--brand: linear-gradient(135deg, #ff8d66 0%, #f4b266 100%);
	--wp--preset--gradient--ocean: linear-gradient(135deg, #1d8fa3 0%, #243456 100%);
	--wp--preset--gradient--dusk: linear-gradient(180deg, #243456 0%, #05090b 100%);
	--wp--preset--gradient--scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(2, 8, 10, 0.74) 100%);

	--wp--preset--shadow--depth-0: 0 1px 0 rgba(0, 0, 0, 0.40);
	--wp--preset--shadow--depth-1: 0 1px 2px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(255, 255, 255, 0.04);
	--wp--preset--shadow--depth-2: 0 8px 20px -8px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(255, 255, 255, 0.05);
	--wp--preset--shadow--depth-3: 0 18px 40px -14px rgba(0, 0, 0, 0.70), 0 0 0 1px rgba(255, 255, 255, 0.06);
	--wp--preset--shadow--depth-4: 0 30px 70px -20px rgba(0, 0, 0, 0.80), 0 0 0 1px rgba(255, 255, 255, 0.07);
	--wp--preset--shadow--ring: 0 0 0 1px rgba(255, 255, 255, 0.13);
	--wp--preset--shadow--ring-hot: 0 0 0 3px rgba(255, 141, 102, 0.42);
}

/* Photography reads a touch too bright on a night palette. */
:root[data-sfhb-scheme="dark"] :where(.sfhb-dim-in-dark, .sfhb-card img, .sfhb-gallery img, .sfhb-destination-tile img, .sfhb-stay-gallery img) {
	filter: brightness(0.92) contrast(1.02);
}

/* ==========================================================================
   3. Tokens
   ========================================================================== */

:root {
	/* Colour aliases (always presets, so they flip with the scheme). */
	--sfhb-base: var(--wp--preset--color--base);
	--sfhb-panel: var(--wp--preset--color--panel);
	--sfhb-panel-2: var(--wp--preset--color--panel-2);
	--sfhb-line: var(--wp--preset--color--line);
	--sfhb-ink: var(--wp--preset--color--ink);
	--sfhb-muted: var(--wp--preset--color--muted);
	--sfhb-accent: var(--wp--preset--color--accent);
	--sfhb-accent-2: var(--wp--preset--color--accent-2);
	--sfhb-neon: var(--wp--preset--color--neon);
	--sfhb-navy: var(--wp--preset--color--violet);
	--sfhb-dusk: var(--wp--preset--color--violet);
	--sfhb-aegean: var(--wp--preset--color--accent-2);
	--sfhb-sage: var(--wp--preset--color--neon);
	--sfhb-turf: var(--wp--preset--color--turf);
	--sfhb-gold: var(--wp--preset--color--gold);
	--sfhb-glass: var(--wp--preset--color--glass);
	--sfhb-glass-2: var(--wp--preset--color--glass-2);
	--sfhb-edge: var(--wp--preset--color--edge);

	/* Text on filled brand colours: white on the deep light-mode fills,
	   near-black on the bright dark-mode fills (both pass contrast). */
	--sfhb-on-fill: var(--wp--preset--color--panel);
	/* Text on photography is always white (SPEC §4.1). */
	--sfhb-on-photo: #fff;

	/* Radii */
	--sfhb-radius-card: 16px;
	--sfhb-radius-input: 12px;
	--sfhb-radius-btn: 12px;
	--sfhb-radius-chip: 999px;
	--sfhb-radius-sm: 8px;
	--sfhb-radius-lg: 24px;

	/* Spacing scale 4/8/12/16/24/32/48/64/96 */
	--sfhb-space-1: 4px;
	--sfhb-space-2: 8px;
	--sfhb-space-3: 12px;
	--sfhb-space-4: 16px;
	--sfhb-space-5: 24px;
	--sfhb-space-6: 32px;
	--sfhb-space-7: 48px;
	--sfhb-space-8: 64px;
	--sfhb-space-9: 96px;

	/* Fonts (theme presets with system fallbacks) */
	--sfhb-font-display: var(--wp--preset--font-family--display, "Fraunces", Georgia, "Times New Roman", serif);
	--sfhb-font-ui: var(--wp--preset--font-family--ui, "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--sfhb-font-body: var(--wp--preset--font-family--body, "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--sfhb-font-num: var(--wp--preset--font-family--num, var(--sfhb-font-ui));

	/* Elevation */
	--sfhb-shadow-0: var(--wp--preset--shadow--depth-0);
	--sfhb-shadow-1: var(--wp--preset--shadow--depth-1);
	--sfhb-shadow-2: var(--wp--preset--shadow--depth-2);
	--sfhb-shadow-3: var(--wp--preset--shadow--depth-3);
	--sfhb-shadow-4: var(--wp--preset--shadow--depth-4);
	--sfhb-ring: var(--wp--preset--shadow--ring);
	--sfhb-ring-hot: var(--wp--preset--shadow--ring-hot);

	/* Motion */
	--sfhb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--sfhb-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--sfhb-dur-1: 0.15s;
	--sfhb-dur-2: 0.24s;
	--sfhb-dur-3: 0.6s;

	/* Availability (SPEC §11): colour is never the only signal — open carries a
	   price or check, booked is struck through, closed is hatched. */
	--sfhb-avail-open: var(--wp--preset--color--neon);
	--sfhb-avail-open-bg: color-mix(in srgb, var(--wp--preset--color--neon) 14%, var(--wp--preset--color--panel));
	--sfhb-avail-booked: var(--wp--preset--color--muted);
	--sfhb-avail-range: var(--wp--preset--color--accent-2);
	--sfhb-avail-range-bg: color-mix(in srgb, var(--wp--preset--color--accent-2) 16%, var(--wp--preset--color--panel));
	--sfhb-avail-end: var(--wp--preset--color--ink);
	--sfhb-offer: var(--wp--preset--color--accent);
	--sfhb-hatch: repeating-linear-gradient(135deg, var(--wp--preset--color--line) 0 2px, var(--wp--preset--color--transparent) 2px 6px);
	--sfhb-star: var(--wp--preset--color--gold);

	/* Layout (fx.js measures the real header) */
	--sfhb-header-h: 72px;
	--sfhb-sticky-top: 0px;
	--sfhb-blur: 14px;
	--sfhb-tap: 44px;
}

/* ==========================================================================
   4. Atoms
   ========================================================================== */

/* ---- Box model -------------------------------------------------------------
   WordPress sets no global box-sizing, and links default to content-box, so
   every plugin element opts into border-box (zero specificity: any component
   rule can still override). */

:where([class^="sfhb-"], [class*=" sfhb-"]),
:where([class^="sfhb-"], [class*=" sfhb-"])::before,
:where([class^="sfhb-"], [class*=" sfhb-"])::after {
	box-sizing: border-box;
}

/* ---- Icons ---------------------------------------------------------------- */

.sfhb-icon {
	display: inline-block;
	flex: none;
	vertical-align: -0.2em;
	overflow: visible;
	pointer-events: none;
}

/* ---- Accessibility helpers ----------------------------------------------- */

.sfhb-visually-hidden,
.sfhb-sr,
.sfhb-sr-only {
	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;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Zero-specificity fallback for themes that ship no .screen-reader-text
   (fields print it); never !important, so skip links still appear on focus. */
:where(.screen-reader-text:not(:focus):not(:focus-within)) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.sfhb-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100001;
	padding: 10px 16px;
	border-radius: var(--sfhb-radius-btn);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	font: 700 14px/1.2 var(--sfhb-font-ui);
	text-decoration: none;
}

[id^="sfhb-"],
[data-sfhb-anchor] {
	scroll-margin-top: calc(var(--sfhb-sticky-top, 0px) + 24px);
}

/* One focus language for every plugin control. */
:where([class^="sfhb-"], [class*=" sfhb-"]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

:where([class^="sfhb-"], [class*=" sfhb-"]):focus:not(:focus-visible) {
	outline: none;
}

/* Numbers: tabular, so prices and facts align in lists. */
.sfhb-num,
.sfhb-price {
	font-family: var(--sfhb-font-num);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.sfhb-eyebrow {
	display: inline-block;
	color: var(--wp--preset--color--accent-2);
	font: 800 12px/1.2 var(--sfhb-font-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sfhb-muted {
	color: var(--wp--preset--color--muted);
}

/* ---- Buttons --------------------------------------------------------------
   .sfhb-btn + --primary (coral) | --secondary (ink) | --ghost / --outline |
   --soft | --danger | --link | --icon ; sizes --sm | --lg ; --block
   Colour rules repeat with :is(:link,:visited) to out-rank page-builder
   link colours (e.g. `.elementor-kit-N a`). */

.sfhb-btn {
	--sfhb-btn-bg: var(--wp--preset--color--panel);
	--sfhb-btn-fg: var(--wp--preset--color--ink);
	--sfhb-btn-bd: var(--wp--preset--color--line);

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--sfhb-tap);
	padding: 10px 18px;
	border: 1px solid var(--sfhb-btn-bd);
	border-radius: var(--sfhb-radius-btn);
	background: var(--sfhb-btn-bg);
	color: var(--sfhb-btn-fg);
	font: 700 15px/1.2 var(--sfhb-font-ui);
	letter-spacing: 0.005em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	transition:
		background-color var(--sfhb-dur-1) var(--sfhb-ease),
		border-color var(--sfhb-dur-1) var(--sfhb-ease),
		color var(--sfhb-dur-1) var(--sfhb-ease),
		box-shadow var(--sfhb-dur-2) var(--sfhb-ease),
		transform var(--sfhb-dur-2) var(--sfhb-ease),
		filter var(--sfhb-dur-1) var(--sfhb-ease);
}

.sfhb-btn:is(:link, :visited) {
	color: var(--sfhb-btn-fg);
	text-decoration: none;
}

.sfhb-btn .sfhb-icon {
	width: 1.15em;
	height: 1.15em;
}

.sfhb-btn:active {
	transform: translateY(1px) scale(0.99);
}

.sfhb-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.sfhb-btn[disabled],
.sfhb-btn[aria-disabled="true"],
.sfhb-btn.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.sfhb-btn.is-loading {
	color: transparent !important;
	pointer-events: none;
}

.sfhb-btn.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 18px;
	height: 18px;
	margin: auto;
	border: 2px solid currentColor;
	border-color: var(--sfhb-btn-fg) var(--sfhb-btn-fg) var(--sfhb-btn-fg) transparent;
	border-radius: 50%;
	animation: sfhb-spin 0.7s linear infinite;
}

.sfhb-btn--primary {
	--sfhb-btn-bg: var(--sfhb-accent-strong);
	--sfhb-btn-fg: var(--sfhb-on-fill);
	--sfhb-btn-bd: var(--sfhb-accent-strong);
	box-shadow: var(--sfhb-shadow-1);
}

/* Contrast: a filled terracotta button carries its label in the panel colour
   (4.8:1 light, 7:1 dark), so no deeper fill is needed. */

@media (hover: hover) {
	.sfhb-btn--primary:hover {
		--sfhb-btn-bg: color-mix(in srgb, var(--sfhb-accent-strong) 90%, var(--wp--preset--color--ink));
	}
}

.sfhb-btn--secondary {
	--sfhb-btn-bg: var(--wp--preset--color--ink);
	--sfhb-btn-fg: var(--wp--preset--color--base);
	--sfhb-btn-bd: var(--wp--preset--color--ink);
}

.sfhb-btn--teal,
.sfhb-btn--aegean {
	--sfhb-btn-bg: var(--wp--preset--color--accent-2);
	--sfhb-btn-fg: var(--sfhb-on-fill);
	--sfhb-btn-bd: var(--wp--preset--color--accent-2);
}

.sfhb-btn--ghost,
.sfhb-btn--outline {
	--sfhb-btn-bg: var(--wp--preset--color--transparent);
	--sfhb-btn-fg: var(--wp--preset--color--ink);
	--sfhb-btn-bd: var(--wp--preset--color--line);
}

.sfhb-btn--soft {
	--sfhb-btn-bg: var(--wp--preset--color--panel-2);
	--sfhb-btn-fg: var(--wp--preset--color--ink);
	--sfhb-btn-bd: var(--wp--preset--color--panel-2);
}

.sfhb-btn--danger {
	--sfhb-btn-fg: var(--wp--preset--color--accent);
}

.sfhb-btn--glass {
	--sfhb-btn-bg: var(--wp--preset--color--glass);
	--sfhb-btn-fg: var(--wp--preset--color--ink);
	--sfhb-btn-bd: var(--wp--preset--color--edge);
	-webkit-backdrop-filter: blur(var(--sfhb-blur)) saturate(1.5);
	backdrop-filter: blur(var(--sfhb-blur)) saturate(1.5);
}

.sfhb-btn--link {
	--sfhb-btn-bg: var(--wp--preset--color--transparent);
	--sfhb-btn-bd: var(--wp--preset--color--transparent);
	min-height: 0;
	padding: 0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sfhb-btn--link:is(:link, :visited) {
	text-decoration: underline;
}

.sfhb-btn--sm {
	min-height: 36px;
	padding: 7px 14px;
	border-radius: 10px;
	font-size: 14px;
}

.sfhb-btn--lg {
	min-height: 54px;
	padding: 14px 26px;
	border-radius: 14px;
	font-size: 16px;
}

.sfhb-btn--block {
	display: flex;
	width: 100%;
}

.sfhb-btn--icon {
	width: var(--sfhb-tap);
	min-width: var(--sfhb-tap);
	padding: 0;
	border-radius: 999px;
}

@media (hover: hover) {
	.sfhb-btn:hover,
	.sfhb-btn:is(:link, :visited):hover {
		--sfhb-btn-bd: var(--wp--preset--color--ink);
		color: var(--sfhb-btn-fg);
	}

	.sfhb-btn--primary:hover,
	.sfhb-btn--primary:is(:link, :visited):hover,
	.sfhb-btn--secondary:hover,
	.sfhb-btn--secondary:is(:link, :visited):hover,
	.sfhb-btn--teal:hover,
	.sfhb-btn--teal:is(:link, :visited):hover,
	.sfhb-btn--aegean:hover,
	.sfhb-btn--aegean:is(:link, :visited):hover {
		--sfhb-btn-bd: var(--sfhb-btn-bg);
		filter: brightness(1.06) saturate(1.04);
		box-shadow: var(--sfhb-shadow-2);
		transform: translateY(-1px);
	}

	.sfhb-btn--soft:hover,
	.sfhb-btn--ghost:hover,
	.sfhb-btn--outline:hover {
		--sfhb-btn-bg: var(--wp--preset--color--panel-2);
	}

	.sfhb-btn--link:hover {
		--sfhb-btn-bd: var(--wp--preset--color--transparent);
		text-decoration-thickness: 2px;
	}
}

/* Round icon button (share, save, compare, call, socials). */
.sfhb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 40px;
	min-width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--sfhb-dur-1) var(--sfhb-ease), border-color var(--sfhb-dur-1) var(--sfhb-ease), color var(--sfhb-dur-1) var(--sfhb-ease), transform var(--sfhb-dur-2) var(--sfhb-ease);
}

.sfhb-icon-btn:is(:link, :visited) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.sfhb-icon-btn:has(.sfhb-icon-btn__text) {
	width: auto;
	padding: 0 14px 0 12px;
	font: 700 14px/1 var(--sfhb-font-ui);
}

.sfhb-icon-btn[aria-pressed="true"] {
	color: var(--wp--preset--color--accent);
}

.sfhb-icon-btn:active {
	transform: scale(0.94);
}

@media (hover: hover) {
	.sfhb-icon-btn:hover,
	.sfhb-icon-btn:is(:link, :visited):hover {
		border-color: var(--wp--preset--color--ink);
		background: var(--wp--preset--color--panel-2);
		color: var(--wp--preset--color--ink);
	}
}

/* ---- Chips ----------------------------------------------------------------
   Small labels over photos and in lists. Over photos they sit on the panel
   colour (always legible); semantic variants are filled with text in the
   panel colour (white in light mode, near-black in dark mode). */

.sfhb-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.sfhb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 26px;
	padding: 4px 10px;
	border: 0;
	border-radius: var(--sfhb-radius-chip);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--sfhb-shadow-1);
	font: 700 12px/1.2 var(--sfhb-font-ui);
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-decoration: none;
}

a.sfhb-chip:is(:link, :visited) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.sfhb-chip .sfhb-icon {
	width: 14px;
	height: 14px;
}

.sfhb-chip__dot {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: currentColor;
}

/* Vibe / label chips: neutral pill with a coloured dot. */
.sfhb-chip--vibe .sfhb-chip__dot {
	background: var(--wp--preset--color--accent);
}

.sfhb-chip--vibe-cool .sfhb-chip__dot {
	background: var(--wp--preset--color--accent-2);
}

/* Filled semantic variants. */
.sfhb-chip--new {
	background: var(--wp--preset--color--accent-2);
	color: var(--sfhb-on-fill);
}

.sfhb-chip--top-rated,
.sfhb-chip--editors-pick,
.sfhb-chip--featured {
	background: var(--wp--preset--color--violet);
	color: var(--sfhb-on-fill);
}

.sfhb-chip--rare-find,
.sfhb-chip--offer,
.sfhb-chip--deal,
.sfhb-chip--hot {
	background: var(--sfhb-accent-strong);
	color: var(--sfhb-on-fill);
}

.sfhb-chip--eco {
	background: var(--wp--preset--color--neon);
	color: var(--sfhb-on-fill);
}

/* Free cancellation / instant book: sage tint, check icon carries the meaning. */
.sfhb-chip--free-cancel,
.sfhb-chip--instant,
.sfhb-chip--available {
	background: var(--sfhb-avail-open-bg);
	color: color-mix(in srgb, var(--wp--preset--color--neon) 68%, var(--wp--preset--color--ink));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--neon) 38%, var(--wp--preset--color--transparent));
}

/* Few left / last room: terracotta outline. */
.sfhb-chip--few-left,
.sfhb-chip--last-room {
	background: var(--wp--preset--color--panel);
	color: var(--sfhb-accent-strong);
	box-shadow: inset 0 0 0 1px var(--sfhb-accent-strong);
}

.sfhb-chip--sold-out,
.sfhb-chip--unavailable {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.sfhb-chip--request {
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink);
}

/* Interactive chips (quick searches, active filters). */
.sfhb-chip--active {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

a.sfhb-chip--active:is(:link, :visited) {
	color: var(--wp--preset--color--base);
}

.sfhb-chip--outline {
	background: var(--wp--preset--color--transparent);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line);
}

.sfhb-chip--lg {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 14px;
}

@media (hover: hover) {
	a.sfhb-chip:hover,
	button.sfhb-chip:hover {
		box-shadow: var(--sfhb-shadow-2), inset 0 0 0 1px var(--wp--preset--color--ink);
	}
}

/* ---- Count badge (header saved counter, filter counts) -------------------- */

.sfhb-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--sfhb-accent-strong);
	color: var(--sfhb-on-fill);
	font: 800 11px/1 var(--sfhb-font-num);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

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

.sfhb-badge.is-bump {
	animation: sfhb-bump 0.35s var(--sfhb-ease-out);
}

.sfhb-badge--soft {
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink);
}

/* ---- Pills on photos (photo count, video, virtual tour) ------------------
   Only the modifiers are styled: bare `.sfhb-pill` is also the search-form
   radio pill, owned by components.css. */

.sfhb-pill--count,
.sfhb-pill--icon,
.sfhb-pill--glass {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 26px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--wp--preset--color--glass);
	color: var(--wp--preset--color--ink);
	-webkit-backdrop-filter: blur(10px) saturate(1.5);
	backdrop-filter: blur(10px) saturate(1.5);
	box-shadow: var(--sfhb-shadow-1);
	font: 700 12px/1 var(--sfhb-font-num);
	font-variant-numeric: tabular-nums;
}

.sfhb-pill--icon {
	justify-content: center;
	width: 26px;
	padding: 0;
}

.sfhb-pill--count .sfhb-icon,
.sfhb-pill--icon .sfhb-icon {
	width: 14px;
	height: 14px;
}

/* ---- Glass surface -------------------------------------------------------- */

.sfhb-glass {
	background: var(--wp--preset--color--glass);
	-webkit-backdrop-filter: blur(var(--sfhb-blur)) saturate(1.6);
	backdrop-filter: blur(var(--sfhb-blur)) saturate(1.6);
	box-shadow: var(--sfhb-shadow-2), inset 0 0 0 1px var(--wp--preset--color--edge);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.sfhb-glass,
	.sfhb-btn--glass,
	.sfhb-pill--count,
	.sfhb-pill--icon,
	.sfhb-pill--glass {
		background: var(--wp--preset--color--panel);
	}
}

/* ---- Avatar --------------------------------------------------------------- */

.sfhb-avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: var(--sfhb-avatar-size, 32px);
	height: var(--sfhb-avatar-size, 32px);
	border-radius: 50%;
	object-fit: cover;
	background: var(--wp--preset--color--panel-2);
	box-shadow: 0 0 0 2px var(--wp--preset--color--panel);
	overflow: hidden;
}

.sfhb-avatar--initials {
	background: var(--wp--preset--color--turf);
	color: var(--wp--preset--color--accent-2);
	font: 800 calc(var(--sfhb-avatar-size, 32px) * 0.38) / 1 var(--sfhb-font-ui);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* ---- Form controls -------------------------------------------------------- */

.sfhb-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.sfhb-field__label,
.sfhb-label {
	color: var(--wp--preset--color--muted);
	font: 800 11px/1.2 var(--sfhb-font-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sfhb-field__hint {
	color: var(--wp--preset--color--muted);
	font: 400 13px/1.45 var(--sfhb-font-body);
}

.sfhb-field__error {
	color: var(--wp--preset--color--accent);
	font: 600 13px/1.4 var(--sfhb-font-body);
}

.sfhb-input,
.sfhb-select,
.sfhb-textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-radius-input);
	background-color: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	font: 500 15px/1.35 var(--sfhb-font-body);
	box-shadow: var(--sfhb-shadow-0);
	transition: border-color var(--sfhb-dur-1) var(--sfhb-ease), box-shadow var(--sfhb-dur-1) var(--sfhb-ease), background-color var(--sfhb-dur-1) var(--sfhb-ease);
	-webkit-appearance: none;
	appearance: none;
}

.sfhb-textarea {
	min-height: 120px;
	resize: vertical;
}

.sfhb-input::placeholder,
.sfhb-textarea::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 0.85;
}

/* Chevron drawn with two gradients in currentColor — follows the scheme. */
.sfhb-select {
	padding-right: 40px;
	background-image:
		linear-gradient(45deg, var(--wp--preset--color--transparent) 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, var(--wp--preset--color--transparent) 50%);
	background-position:
		calc(100% - 20px) calc(50% + 1px),
		calc(100% - 15px) calc(50% + 1px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
	text-overflow: ellipsis;
}

.sfhb-select::-ms-expand {
	display: none;
}

@media (hover: hover) {
	.sfhb-input:hover,
	.sfhb-select:hover,
	.sfhb-textarea:hover {
		border-color: var(--wp--preset--color--muted);
	}
}

.sfhb-input:focus,
.sfhb-select:focus,
.sfhb-textarea:focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: var(--sfhb-ring-hot);
	outline: none;
}

.sfhb-input[aria-invalid="true"],
.sfhb-select[aria-invalid="true"],
.sfhb-textarea[aria-invalid="true"] {
	border-color: var(--wp--preset--color--accent);
}

.sfhb-input:disabled,
.sfhb-select:disabled,
.sfhb-textarea:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sfhb-input--sm,
.sfhb-select--sm {
	min-height: 40px;
	padding-top: 8px;
	padding-bottom: 8px;
	font-size: 14px;
}

/* Input with a leading icon: <span class="sfhb-input-wrap"><svg…><input class="sfhb-input"></span> */
.sfhb-input-wrap {
	position: relative;
	display: block;
}

.sfhb-input-wrap > .sfhb-icon {
	position: absolute;
	top: 50%;
	inset-inline-start: 14px;
	color: var(--wp--preset--color--muted);
	transform: translateY(-50%);
}

.sfhb-input-wrap > .sfhb-input {
	padding-inline-start: 42px;
}

/* Checkbox / radio */
.sfhb-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--ink);
	font: 500 15px/1.35 var(--sfhb-font-body);
	cursor: pointer;
}

.sfhb-check input[type="checkbox"],
.sfhb-check input[type="radio"],
input.sfhb-check-input {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: none;
	accent-color: var(--wp--preset--color--accent);
	cursor: pointer;
}

/* Range */
.sfhb-range {
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	--sfhb-range-pct: 50%;
}

.sfhb-range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent) 0 var(--sfhb-range-pct), var(--wp--preset--color--line) var(--sfhb-range-pct) 100%);
}

.sfhb-range::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: var(--wp--preset--color--line);
}

.sfhb-range::-moz-range-progress {
	height: 4px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
}

.sfhb-range::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	margin-top: -9px;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	background: var(--wp--preset--color--panel);
	box-shadow: var(--sfhb-shadow-2);
	-webkit-appearance: none;
	appearance: none;
	transition: transform var(--sfhb-dur-1) var(--sfhb-ease);
}

.sfhb-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	background: var(--wp--preset--color--panel);
	box-shadow: var(--sfhb-shadow-2);
}

.sfhb-range:active::-webkit-slider-thumb {
	transform: scale(1.12);
}

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

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

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

/* Segmented control (Map / List, Cards / Table) */
.sfhb-seg {
	display: inline-flex;
	align-items: stretch;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: var(--wp--preset--color--panel-2);
}

.sfhb-seg__opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--transparent);
	color: var(--wp--preset--color--muted);
	font: 700 14px/1 var(--sfhb-font-ui);
	cursor: pointer;
	transition: background-color var(--sfhb-dur-1) var(--sfhb-ease), color var(--sfhb-dur-1) var(--sfhb-ease), box-shadow var(--sfhb-dur-1) var(--sfhb-ease);
}

.sfhb-seg__opt[aria-pressed="true"],
.sfhb-seg__opt[aria-selected="true"],
.sfhb-seg__opt.is-active,
.sfhb-seg input:checked + .sfhb-seg__opt {
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--sfhb-shadow-1);
}

/* ---- Rating pill + stars ---------------------------------------------------
   <span class="sfhb-rating"><svg class="sfhb-icon sfhb-rating__star">…</svg>
   <b class="sfhb-rating__score">4.8</b><span class="sfhb-rating__label">Exceptional</span>
   <span class="sfhb-rating__count">(214)</span></span>
   The star is always the lemon-gold preset; the score is tabular. */

.sfhb-rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 24px;
	padding: 3px 10px 3px 7px;
	border-radius: var(--sfhb-radius-chip);
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink);
	font: 700 13px/1 var(--sfhb-font-num);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sfhb-rating__star,
.sfhb-rating > .sfhb-icon:first-child {
	width: 14px;
	height: 14px;
	color: var(--sfhb-star);
	fill: currentColor;
	stroke: currentColor;
}

.sfhb-rating__score {
	font-weight: 800;
}

.sfhb-rating__label {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

.sfhb-rating__count {
	color: var(--wp--preset--color--muted);
	font-weight: 600;
}

.sfhb-rating--on-photo {
	background: var(--wp--preset--color--glass);
	-webkit-backdrop-filter: blur(10px) saturate(1.5);
	backdrop-filter: blur(10px) saturate(1.5);
	box-shadow: var(--sfhb-shadow-1);
}

.sfhb-rating--lg {
	min-height: 32px;
	padding: 6px 13px 6px 10px;
	font-size: 15px;
}

.sfhb-rating--lg .sfhb-rating__star {
	width: 18px;
	height: 18px;
}

/* Score tile (review summary, host card): aegean fill, panel text. */
.sfhb-score {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 12px 12px 12px 4px;
	background: var(--wp--preset--color--accent-2);
	color: var(--sfhb-on-fill);
	font: 800 17px/1 var(--sfhb-font-num);
	font-variant-numeric: tabular-nums;
}

/* Hotel class: <span class="sfhb-stars" role="img" aria-label="4-star hotel"> */
.sfhb-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--sfhb-star);
	line-height: 1;
}

.sfhb-stars .sfhb-icon {
	width: 13px;
	height: 13px;
	fill: currentColor;
	stroke: currentColor;
}

.sfhb-stars__off {
	color: var(--wp--preset--color--line);
}

/* ---- Price atoms -------------------------------------------------------------
   "from €240 / night" · "€720 total · 3 nights" · struck old price on offers. */

.sfhb-price__from,
.sfhb-price__unit,
.sfhb-price__nights {
	color: var(--wp--preset--color--muted);
	font: 600 13px/1.3 var(--sfhb-font-ui);
}

.sfhb-price__now {
	color: var(--wp--preset--color--ink);
	font: 800 20px/1.1 var(--sfhb-font-num);
	font-variant-numeric: tabular-nums;
}

.sfhb-price__was,
.sfhb-strike {
	color: var(--wp--preset--color--muted);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	font-variant-numeric: tabular-nums;
}

.sfhb-price__save {
	color: var(--sfhb-offer);
	font: 800 13px/1.2 var(--sfhb-font-ui);
}

/* ---- Availability ------------------------------------------------------------
   <span class="sfhb-avail sfhb-avail--open"> or [data-state="open|few|booked|closed"]
   — a dot + text, never colour alone. */

.sfhb-avail {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wp--preset--color--ink);
	font: 700 13px/1.3 var(--sfhb-font-ui);
}

.sfhb-avail::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sfhb-avail-open);
}

.sfhb-avail--few,
.sfhb-avail[data-state="few"] {
	color: var(--sfhb-accent-strong);
}

.sfhb-avail--few::before,
.sfhb-avail[data-state="few"]::before {
	background: var(--sfhb-accent-strong);
}

.sfhb-avail--booked,
.sfhb-avail[data-state="booked"],
.sfhb-avail--closed,
.sfhb-avail[data-state="closed"] {
	color: var(--sfhb-avail-booked);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
}

.sfhb-avail--booked::before,
.sfhb-avail[data-state="booked"]::before {
	background: var(--sfhb-avail-booked);
}

.sfhb-avail--closed::before,
.sfhb-avail[data-state="closed"]::before {
	border-radius: 2px;
	background: var(--sfhb-hatch);
	box-shadow: inset 0 0 0 1px var(--sfhb-avail-booked);
}

.sfhb-hatch {
	background: var(--sfhb-hatch);
}

/* ---- Popover (date picker, guests, share, filters) ---------------------------
   Positioned by the component script; the atom gives surface, motion, and a
   bottom sheet below 640px. */

.sfhb-popover {
	position: absolute;
	z-index: 80;
	min-width: 240px;
	max-width: min(100vw - 24px, 760px);
	padding: 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-radius-card);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--sfhb-shadow-4);
	animation: sfhb-pop var(--sfhb-dur-2) var(--sfhb-ease-out) both;
}

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

.sfhb-popover--end {
	inset-inline-end: 0;
}

.sfhb-popover-backdrop {
	position: fixed;
	inset: 0;
	z-index: 79;
	background: rgba(8, 24, 28, 0.42);
}

@media (max-width: 640px) {
	.sfhb-popover--sheet {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 100;
		width: 100%;
		max-width: none;
		max-height: min(88vh, 720px);
		padding: 16px 16px max(16px, env(safe-area-inset-bottom));
		border-radius: 20px 20px 0 0;
		overflow: auto;
		animation: sfhb-sheet-up var(--sfhb-dur-2) var(--sfhb-ease-out) both;
	}
}

/* ---- Divider + section heading ----------------------------------------------- */

.sfhb-divider {
	height: 0;
	margin: var(--sfhb-space-5) 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.sfhb-divider--dashed {
	border-top-style: dashed;
}

.sfhb-divider--label {
	display: flex;
	align-items: center;
	gap: 12px;
	height: auto;
	border: 0;
	color: var(--wp--preset--color--muted);
	font: 700 12px/1 var(--sfhb-font-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sfhb-divider--label::before,
.sfhb-divider--label::after {
	content: "";
	flex: 1 1 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.sfhb-section-head {
	display: grid;
	gap: 8px;
	margin: 0 0 var(--sfhb-space-5);
}

.sfhb-section-head__eyebrow {
	color: var(--wp--preset--color--accent-2);
	font: 800 12px/1.2 var(--sfhb-font-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sfhb-section-head__title {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font: 500 clamp(26px, 3.6vw, 40px)/1.12 var(--sfhb-font-display);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.sfhb-section-head__lede {
	max-width: 62ch;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font: 400 17px/1.55 var(--sfhb-font-body);
}

.sfhb-section-head--row {
	grid-template-columns: 1fr auto;
	align-items: end;
}

@media (max-width: 640px) {
	.sfhb-section-head--row {
		grid-template-columns: 1fr;
	}
}

.sfhb-link {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--line);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: text-decoration-color var(--sfhb-dur-1) var(--sfhb-ease);
}

.sfhb-link:hover {
	text-decoration-color: currentColor;
}

/* ---- Empty states --------------------------------------------------------- */

.sfhb-empty {
	margin: 0;
	padding: 28px 20px;
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--sfhb-radius-card);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--muted);
	font: 500 15px/1.5 var(--sfhb-font-body);
	text-align: center;
}

.sfhb-empty--error {
	border-style: solid;
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
}

/* ---- Skeleton shimmer ----------------------------------------------------- */

.sfhb-skeleton,
.sfhb-skel {
	position: relative;
	display: block;
	min-height: 1em;
	border-radius: var(--sfhb-radius-sm);
	background: var(--wp--preset--color--panel-2);
	overflow: hidden;
	color: var(--wp--preset--color--transparent) !important;
}

.sfhb-skeleton::after,
.sfhb-skel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--wp--preset--color--transparent) 0%, var(--wp--preset--color--glass) 50%, var(--wp--preset--color--transparent) 100%);
	opacity: 0.7;
	transform: translateX(-100%);
	animation: sfhb-shimmer 1.4s var(--sfhb-ease) infinite;
}

.sfhb-skel--text {
	height: 1em;
	margin-block: 0.4em;
}

.sfhb-skel--img {
	aspect-ratio: 4 / 3;
	border-radius: var(--sfhb-radius-card);
}

.sfhb-skel--pill {
	width: 72px;
	height: 26px;
	border-radius: 999px;
}

/* ---- Fields & loops (composable blocks) ----------------------------------- */

.sfhb-f {
	min-width: 0;
}

.sfhb-f.is-empty {
	display: none;
}

/* Separate rule: a browser without :has() must not drop the one above. */
.sfhb-loop.is-empty:not(:has(.sfhb-empty, .sfhb-loop__empty)) {
	display: none;
}

.sfhb-loop {
	min-width: 0;
}

/* Loops render their template once per item as DIRECT children of the loop
   root, so the root's grid (set in the editor via Looks) lays them out. */
.sfhb-loop > * {
	min-width: 0;
}

.sfhb-loop-item {
	display: contents;
}

/* Stretched link: covers the nearest positioned ancestor (cards, tiles). */
.sfhb-stretched-link::after,
.sfhb-f-stay-link::after,
.sfhb-f-room-link::after,
.sfhb-f-destination-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---- Theme toggle (hotel-booking/theme-toggle) ------------------------------ */

.sfhb-theme-toggle {
	display: inline-flex;
	align-items: center;
}

.sfhb-scheme-toggle {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--sfhb-dur-1) var(--sfhb-ease), border-color var(--sfhb-dur-1) var(--sfhb-ease), color var(--sfhb-dur-1) var(--sfhb-ease);
}

.sfhb-scheme-toggle__icons {
	display: grid;
	place-items: center;
}

.sfhb-scheme-toggle__icon {
	display: grid;
	grid-area: 1 / 1;
	place-items: center;
	transition: opacity var(--sfhb-dur-2) var(--sfhb-ease), transform var(--sfhb-dur-3) var(--sfhb-ease-out);
}

/* Icon variant: the moon offers dark mode, the sun offers light mode. */
.sfhb-scheme-toggle--icon .sfhb-scheme-toggle__icon--sun,
:root[data-sfhb-scheme="dark"] .sfhb-scheme-toggle--icon .sfhb-scheme-toggle__icon--moon {
	opacity: 0;
	transform: rotate(-90deg) scale(0.4);
}

:root[data-sfhb-scheme="dark"] .sfhb-scheme-toggle--icon .sfhb-scheme-toggle__icon--sun {
	opacity: 1;
	transform: none;
}

@media (hover: hover) {
	.sfhb-scheme-toggle:hover {
		border-color: var(--wp--preset--color--ink);
		background: var(--wp--preset--color--panel-2);
	}

	.sfhb-scheme-toggle--icon:hover .sfhb-scheme-toggle__icon {
		transform: rotate(-14deg);
	}

	:root[data-sfhb-scheme="dark"] .sfhb-scheme-toggle--icon:hover .sfhb-scheme-toggle__icon--sun {
		transform: rotate(45deg);
	}

	.sfhb-scheme-toggle--icon:hover .sfhb-scheme-toggle__icon--sun,
	:root[data-sfhb-scheme="dark"] .sfhb-scheme-toggle--icon:hover .sfhb-scheme-toggle__icon--moon {
		transform: rotate(-90deg) scale(0.4);
	}
}

/* Switch variant: track + thumb showing the CURRENT scheme. */
.sfhb-scheme-toggle--switch {
	width: 58px;
	height: 32px;
	padding: 3px;
	place-items: center start;
	background: var(--wp--preset--color--panel-2);
}

.sfhb-scheme-toggle__track {
	display: block;
	width: 100%;
	height: 100%;
}

.sfhb-scheme-toggle__thumb {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--gold);
	box-shadow: var(--sfhb-shadow-2);
	transition: transform var(--sfhb-dur-2) var(--sfhb-ease-out), background-color var(--sfhb-dur-2) var(--sfhb-ease);
}

.sfhb-scheme-toggle__thumb .sfhb-icon {
	width: 15px;
	height: 15px;
}

.sfhb-scheme-toggle--switch .sfhb-scheme-toggle__icon--moon,
:root[data-sfhb-scheme="dark"] .sfhb-scheme-toggle--switch .sfhb-scheme-toggle__icon--sun {
	opacity: 0;
	transform: scale(0.4);
}

:root[data-sfhb-scheme="dark"] .sfhb-scheme-toggle--switch .sfhb-scheme-toggle__icon--moon {
	opacity: 1;
	transform: none;
}

:root[data-sfhb-scheme="dark"] .sfhb-scheme-toggle__thumb {
	color: var(--wp--preset--color--violet);
	transform: translateX(24px);
}

/* Over a transparent hero header the toggle reads on photography. */
.sfhb-on-photo .sfhb-scheme-toggle,
.is-transparent-header .sfhb-scheme-toggle {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
	color: var(--sfhb-on-photo);
}

/* ---- Password gate (protected stay / host pages) -------------------------
   helpers.php stepfox_hb_password_gate_html(): wraps core's password form. */

.sfhb-password-gate {
	display: grid;
	justify-items: start;
	gap: 14px;
	width: min(560px, calc(100% - 32px));
	margin: clamp(32px, 6vw, 72px) auto;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-radius-card);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--sfhb-shadow-3);
	font: 400 16px/1.55 var(--sfhb-font-body);
}

.sfhb-password-gate__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--accent);
}

.sfhb-password-gate__title {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font: 500 clamp(26px, 3.4vw, 34px)/1.15 var(--sfhb-font-display);
	letter-spacing: -0.02em;
}

.sfhb-password-gate .post-password-form {
	display: grid;
	gap: 14px;
	width: 100%;
	margin: 0;
}

.sfhb-password-gate .post-password-form p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.sfhb-password-gate .post-password-form p:has(input[type="password"]) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}

.sfhb-password-gate .post-password-form label {
	display: grid;
	flex: 1 1 220px;
	gap: 6px;
	color: var(--wp--preset--color--ink);
	font: 700 13px/1.3 var(--sfhb-font-ui);
}

.sfhb-password-gate input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--sfhb-tap);
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-radius-input);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font: 400 16px/1.2 var(--sfhb-font-body);
}

.sfhb-password-gate input[type="password"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}

.sfhb-password-gate input[type="submit"] {
	min-height: var(--sfhb-tap);
	padding: 10px 22px;
	border: 0;
	border-radius: var(--sfhb-radius-btn);
	background: var(--sfhb-accent-strong);
	color: var(--sfhb-on-fill);
	font: 700 15px/1.2 var(--sfhb-font-ui);
	cursor: pointer;
}

@media (hover: hover) {
	.sfhb-password-gate input[type="submit"]:hover {
		background: color-mix(in srgb, var(--sfhb-accent-strong) 88%, var(--wp--preset--color--ink));
	}
}

/* ---- Site header: core/navigation collapse + overlay (block theme) ---------
   themes/getaway/parts/header.html (gen-parts.php §4-5) tags its flex row
   `.sfhb-header-row` and its core/navigation `.sfhb-header-navigation`.
   Six destinations (Stays · Map · Destinations · Offers · Journal · List your
   property) + brand + Saved/Compare/toggle/CTA need ~1140px, far above
   core's 600px overlay breakpoint, so the overlay switches on at <=1180px
   and the row re-orders to brand · actions · hamburger. The bar CTA
   (#block_hd-cta-w) hides at <=1024px through Looks and its overlay twin
   (#block_hd-nav-sell, or any item classed `sfhb-nav-cta`) becomes the
   menu's closing button. */

.sfhb-header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
	flex-wrap: nowrap;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Order by role, never by :last-child: in the Site Editor the row's children
   are interleaved with Looks' hidden <style> holders and editor wrappers, and
   Looks' editor rules (#block-<clientId>, !important) give the navigation
   flex-grow:1 — in the editor max-width:max-content caps that growth at the
   hamburger (never on an open overlay, whose rows would shrink with it). */
@media (max-width: 1180px) {
	.sfhb-header-row {
		flex-wrap: nowrap !important;
	}

	.sfhb-header-row > * {
		order: 2 !important;
	}

	.sfhb-header-row > :first-child {
		flex-grow: 1 !important;
		order: 1 !important;
		min-width: 0;
	}

	.sfhb-header-row > :has(> .wp-block-site-title, > .wp-block-site-logo, > .wp-block-image) {
		flex-grow: 1 !important;
		order: 1 !important;
		min-width: 0;
	}

	.sfhb-header-row .sfhb-header-navigation {
		flex: 0 0 auto !important;
		order: 3 !important;
		margin-left: 0 !important;
		justify-content: flex-end !important;
	}

	.editor-styles-wrapper .sfhb-header-row .sfhb-header-navigation:not(:has(.is-menu-open)) {
		max-width: max-content !important;
	}

	.sfhb-header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.sfhb-header-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
}

/* Open / close: 44px targets drawn as the same 40px ring as the theme toggle. */
.sfhb-header-navigation .wp-block-navigation__responsive-container-open,
.sfhb-header-navigation .wp-block-navigation__responsive-container-close {
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: var(--sfhb-tap);
	min-width: var(--sfhb-tap);
	height: var(--sfhb-tap);
	min-height: var(--sfhb-tap);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	-webkit-tap-highlight-color: transparent;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container-open {
	position: relative;
}

/* The close button keeps core's position:absolute (placed below). */
.sfhb-header-navigation .wp-block-navigation__responsive-container-close {
	display: flex;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container-open::before,
.sfhb-header-navigation .wp-block-navigation__responsive-container-close::before {
	content: "";
	position: absolute;
	inset: 2px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: inherit;
	background: var(--wp--preset--color--panel);
	transition: background-color var(--sfhb-dur-1) var(--sfhb-ease), border-color var(--sfhb-dur-1) var(--sfhb-ease);
}

.sfhb-header-navigation .wp-block-navigation__responsive-container-open svg,
.sfhb-header-navigation .wp-block-navigation__responsive-container-close svg {
	position: relative;
	width: 22px;
	height: 22px;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container-open:focus-visible,
.sfhb-header-navigation .wp-block-navigation__responsive-container-close:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 0;
}

@media (hover: hover) {
	.sfhb-header-navigation .wp-block-navigation__responsive-container-open:hover::before,
	.sfhb-header-navigation .wp-block-navigation__responsive-container-close:hover::before {
		border-color: var(--wp--preset--color--ink);
		background: var(--wp--preset--color--panel-2);
	}
}

/* The overlay: full-screen sheet, left-aligned rows with hairlines, the close
   button where the hamburger sits (row 60px / 72px, gutters 16 / 22 / 28). */
.sfhb-header-navigation {
	--sfhb-menu-gutter: 28px;
	--sfhb-menu-row: 72px;
}

@media (max-width: 1024px) {
	.sfhb-header-navigation {
		--sfhb-menu-gutter: 22px;
	}
}

@media (max-width: 768px) {
	.sfhb-header-navigation {
		--sfhb-menu-gutter: 16px;
		--sfhb-menu-row: 60px;
	}
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}

.sfhb-header-navigation .is-menu-open .wp-block-navigation__responsive-close {
	max-width: none;
	min-height: 100%;
}

.sfhb-header-navigation .is-menu-open .wp-block-navigation__responsive-dialog {
	min-height: 100%;
}

.sfhb-header-navigation .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	position: absolute;
	top: var(--sfhb-menu-row);
	right: 0;
	left: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.sfhb-header-navigation .is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc((var(--sfhb-menu-row) - var(--sfhb-tap)) / 2);
	right: var(--sfhb-menu-gutter);
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: calc(var(--sfhb-menu-row) + 12px) var(--sfhb-menu-gutter) max(32px, env(safe-area-inset-bottom));
	align-items: stretch;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	align-items: stretch;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-items: stretch;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: inherit;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 58px;
	padding: 6px 2px;
	color: var(--wp--preset--color--ink);
	font-family: var(--sfhb-font-display);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-decoration: none;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin-right: 6px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	opacity: 0.35;
	transform: rotate(45deg);
	transition: opacity var(--sfhb-dur-1) var(--sfhb-ease), transform var(--sfhb-dur-2) var(--sfhb-ease);
}

.sfhb-header-navigation .is-menu-open .wp-block-navigation-item__content[aria-current="page"],
.sfhb-header-navigation .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

@media (hover: hover) {
	.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after {
		opacity: 1;
		transform: translateX(3px) rotate(45deg);
	}
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 6px;
}

/* The overlay CTA ("My trips" / "List your property"): a full-width filled button. */
.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open :is(#block_hd-nav-sell, .sfhb-nav-cta) {
	margin-top: 24px;
	border-bottom: 0;
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open :is(#block_hd-nav-sell, .sfhb-nav-cta) > .wp-block-navigation-item__content {
	justify-content: center;
	min-height: 54px;
	padding: 14px 24px;
	border-radius: var(--sfhb-radius-btn);
	background: var(--sfhb-accent-strong);
	color: var(--sfhb-on-fill);
	font: 700 17px/1.2 var(--sfhb-font-ui);
	letter-spacing: 0;
	box-shadow: var(--sfhb-shadow-2);
}

.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open :is(#block_hd-nav-sell, .sfhb-nav-cta) > .wp-block-navigation-item__content::after {
	content: none;
}

@media (hover: hover) {
	.sfhb-header-navigation .wp-block-navigation__responsive-container.is-menu-open :is(#block_hd-nav-sell, .sfhb-nav-cta) > .wp-block-navigation-item__content:hover {
		filter: brightness(1.06) saturate(1.04);
	}
}

/* ---- Toaster (window.sfhbToast) -------------------------------------------- */

.sfhb-toaster {
	position: fixed;
	left: 50%;
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 100000;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: calc(100vw - 32px);
	pointer-events: none;
	transform: translateX(-50%);
}

.sfhb-toaster__item {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: min(440px, calc(100vw - 32px));
	padding: 10px 8px 10px 12px;
	border-radius: 14px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	box-shadow: var(--sfhb-shadow-4);
	font: 600 14px/1.35 var(--sfhb-font-ui);
	pointer-events: auto;
	animation: sfhb-toast-up var(--sfhb-dur-2) var(--sfhb-ease-out) both;
}

.sfhb-toaster__item.is-leaving {
	animation: sfhb-toast-down var(--sfhb-dur-2) var(--sfhb-ease) both;
}

.sfhb-toaster__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
	color: var(--sfhb-on-fill);
}

.sfhb-toaster__item--error .sfhb-toaster__icon {
	background: var(--wp--preset--color--accent);
}

.sfhb-toaster__item--info .sfhb-toaster__icon {
	background: var(--wp--preset--color--violet);
}

/* Warning (e.g. "compare up to 4 stays"): lemon on the ink toast — reads as
   a caution, never as a success. */
.sfhb-toaster__item--warning .sfhb-toaster__icon {
	background: var(--wp--preset--color--gold);
}

:root[data-sfhb-scheme="dark"] .sfhb-toaster__item--warning .sfhb-toaster__icon {
	color: var(--wp--preset--color--base);
}

.sfhb-toaster__icon .sfhb-icon,
.sfhb-toaster__icon svg {
	width: 14px;
	height: 14px;
}

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

.sfhb-toaster__action,
.sfhb-toaster__action:is(:link, :visited) {
	flex: none;
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.sfhb-toaster__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--transparent);
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
}

.sfhb-toaster__close:hover,
.sfhb-toaster__close:focus-visible {
	opacity: 1;
}

.sfhb-toaster__close svg {
	width: 16px;
	height: 16px;
}

/* ---- Sticky bar base ([data-sfhb-sticky-bar], fx.js / gallery.js) --------
   Zero-specificity base: stay.css / booking-widget.css own the real look of
   .sfhb-sticky-bar and the mobile booking bar. */

:where([data-sfhb-sticky-bar]) {
	position: fixed;
	top: var(--sfhb-sticky-top, 0px);
	right: 0;
	left: 0;
	z-index: 90;
	background: var(--wp--preset--color--glass);
	-webkit-backdrop-filter: blur(var(--sfhb-blur)) saturate(1.6);
	backdrop-filter: blur(var(--sfhb-blur)) saturate(1.6);
	box-shadow: var(--sfhb-shadow-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-110%);
	transition: transform var(--sfhb-dur-2) var(--sfhb-ease-out), opacity var(--sfhb-dur-2) var(--sfhb-ease), visibility 0s linear var(--sfhb-dur-2);
}

:where([data-sfhb-sticky-bar].is-visible) {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform var(--sfhb-dur-2) var(--sfhb-ease-out), opacity var(--sfhb-dur-2) var(--sfhb-ease), visibility 0s;
}

/* ---- Reveal on scroll ------------------------------------------------------
   The pre-paint script adds `sfhb-js` to <html>; fx.js adds `sfhb-fx` when it
   boots and `.is-visible` as elements enter the viewport. If fx.js never
   boots, the fail-safe animation reveals everything after 2.5 s. */

.sfhb-js .sfhb-reveal:not(.is-visible) {
	opacity: 0;
	transform: translate3d(0, 18px, 0);
}

.sfhb-js .sfhb-reveal--fade:not(.is-visible) {
	transform: none;
}

.sfhb-js .sfhb-reveal--zoom:not(.is-visible) {
	transform: scale(0.97);
}

.sfhb-js .sfhb-reveal--left:not(.is-visible) {
	transform: translate3d(-22px, 0, 0);
}

.sfhb-js .sfhb-reveal--right:not(.is-visible) {
	transform: translate3d(22px, 0, 0);
}

.sfhb-reveal {
	transition: opacity var(--sfhb-dur-3) var(--sfhb-ease-out), transform var(--sfhb-dur-3) var(--sfhb-ease-out);
	transition-delay: var(--sfhb-reveal-delay, 0s);
}

.sfhb-js:not(.sfhb-fx) .sfhb-reveal:not(.is-visible) {
	animation: sfhb-reveal-failsafe 0.01s linear 2.5s forwards;
}

/* ---- Lift on hover (cards, tiles) ----------------------------------------- */

@media (hover: hover) and (pointer: fine) {
	.sfhb-lift {
		transition: transform var(--sfhb-dur-2) var(--sfhb-ease), box-shadow var(--sfhb-dur-2) var(--sfhb-ease);
	}

	.sfhb-lift:hover {
		box-shadow: var(--sfhb-shadow-3);
		transform: translateY(-3px);
	}
}

/* ---- Keyframes (prefixed: animate.css owns the bare names) ---------------- */

@keyframes sfhb-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes sfhb-shimmer {
	to {
		transform: translateX(100%);
	}
}

@keyframes sfhb-bump {
	0% {
		transform: scale(1);
	}
	40% {
		transform: scale(1.35);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes sfhb-pop {
	from {
		opacity: 0;
		transform: translate3d(0, 6px, 0) scale(0.98);
	}
}

@keyframes sfhb-sheet-up {
	from {
		transform: translate3d(0, 100%, 0);
	}
}

@keyframes sfhb-toast-up {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0) scale(0.98);
	}
}

@keyframes sfhb-toast-down {
	to {
		opacity: 0;
		transform: translate3d(0, 8px, 0) scale(0.98);
	}
}

@keyframes sfhb-reveal-failsafe {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   5. Reduced motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.sfhb-js .sfhb-reveal,
	.sfhb-js .sfhb-reveal:not(.is-visible) {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}

	.sfhb-btn,
	.sfhb-icon-btn,
	.sfhb-scheme-toggle,
	.sfhb-scheme-toggle__icon,
	.sfhb-scheme-toggle__thumb,
	.sfhb-lift,
	.sfhb-toaster__item,
	.sfhb-badge,
	.sfhb-popover,
	.sfhb-link,
	:where([data-sfhb-sticky-bar]) {
		transition: none !important;
		animation: none !important;
	}

	.sfhb-skeleton::after,
	.sfhb-skel::after {
		animation: none;
	}

	/* Stepfox Looks animations have no reduced-motion guard of their own. */
	[id^="block_"],
	[class*="block_"] {
		animation: none !important;
	}
}

@media print {
	.sfhb-scheme-toggle,
	.sfhb-theme-toggle,
	.sfhb-toaster,
	[data-sfhb-sticky-bar],
	.sfhb-popover,
	.sfhb-popover-backdrop,
	.sfhb-booking-bar,
	.sfhb-icon-btn,
	.sfhb-btn--icon,
	.sfhb-no-print {
		display: none !important;
	}

	.sfhb-reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	.sfhb-card,
	.sfhb-rating,
	.sfhb-chip {
		break-inside: avoid;
		box-shadow: none !important;
	}

	.sfhb-js .sfhb-reveal:not(.is-visible) {
		opacity: 1 !important;
	}

	/* Paper is light: print a dark-scheme page with the daylight palette. */
	:root[data-sfhb-scheme="dark"] {
		color-scheme: light;
		--wp--preset--color--base: #ffffff;
		--wp--preset--color--panel: #ffffff;
		--wp--preset--color--panel-2: #f3efe7;
		--wp--preset--color--line: rgba(15, 42, 48, 0.16);
		--wp--preset--color--ink: #0f2a30;
		--wp--preset--color--muted: #566669;
		--wp--preset--color--accent: #b4492a;
		--wp--preset--color--accent-2: #0b6c7e;
		--wp--preset--color--neon: #2f7d57;
		--wp--preset--color--violet: #34456b;
		--wp--preset--color--turf: #d9ebe8;
		--wp--preset--color--gold: #a6760a;
		--wp--preset--color--glass: #ffffff;
		--wp--preset--color--glass-2: #ffffff;
		--wp--preset--color--edge: rgba(15, 42, 48, 0.10);
	}
}

/* High-contrast mode: keep the signals that colour carries elsewhere. */
@media (forced-colors: active) {
	.sfhb-btn,
	.sfhb-chip,
	.sfhb-rating,
	.sfhb-input,
	.sfhb-select,
	.sfhb-textarea {
		border: 1px solid CanvasText;
	}

	.sfhb-avail::before {
		forced-color-adjust: none;
	}
}
