/*
 * Riarano · site styles. Load after tokens.css (single source of values).
 * Reference: docs/DESIGN.md and docs/design/prototype.html (ported here).
 * Components use the semantic aliases only; documented exceptions: ink/earth tiles and the footer ground.
 */

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--leading-body);
  font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: var(--leading-heading); letter-spacing: var(--tracking-display); text-wrap: balance; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: var(--focus-width) solid var(--ring); outline-offset: var(--focus-offset); border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
strong, b { font-weight: var(--weight-semibold); }
hr { height: 1px; margin: var(--space-6) 0; border: 0; background: var(--border); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.container { width: min(100% - 2 * var(--gutter), var(--container-lg)); margin-inline: auto; }
.container-xl { width: min(100% - 2 * var(--gutter), var(--container-xl)); margin-inline: auto; }
.container-md { width: min(100% - 2 * var(--gutter), var(--container-md)); margin-inline: auto; }
.container-sm { width: min(100% - 2 * var(--gutter), var(--container-sm)); margin-inline: auto; }
.skip-link { position: fixed; left: var(--space-4); top: var(--space-4); z-index: var(--z-skip); padding: var(--space-3) var(--space-4); background: var(--foreground); color: var(--background); border-radius: var(--radius-sm); transform: translateY(-200%); text-decoration: none; }
.skip-link:focus { transform: none; color: var(--background); }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--muted); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4) var(--space-7); margin-bottom: var(--stack-y); }
.section-title { font-size: var(--text-3xl); }
.section-lead { margin-top: var(--space-3); max-width: 48ch; color: var(--muted-foreground); font-size: var(--text-lg); line-height: var(--leading-snug); }
.eyebrow { display: block; margin-bottom: var(--space-3); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-foreground); }
.muted { color: var(--muted-foreground); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.wave-mark { width: 3.5rem; height: 0.75rem; margin-bottom: var(--space-5); background: var(--accent-foreground); -webkit-mask: var(--pattern-wave) center / contain no-repeat; mask: var(--pattern-wave) center / contain no-repeat; }
.statement { font-size: var(--text-3xl); line-height: 1.18; max-width: 22ch; }
.lead { max-width: var(--measure); color: var(--secondary-foreground); font-size: var(--text-lg); line-height: var(--leading-snug); }
.stack > * + * { margin-top: var(--space-4); }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: revert; }
html:not(.js) .js-only { display: none !important; }

/* ================= Buttons, links, badges, alerts ================= */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--primary-foreground); --btn-bg-hover: var(--primary-hover); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: var(--tap-min); padding: 0.7em 1.35em; border: var(--border-width) solid var(--btn-border); border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-fg); font: var(--weight-semibold) var(--text-sm)/1.2 var(--font-sans); letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--duration-fast) var(--ease-out); }
@media (hover: hover) { .btn:hover .icon--end { transform: translateX(3px); } }
.btn--lg { min-height: 3.5rem; padding-inline: 1.75em; font-size: var(--text-base); }
.btn--block { width: 100%; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--foreground); --btn-bg-hover: var(--muted); --btn-border: var(--input); }
.btn--on-image { --btn-bg: rgb(255 255 255 / 0.96); --btn-fg: var(--river-900); --btn-bg-hover: var(--white); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--foreground); --btn-bg-hover: var(--muted); padding-inline: 0.9em; }
/* Busy state: label kept, the end icon gives way to a slowly swaying water line. */
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .icon--end { display: none; }
.btn[aria-busy="true"]::after { content: ""; width: 1.6em; height: 0.6em; background: currentColor; -webkit-mask: var(--pattern-wave) center / contain no-repeat; mask: var(--pattern-wave) center / contain no-repeat; animation: sway 900ms var(--ease-in-out) infinite alternate; }
@keyframes sway { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: var(--weight-semibold); font-size: var(--text-sm); letter-spacing: 0.02em; color: var(--foreground); text-decoration: none; }
.link-arrow .icon { transition: transform var(--duration-fast) var(--ease-out); }
.link-arrow:hover { color: var(--link-hover); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(4px); } }
.link-back { display: inline-flex; align-items: center; gap: 0.45em; min-height: var(--tap-min); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--muted-foreground); text-decoration: none; }
.link-back:hover { color: var(--link-hover); }

.badge { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.75em; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1.3; background: var(--muted); color: var(--secondary-foreground); }
.badge .icon { width: 1.1em; height: 1.1em; }
.badge--success { background: var(--success-background); color: var(--success); }
.badge--warning { background: var(--warning-background); color: var(--warning); }
.badge--info { background: var(--info-background); color: var(--info); }
.badge--danger { background: var(--destructive-background); color: var(--destructive); }

.alert { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-sm); background: var(--info-background); color: var(--info); font-size: var(--text-sm); line-height: 1.5; }
.alert > .icon { margin-top: 0.1em; }
.alert-body { display: grid; gap: var(--space-1); min-width: 0; }
.alert-title { font-weight: var(--weight-semibold); }
.alert a { color: inherit; font-weight: var(--weight-semibold); }
.alert ul { margin: var(--space-1) 0 0; padding-left: 1.1em; }
.alert--success { background: var(--success-background); color: var(--success); }
.alert--warning { background: var(--warning-background); color: var(--warning); }
.alert--error { background: var(--destructive-background); color: var(--destructive); }
.messages { position: relative; z-index: var(--z-raised); display: grid; gap: var(--space-3); padding-top: calc(var(--header-h) + var(--space-5)); }
.messages + main .page-head, .messages + main .page-hero { margin-top: 0; }
.has-messages .page-head, .has-messages .flow-head, .has-messages .room-head, .has-messages .article-head { padding-top: var(--space-7); }
main:focus { outline: none; }

.toast { position: fixed; left: 50%; bottom: var(--space-6); z-index: var(--z-toast); padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); background: var(--river-900); color: var(--river-50); font-size: var(--text-sm); box-shadow: var(--shadow-md); transform: translate(-50%, 0); transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); }
.toast[hidden] { display: block; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4em 1.1em; border: var(--border-width) solid var(--border-strong); border-radius: var(--radius-pill); color: var(--foreground); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.chip:hover { border-color: var(--foreground); color: var(--foreground); }
.chip[aria-current="true"] { background: var(--foreground); border-color: var(--foreground); color: var(--background); }

/* ================= Media frame ================= */
.frame { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--muted); isolation: isolate; }
span.frame { display: block; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--outline-image); pointer-events: none; }
.zoom img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) { .zoom:hover img, a:hover .zoom img, a:focus-visible .zoom img, .room:hover .zoom img { transform: scale(1.035); } }
/* Missing photo: colour block + water lines, never a broken image. */
.frame--empty { display: grid; place-items: center; background: var(--muted); color: var(--accent-foreground); }
.frame--empty::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0.18; -webkit-mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; }
.frame--empty .icon { position: relative; width: 2.5rem; height: 2.5rem; }
.frame--ink, .frame--earth { color: var(--river-50); }
.frame--ink { background: var(--river-900); }
.frame--earth { background: var(--laterite-700); }
.frame--ink::before, .frame--earth::before { opacity: 0.09; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.caption { margin-top: var(--space-3); font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); }
.caption a { color: inherit; }

