/* The public rental site (/ and /en, and the legal pages; server/site-page.js). Its own look, separate from the
   app's: a beach house, so sand, sea and white. A sand page, white cards with soft shadows, a deep sea teal for
   accents and the "how it works" band, and one warm coral for the action that matters (book). Photographs first:
   a big hero with a white booking bar over it, like a booking site, not a dashboard.
   Phone first: everything works at 360px with 44px targets; from 960px the booking card sits beside the content
   and follows the scroll, and the phone's bottom "Book" bar goes away (--s-bar-h tells the guest chat how much
   room that bar takes). Light only on purpose: the photographs are daylight, and a guest's browsing is short. */

@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Sand and white */
  --s-page: #fbf8f3;
  --s-sand: #f4ede2;
  --s-sand-deep: #ebe1d1;
  --s-card: #ffffff;
  --s-line: #e7dfd3;
  --s-line-strong: #cfc4b4;
  /* Ink */
  --s-ink: #16262b;
  --s-ink-2: #56666b;
  --s-ink-3: #86948f;
  /* Sea */
  --s-sea: #0f766e;
  --s-sea-dark: #0b5650;
  --s-sea-deep: #0d3b3e;
  --s-sea-wash: #e6f3f1;
  --s-sea-wash-2: #d3ebe7;
  /* Coral: the one action */
  --s-coral: #e8674a;
  --s-coral-dark: #cf5236;
  --s-coral-wash: #fdebe5;
  --s-sun: #f2b84b;
  --s-ok: #2d6e4e;
  --s-bad: #b3261e;
  --s-radius: 18px;
  --s-radius-lg: 24px;
  --s-shadow: 0 1px 2px rgba(22, 38, 43, 0.05), 0 8px 24px rgba(22, 38, 43, 0.07);
  --s-shadow-lg: 0 2px 6px rgba(22, 38, 43, 0.06), 0 24px 48px rgba(22, 38, 43, 0.12);
  --s-gutter: 16px;
  --s-max: 1200px;
  --s-top-h: 64px;
  --s-bar-h: 76px;    /* the phone's bottom "Book" bar; 0 from 960px. The guest chat sits above it. */
  --s-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--s-top-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
body.stay { margin: 0; background: var(--s-page); color: var(--s-ink); font: 400 16px/1.6 var(--s-font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 0.9em; }
:focus-visible { outline: 3px solid var(--s-sea); outline-offset: 2px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--s-ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; top: 8px; }
.s-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.s-wrap { width: 100%; max-width: var(--s-max); margin: 0 auto; padding: 0 var(--s-gutter); }
.s-muted { color: var(--s-ink-2); }
.s-small { font-size: 0.86rem; }
.s-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-icon-sm { width: 18px; height: 18px; }
.s-star { width: 15px; height: 15px; fill: currentColor; stroke: none; vertical-align: -2px; }

/* ── Buttons and links ───────────────────────────────────────────────── */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--s-ink); border-radius: 12px; background: var(--s-card); color: var(--s-ink);
  font: 600 0.95rem var(--s-font); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.s-btn:hover { background: var(--s-sand); }
