/* ========================================================================
   Wooden Hotel Kazbegi — customer site
   Alpine-lodge design system: bark wood, alpine stone, deep forest,
   harvest gold. Mobile-first, fully responsive.
   Full reference: /style-guide
   ===================================================================== */

:root {
  /* Brand — bark (wood), forest, gold */
  --wood-900: #221b14; /* espresso bark — footer, headings */
  --wood-800: #32291f; /* header bars, dark surfaces */
  --wood-700: #4f4232; /* chip text, secondary emphasis on light */
  --wood-500: #71624e;
  --forest-700: #2c4639; /* deep pine — hovers, reviews band, dark accents */
  --forest-500: #3d6450; /* primary action green */
  --gold-500: #c79a53; /* harvest gold — badges & accents on DARK only */
  --gold-400: #d8b46e; /* lighter gold — icons & hovers on DARK only */
  --gold-700: #7d6029; /* deep ochre — the accessible gold for text on LIGHT */

  /* Neutrals — alpine stone (cool paper-grey, no yellow) */
  --stone-50: #f7f7f3;  /* page background */
  --stone-100: #edeee7; /* soft panels, chips, secondary buttons */
  --stone-200: #dfe1d6; /* hover states, deeper panels */
  --ink: #24251f;       /* body text */
  --ink-soft: #5a5b51;  /* secondary text — AA on stone-50 & stone-100 */
  --line: #d9dbce;      /* hairline dividers */
  --field: #e7ebe4;     /* sage-mist input fill */
  --white: #ffffff;

  /* Feedback */
  --success-700: #2c6b45;
  --success-100: #e2f0e8;
  --amber-700: #96591b;  /* warnings, low availability, pending */
  --amber-100: #f5e9d7;
  --amber-200: #ecd7b0;  /* deeper than amber-100 — for a callout that needs to read clearly against --stone-50, not just tint it */
  --danger-700: #a83a2e;  /* error text */
  --danger-500: #b3453b;  /* destructive buttons */
  --danger-600: #983a31;  /* destructive hover */
  --danger-100: #f7e4de;  /* error / cancelled tint */
  --danger-50: #fbf0ec;   /* cancelled card wash */

  /* Focus rings — alpha variants of --forest-500, nothing else */
  --field-edge: rgba(61, 100, 80, 0.14); /* faint rest hairline — same hue as the focus edge, so click just deepens it */
  --focus-edge: rgba(61, 100, 80, 0.7);  /* inset edge on focused fields */
  --focus-halo: rgba(61, 100, 80, 0.12); /* calm bloom around focused fields */

  /* Field glyphs — --ink-soft (#5a5b51) baked into data URIs */
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a5b51' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='1.75' y='2.75' width='12.5' height='11.5' rx='2.5' fill='none' stroke='%235a5b51' stroke-width='1.5'/%3E%3Cpath d='M1.75 6.25h12.5' fill='none' stroke='%235a5b51' stroke-width='1.5'/%3E%3Cpath d='M5.25 1v2.5M10.75 1v2.5' fill='none' stroke='%235a5b51' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");

  /* Scenery (illustrations only — never UI) */
  --sky-400: #8fb4c6;
  --sky-200: #bcd6e0;

  --shadow-sm: 0 1px 3px rgba(42, 28, 18, 0.08), 0 1px 2px rgba(42, 28, 18, 0.06);
  --shadow-md: 0 6px 20px rgba(42, 28, 18, 0.1);
  --shadow-lg: 0 18px 50px rgba(42, 28, 18, 0.18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-btn: 12px; /* buttons & form fields — softly-squared, deliberately NOT the pill radius used elsewhere (chips, badges) or on the agency portal (platform.css), which is its own separate style guide. Plain rounded corner, not a squircle — these are focusable, and clipping to a squircle shape would cut off the keyboard focus ring (see /js/squircle.js, which only targets non-focusable cards/panels). */

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; /* focused fields never hide under the sticky header */ }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--stone-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; color: var(--wood-900); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-700); /* deep ochre — gold-500 fails contrast on light backgrounds */
}

.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---- Material (MUI) icons --------------------------------------------- */
/* Inline SVG icons from js/icons.js. Inherit text colour, align to baseline. */
.mi { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -0.18em; flex: none; }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars .mi { width: 1.05em; height: 1.05em; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* Primary action color depends on what the button sits on: forest green on
   light surfaces (cards, panels, modals — the vast majority of the site),
   gold on dark surfaces (hero photo, dark header/nav bars) for contrast.
   See .site-header:not(.solid) and .res-header overrides below for the
   dark-surface exception. */
.btn-primary { background: var(--forest-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-700); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--forest-500); color: var(--white); }
.btn-dark:hover { background: var(--forest-700); }
.btn-outline { color: var(--forest-700); }
.btn-forest { background: var(--forest-500); color: var(--white); }
.btn-forest:hover { background: var(--forest-700); }
/* Gold CTA — for use on the dark forest surfaces (e.g. the reviews band), where
   a forest-green button would disappear into the background. */