/* ================= Header ================= */
/* Without JS the header scrolls away with the page (absolute), so a transparent header never sits over light content. */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: var(--z-sticky); height: var(--header-h); color: var(--on-image);
  transition: background-color var(--duration-base) var(--ease-in-out), color var(--duration-base) var(--ease-in-out), box-shadow var(--duration-base) var(--ease-in-out);
}
.js .site-header, .site-header.is-solid { position: fixed; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -4.5rem; background: var(--scrim-top); pointer-events: none; transition: opacity var(--duration-base) var(--ease-in-out); }
.site-header.is-solid { background: rgb(244 248 248 / 0.97); color: var(--foreground); box-shadow: 0 1px 0 var(--border); }
.site-header.is-solid::before { opacity: 0; }
.header-inner { position: relative; display: flex; align-items: center; gap: var(--space-5); height: 100%; }
.brand { display: block; flex: none; height: clamp(2rem, 1.75rem + 1.1vw, 2.6rem); }
.brand img { height: 100%; width: auto; }
.brand .logo-dark, .is-solid .brand .logo-light { display: none; }
.is-solid .brand .logo-dark { display: block; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: clamp(1rem, 0.2rem + 1.2vw, 1.75rem); }
.nav a { position: relative; display: block; padding-block: var(--space-2); color: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.lang { display: flex; align-items: center; gap: 0.15rem; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.lang a { display: grid; place-items: center; min-width: 2.25rem; min-height: var(--tap-min); color: inherit; text-decoration: none; opacity: 0.72; }
.lang a:hover { opacity: 1; color: inherit; }
.lang a[aria-current="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.site-header:not(.is-solid) .btn { --btn-bg: rgb(255 255 255 / 0.96); --btn-fg: var(--river-900); --btn-bg-hover: var(--white); }
.menu-toggle { display: inline-grid; place-items: center; width: var(--tap-min); height: var(--tap-min); margin-right: calc(-1 * var(--space-2)); padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; cursor: pointer; }
.menu-toggle .icon { width: 1.6rem; height: 1.6rem; }
a.menu-toggle:hover { color: inherit; }
.js a.menu-toggle, html:not(.js) button.menu-toggle { display: none; }
@media (max-width: 47.99em) {
  .header-actions .lang { display: none; }
  .btn--book { min-height: 2.5rem; padding-inline: 1em; }
}
@media (min-width: 75em) {
  .nav { display: block; }
  .header-actions { margin-left: var(--space-6); }
  .header-actions .menu-toggle { display: none !important; }
}

/* Mobile menu: native <dialog> (focus trap, Esc, focus return). */
.menu { position: fixed; inset: 0; z-index: var(--z-modal); width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--background); color: var(--foreground); overflow-y: auto; }
.menu::backdrop { background: rgb(5 22 22 / 0.6); }
.menu[open] { animation: menu-in var(--duration-slow) var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu-inner { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 0 var(--gutter) var(--space-7); overflow: hidden; }
.menu-inner::before { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: var(--pattern-color); -webkit-mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; pointer-events: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu-top img { height: 2rem; width: auto; }
.menu nav { margin-top: var(--space-6); }
.menu nav a { display: block; padding-block: var(--space-2); font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.2; color: inherit; text-decoration: none; }
.menu nav a:hover, .menu nav a[aria-current="page"] { color: var(--accent-foreground); }
.menu-foot { position: relative; margin-top: auto; display: grid; gap: var(--space-4); padding-top: var(--space-7); }
.menu-foot .btn { width: 100%; }
.menu-contact { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); }
.menu-contact a { display: inline-flex; align-items: center; gap: 0.5em; min-height: var(--tap-min); color: inherit; text-decoration: none; }

/* ================= Home hero ================= */
.hero { position: relative; isolation: isolate; color: var(--on-image); background: var(--river-900); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 38%; }
.hero-sentinel { position: absolute; top: 5rem; left: 0; width: 1px; height: 1px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--scrim-bottom); pointer-events: none; }
@media (min-width: 48em) { .hero::after { background: var(--scrim-side), var(--scrim-bottom); } }
.hero-inner { position: relative; z-index: 1; display: grid; align-content: end; min-height: clamp(33rem, 86svh, 58rem); padding-top: calc(var(--header-h) + var(--space-7)); padding-bottom: calc(var(--booking-overlap) + var(--space-6)); }
.hero h1 { max-width: 15ch; font-size: var(--text-display); line-height: var(--leading-display); text-shadow: 0 1px 24px rgb(5 22 22 / 0.25); }
.hero-lead { max-width: 42ch; margin-top: var(--space-5); font-size: var(--text-lg); line-height: var(--leading-snug); color: rgb(255 255 255 / 0.92); }
:root { --booking-overlap: 3.25rem; }
@media (max-width: 47.99em) {
  :root { --booking-overlap: 2rem; }
  .hero-inner { min-height: clamp(30rem, 78svh, 42rem); }
  .hero-media img { object-position: 50% 50%; }
}

/* ================= Interior page heads ================= */
.page-head { position: relative; overflow: hidden; padding-block: calc(var(--header-h) + var(--space-8)) var(--space-8); background: var(--muted); }
.page-head::before { content: ""; position: absolute; inset: 0 0 0 auto; width: min(55%, 44rem); background: var(--pattern-color); -webkit-mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; pointer-events: none; }
.page-head > .container, .page-head > .container-md { position: relative; }
.page-head h1, .page-title { font-size: var(--text-4xl); max-width: 22ch; }
.page-lead { margin-top: var(--space-4); max-width: 52ch; font-size: var(--text-lg); line-height: var(--leading-snug); color: var(--muted-foreground); }
.page-head--plain { background: var(--background); padding-bottom: var(--space-6); }
.page-head--plain::before { display: none; }
.breadcrumb { margin-bottom: var(--space-5); font-size: var(--text-sm); color: var(--muted-foreground); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--link-hover); }

.page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-image); background: var(--river-900); }
.page-hero-media, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-media img { object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--scrim-bottom); pointer-events: none; }
@media (min-width: 48em) { .page-hero::after { background: var(--scrim-side), var(--scrim-bottom); } }
.page-hero-inner { position: relative; z-index: 1; display: grid; align-content: end; min-height: clamp(26rem, 66svh, 40rem); padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: var(--space-8); }
.page-hero h1 { font-size: var(--text-4xl); max-width: 16ch; text-shadow: 0 1px 24px rgb(5 22 22 / 0.25); }
.page-hero .page-lead { color: rgb(255 255 255 / 0.92); }
.page-hero-caption { padding-top: var(--space-3); }
.page-hero-caption .caption { margin: 0; }