.s-btn .s-icon { width: 18px; height: 18px; }
.s-btn-cta, .s-btn-primary { background: var(--s-coral); border-color: var(--s-coral); color: #fff; box-shadow: 0 6px 16px rgba(232, 103, 74, 0.28); }
.s-btn-cta:hover, .s-btn-primary:hover { background: var(--s-coral-dark); border-color: var(--s-coral-dark); }
.s-btn-cta:active, .s-btn-primary:active { transform: translateY(1px); }
.s-btn-ghost { border-color: var(--s-line-strong); background: var(--s-card); }
.s-btn-ghost:hover { border-color: var(--s-ink); background: var(--s-card); }
.s-btn:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.s-btn-block { width: 100%; margin: 14px 0 8px; min-height: 52px; font-size: 1rem; }
.s-link { color: var(--s-sea); font-weight: 600; text-underline-offset: 3px; }
.s-link:hover { color: var(--s-sea-dark); }
.s-link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--s-ink); font: 600 0.9rem var(--s-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.s-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--s-ink); font-size: 0.8rem; font-weight: 600; }
.s-badge-soft { background: var(--s-sea-wash); color: var(--s-sea-dark); }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.s-top { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.s-top.is-scrolled { border-bottom-color: var(--s-line); box-shadow: 0 6px 20px rgba(22, 38, 43, 0.06); }
.s-top-row { display: flex; align-items: center; gap: 16px; min-height: var(--s-top-h); }
.s-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 1.12rem; text-decoration: none; letter-spacing: -0.015em; color: var(--s-ink); }
.s-brand-mark {
  /* The monogram (2026-11-20): the house's initials in a thin sea-teal circle. No drawing: Emilio wanted it real and
     quiet. The favicon (public/stay/icon.svg) is the same circle with C and O drawn as strokes. */
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  border: 1.5px solid var(--s-sea); color: var(--s-sea); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em;
}
.s-nav { display: none; gap: 2px; margin-left: 12px; }
.s-nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--s-ink-2); font-weight: 500; }
.s-nav a:hover { color: var(--s-ink); background: var(--s-sand); }
.s-top-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.s-lang { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--s-ink-2); font-weight: 500; text-decoration: none; }
.s-lang:hover { background: var(--s-sand); color: var(--s-ink); }
.s-top-book { display: none; }

/* ── Hero: the headline and the booking bar, on the page itself ─────────
   No photo behind it (2026-11-20, Emilio's choice): a darkened photo made the house look gloomy. The photos come
   right after, bright and true, in the mosaic, the way Airbnb shows a listing. */