.btn-gold { background: var(--gold-500); color: var(--wood-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-danger { background: var(--danger-500); color: #fff; }
.btn-danger:hover { background: var(--danger-600); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
/* Transparent, white-outlined button for use over the hero photo. Its trailing
   chevron is optically lighter than text, so trim the right padding to keep the
   negative space balanced against the left. */
.btn.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.75); }
.btn.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn.btn-outline-white.btn-lg { padding-right: 20px; }
.btn-outline { background: transparent; color: var(--wood-800); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--gold-700); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  padding: 14px 0;
}
.site-header.solid { background: var(--stone-50); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.site-header.solid .brand { color: var(--wood-900); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--white); font-weight: 500; font-size: 0.95rem; opacity: 0.92; transition: opacity 0.15s; }
.site-header.solid .nav-links a { color: var(--ink); }
.nav-links a:hover { opacity: 1; color: var(--gold-400); }
.site-header.solid .nav-links a:hover { color: var(--gold-700); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.owner-link { font-size: 0.85rem; opacity: 0.8; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  color: var(--white);
}
.site-header.solid .nav-toggle { color: var(--wood-900); }
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: 0.25s; }

/* Dark-surface exception: while the header floats over the hero photo
   (unscrolled), its primary button stays gold for contrast — same rule
   as .res-header below. Once the header goes solid/light it switches to
   the site-wide green from .btn-primary. */
.site-header:not(.solid) .btn-primary { background: var(--gold-400); color: var(--wood-900); }
.site-header:not(.solid) .btn-primary:hover { background: var(--gold-500); }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 96px 0 32px;
  overflow: hidden;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -4;
  background: linear-gradient(180deg, #24506b 0%, #3f7089 34%, #d99e6a 74%, #f0c48a 100%);
}
.hero-mountains { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; }
.hero-mountains svg { width: 100%; height: 100%; }
/* Real hotel photo — Mt Kazbek over Stepantsminda, with Gergeti Trinity Church
   on the ridge. hero-mt.jpg is a web-optimized copy (2000px, ~820KB) of the
   full-res mt.jpg the owner supplied; if the file is missing the request just
   fails and the mountain artwork shows through. A low Y% keeps the crop
   biased toward the top of the image, so the snow-capped summit clears the
   fixed header instead of being cropped off behind it. */
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("/images/hero-mt.jpg");
  background-size: cover;
  background-position: center 18%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 12, 6, 0.86) 0%, rgba(18, 12, 6, 0.55) 44%, rgba(18, 12, 6, 0.32) 100%),
    linear-gradient(180deg, rgba(18, 12, 6, 0.15) 0%, rgba(18, 12, 6, 0) 38%, rgba(18, 12, 6, 0.45) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; width: 100%; }
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  padding: 7px 14px 7px 8px; border-radius: var(--radius-btn);
  font-size: 0.88rem; font-weight: 500; margin-bottom: 22px;
}
.score-pill { background: var(--gold-500); color: var(--wood-900); font-weight: 700; padding: 4px 8px; border-radius: 7px; font-size: 0.82rem; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero-sub { font-size: 1.15rem; margin: 20px 0 28px; max-width: 520px; opacity: 0.95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta .mi { width: 18px; height: 18px; }
.hero-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; font-size: 0.92rem; opacity: 0.9; }
.hero-note svg { flex: none; margin-top: 3px; }
.hero-note .mi { width: 18px; height: 18px; color: var(--gold-400); }
.hero-note strong { color: var(--gold-400); }

/* ---- Booking search widget ------------------------------------------- */
.search-card {
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(48px) saturate(180%) brightness(1.15);
  backdrop-filter: blur(48px) saturate(180%) brightness(1.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  color: var(--ink);
}
/* Frosted-glass inputs so the fields sit on the glass rather than blocking it */
.search-card .field input,
.search-card .field select {
  background-color: rgba(231, 235, 228, 0.62);
}
.search-card .field input:focus,
.search-card .field select:focus {
  background-color: rgba(255, 255, 255, 0.95);
}
.search-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.search-card .muted { color: var(--wood-900); font-size: 0.9rem; margin-bottom: 18px; }
.search-card .field label { color: var(--wood-900); }
.search-card .field-hint { color: var(--wood-900); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 6px; }
/* Field interaction recipe (see /style-guide → Form fields):
   rest = sage square + faint forest hairline · hover (openable controls only) =
   stone-200 step · focus = white surface step + the same hairline deepened to
   1.5px forest + 4px 12% halo · keyboard = + solid 3px outline.
   Rest and focus share one silhouette, so clicking in refines rather than
   replaces the look. Rings are zero-blur — flat, no glow. */
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: max(16px, 1rem); /* under 16px triggers iOS focus auto-zoom */
  line-height: 1.4;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-btn); /* match the square radius of the buttons */
  background-color: var(--field);
  color: var(--ink);
  caret-color: var(--forest-500);
  color-scheme: light; /* native pickers & dropdown panels stay light */
  box-shadow: inset 0 0 0 1px var(--field-edge); /* elegant rest silhouette */
  transition: background-color 160ms ease, box-shadow 160ms ease;
  /* outline is deliberately not transitioned — the keyboard ring snaps in */
}
.field textarea { min-height: 96px; resize: vertical; }
::placeholder { color: var(--ink-soft); opacity: 0.75; }
/* Text entry stays inert on hover; click-to-open controls step one surface darker */
.field select:hover:not(:focus), .field input[type="date"]:hover:not(:focus) {
  background-color: var(--stone-200);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background-color: var(--white); /* the surface wakes up */
  box-shadow:
    inset 0 0 0 1.5px var(--focus-edge), /* the rest hairline, deepened */
    0 0 0 4px var(--focus-halo);         /* calm forest bloom */
  outline: 3px solid transparent;        /* invisible here; drawn by forced-colors mode */
  outline-offset: 2px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline-color: var(--forest-500); /* keyboard tier — snaps in instantly */
}