.page-split { padding-block: calc(var(--header-h) + var(--space-7)) var(--section-y); }
.page-split-grid { display: grid; gap: var(--space-7) var(--grid-gap); align-items: center; }
.page-split .frame { aspect-ratio: 4 / 3; }
@media (min-width: 64em) {
  .page-split-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .page-split-text { grid-column: 1 / 7; }
  .page-split-media { grid-column: 7 / 13; }
}

/* ================= Stay form (booking bar) ================= */
.booking-wrap { position: relative; z-index: var(--z-raised); margin-top: calc(-1 * var(--booking-overlap)); }
.booking { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--card); color: var(--card-foreground); box-shadow: var(--shadow-lg); }
.booking--flat { box-shadow: none; border: var(--border-width) solid var(--border); }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; align-content: start; gap: var(--space-1); min-width: 0; }
.field-label { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted-foreground); }
.field-control { display: flex; align-items: center; gap: var(--space-2); min-height: 3rem; border-bottom: var(--border-width) solid var(--input); transition: border-color var(--duration-fast) var(--ease-out); }
.field-control:focus-within { border-bottom-color: var(--ring); box-shadow: 0 1px 0 var(--ring); }
.field-control:has([aria-invalid="true"]) { border-bottom-color: var(--destructive); }
.field input { width: 100%; min-width: 0; min-height: var(--tap-min); padding: 0; border: 0; background: transparent; color: inherit; font: var(--weight-medium) var(--text-lg)/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }
.field input:focus { outline: none; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.field input[type="date"]:invalid { color: var(--muted-foreground); font-weight: var(--weight-regular); }
.stepper { justify-content: space-between; }
.stepper input { width: 2.5ch; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { display: grid; place-items: center; width: var(--tap-min); height: var(--tap-min); flex: none; padding: 0; border: var(--border-width) solid var(--border-strong); border-radius: var(--radius-pill); background: transparent; color: var(--foreground); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out); }
.step-btn:hover:not(:disabled) { border-color: var(--foreground); }
.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.step-btn .icon { width: 1rem; height: 1rem; }
html:not(.js) .step-btn { display: none; }
html:not(.js) .stepper input { width: 100%; text-align: left; }
.field-error { display: flex; gap: 0.35em; margin-top: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.35; color: var(--destructive); }
.field-error .icon { width: 1.1em; height: 1.1em; margin-top: 0.1em; }
.booking > .btn { width: 100%; }
.booking-note { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); }
.booking-note .icon { color: var(--accent-foreground); }
@media (min-width: 64em) {
  .booking:not(.booking--stacked) { grid-template-columns: 1fr auto; align-items: end; gap: var(--space-4) var(--space-6); padding: var(--space-5) var(--space-6); }
  .booking:not(.booking--stacked) .booking-fields { grid-template-columns: 1.25fr 1.25fr 1fr 1fr; gap: var(--space-6); }
  .booking:not(.booking--stacked) > .btn { width: auto; }
  .booking:not(.booking--stacked) > .alert, .booking:not(.booking--stacked) .booking-note { grid-column: 1 / -1; }
}
.booking--stacked { padding: var(--space-5); }
.booking--stacked .booking-fields { grid-template-columns: 1fr 1fr; }

/* ================= Intro ================= */
.intro-grid { display: grid; gap: var(--space-7) var(--grid-gap); }
.intro-body { margin-top: var(--space-5); max-width: var(--measure); color: var(--secondary-foreground); font-size: var(--text-lg); line-height: var(--leading-snug); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-7); padding-top: var(--space-5); border-top: var(--border-width) solid var(--border); }
.fact dt { font-family: var(--font-display); font-size: var(--text-4xl); line-height: 1; color: var(--foreground); font-variant-numeric: lining-nums; }
.fact dd { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.4; color: var(--muted-foreground); }
.intro-media .frame { aspect-ratio: 3 / 2; }
@media (min-width: 64em) {
  .intro-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .intro-text { grid-column: 1 / 7; }
  .intro-media { grid-column: 7 / 13; margin-top: var(--space-9); }
}

/* ================= Room cards ================= */
.rooms-grid { display: grid; gap: var(--grid-gap); }
.room { position: relative; display: grid; align-content: start; gap: var(--space-4); }
.room-media { aspect-ratio: 4 / 3; }
.room--feature .room-media { aspect-ratio: 4 / 5; }
.room-body { display: grid; gap: var(--space-3); }
.room-title { font-size: var(--text-2xl); }
.room-title a { color: inherit; text-decoration: none; }
.room-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.room:hover .room-title { color: var(--link-hover); }
.room-desc { color: var(--muted-foreground); max-width: 48ch; }
.room-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); color: var(--muted-foreground); }
.room-meta li { display: inline-flex; align-items: center; gap: 0.45em; }
.room-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); padding-top: var(--space-3); border-top: var(--border-width) solid var(--border); }
.price { font-size: var(--text-sm); color: var(--muted-foreground); }
.price strong { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--foreground); font-variant-numeric: tabular-nums; }
.room .caption { margin-top: calc(-1 * var(--space-2)); }
@media (min-width: 48em) {
  .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms-grid--home .room--feature { grid-row: span 2; }
}
@media (min-width: 64em) {
  .rooms-grid--home { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
  .rooms-grid--home .room--feature { grid-column: 1 / 6; grid-row: 1 / 3; }
  .rooms-grid--home .room--row { grid-column: 6 / 13; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 1fr; align-content: stretch; gap: var(--space-6); }
  .rooms-grid--home .room--row .room-media { aspect-ratio: auto; min-height: 15rem; height: 100%; }
  .rooms-grid--home .room--row .room-body { align-content: center; padding-block: var(--space-4); }
  .rooms-grid--list { column-gap: var(--space-7); row-gap: var(--space-9); }
  .rooms-grid--list .room:nth-child(even) { margin-top: var(--space-9); }
}

/* ================= Experiences bento (home) ================= */
.bento { display: grid; gap: var(--grid-gap); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); min-height: 17rem; padding: var(--space-6); border-radius: var(--radius-md); overflow: hidden; isolation: isolate; color: var(--on-image); text-decoration: none; }
.tile:hover { color: var(--on-image); }
.tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) { .tile:hover > img { transform: scale(1.035); } }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(5 22 22 / 0.78) 0%, rgb(5 22 22 / 0.2) 55%, rgb(5 22 22 / 0) 100%); }
.tile-title { font-size: var(--text-2xl); }
.tile-text { max-width: 36ch; font-size: var(--text-sm); line-height: 1.5; opacity: 0.92; }
.tile-arrow { position: absolute; top: var(--space-5); right: var(--space-5); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill); border: var(--border-width) solid rgb(255 255 255 / 0.5); transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out); }
@media (hover: hover) { .tile:hover .tile-arrow { transform: translateX(3px); background: rgb(255 255 255 / 0.12); } }
.tile .tile-icon { width: 2.25rem; height: 2.25rem; margin-bottom: auto; }
.tile--ink { background: var(--river-900); }
.tile--earth { background: var(--laterite-700); }
.tile--ink::before, .tile--earth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / 0.07); -webkit-mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; }
@media (min-width: 48em) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--pools, .tile--play { grid-column: span 2; min-height: 22rem; }
}
@media (min-width: 64em) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(18rem, auto)); }
  .tile--pools { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tile--play { grid-column: 3 / 5; grid-row: 1; min-height: 0; }
  .tile--fitness { grid-column: 3 / 4; grid-row: 2; }
  .tile--meet { grid-column: 4 / 5; grid-row: 2; }
  .tile--pools .tile-title { font-size: var(--text-3xl); }
}