.s-hero { position: relative; color: var(--s-ink); background: var(--s-page); }
.s-hero-inner { padding-top: 28px; padding-bottom: 6px; }
.s-hero-copy { max-width: 760px; animation: s-rise 0.6s ease both; }
.s-hero-eyebrow { margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; color: var(--s-ink-2); }
.s-hero h1 { font-size: clamp(2rem, 6.4vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 10px; text-wrap: balance; }
.s-hero-sub { font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--s-ink-2); max-width: 36em; margin-bottom: 12px; }
.s-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 20px; font-size: 0.95rem; color: var(--s-ink-2); }
.s-hero-meta a { color: var(--s-ink); text-underline-offset: 3px; }
.s-hero-meta .s-star { color: var(--s-sun); }
.s-hero-meta .s-badge { border: 1px solid var(--s-line); }
@media (prefers-reduced-motion: reduce) { .s-hero-copy { animation: none; } }
@keyframes s-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.s-searchbar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; color: var(--s-ink); border-radius: 22px; padding: 6px;
  box-shadow: 0 8px 28px rgba(22, 38, 43, 0.1); border: 1px solid var(--s-line); animation: s-rise 0.6s 0.08s ease both;
}
.s-sb-field {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 8px 16px; border: 0; border-radius: 16px;
  background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; position: relative;
}
.s-sb-field:hover { background: var(--s-sand); }
.s-sb-field span { font-size: 0.72rem; font-weight: 700; font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 0.85rem; color: var(--s-ink); }
.s-sb-field b { font-weight: 500; color: var(--s-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-sb-field b.is-set { color: var(--s-ink); font-weight: 600; }
.s-sb-guests { grid-column: 1 / -1; border-top: 1px solid var(--s-line); border-radius: 0 0 16px 16px; justify-content: flex-start; padding-top: 10px; }
.s-sb-guests span { pointer-events: none; position: relative; z-index: 1; }
/* The select covers the whole field, so a tap anywhere on it opens the list; its text sits under the label. */
.s-sb-guests select {
  appearance: none; -webkit-appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit;
  background: transparent; padding: 28px 16px 8px; margin: 0; font: 500 1rem var(--s-font); color: var(--s-ink); cursor: pointer;
}
.s-sb-guests select:focus-visible { outline: none; }
.s-sb-guests:focus-within { box-shadow: inset 0 0 0 2px var(--s-sea); }
.s-sb-go { grid-column: 1 / -1; min-height: 52px; border-radius: 16px; margin-top: 6px; font-size: 1rem; }
.s-sb-go .s-icon { width: 20px; height: 20px; }

/* ── Feature chips ───────────────────────────────────────────────────── */
.s-chips-row { padding-top: 22px; }
.s-chips { list-style: none; margin: 0; padding: 2px 0 6px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.s-chips::-webkit-scrollbar { display: none; }
.s-chips li {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--s-line); font-weight: 500; font-size: 0.93rem; white-space: nowrap;
}
.s-chips .s-icon { width: 20px; height: 20px; color: var(--s-sea); }

/* ── Photos ──────────────────────────────────────────────────────────── */
.s-photos { padding-top: 18px; }
.s-mosaic { position: relative; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; border-radius: var(--s-radius-lg); overflow: hidden; }
.s-mosaic-item { padding: 0; border: 0; background: var(--s-sand-deep); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.s-mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.2s; }
.s-mosaic-item:hover img { transform: scale(1.035); filter: brightness(0.95); }
.s-mosaic-item.is-lead { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.s-mosaic-item:nth-child(n+4) { display: none; }
.s-all-photos { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, 0.96); border-color: transparent; box-shadow: var(--s-shadow); border-radius: 999px; }

/* ── Body: the house, then the booking card (beside it on desks) ─────── */
.s-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; padding-bottom: 48px; }
.s-section { padding: 28px 0; border-bottom: 1px solid var(--s-line); }
.s-section:last-child { border-bottom: 0; }
.s-intro h2 { font-size: clamp(1.35rem, 3.6vw, 1.7rem); margin-bottom: 4px; }
.s-intro-facts { color: var(--s-ink-2); margin-bottom: 8px; }
.s-intro-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.s-intro-rating a { text-underline-offset: 3px; }

.s-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.s-highlights li { display: flex; gap: 14px; align-items: flex-start; }
.s-hl-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--s-sea-wash); color: var(--s-sea); display: grid; place-items: center; }
.s-highlights h3 { margin-bottom: 2px; }
.s-highlights p { margin: 0; color: var(--s-ink-2); }

.s-rooms { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.s-rooms li { scroll-snap-align: start; }
.s-room-photo { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 10px; background: var(--s-sand-deep); }
.s-room-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.s-room-photo:hover img { transform: scale(1.035); }
.s-rooms h3 { margin: 0; }
.s-rooms p { margin: 0; color: var(--s-ink-2); }

.s-amenities { display: grid; gap: 20px; margin-bottom: 18px; }
.s-amenities.is-short .s-amenity-group:nth-child(n+3) { display: none; }
.s-amenity-group h3 { color: var(--s-ink); }
.s-amenity-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-amenity-group li { padding-left: 26px; position: relative; }
.s-amenity-group li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 5px; border-left: 2px solid var(--s-sea); border-bottom: 2px solid var(--s-sea); transform: rotate(-45deg); }

.s-ask { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.s-ask-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--s-coral-wash); color: var(--s-coral-dark); display: grid; place-items: center; grid-row: span 1; }
.s-ask h2 { font-size: 1.2rem; margin-bottom: 2px; }
.s-ask p { margin: 0; color: var(--s-ink-2); }
.s-ask .s-btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }

/* ── Booking card ────────────────────────────────────────────────────── */
.s-book { scroll-margin-top: calc(var(--s-top-h) + 12px); }
.s-book-card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); box-shadow: var(--s-shadow-lg); padding: 22px 18px; }
.s-book-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.s-book-price { margin: 0; font-size: 0.95rem; color: var(--s-ink-2); }
.s-book-price b { font-size: 1.55rem; color: var(--s-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.s-book-rating { margin: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; }
.s-book-rating span { color: var(--s-ink-2); }
.s-book-card > .s-muted { margin: 6px 0 0; }
.s-book-title { font-size: 1.1rem; margin: 16px 0 12px; }
.s-book-after { padding: 14px 4px 0; }
.s-book-after p { display: flex; gap: 8px; align-items: center; color: var(--s-ink-2); margin: 0 0 4px; }
.s-book-after .s-icon { color: var(--s-sea); }
.s-book-after .s-btn-block { min-height: 48px; margin: 8px 0 0; font-size: 0.95rem; }

.s-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--s-line-strong); border-radius: 14px; overflow: hidden; }
.s-date { text-align: left; padding: 10px 14px; min-height: 58px; background: var(--s-card); border: 0; font: inherit; cursor: pointer; color: var(--s-ink); }
.s-date:hover { background: var(--s-page); }
.s-date + .s-date { border-left: 1px solid var(--s-line-strong); }
.s-date span { display: block; font-size: 0.82rem; font-weight: 700; font-variant-caps: all-small-caps; letter-spacing: 0.06em; color: var(--s-ink); }
.s-date b { font-weight: 500; color: var(--s-ink-2); }

.s-cal { margin-top: 14px; }
.s-cal-nav { display: flex; align-items: center; gap: 8px; }
.s-cal-hint { flex: 1; margin: 0; text-align: center; font-size: 0.9rem; color: var(--s-ink-2); line-height: 1.35; }
.s-cal-hint b { color: var(--s-ink); }
.s-cal-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--s-line); background: var(--s-card); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--s-ink); }
.s-cal-btn:hover:not(:disabled) { border-color: var(--s-ink); }
.s-cal-btn:disabled { opacity: 0.35; cursor: default; }
.s-months { display: grid; gap: 14px; }
.s-month-name { margin: 10px 0 4px; font-weight: 600; text-align: center; }
.s-month-name::first-letter { text-transform: uppercase; }
.s-week, .s-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.s-week span { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--s-ink-3); padding: 4px 0; }
.s-day { height: 44px; border: 0; background: none; font: 500 0.95rem var(--s-font); font-variant-numeric: tabular-nums; border-radius: 50%; cursor: pointer; color: var(--s-ink); position: relative; }
.s-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--s-ink); }
.s-day:disabled { color: #bdb3a6; cursor: default; }
.s-day.is-taken { text-decoration: line-through; text-decoration-color: rgba(22, 38, 43, 0.3); }
.s-day.is-range { background: var(--s-sea-wash); border-radius: 0; }
.s-day.is-edge { background: var(--s-sea); color: #fff; }
.s-day.is-blank { pointer-events: none; }

.s-party { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.s-field { display: grid; gap: 4px; margin-bottom: 10px; }
.s-field span { font-size: 0.85rem; font-weight: 600; color: var(--s-ink-2); }
.s-field input, .s-field select, .s-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--s-line-strong); border-radius: 12px; background: #fff;
  font: 400 1rem var(--s-font); color: var(--s-ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.s-field input:focus, .s-field select:focus, .s-field textarea:focus { outline: none; border-color: var(--s-sea); box-shadow: 0 0 0 3px var(--s-sea-wash-2); }
.s-field textarea { resize: vertical; }
.s-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; font-size: 0.92rem; }
.s-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--s-sea); flex: none; }
.s-check a { color: var(--s-sea); }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.s-quote { margin-top: 14px; border-top: 1px solid var(--s-line); padding-top: 12px; }
.s-q-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.s-q-line span:first-child { color: var(--s-ink-2); }
.s-q-line span:last-child { white-space: nowrap; }
.s-q-line.is-discount span:last-child { color: var(--s-ok); }
.s-q-total { border-top: 1px solid var(--s-line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.08rem; }
.s-q-total span:first-child { color: var(--s-ink); }
.s-error { color: var(--s-bad); font-weight: 500; margin: 12px 0 0; }
.s-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--s-coral-wash); color: var(--s-coral-dark); font-weight: 500; }