/* Custom select: native popup kept, chevron in --ink-soft (5.7:1 on --field) */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--icon-chevron);
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px auto;
  padding-right: 44px; /* Safari hard-clips select text — this budget is load-bearing */
  cursor: pointer;
}
.field select::-ms-expand { display: none; }

/* Date fields: Chromium glyph swapped to --ink-soft; other engines keep native */
.field input[type="date"] { cursor: pointer; }
.field input[type="date"]::-webkit-calendar-picker-indicator {
  color: transparent; /* hide default glyph, keep its hit target */
  opacity: 1;
  width: 18px;
  height: 18px;
  background: var(--icon-calendar) center / contain no-repeat;
  cursor: pointer;
}

/* Keep Chrome's autofill yellow off the sage palette */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: inset 0 0 0 1000px var(--field);
}
.field input:-webkit-autofill:focus {
  -webkit-box-shadow:
    inset 0 0 0 1px var(--focus-edge),
    inset 0 0 0 1000px var(--white),
    0 0 0 3px var(--focus-halo);
}

.field input:disabled, .field select:disabled, .field textarea:disabled {
  background-color: var(--stone-100);
  color: var(--ink-soft);
  cursor: not-allowed;
}

@media (forced-colors: active) {
  /* borderless filled pills vanish when backgrounds are forced */
  .field input, .field select, .field textarea, .search-box input, .res-composer textarea {
    border: 1px solid ButtonBorder;
  }
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }

/* ---- Trust bar -------------------------------------------------------- */
.trust {
  background: var(--wood-800);
  color: var(--stone-100);
  padding: 26px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { flex: none; color: var(--gold-400); }
.trust-item .mi { width: 26px; height: 26px; }
.trust-item strong { display: block; font-size: 0.98rem; color: var(--white); }
.trust-item span { font-size: 0.85rem; opacity: 0.8; }

/* ---- Rooms ------------------------------------------------------------ */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.room-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.room-photo svg { width: 100%; height: 100%; }
.room-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wood-800);
  padding: 5px 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}
/* Gold badge — shared across home, rooms results and reservation pages */
.res-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--gold-500); color: var(--wood-900); padding: 4px 10px; border-radius: 999px; }
.res-badge.subtle { background: var(--stone-200); color: var(--wood-700); }
.room-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.room-blurb { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; flex: 1; }
.room-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { font-size: 0.78rem; background: var(--stone-100); color: var(--wood-700); padding: 5px 10px; border-radius: 999px; font-weight: 500; }
.room-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.room-price .amount { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--wood-900); }
.room-price .per { color: var(--ink-soft); font-size: 0.85rem; }
.room-avail { font-size: 0.82rem; font-weight: 600; margin-top: 4px; }
.room-avail.ok { color: var(--forest-500); }
.room-avail.low { color: var(--amber-700); }
.room-avail.none { color: var(--danger-500); }