/* ================= Night section ================= */
.night { position: relative; overflow: hidden; background: var(--background); color: var(--foreground); }
.night::before { content: ""; position: absolute; inset: 0 0 auto auto; width: min(60%, 46rem); height: 70%; background: var(--pattern-color); -webkit-mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; pointer-events: none; }
.night-grid { position: relative; display: grid; gap: var(--space-7) var(--grid-gap); align-items: center; }
.night-media .frame { aspect-ratio: 4 / 3; }
.night h2 { font-size: var(--text-4xl); line-height: 1.08; }
.night-text { margin-top: var(--space-5); max-width: 46ch; color: var(--muted-foreground); font-size: var(--text-lg); line-height: var(--leading-snug); }
.features { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.features li { display: flex; align-items: center; gap: var(--space-4); }
.features .icon { width: 1.5rem; height: 1.5rem; color: var(--accent-foreground); }
.night .btn-row { margin-top: var(--space-7); }
@media (min-width: 64em) {
  .night-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .night-media { grid-column: 1 / 7; }
  .night-copy { grid-column: 8 / 13; }
  .night-grid--solo .night-copy { grid-column: 1 / 8; }
  .night-grid--solo .night-aside { grid-column: 9 / 13; }
}

/* ================= Region (home) ================= */
.region-grid { display: grid; gap: var(--space-7) var(--grid-gap); }
.places { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.places dt { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; }
.places dd { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--muted-foreground); }
.places div { padding-bottom: var(--space-4); border-bottom: var(--border-width) solid var(--border); }
.places a { color: inherit; text-decoration: none; }
.places a:hover { color: var(--link-hover); }
.region-note { display: flex; gap: var(--space-2); margin-top: var(--space-5); font-size: var(--text-sm); color: var(--muted-foreground); }
.region-note .icon { margin-top: 0.15em; }
.mosaic { display: grid; gap: var(--grid-gap); }
.place figcaption { margin-top: var(--space-3); }
.place-title { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; }
.place .frame { aspect-ratio: 4 / 3; }
.place .caption { margin-top: var(--space-1); }
@media (min-width: 48em) {
  .mosaic { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .place--1 { grid-column: 1 / 9; }
  .place--1 .frame { aspect-ratio: 16 / 9; }
  .place--2 { grid-column: 1 / 6; }
  .place--3 { grid-column: 6 / 9; }
  .place--3 .frame { aspect-ratio: 4 / 5; max-width: 30rem; }
}
@media (min-width: 64em) {
  .region-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .region-intro { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .mosaic { grid-column: 5 / 13; }
}

/* ================= News ================= */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { position: relative; display: grid; gap: var(--space-2) var(--space-6); padding-block: var(--space-6); border-bottom: var(--border-width) solid var(--border-strong); }
.news-item:first-child { padding-top: 0; }
.news-date { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.news-title { font-size: var(--text-2xl); }
.news-title a { color: inherit; text-decoration: none; }
.news-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-item:hover .news-title { color: var(--link-hover); }
.news-excerpt { margin-top: var(--space-2); max-width: 60ch; color: var(--muted-foreground); }
.news-item > .icon { display: none; }
.news-thumb { width: 100%; max-width: 16rem; aspect-ratio: 4 / 3; }
@media (min-width: 48em) {
  .news-item { grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: baseline; }
  .news-item > .icon { display: block; align-self: center; width: 1.5rem; height: 1.5rem; color: var(--muted-foreground); transition: transform var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out); }
  .news-item:hover > .icon { color: var(--link-hover); }
  .news-item--thumb { grid-template-columns: 11rem minmax(0, 1fr) 13rem; align-items: center; }
  .news-item--thumb .news-date { align-self: baseline; }
  .news-thumb { align-self: center; }
}
@media (hover: hover) and (min-width: 48em) { .news-item:hover > .icon { transform: translateX(4px); } }

.article-head { padding-block: calc(var(--header-h) + var(--space-8)) var(--space-6); }
.article-head h1 { font-size: var(--text-4xl); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); font-size: var(--text-sm); color: var(--muted-foreground); }
.article-cover { margin-bottom: var(--space-7); }
.article-cover .frame { aspect-ratio: 16 / 9; }
.event-box { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--accent); color: var(--accent-foreground); }
.event-box .icon { width: 1.75rem; height: 1.75rem; }
.event-box strong { display: block; color: var(--foreground); font-size: var(--text-lg); }
.event-box span { font-size: var(--text-sm); }

/* ================= Rich text (Quill) ================= */
.prose { max-width: var(--measure); color: var(--secondary-foreground); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: var(--text-2xl); color: var(--foreground); }
.prose h3 { margin-top: 1.6em; font-size: var(--text-xl); color: var(--foreground); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent-foreground); }
.prose blockquote { padding-left: var(--space-5); border-left: 2px solid var(--primary); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.4; color: var(--foreground); }
.prose a { color: var(--foreground); }
.prose a:hover { color: var(--link-hover); }
.prose strong { color: var(--foreground); }
.prose img { border-radius: var(--radius-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: var(--border-width) solid var(--border); text-align: left; vertical-align: top; }
.prose th { font-weight: var(--weight-semibold); color: var(--foreground); }
.prose .table-scroll, .prose-table-wrap { overflow-x: auto; }
.prose > :first-child { margin-top: 0; }
.prose--lead > p:first-child { font-size: var(--text-lg); color: var(--foreground); }

.toc { margin-bottom: var(--space-7); padding: var(--space-5); border-radius: var(--radius-md); background: var(--muted); font-size: var(--text-sm); }
.toc h2 { margin-bottom: var(--space-3); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted-foreground); }
.toc ol { display: grid; gap: var(--space-2); padding-left: 1.2em; }
.toc a { color: var(--foreground); }
.page-updated { margin-top: var(--space-8); padding-top: var(--space-5); border-top: var(--border-width) solid var(--border); font-size: var(--text-sm); color: var(--muted-foreground); }

/* ================= Access card (home + contact) ================= */
.access-band { position: relative; height: clamp(15rem, 34vw, 30rem); }
.access-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.access-card { position: relative; z-index: var(--z-raised); display: grid; gap: var(--space-6) var(--space-7); margin-top: calc(-1 * clamp(3rem, 8vw, 7rem)); padding: clamp(1.5rem, 1rem + 2.2vw, 3rem); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-lg); }
.access-card h2 { font-size: var(--text-3xl); }
.contact-list { display: grid; gap: var(--space-4); }
.contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-list .icon { margin-top: 0.2em; color: var(--accent-foreground); }
.contact-list a { color: inherit; text-decoration-color: var(--border-strong); }
.contact-list a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
.contact-list small { display: block; font-size: var(--text-sm); color: var(--muted-foreground); }
.access-col { display: grid; gap: var(--space-5); align-content: start; }
@media (min-width: 64em) {
  .access-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .access-card > :first-child { padding-right: var(--space-6); border-right: var(--border-width) solid var(--border); }
}