.s-summary { background: var(--s-page); border: 1px solid var(--s-line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.s-summary p { margin: 0 0 4px; }
.s-summary .s-link-btn { padding: 4px 0; min-height: 32px; }
.s-form h3 { margin-top: 4px; }
.s-sent { text-align: left; }
.s-sent h3 { color: var(--s-sea-dark); font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.s-sent h3::before { content: "\2713"; width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--s-sea); color: #fff; font-size: 1rem; }
.s-sent:focus { outline: none; }
.s-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; background: var(--s-sand); padding: 2px 8px; border-radius: 6px; }

/* ── How it works: a deep sea band ───────────────────────────────────── */
.s-steps-band { background: var(--s-sea-deep); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.s-steps-band::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 100%, rgba(15, 118, 110, 0.55), transparent 70%);
}
.s-steps-band .s-wrap { position: relative; }
.s-steps-band h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin-bottom: 6px; }
.s-steps-sub { color: rgba(255, 255, 255, 0.78); margin-bottom: 28px; }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.s-steps li { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--s-radius); padding: 20px; }
.s-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--s-sea-deep); font-weight: 700; margin-bottom: 12px; }
.s-steps li:last-child .s-step-n { background: var(--s-coral); color: #fff; }
.s-steps h3 { margin-bottom: 4px; }
.s-steps p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.s-steps-cta { margin: 28px 0 0; }

/* ── After the steps: reviews, location, rules, FAQ ──────────────────── */
.s-after { padding-top: 16px; padding-bottom: 32px; }
.s-block { padding: 44px 0; border-bottom: 1px solid var(--s-line); scroll-margin-top: calc(var(--s-top-h) + 8px); }
.s-block:last-child { border-bottom: 0; }
.s-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.s-block-head h2 { margin: 0; }
.s-score { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--s-ink-2); }
.s-score b { color: var(--s-ink); font-size: 1.1rem; }
.s-score .s-star { width: 18px; height: 18px; color: var(--s-ink); }

.s-reviews { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.s-reviews li { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 20px; box-shadow: var(--s-shadow); display: flex; flex-direction: column; }
.s-stars { display: inline-flex; gap: 2px; color: var(--s-sun); margin-bottom: 10px; }
.s-stars .s-star { width: 16px; height: 16px; }
.s-reviews blockquote { margin: 0 0 14px; flex: 1; }
.s-reviews blockquote p { margin: 0; }
.s-review-by { display: flex; align-items: center; gap: 10px; margin: 0; }
.s-review-by span:last-child { display: grid; line-height: 1.25; }
.s-review-by small { color: var(--s-ink-2); font-size: 0.85rem; }
.s-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--s-sea-wash); color: var(--s-sea-dark); display: grid; place-items: center; font-weight: 700; flex: none; }

.s-location-grid { display: grid; gap: 22px; align-items: center; }
.s-location-photo { padding: 0; border: 0; border-radius: var(--s-radius-lg); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--s-sand-deep); }
.s-location-photo img { width: 100%; height: 100%; object-fit: cover; }
.s-location-place { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.s-location-place .s-icon { color: var(--s-coral); }
.s-location-copy .s-btn .s-icon { color: var(--s-coral); }

.s-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.s-times div { background: var(--s-sea-wash); border-radius: var(--s-radius); padding: 14px 16px; }
.s-times span { display: block; font-size: 0.88rem; font-weight: 700; color: var(--s-sea-dark); font-variant-caps: all-small-caps; letter-spacing: 0.05em; }
.s-times b { font-weight: 600; }
.s-rule-cards { display: grid; gap: 14px; }
.s-rule-card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 20px; }
.s-rule-card h3 { margin-top: 0; }
.s-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--s-ink-2); }
.s-list li::marker { color: var(--s-sea); }