/* ---- Experiences ------------------------------------------------------ */
.exp { background: var(--stone-100); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex; align-items: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.exp-card .exp-bg { position: absolute; inset: 0; z-index: 0; }
.exp-card .exp-bg svg { width: 100%; height: 100%; object-fit: cover; }
/* Real photo layer — drop public/images/<img> in; if missing, the SVG shows. */
.exp-card .exp-photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.exp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20, 14, 8, 0.82) 100%); z-index: 1; }
.exp-body { position: relative; z-index: 2; padding: 22px; }
.exp-body h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 6px; }
.exp-body p { font-size: 0.92rem; opacity: 0.92; }
.exp-dist { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; background: rgba(255, 255, 255, 0.2); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.exp-wide { grid-column: span 2; }
.exp-card { transition: transform 0.2s ease; }
.exp-card:hover { transform: translateY(-4px); }
.exp-cta { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; color: var(--gold-400); }
.exp-card:hover .exp-cta { color: #fff; }

/* ---- Gallery ---------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px; }
.gallery-grid figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-grid figure svg { width: 100%; height: 100%; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-clickable { cursor: pointer; }
.g-clickable img { transition: transform 0.4s ease; }
.g-clickable:hover img { transform: scale(1.06); }

/* ---- Gallery lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(18, 12, 6, 0.95);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px;
}
.lightbox.open { display: flex; }
.lb-close {
  position: absolute; top: 18px; right: 20px;
  background: rgba(255, 255, 255, 0.14); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.28); }
.lb-stage { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1040px; }
.lb-stage img { flex: 1; min-width: 0; max-height: 72vh; object-fit: contain; border-radius: var(--radius); }
.lb-nav {
  flex: none; background: rgba(255, 255, 255, 0.14); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lb-meta { display: flex; justify-content: space-between; gap: 12px; width: 100%; max-width: 1040px; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; margin: 14px 0 12px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px 2px; scrollbar-width: thin; }
.lb-thumb { flex: none; width: 74px; height: 54px; border-radius: 9px; overflow: hidden; border: none; padding: 0; cursor: pointer; opacity: 0.45; transition: opacity 0.15s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: 0.8; }
.lb-thumb.active { opacity: 1; outline: 2px solid var(--gold-400); outline-offset: -2px; }

@media (max-width: 560px) {
  .lb-nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .lb-stage { gap: 8px; }
  .lb-stage img { max-height: 60vh; }
  .lb-thumb { width: 60px; height: 44px; }
}

/* ---- Reviews ---------------------------------------------------------- */
.reviews { background: var(--forest-700); color: var(--stone-50); }
.reviews h2 { color: var(--white); }
.reviews .section-head p { color: rgba(247, 247, 243, 0.85); }
.score-block { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.score-big { background: var(--gold-500); color: var(--wood-900); font-family: var(--font-serif); font-weight: 700; font-size: 2rem; width: 74px; height: 74px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.score-meta strong { font-size: 1.3rem; display: block; }
.score-meta span { opacity: 0.8; font-size: 0.9rem; }
.rating-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 30px; margin-bottom: 40px; max-width: 720px; }
.rating-bar span { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.rating-bar .track { height: 7px; background: rgba(255, 255, 255, 0.18); border-radius: 999px; overflow: hidden; }
.rating-bar .fill { height: 100%; background: var(--gold-400); border-radius: 999px; }
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 22px; }
.review-card .stars { color: var(--gold-400); margin-bottom: 10px; letter-spacing: 2px; }
.review-card .stars .mi.off { color: rgba(255, 255, 255, 0.25); }
.review-card p { font-size: 0.98rem; margin-bottom: 16px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-500); color: var(--wood-900); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.reviewer strong { display: block; font-size: 0.92rem; }
.reviewer span { font-size: 0.82rem; opacity: 0.75; }
.review-verified-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 0.72rem; font-weight: 700; color: var(--gold-400); background: rgba(255, 255, 255, 0.1); padding: 4px 9px; border-radius: 999px; }
.review-verified-chip .mi { width: 13px; height: 13px; }

/* Reviews-section CTA into the "Share your experience" modal. Centred under
   the review cards on the dark forest band. */
.reviews-cta { margin-top: 40px; text-align: center; }
.reviews-cta p { color: rgba(247, 247, 243, 0.85); margin-bottom: 16px; font-size: 1.02rem; }

/* ---- Leave a testimonial ---- */
.testi-form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px; max-width: 560px; margin: 0 auto; }
/* Intro copy at the top of the testimonial modal (was the section subhead). */
.testi-intro { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.field-optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.star-input { display: flex; gap: 4px; }
.star-btn { background: none; border: none; padding: 2px; cursor: pointer; color: var(--stone-200); transition: color 0.1s ease; }
.star-btn .mi { width: 28px; height: 28px; }
.star-btn:hover { color: var(--gold-500); }
.star-btn.active { color: var(--gold-500); }

/* Per-category ratings — a compact two-column grid of aspect + smaller stars.
   Reuses .star-input / .star-btn; .star-input-sm just shrinks the glyphs. */
.cat-ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-label { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.star-input-sm { gap: 2px; }
.star-input-sm .star-btn { padding: 1px; }
.star-input-sm .star-btn .mi { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .cat-ratings { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Standalone review page (QR / email / confirmation-page destination) ----
   No header bar — this page is reached by many different clients' guests, so
   there's no single site chrome to put one in. Instead the client's own
   logo/name (from /widget/api/config, set by review.js) sits centered above
   the card, mirroring the owner portal's own nav-brand mark (see
   .dash-nav-client-mark-wrap in admin.css) rather than this site's own
   header-bar treatment. */
body.review-page { background: var(--stone-100); min-height: 100vh; }
.review-main { padding: 40px 20px 60px; }
.review-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 26px; max-width: 560px; text-align: center; }
.review-brand[hidden] { display: none; }
.review-brand-mark {
  width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.review-brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-brand-monogram { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; }
.review-brand-name { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.review-head { margin-bottom: 22px; }
.review-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 6px 0 8px; }
.review-head p { color: var(--ink-soft); }
.review-verified { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 700; color: var(--forest-700); }
.review-verified .mi { width: 15px; height: 15px; }
.review-done { text-align: center; padding: 8px 0; }
.review-done-tick { display: inline-flex; color: var(--forest-500); margin-bottom: 8px; }
.review-done-tick .mi { width: 54px; height: 54px; }
.review-done h2 { font-size: 1.5rem; margin-bottom: 8px; }
.review-done p { color: var(--ink-soft); margin-bottom: 20px; }

/* ---- Location / Contact ---------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; }
.info-item svg { flex: none; color: var(--gold-700); margin-top: 2px; }
.info-item .mi { width: 22px; height: 22px; }
.info-item strong { display: block; }
.info-item span { color: var(--ink-soft); font-size: 0.95rem; }
.info-link { color: var(--ink-soft); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s; }
.info-link:hover { color: var(--forest-700); }
.ext-arrow { color: var(--forest-500); flex: none; margin-left: 1px; }
.ext-arrow.mi { width: 13px; height: 13px; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); aspect-ratio: 5 / 4; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---- Manage booking --------------------------------------------------- */
.manage { background: var(--stone-100); }
.manage-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 30px; max-width: 640px; margin: 0 auto; }
.manage-result { margin-top: 20px; padding: 18px; border-radius: var(--radius); background: var(--stone-50); border: 1px solid var(--line); display: none; }
.manage-result.show { display: block; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--wood-900); color: var(--stone-100); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-top h4 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 14px; color: var(--white); }
.footer-links { display: grid; gap: 9px; }
.footer-links a { opacity: 0.78; font-size: 0.95rem; }
.footer-links a:hover { opacity: 1; color: var(--gold-400); }
.footer-brand p { opacity: 0.78; font-size: 0.95rem; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; opacity: 0.7; }

/* ---- Booking modal ---------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 18, 10, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--stone-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px;
  margin: auto;
  overflow: hidden;
  animation: pop 0.25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { background: transparent; color: var(--wood-900); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.modal-head h3 { color: var(--wood-900); font-size: 1.25rem; }
.modal-head .steps { font-size: 0.82rem; color: var(--ink-soft); }
.modal-close { background: var(--stone-100); border: none; color: var(--wood-700); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.modal-close:hover { background: var(--stone-200); }
.modal-body { padding: 24px; }
.modal-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.summary-row .lbl { color: var(--ink-soft); }
.modal-msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; display: none; }
.modal-msg.err { display: block; background: var(--danger-100); color: var(--danger-700); }
.modal-msg.ok { display: block; background: var(--success-100); color: var(--success-700); }
.confirm-box { text-align: center; padding: 12px 0; }
.confirm-box .check { width: 66px; height: 66px; margin: 0 auto 16px; background: var(--forest-500); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.confirm-box .check .mi { width: 34px; height: 34px; }
.confirm-ref { font-family: var(--font-serif); font-size: 1.6rem; color: var(--wood-900); letter-spacing: 0.04em; margin: 8px 0 4px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .search-card { max-width: 480px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-wide { grid-column: span 2; }
  .review-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 480px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Collapse the nav to a hamburger before the links get cramped (tablet down) */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header .nav-actions .btn:not(.nav-toggle) { display: none; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--stone-50); padding: 18px 20px; gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .site-header.menu-open .nav-links a { color: var(--ink); font-size: 1.05rem; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding-top: 100px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(18, 12, 6, 0.58) 0%, rgba(18, 12, 6, 0.48) 45%, rgba(18, 12, 6, 0.78) 100%);
  }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .trust-grid { grid-template-columns: 1fr; }
  .rooms-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-wide { grid-column: span 1; }
  .rating-bars { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .modal-head { padding: 16px 18px; }
  .modal-body { padding: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ================= Flat + squircle refresh ============================ */
/* 1) No drop shadows anywhere */
:root { --shadow-sm: none; --shadow-md: none; --shadow-lg: none; }

/* 2) Squircle corners: DISABLED. corner-shape: superellipse() parses and
      reports correctly in current Chrome's computed styles, but the paint
      doesn't apply it — it renders the element with NO radius at all
      instead of falling back to plain round corners. Verified directly:
      an isolated test element with border-radius:24px + corner-shape:
      superellipse(4) painted as a hard-cornered square. Since this "free
      upgrade" actually breaks the soft-corner look it was meant to enhance,
      we rely on plain border-radius (below/on each component) instead.
      Revisit corner-shape once real-world Chrome support is reliable. */

/* 3) Remove decorative outlines (borders) + any remaining box-shadows.
      Form fields are NOT in this list — their rest/focus recipe (borderless
      sage fill, forest focus rings) is defined with the .field styles above. */
.btn, .site-header.solid, .search-card, .room-card, .exp-card, .review-card,
.map-card, .manage-card, .manage-result, .modal, .modal-summary, .stat,
.booking, .tabs, .mini-btn, .login-card, .login-hint, .hero-badge,
.modal-msg {
  box-shadow: none;
  border: none;
}

/* 4) The admin search pill follows the same field recipe */
.search-box input {
  border: none;
  background-color: var(--field);
  caret-color: var(--forest-500);
  box-shadow: inset 0 0 0 1px var(--field-edge); /* elegant rest silhouette */
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.search-box input:focus {
  background-color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--focus-edge), 0 0 0 4px var(--focus-halo);
  outline: 3px solid transparent;
  outline-offset: 2px;
}
.search-box input:focus-visible { outline-color: var(--forest-500); }

/* 5) Former outlined/ghost buttons get a soft fill instead of a border */
.btn-outline { background: var(--stone-100); }
.btn-ghost { background: rgba(255, 255, 255, 0.22); }
.mini-btn { background: var(--stone-100); }
.mini-btn:hover { background: var(--stone-200); }

/* ================= Booking: rooms · calendar · payment ================ */
.room-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.room-pill {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 128px; text-align: left; padding: 8px 12px; border-radius: 14px;
  background: var(--stone-100); border: 1.5px solid transparent; cursor: pointer;
  font-family: var(--font-sans); transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.room-pill:hover { background: var(--stone-200); box-shadow: 0 2px 8px rgba(45, 32, 20, 0.08); }
.room-pill-media { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; }
.room-pill-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-pill-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.room-pill-text strong { font-size: 0.9rem; color: var(--wood-900); }
.room-pill-text span { font-size: 0.78rem; color: var(--ink-soft); }
.room-pill-check {
  flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--stone-200);
  color: transparent; display: flex; align-items: center; justify-content: center;
}
.room-pill-check .mi { width: 14px; height: 14px; }
.room-pill.active { background: var(--wood-800); border-color: var(--wood-800); }
.room-pill.active .room-pill-text strong { color: #fff; }
.room-pill.active .room-pill-text span { color: rgba(255, 255, 255, 0.75); }
.room-pill.active .room-pill-check { background: var(--gold-400); color: var(--wood-900); }

/* Persistent check-in/check-out header above the calendar — the same
   two-box pattern Booking.com/Airbnb use so it's always visible (not just
   a hover preview) which date you're picking next, on desktop and touch. */
.date-fields { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; margin-bottom: 16px; }
.date-field {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 10px 14px; border-radius: var(--radius); background: var(--stone-100);
  border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-sans);
  transition: background 0.15s, border-color 0.15s;
}
.date-field:disabled { cursor: default; opacity: 0.6; }
.date-field:not(:disabled):hover { background: var(--stone-200); }
.date-field.active { background: var(--white); border-color: var(--forest-500); box-shadow: 0 0 0 3px var(--focus-halo); }
.date-field-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-soft); }
.date-field-value { font-family: var(--font-serif); font-size: 1.05rem; color: var(--wood-900); }
.date-field.active .date-field-value { color: var(--forest-700); }
.date-field-arrow { align-self: center; color: var(--ink-soft); font-size: 1.1rem; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-family: var(--font-serif); font-size: 1.1rem; }
.cal-nav { width: 36px; height: 36px; border-radius: 999px; border: none; background: var(--stone-100); cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--wood-800); }
.cal-nav:hover { background: var(--stone-200); }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dows { margin-bottom: 4px; }
.cal-dow { text-align: center; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); letter-spacing: 0.03em; }
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; aspect-ratio: 1 / 1; border: none; border-radius: 12px; background: var(--stone-100); cursor: pointer; font-family: var(--font-sans); padding: 2px; transition: background 0.12s; }
.cal-day .cal-num { font-size: 0.9rem; font-weight: 600; color: var(--wood-900); line-height: 1.05; }
.cal-day .cal-price { font-size: 0.6rem; color: var(--ink-soft); line-height: 1; }
.cal-day.available:hover { background: var(--sky-200); }
.cal-day.weekend .cal-price { color: var(--gold-700); font-weight: 700; }
.cal-day.past, .cal-day.unavailable { background: transparent; cursor: default; }
.cal-day.past .cal-num, .cal-day.unavailable .cal-num { color: #babdb0; }
.cal-day.unavailable .cal-price { color: #babdb0; }
.cal-day.outside { visibility: hidden; }
.cal-day.in-range { background: rgba(61, 100, 80, 0.16); }
.cal-day.start, .cal-day.end { background: var(--forest-500); }
.cal-day.start .cal-num, .cal-day.end .cal-num { color: #fff; }
.cal-day.start .cal-price, .cal-day.end .cal-price { color: rgba(255, 255, 255, 0.85); }
/* Live range preview while picking check-out: a lighter, tentative version of
   .in-range that follows the mouse, plus an outline on the would-be checkout
   day — makes it obvious the calendar (not just the sidebar) is still active. */
.cal-day.in-range-hover { background: rgba(61, 100, 80, 0.1); }
.cal-day.hover-end { box-shadow: inset 0 0 0 2px var(--forest-500); }

.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 2px 0; font-size: 0.74rem; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .dot { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }
.dot-avail { background: var(--stone-200); }
.dot-weekend { background: var(--gold-700); }
.dot-out { background: transparent; box-shadow: inset 0 0 0 1.5px #babdb0; }

.quote-hint { color: var(--ink-soft); font-size: 0.9rem; margin: 10px 2px; }

/* Reservation modal — time-slot picker (restaurant/bar table reservations) */
.res-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.res-slot {
  padding: 10px 8px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-family: var(--font-sans); font-weight: 600;
  font-size: 0.88rem; color: var(--ink); cursor: pointer; text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.res-slot:hover:not(:disabled) { border-color: var(--forest-500); }
.res-slot:focus-visible { outline: 3px solid var(--forest-500); outline-offset: 2px; }
.res-slot.on { background: var(--forest-500); border-color: var(--forest-500); color: var(--white); }
.res-slot:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.quote-box { background: var(--stone-100); border-radius: var(--radius); padding: 12px 16px; margin: 6px 0 16px; }
.quote-nights { display: grid; gap: 4px; margin-bottom: 8px; max-height: 132px; overflow-y: auto; }
.quote-night { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--ink-soft); }
.quote-night em { font-style: normal; font-size: 0.72rem; color: var(--gold-700); font-weight: 700; }

.modal-back { display: inline-block; margin: 0 0 14px; font-size: 0.85rem; font-weight: 600; color: var(--forest-500); cursor: pointer; }
.modal-back:hover { color: var(--forest-700); }
.inline-select {
  appearance: none; -webkit-appearance: none;
  border: none;
  background: var(--icon-chevron) no-repeat right 2px center / 10px auto;
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); font-weight: 600;
  padding: 2px 18px 2px 4px; cursor: pointer; text-align: right;
  border-radius: var(--radius-sm);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.inline-select:hover:not(:focus) { background-color: var(--stone-100); }
.inline-select:focus {
  background-color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--focus-edge), 0 0 0 4px var(--focus-halo);
  outline: 3px solid transparent;
  outline-offset: 2px;
}
.inline-select:focus-visible { outline-color: var(--forest-500); }
html[data-modality="pointer"] .inline-select:focus-visible { outline-color: transparent; }

.pay-title { font-family: var(--font-serif); font-size: 1.2rem; margin: 4px 0 12px; }
.pay-options { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-option { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: var(--radius); background: var(--stone-100); border: none; cursor: pointer; font-family: var(--font-sans); transition: background 0.15s; }
.pay-option .pay-txt { flex: 1; }
.pay-option .pay-txt strong { display: block; color: var(--wood-900); font-size: 0.98rem; }
.pay-option .pay-txt small { color: var(--ink-soft); font-size: 0.82rem; }
.pay-option .pay-check { position: relative; width: 24px; height: 24px; border-radius: 999px; background: var(--stone-200); color: transparent; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex: none; }
/* Real checkbox, visually hidden but still focusable/clickable — sized to
   exactly cover the .pay-check badge so it drives the badge's look via :has(). */
.pay-option .pay-check input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pay-option:has(.pay-check input:checked) { background: rgba(61, 100, 80, 0.12); }
.pay-option:has(.pay-check input:checked) .pay-check { background: var(--forest-500); color: #fff; }
.pay-option:has(.pay-check input:focus-visible) .pay-check { outline: 3px solid var(--focus-halo); outline-offset: 2px; }

/* ================= Room search results page =========================== */
.rooms-page { background: var(--stone-100); }
.rooms-main { padding: 104px 20px 60px; min-height: 70vh; }
.rooms-head { margin-bottom: 32px; }
/* Block (not inline) so its vertical margins actually apply — an inline span
   ignores them — giving the eyebrow equal breathing room above and below. */
.rooms-head .eyebrow { display: block; margin: 20px 0; }
.rooms-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; }
.rooms-sub { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.rooms-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--white); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 24px; }
.rooms-search .field { margin: 0; flex: 1; min-width: 140px; }
.rooms-search .btn { height: 48px; }
.rooms-search .btn-dark { background: transparent; color: var(--wood-800); border: 1.5px solid var(--gold-700); }
.rooms-search .btn-dark:hover { background: var(--stone-100); border-color: var(--wood-800); }

.rr-grid { display: grid; gap: 18px; }
.rr-card { display: grid; grid-template-columns: 260px 1fr 232px; gap: 22px; background: var(--white); border-radius: var(--radius-lg); padding: 18px; align-items: stretch; }
.rr-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; }
.rr-photo img { width: 100%; height: 100%; object-fit: cover; }
.rr-photo .res-badge { position: absolute; top: 12px; left: 12px; }
.rr-body { display: flex; flex-direction: column; padding: 4px 0; }
.rr-body h3 { font-size: 1.4rem; margin-bottom: 4px; }
.rr-specs { color: var(--wood-700); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.rr-desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.rr-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.rr-cta { display: flex; flex-direction: column; justify-content: center; gap: 6px; border-left: 1px solid var(--line); padding-left: 22px; }
.rr-avail { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.rr-avail.ok { color: var(--forest-500); }
.rr-avail.low { color: var(--amber-700); }
.rr-avail.none { color: var(--danger-500); }
.rr-price { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; }
.rr-price .amount { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; color: var(--wood-900); line-height: 1.1; }
.rr-price .per { font-size: 0.8rem; color: var(--ink-soft); }
.rr-pernight { font-size: 0.82rem; color: var(--ink-soft); }
.rr-cash { font-size: 0.8rem; font-weight: 600; color: var(--wood-700); margin-bottom: 4px; }
.rr-loading { color: var(--ink-soft); padding: 40px 0; text-align: center; }

@media (max-width: 860px) {
  .rr-card { grid-template-columns: 200px 1fr; }
  /* Stay a plain top-to-bottom stack here (avail → price → per-night → cash
     note → button) — switching to a wrapping row was what made this section
     read as a confusing zigzag instead of a clear price-then-action flow. */
  .rr-cta { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; flex-direction: column; align-items: stretch; gap: 6px; }
  .rr-cta .btn { width: 100%; margin-top: 6px; }
}
@media (max-width: 560px) {
  .rr-card { grid-template-columns: 1fr; }
  .rr-photo { min-height: 180px; }
  .rooms-search { flex-direction: column; align-items: stretch; }
  .rooms-search .btn { width: 100%; }
}

/* Wide two-column date step: calendar left, room picker + summary right */
.modal.modal-wide { max-width: 940px; }
.book-step1 { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.book-side { display: grid; gap: 14px; align-content: start; }
.book-side .room-pills { flex-direction: column; margin-bottom: 2px; }
.book-side .room-pill { width: 100%; min-width: 0; }
.book-side .quote-box { margin: 0; }
.book-cal .cal-day .cal-num { font-size: 1rem; }
.book-cal .cal-day .cal-price { font-size: 0.68rem; }

@media (max-width: 760px) {
  .modal.modal-wide { max-width: 560px; }
  .book-step1 { grid-template-columns: 1fr; gap: 16px; }
  .book-side .room-pills { flex-direction: row; }
  .book-side .room-pill { flex: 1; min-width: 128px; }
  .book-cal .cal-day .cal-num { font-size: 0.9rem; }
}

/* ================= Accessibility: visible keyboard focus =============== */
/* 3px forest ring on light surfaces; gold ring on dark surfaces where
   forest would vanish. :focus-visible keeps mouse clicks ring-free on
   buttons and links; form fields get their calm ring via the field recipe. */
:focus-visible {
  outline: 3px solid var(--forest-500);
  outline-offset: 2px;
}
.site-header:not(.solid) :focus-visible, .site-footer :focus-visible,
.res-header :focus-visible, .admin-header :focus-visible,
.trust :focus-visible, .reviews :focus-visible,
.modal-head :focus-visible, .lightbox :focus-visible,
.res-status.ok :focus-visible, .stat.accent :focus-visible {
  outline-color: var(--gold-400);
}

/* Browsers match :focus-visible on text fields even for mouse clicks (unlike
   buttons). A tiny listener in each page's <head> tags the interaction
   modality on <html>, so pointer clicks keep fields at the calm tier and the
   loud outline stays keyboard-only. Without the script this rule is inert. */
html[data-modality="pointer"] .field input:focus-visible,
html[data-modality="pointer"] .field select:focus-visible,
html[data-modality="pointer"] .field textarea:focus-visible,
html[data-modality="pointer"] .search-box input:focus-visible,
html[data-modality="pointer"] .res-composer textarea:focus-visible {
  outline-color: transparent;
}