/* ================= Experience blocks (leisure, restaurant, events) ================= */
.exp-grid { display: grid; gap: var(--space-8) var(--grid-gap); }
.exp { display: grid; align-content: start; gap: var(--space-5); scroll-margin-top: calc(var(--header-h) + var(--space-5)); }
.exp-media { aspect-ratio: 3 / 2; }
.exp h2, .exp h3 { font-size: var(--text-2xl); }
.exp-summary { font-size: var(--text-lg); line-height: var(--leading-snug); color: var(--foreground); max-width: 48ch; }
.exp .prose { font-size: var(--text-base); }
.exp-text { display: grid; gap: var(--space-3); }
.exp--text { padding-top: var(--space-6); border-top: var(--border-width) solid var(--border); }
@media (min-width: 48em) {
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp--wide { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .exp-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .exp-grid > .exp { grid-column: span 6; }
  .exp-grid > .exp--wide { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: var(--grid-gap); }
  .exp--wide .exp-media { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
  .exp--wide .exp-text { grid-column: 9 / 13; }
  .exp-grid > .exp:nth-child(2n+3) { margin-top: var(--space-9); }
  .exp-grid > .exp--wide.exp--text .exp-text { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .exp--wide.exp--text .exp-text > :not(.prose) { grid-column: 1 / 6; }
  .exp--wide.exp--text .prose { grid-column: 7 / 13; grid-row: 1 / span 3; }
}
.info-strip { display: grid; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: var(--muted); }
.info-strip li { display: flex; gap: var(--space-3); align-items: flex-start; }
.info-strip .icon { width: 1.5rem; height: 1.5rem; margin-top: 0.05em; color: var(--accent-foreground); }
.info-strip strong { display: block; color: var(--foreground); }
.info-strip span { color: var(--muted-foreground); }
@media (min-width: 48em) { .info-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Photo strip: the composition follows the number of photos, so no cell is ever left empty. */
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.strip li:first-child { grid-column: span 2; }
.strip:has(> li:nth-child(even):last-child) li:first-child { grid-column: auto; }
.strip a { display: block; height: 100%; border-radius: var(--radius-md); }
.strip:not(:has(li)), .strip-section:not(:has(.strip li)) { display: none; }
@media (min-width: 48em) {
  .strip { gap: var(--grid-gap); }
  .strip:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip:has(> li:nth-child(3):last-child) { grid-template-columns: 2fr 1fr; }
  .strip:has(> li:nth-child(5):last-child) li:first-child, .strip:has(> li:nth-child(3):last-child) li:first-child { grid-column: span 2; grid-row: span 2; }
  .strip:has(> li:nth-child(3):last-child) li:first-child { grid-column: auto; }
  .strip:has(> li:nth-child(5):last-child) li:first-child .frame, .strip:has(> li:nth-child(3):last-child) li:first-child .frame { aspect-ratio: auto; height: 100%; }
  .strip li:first-child .frame img { position: absolute; inset: 0; }
  .strip:has(> li:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip:has(> li:nth-child(6)) li:first-child { grid-column: auto; }
}

.split-2 { display: grid; gap: var(--space-7) var(--grid-gap); }
@media (min-width: 64em) {
  .split-2 { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .split-2 > :first-child { grid-column: 1 / 7; }
  .split-2 > :last-child { grid-column: 8 / 13; }
  .split-2--form > :first-child { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .split-2--form > :last-child { grid-column: 7 / 13; }
}
.panel { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--card); border: var(--border-width) solid var(--border); }
.panel--raised { border: 0; box-shadow: var(--shadow-lg); }
.panel h2 { font-size: var(--text-2xl); }

.note-list { display: grid; gap: var(--space-5); }
.note-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.note-list .note-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-foreground); }
.note-list .note-icon .icon { width: 1.35rem; height: 1.35rem; }
.note-list strong { display: block; color: var(--foreground); }
.note-list p { color: var(--muted-foreground); font-size: var(--text-sm); line-height: 1.5; }

/* ================= Region page ================= */
.sites-grid { display: grid; gap: var(--space-8) var(--grid-gap); }
.sites-index ol { display: grid; gap: 0; margin-top: var(--space-5); border-top: var(--border-width) solid var(--border); }
.sites-index li { border-bottom: var(--border-width) solid var(--border); }
.sites-index a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 3.25rem; color: var(--foreground); font-family: var(--font-display); font-size: var(--text-xl); text-decoration: none; }
.sites-index a:hover { color: var(--link-hover); }
.sites-index a .icon { width: 1.1rem; height: 1.1rem; color: var(--muted-foreground); }
.site-entry { display: grid; gap: var(--space-4); scroll-margin-top: calc(var(--header-h) + var(--space-5)); }
.site-entry + .site-entry { margin-top: var(--space-8); padding-top: var(--space-8); border-top: var(--border-width) solid var(--border); }
.site-entry h2 { font-size: var(--text-3xl); }
.site-entry .frame { aspect-ratio: 4 / 3; }
.site-entry--small .frame { max-width: 30rem; }
.site-entry--wide .frame { aspect-ratio: 16 / 9; }
.site-entry .prose { font-size: var(--text-lg); line-height: var(--leading-snug); }
@media (min-width: 64em) {
  .sites-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .sites-index { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .sites-list { grid-column: 6 / 13; }
}

/* ================= Gallery + lightbox ================= */
.gallery-filters { margin-bottom: var(--stack-y); }
/* Masonry by CSS columns: native ratios, no empty cell whatever the filter. Order runs down each column. */
.gallery { columns: 2; column-gap: var(--space-3); }
.gallery-item { break-inside: avoid; margin: 0 0 var(--space-5); }
.gallery-item a { display: block; color: inherit; text-decoration: none; border-radius: var(--radius-md); }
.gallery-item .frame img { height: auto; }
.gallery-item .frame--empty { aspect-ratio: 4 / 3; }
.gallery-item figcaption { margin-top: var(--space-2); font-size: var(--text-xs); line-height: 1.4; color: var(--muted-foreground); }
.gallery-item figcaption strong { display: block; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--foreground); }
.gallery-empty { display: grid; place-items: center; gap: var(--space-4); padding: var(--space-9) var(--space-5); border-radius: var(--radius-lg); background: var(--muted); text-align: center; position: relative; overflow: hidden; }
@media (min-width: 48em) { .gallery { columns: 3; column-gap: var(--grid-gap); } }
@media (min-width: 75em) { .gallery { columns: 4; } }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 22 22 / 0.96); color: var(--river-50); }
.lightbox::backdrop { background: rgb(5 22 22 / 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade-in var(--duration-slow) var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--gutter); font-size: var(--text-sm); color: var(--river-300); }
.lightbox-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; min-height: 0; margin: 0; padding: 0 var(--gutter); }
.lightbox-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-figure figcaption { width: min(100%, 48rem); padding: var(--space-4) 0; text-align: center; font-size: var(--text-sm); line-height: 1.5; }
.lightbox-figure figcaption small { display: block; margin-top: var(--space-1); font-size: var(--text-xs); color: var(--river-300); }
.lightbox-figure figcaption a { color: inherit; }
.lightbox-nav { display: flex; justify-content: center; gap: var(--space-3); padding: var(--space-3) var(--gutter) var(--space-5); }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap-min); height: var(--tap-min); padding: 0; border: var(--border-width) solid currentColor; border-radius: var(--radius-pill); background: transparent; color: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out); }
.icon-btn:hover { background: rgb(255 255 255 / 0.1); }
.icon-btn--plain { border-color: transparent; }
.lightbox .icon-btn { border-color: rgb(244 248 248 / 0.4); }