.s-faq { display: grid; gap: 10px; max-width: 860px; }
.s-faq details { background: var(--s-card); border: 1px solid var(--s-line); border-radius: 16px; }
.s-faq details[open] { box-shadow: var(--s-shadow); }
.s-faq summary { list-style: none; cursor: pointer; min-height: 56px; padding: 14px 52px 14px 18px; font-weight: 600; position: relative; display: flex; align-items: center; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--s-ink-2); border-bottom: 2px solid var(--s-ink-2); transform: rotate(45deg); transition: transform 0.2s;
}
.s-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.s-faq details p { margin: 0; padding: 0 18px 18px; color: var(--s-ink-2); }

/* ── Phone: "Book" stays in reach ────────────────────────────────────── */
.s-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--s-bar-h); padding: 10px var(--s-gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--s-line);
  box-shadow: 0 -8px 24px rgba(22, 38, 43, 0.08); transition: transform 0.25s ease;
}
.s-bar p { margin: 0; line-height: 1.25; }
.s-bar b { font-size: 1.1rem; }
.s-bar span { color: var(--s-ink-2); }
.s-bar small { display: flex; align-items: center; gap: 4px; color: var(--s-ink-2); font-size: 0.82rem; }
.s-bar .s-btn { min-width: 120px; min-height: 48px; }
.s-bar.is-hidden { transform: translateY(110%); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.s-foot { background: var(--s-sand); border-top: 1px solid var(--s-line); padding: 40px 0 calc(var(--s-bar-h) + 24px); font-size: 0.93rem; color: var(--s-ink-2); }
.s-foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.s-foot-brand { grid-column: 1 / -1; }
.s-foot-brand p { margin: 8px 0 0; }
.s-foot h2 { font-size: 0.95rem; font-weight: 700; color: var(--s-ink); margin: 0 0 8px; letter-spacing: 0; }
.s-foot ul { list-style: none; margin: 0; padding: 0; display: grid; }
.s-foot a, .s-foot-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--s-ink-2); text-decoration: none; overflow-wrap: anywhere; }
.s-foot a:hover, .s-foot-link:hover { color: var(--s-ink); text-decoration: underline; text-underline-offset: 3px; }
.s-foot-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.s-foot .s-brand { color: var(--s-ink); }
.s-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--s-line); }
.s-foot-bottom p { margin: 0; }

/* ── Gallery (all photos, by room) and the one-photo viewer ──────────── */
dialog { border: 0; padding: 0; }
.s-gallery { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; background: var(--s-page); overflow-y: auto; }
.s-gallery::backdrop { background: rgba(10, 30, 33, 0.5); }
.s-gallery-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--s-gutter); background: var(--s-page); border-bottom: 1px solid var(--s-line); }
.s-gallery-head h2 { margin: 0; font-size: 1.15rem; }
.s-gallery-rooms { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--s-gutter); max-width: 1000px; margin: 0 auto; }
.s-gallery-rooms a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--s-line); border-radius: 999px; background: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.s-gallery-rooms a:hover { border-color: var(--s-ink); }
.s-gallery-group { max-width: 1000px; margin: 0 auto; padding: 16px var(--s-gutter); scroll-margin-top: 70px; }
.s-gallery-grid { display: grid; gap: 8px; }
.s-gallery-grid button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--s-sand-deep); }
.s-gallery-grid img { width: 100%; height: auto; }

.s-viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; background: #0b1416; color: #fff; }
.s-viewer::backdrop { background: #0b1416; }
.s-viewer figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 8px 12px; }
.s-viewer img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.s-viewer figcaption { padding: 10px 16px; text-align: center; font-size: 0.9rem; color: #d6dcda; }
.s-viewer-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--s-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.s-viewer-prev { left: 10px; }
.s-viewer-next { right: 10px; }
.s-viewer-close { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, 0.92); border-color: transparent; }

/* ── Terms and privacy ───────────────────────────────────────────────── */
.s-legal { max-width: 820px; padding-top: 28px; padding-bottom: 56px; }
.s-legal-eyebrow { margin: 0 0 6px; color: var(--s-sea); font-weight: 600; }
.s-legal-eyebrow a { text-decoration: none; }
.s-legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.025em; margin-bottom: 20px; }
.s-legal-card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); padding: 8px 22px 24px; box-shadow: var(--s-shadow); }
.s-legal h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.s-legal p { color: var(--s-ink-2); }
.s-legal-page .s-foot { padding-bottom: 32px; }
.s-legal-page { --s-bar-h: 0px; }

/* ── Wider screens ───────────────────────────────────────────────────── */
@media (min-width: 600px) {
  :root { --s-gutter: 24px; }
  .s-searchbar { grid-template-columns: 1fr 1fr 1fr auto; border-radius: 999px; padding: 8px; align-items: center; }
  .s-sb-field { border-radius: 999px; min-height: 58px; padding: 6px 22px; }
  .s-sb-guests { padding-top: 9px; }
  .s-sb-guests select { padding: 27px 22px 6px; }
  .s-sb-field + .s-sb-field::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--s-line); }
  .s-sb-field:hover::before, .s-sb-field:hover + .s-sb-field::before { opacity: 0; }
  .s-sb-guests { grid-column: auto; border-top: 0; border-radius: 999px; }
  .s-sb-go { grid-column: auto; margin: 0; border-radius: 999px; padding: 0 24px; min-height: 56px; }
  .s-mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); aspect-ratio: 2.1 / 1; }
  .s-mosaic-item, .s-mosaic-item.is-lead { aspect-ratio: auto; }
  .s-mosaic-item.is-lead { grid-column: 1 / 3; grid-row: 1 / 3; }
  .s-mosaic-item:nth-child(n+4) { display: block; }
  .s-highlights { grid-template-columns: 1fr 1fr; }
  .s-amenities { grid-template-columns: 1fr 1fr; }
  .s-reviews { grid-template-columns: repeat(3, 1fr); }
  .s-rooms { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .s-steps { grid-template-columns: 1fr 1fr; }
  .s-location-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s-rule-cards { grid-template-columns: repeat(3, 1fr); }
  .s-ask { grid-template-columns: auto 1fr auto; }
  .s-ask .s-btn { grid-column: auto; margin-top: 0; }
  .s-gallery-grid { grid-template-columns: 1fr 1fr; }
  .s-foot-cols { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .s-foot-brand { grid-column: auto; }
}
@media (min-width: 760px) {
  .s-nav { display: flex; }
  .s-top-book { display: inline-flex; }
  .s-hero-inner { padding-top: 40px; padding-bottom: 8px; }
}
@media (min-width: 960px) {
  :root { --s-bar-h: 0px; }
  .s-body { grid-template-columns: minmax(0, 1fr) 390px; gap: 64px; padding-bottom: 56px; }
  .s-book { position: sticky; top: calc(var(--s-top-h) + 16px); align-self: start; padding-top: 28px; }
  .s-bar { display: none; }
  .s-steps { grid-template-columns: repeat(4, 1fr); }
  .s-viewer-prev { left: 24px; }
  .s-viewer-next { right: 24px; }
  .s-searchbar { max-width: 920px; }
}
@media (min-width: 1200px) {
  .s-body { grid-template-columns: minmax(0, 1fr) 410px; }
}

/* ── Signing in (public/stay-auth.js): email, then the 6-digit code; in the booking card, the chat and the account page ── */
.a-box { display: grid; gap: 10px; }
.a-title { margin: 4px 0 0; font-size: 1.1rem; }
.a-why { margin: 0; color: var(--s-ink-2); font-size: 0.95rem; }
.a-form { display: grid; gap: 10px; }
.a-field { display: grid; gap: 4px; }
.a-field span { font-size: 0.85rem; font-weight: 600; color: var(--s-ink-2); }
.a-field input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #C9BFB1; border-radius: 12px; background: #fff;
  font: 400 1rem var(--s-font); color: var(--s-ink);
}
.a-field input:focus { outline: 2px solid var(--s-sea); outline-offset: 1px; border-color: var(--s-sea); }
.a-code { font-size: 1.5rem !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.a-btn { min-height: 50px; border: 0; border-radius: 14px; background: var(--s-coral, #E8674A); color: #fff; font: 600 1rem var(--s-font); cursor: pointer; }
.a-btn:hover { filter: brightness(0.95); }
.a-btn:disabled { opacity: 0.6; cursor: default; }
.a-note { margin: 0; font-size: 0.85rem; color: var(--s-ink-2); }
.a-error { margin: 0; color: #A12A2A; font-size: 0.9rem; font-weight: 500; }
.a-links { margin: 0; font-size: 0.88rem; color: var(--s-ink-2); }
.a-link, .c-link-inline { min-height: 44px; padding: 0; border: 0; background: none; color: var(--s-sea); font: 600 0.88rem var(--s-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.s-as { margin: 0 0 6px; font-size: 0.92rem; color: var(--s-ink-2); }
.s-as .s-link-btn { min-height: 32px; padding: 0 0 0 4px; }
/* The header's account link */
.s-account-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 10px; color: var(--s-ink); font-weight: 600; text-decoration: none; }
.s-account-link:hover { background: var(--s-sand); }
/* The guest's account page */
.s-acc-hello { font-size: 1.1rem; color: var(--s-ink-2); margin: -6px 0 16px; }
.s-acc-card { margin-bottom: 16px; }
.s-acc-card h2 { margin-top: 0; }
.s-acc-bookings { list-style: none; margin: 0 0 12px; padding: 0; }
.s-acc-bookings li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--s-line); }
.s-acc-bookings li:first-child { border-top: 0; }
.s-acc-bookings small { display: block; color: var(--s-ink-2); margin-top: 2px; }
.s-acc-right { text-align: right; flex: none; }
.s-acc-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--s-sand); color: var(--s-ink-2); }
.s-acc-status.is-accepted { background: var(--s-sea-wash); color: var(--s-sea-dark); }
.s-acc-status.is-new, .s-acc-status.is-pending_payment { background: #FDF1E3; color: #8A5300; }
.s-acc-unread { margin-left: 8px; font-weight: 600; color: var(--s-coral-dark); }
.s-acc-form { max-width: 480px; }
.s-acc-select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #C9BFB1; border-radius: 12px; background: #fff; font: 400 1rem var(--s-font); color: var(--s-ink); }
.s-brand { white-space: nowrap; }
@media (max-width: 599px) {
  .s-acc-first { display: none; }
  .s-top-tools { gap: 0; }
  .s-top-tools .s-lang, .s-account-link { padding: 0 8px; }
}

/* Phone with its country code (public/stay-auth.js phoneField), and a field's error under it */
.a-phone { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.a-phone select {
  min-height: 48px; padding: 0 30px 0 12px; border: 1px solid #C9BFB1; border-radius: 12px; background: #fff;
  font: 500 1rem var(--s-font); color: var(--s-ink); cursor: pointer;
}
.a-phone input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #C9BFB1; border-radius: 12px; background: #fff;
  font: 400 1rem var(--s-font); color: var(--s-ink); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.a-phone select:focus, .a-phone input:focus { outline: 2px solid var(--s-sea); outline-offset: 1px; border-color: var(--s-sea); }
.a-phone-field > span { font-size: 0.85rem; font-weight: 600; color: var(--s-ink-2); }
.a-phone-field { display: grid; gap: 4px; margin-bottom: 10px; }
[aria-invalid="true"] { border-color: #B3261E !important; box-shadow: 0 0 0 1px #B3261E; }
.a-field-error { margin: 4px 0 0; color: #B3261E; font-size: 0.86rem; font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.a-field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #B3261E; color: #fff; font-size: 0.7rem; font-weight: 700; }