/* ================= Forms ================= */
.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 40em) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-field { display: grid; align-content: start; gap: var(--space-2); min-width: 0; }
.form-label { font-size: var(--text-sm); font-weight: var(--weight-semibold); line-height: 1.35; color: var(--foreground); }
.form-label .optional { font-weight: var(--weight-regular); color: var(--muted-foreground); }
.input, .select, .textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; border: var(--border-width) solid var(--input); border-radius: var(--radius-sm);
  background: var(--input-background); color: var(--foreground); font-size: var(--text-base); line-height: 1.4;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 1px var(--ring); outline: none; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: var(--focus-width) solid var(--ring); outline-offset: var(--focus-offset); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--destructive); }
.textarea { min-height: 8.5rem; resize: vertical; }
.input--lg { font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.select-wrap { position: relative; }
.select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select-wrap > .icon { position: absolute; right: 0.9rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted-foreground); }
.form-help { font-size: var(--text-sm); line-height: 1.45; color: var(--muted-foreground); }
.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); line-height: 1.5; }
.checkbox input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1em 0 0; accent-color: var(--primary); cursor: pointer; }
.checkbox label { cursor: pointer; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
.fieldset-title { margin-bottom: var(--space-4); font-family: var(--font-display); font-size: var(--text-xl); }
.disclosure { border-top: var(--border-width) solid var(--border); border-bottom: var(--border-width) solid var(--border); }
.disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 3.25rem; font-weight: var(--weight-semibold); font-size: var(--text-sm); cursor: pointer; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .icon { transition: transform var(--duration-base) var(--ease-out); }
.disclosure[open] summary .icon { transform: rotate(180deg); }
.disclosure > div { padding-bottom: var(--space-5); font-size: var(--text-sm); }

/* Operator choice (payment) */
.choice-list { display: grid; gap: var(--space-3); }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border: var(--border-width) solid var(--input); border-radius: var(--radius-md); background: var(--input-background); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out); }
.choice:hover { border-color: var(--foreground); }
.choice input { grid-row: span 2; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--primary); }
.choice-name { font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: 1.2; }
.choice-hint { font-size: var(--text-sm); color: var(--muted-foreground); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--accent); box-shadow: inset 0 0 0 1px var(--primary); }
.choice:has(input:focus-visible) { outline: var(--focus-width) solid var(--ring); outline-offset: var(--focus-offset); }
@media (min-width: 40em) { .choice-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= Booking flow ================= */
.flow-head { padding-block: calc(var(--header-h) + var(--space-6)) var(--space-6); }
.flow-head h1 { font-size: var(--text-4xl); }
.flow-head .page-lead { margin-top: var(--space-3); }
.steps { margin-bottom: var(--space-7); }
.steps ol { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.steps li { flex: 1 1 0; min-width: 0; display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 2px solid var(--border); font-size: var(--text-sm); color: var(--muted-foreground); }
.steps li[aria-current="step"] { border-top-color: var(--primary); color: var(--foreground); font-weight: var(--weight-semibold); }
.steps li.is-done { border-top-color: var(--foreground); color: var(--foreground); }
.steps a, .steps li > span { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.steps a:hover { color: var(--link-hover); }
.steps .icon { width: 1.05em; height: 1.05em; margin-right: 0.4em; }
.steps .step-count { display: none; }
@media (max-width: 47.99em) {
  .steps li:not([aria-current]) .step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .steps li:not([aria-current]) { flex: 0 0 2.5rem; }
  .steps li:not([aria-current]) .icon { display: none; }
  .steps .step-count { display: inline; white-space: pre; font-weight: var(--weight-regular); color: var(--muted-foreground); }
}

.flow-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7) var(--grid-gap); padding-bottom: var(--section-y); }
@media (min-width: 64em) {
  .flow-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .flow-main { grid-column: 1 / 8; }
  .flow-aside { grid-column: 9 / 13; position: sticky; top: calc(var(--header-h) + var(--space-5)); }
}
.summary-card { display: grid; gap: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--card); border: var(--border-width) solid var(--border); }
.summary-head { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-4); align-items: center; }
.summary-head .frame { aspect-ratio: 1; }
.summary-head h2 { font-size: var(--text-xl); }
.summary-head p { font-size: var(--text-sm); color: var(--muted-foreground); }
.summary-list { display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.summary-list div { display: flex; justify-content: space-between; gap: var(--space-4); }
.summary-list dt { color: var(--muted-foreground); }
.summary-list dd { text-align: right; font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.summary-totals { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: var(--border-width) solid var(--border); font-size: var(--text-sm); }
.summary-totals div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.summary-totals dd { font-variant-numeric: tabular-nums; font-weight: var(--weight-semibold); }
.summary-totals .is-key { padding: var(--space-3) var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-radius: var(--radius-sm); background: var(--accent); }
.summary-totals .is-key dt { font-weight: var(--weight-semibold); color: var(--accent-foreground); }
.summary-totals .is-key dd { font-size: var(--text-xl); color: var(--foreground); }
.summary-note { display: flex; gap: var(--space-2); font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); }
.summary-note .icon { width: 1.1rem; height: 1.1rem; color: var(--accent-foreground); }
.summary-sheet { display: none; }
@media (max-width: 63.99em) {
  .flow-aside { display: none; }
  .summary-sheet { position: sticky; bottom: 0; z-index: var(--z-sticky); display: block; margin-inline: calc(-1 * var(--gutter)); border-top: var(--border-width) solid var(--border); background: var(--card); box-shadow: 0 -12px 24px -16px rgb(14 35 35 / 0.28); }
  .summary-sheet > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 4rem; padding: var(--space-3) var(--gutter); cursor: pointer; list-style: none; }
  .summary-sheet > summary::-webkit-details-marker { display: none; }
  .summary-sheet > summary small { display: block; font-size: var(--text-xs); color: var(--muted-foreground); }
  .summary-sheet > summary strong { font-variant-numeric: tabular-nums; }
  .summary-sheet > summary .icon { transition: transform var(--duration-base) var(--ease-out); }
  .summary-sheet[open] > summary .icon { transform: rotate(180deg); }
  .summary-sheet > .summary-card { max-height: 60vh; overflow-y: auto; border: 0; border-radius: 0; padding: 0 var(--gutter) var(--space-5); }
}

.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-6); }
.results-head h2 { font-size: var(--text-2xl); }
.results-head p { color: var(--muted-foreground); }
.offers { display: grid; gap: var(--space-5); }
.offer { display: grid; gap: var(--space-5); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--card); border: var(--border-width) solid var(--border); scroll-margin-top: calc(var(--header-h) + var(--space-5)); transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.offer:target { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.offer-media { aspect-ratio: 4 / 3; }
.offer-body { display: grid; align-content: start; gap: var(--space-3); }
.offer-title { font-size: var(--text-2xl); }
.offer-title a { color: inherit; text-decoration: none; }
.offer-title a:hover { color: var(--link-hover); text-decoration: underline; }
.offer-desc { color: var(--muted-foreground); }
.offer-note { display: inline-flex; gap: var(--space-2); align-items: center; justify-self: start; padding: 0.35em 0.8em; border-radius: var(--radius-sm); background: var(--info-background); color: var(--info); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.offer-price { display: grid; align-content: start; gap: var(--space-4); padding-top: var(--space-4); border-top: var(--border-width) solid var(--border); }
.offer-nightly { font-size: var(--text-sm); color: var(--muted-foreground); }
.offer-nightly strong { display: block; font-size: var(--text-lg); color: var(--foreground); font-variant-numeric: tabular-nums; }
.offer-amounts dt { white-space: nowrap; }
.offer-amounts { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.offer-amounts div { display: flex; justify-content: space-between; gap: var(--space-4); }
.offer-amounts dt { color: var(--muted-foreground); }
.offer-amounts dd { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.offer-amounts .offer-total dd { font-size: var(--text-xl); color: var(--foreground); }
@media (min-width: 48em) {
  .offer { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); padding: var(--space-5); }
  .offer-price { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 64em) {
  .offer { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) minmax(0, 16.5rem); gap: var(--space-6); }
  .offer-price { grid-column: auto; grid-template-columns: 1fr; padding-top: 0; padding-left: var(--space-6); border-top: 0; border-left: var(--border-width) solid var(--border); align-self: stretch; align-content: space-between; }
}

.empty { position: relative; overflow: hidden; display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-9) var(--space-5); border-radius: var(--radius-lg); background: var(--muted); text-align: center; }
.empty::before { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: var(--pattern-color); -webkit-mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; pointer-events: none; }
.empty > * { position: relative; }
.empty-icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: var(--radius-pill); background: var(--card); color: var(--accent-foreground); box-shadow: var(--shadow-sm); }
.empty-icon .icon { width: 1.75rem; height: 1.75rem; }
.empty h2 { font-size: var(--text-2xl); max-width: 24ch; }
.empty p { max-width: 46ch; color: var(--muted-foreground); }
.empty .btn-row { justify-content: center; margin-top: var(--space-2); }

/* Payment + status panel */
.pay-panel { display: grid; gap: var(--space-6); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--radius-lg); background: var(--card); border: var(--border-width) solid var(--border); }
.pay-amount { display: grid; gap: var(--space-1); }
.pay-amount span { font-size: var(--text-sm); color: var(--muted-foreground); }
.pay-amount strong { font-size: var(--text-3xl); font-weight: var(--weight-semibold); line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hold { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--warning); }
.hold .icon { width: 1.15rem; height: 1.15rem; }
.how { display: flex; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.how .icon { width: 1.75rem; height: 1.75rem; color: var(--accent-foreground); }
.how strong { display: block; margin-bottom: var(--space-1); color: var(--foreground); }

.status-panel { position: relative; overflow: hidden; display: grid; gap: var(--space-5); justify-items: start; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--radius-lg); background: var(--card); border: var(--border-width) solid var(--border); }
.status-panel h2 { font-size: var(--text-3xl); max-width: 22ch; }
.status-panel .status-message { max-width: 52ch; color: var(--secondary-foreground); font-size: var(--text-lg); line-height: var(--leading-snug); }
.status-state[hidden] { display: none !important; }
.status-state { display: grid; gap: var(--space-5); justify-items: start; width: 100%; }
.waves { display: grid; gap: 6px; width: 7rem; height: 2.5rem; align-content: center; color: var(--accent-foreground); overflow: hidden; }
.waves span { display: block; height: 8px; background: currentColor; -webkit-mask: var(--pattern-wave) 0 50% / 3.5rem 8px repeat-x; mask: var(--pattern-wave) 0 50% / 3.5rem 8px repeat-x; width: calc(100% + 3.5rem); animation: waves 2.6s var(--ease-in-out) infinite alternate; }
.waves span:nth-child(2) { animation-delay: -0.9s; opacity: 0.7; }
.waves span:nth-child(3) { animation-delay: -1.8s; opacity: 0.45; }
@keyframes waves { from { transform: translateX(-3.5rem); } to { transform: translateX(0); } }
.waves-text { display: none; }
@media (prefers-reduced-motion: reduce) { .waves span { animation: none; } .waves-text { display: block; } }
.status-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--radius-pill); }
.status-icon .icon { width: 1.75rem; height: 1.75rem; }
.status-icon--success { background: var(--success-background); color: var(--success); }
.status-icon--info { background: var(--info-background); color: var(--info); }
.status-icon--warning { background: var(--warning-background); color: var(--warning); }
.status-icon--neutral { background: var(--muted); color: var(--secondary-foreground); }
.tips { width: 100%; }
.tips ul { display: grid; gap: var(--space-2); padding-left: 1.2em; color: var(--muted-foreground); }
.ref { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.ref-label { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted-foreground); }
.ref .btn--ghost { padding-inline: 0; min-height: 2rem; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.ref .btn--ghost:hover { background: transparent; color: var(--link-hover); }
.ref-code { font-size: var(--text-3xl); font-weight: var(--weight-semibold); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.recap { display: grid; gap: var(--space-6) var(--grid-gap); }
.recap-block h3 { margin-bottom: var(--space-4); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted-foreground); }
.recap-list { display: grid; gap: var(--space-3); }
.recap-list div { display: grid; grid-template-columns: minmax(7rem, 2fr) 3fr; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: var(--border-width) solid var(--border); }
.recap-list dt { font-size: var(--text-sm); color: var(--muted-foreground); }
.recap-list dd { font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.recap-block + .recap-block { padding-top: var(--space-2); }

/* ================= Room detail ================= */
.room-head { padding-block: calc(var(--header-h) + var(--space-7)) var(--space-6); }
.room-head h1 { font-size: var(--text-4xl); }
.room-head .page-lead { margin-top: var(--space-3); }
.room-head .room-meta { margin-top: var(--space-5); font-size: var(--text-base); }
.room-layout { display: grid; gap: var(--space-8) var(--grid-gap); padding-bottom: var(--section-y); }
.room-main { display: grid; gap: var(--space-8); min-width: 0; }
@media (min-width: 64em) {
  .room-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .room-main { grid-column: 1 / 8; }
  .room-aside { grid-column: 9 / 13; position: sticky; top: calc(var(--header-h) + var(--space-5)); }
}
.room-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.room-gallery li:first-child { grid-column: 1 / -1; }
.room-gallery li:first-child .frame { aspect-ratio: 4 / 3; }
.room-gallery .frame { aspect-ratio: 4 / 3; }
.room-gallery a { display: block; border-radius: var(--radius-md); }
.room-gallery .caption { margin-top: var(--space-2); }
/* Two photos: cover and a tall second photo side by side; three: cover then two halves. */
.room-gallery:has(> li:nth-child(2):last-child) { grid-template-columns: 2fr 1fr; }
.room-gallery:has(> li:nth-child(2):last-child) li:first-child { grid-column: auto; }
.room-gallery:has(> li:nth-child(2):last-child) li:last-child { display: flex; flex-direction: column; }
.room-gallery:has(> li:nth-child(2):last-child) li:last-child a { flex: 1 1 auto; }
.room-gallery:has(> li:nth-child(2):last-child) li:last-child .frame { aspect-ratio: auto; height: 100%; min-height: 10rem; }
.room-gallery:has(> li:nth-child(2):last-child) li:last-child .frame img { position: absolute; inset: 0; }
.room-gallery:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room-section h2 { margin-bottom: var(--space-5); font-size: var(--text-2xl); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.spec { display: grid; gap: var(--space-1); padding-top: var(--space-4); border-top: var(--border-width) solid var(--border); }
.spec dt { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); }
.spec dt .icon { color: var(--accent-foreground); }
.spec dd { font-weight: var(--weight-medium); }
.amenities { display: grid; gap: var(--space-4); }
.amenities li { display: flex; align-items: center; gap: var(--space-3); }
.amenities .icon { width: 1.5rem; height: 1.5rem; color: var(--accent-foreground); }
@media (min-width: 40em) { .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.book-card { display: grid; gap: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-lg); }
.book-card .price strong { font-size: var(--text-2xl); }
.book-card .booking { padding: 0; box-shadow: none; }
.others { display: grid; gap: var(--space-4); }
.other { position: relative; display: grid; grid-template-columns: 7rem 1fr auto; gap: var(--space-4); align-items: center; padding-bottom: var(--space-4); border-bottom: var(--border-width) solid var(--border); }
.other .frame { aspect-ratio: 4 / 3; }
.other h3 { font-size: var(--text-xl); }
.other h3 a { color: inherit; text-decoration: none; }
.other h3 a::after { content: ""; position: absolute; inset: 0; }
.other:hover h3 { color: var(--link-hover); }
.other .icon { color: var(--muted-foreground); }
.mobile-cta { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -12px 24px -16px rgb(14 35 35 / 0.32); transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out); }
.mobile-cta.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.mobile-cta .price { line-height: 1.3; }
@media (min-width: 64em) { .mobile-cta { display: none; } }
@media (max-width: 63.99em) { .has-mobile-cta .site-footer { padding-bottom: 5rem; } }

/* ================= Map ================= */
.map { position: relative; aspect-ratio: 16 / 9; min-height: 18rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-cover { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: var(--space-3); height: 100%; padding: var(--space-6); text-align: center; color: var(--foreground); }
.map-cover .icon--pin { width: 2.5rem; height: 2.5rem; color: var(--accent-foreground); }
.map-cover p { max-width: 40ch; font-size: var(--text-sm); color: var(--muted-foreground); }
.map.frame--empty { display: block; }
@media (max-width: 47.99em) { .map { aspect-ratio: 4 / 5; } }

/* ================= Footer ================= */
.site-footer { position: relative; overflow: hidden; margin-top: var(--section-y); background: var(--river-950); color: var(--foreground); }
.site-footer--flush, main:has(> :is(.section--muted, .night, .page-hero):last-child) + .site-footer { margin-top: 0; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 11rem; background: var(--pattern-color); -webkit-mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; mask: var(--pattern-waterlines) 0 0 / 160px 28px repeat; pointer-events: none; }
.site-footer > .container { position: relative; }
.cta-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); padding-block: var(--space-9) var(--space-8); border-bottom: var(--border-width) solid var(--border); }
.cta-band p { max-width: 24ch; font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.15; }
.footer-grid { display: grid; gap: var(--space-7) var(--grid-gap); padding-block: var(--space-8); }
.footer-grid:first-child { padding-top: var(--space-9); }
.footer-brand img { height: 5.25rem; width: auto; }
.footer-brand p { margin-top: var(--space-5); max-width: 30ch; color: var(--muted-foreground); font-size: var(--text-sm); }
.footer-col h2 { margin-bottom: var(--space-4); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted-foreground); }
.footer-col ul { display: grid; gap: var(--space-1); }
.footer-col a { display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.25rem; color: var(--foreground); text-decoration: none; font-size: var(--text-sm); }
.footer-col a:hover { color: var(--link-hover); }
.footer-col address { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.5; margin-top: var(--space-3); }
.social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.social a { display: grid; place-items: center; width: var(--tap-min); height: var(--tap-min); border: var(--border-width) solid var(--border-strong); border-radius: var(--radius-pill); color: var(--foreground); }
.social a:hover { border-color: var(--accent-foreground); color: var(--accent-foreground); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-block: var(--space-5) var(--space-6); border-top: var(--border-width) solid var(--border); font-size: var(--text-xs); color: var(--muted-foreground); }
.footer-bottom a { color: inherit; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr)); } }

/* ================= Error pages ================= */
.error-page { display: grid; place-items: center; min-height: 70vh; padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-8); }
.error-page .empty { width: 100%; padding-block: var(--space-10); }
.error-page .empty img { width: 4.5rem; height: auto; }
.error-code { font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); color: var(--accent-foreground); }
.error-page h1 { font-size: var(--text-4xl); max-width: 18ch; }

/* ================= Reveal on scroll (JS adds .js on <html>; content stays visible without JS) ================= */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .zoom img, .tile > img { transition: none; }
  .btn[aria-busy="true"]::after { animation: none; }
}

/* Forced colours: keep control edges visible. */
@media (forced-colors: active) {
  .btn, .chip, .choice, .step-btn { border-color: ButtonText; }
  .frame--empty::before, .tile--ink::before, .tile--earth::before { display: none; }
}

/* ================= Print (confirmation pages) ================= */
@media print {
  .site-header, .site-footer, .menu, .steps, .skip-link, .mobile-cta, .summary-sheet, .no-print { display: none !important; }
  body { background: #fff; }
  .flow-head, .page-head { padding-top: 0; background: none; }
  .status-panel, .summary-card, .panel { border-color: #999; }
}
