/* ─────────────────────────────────────────────────────────────
   TARA Bangkok Riverside — Design System
   Brand: chic lifestyle · wellness · river · nature.
   Tenor Sans (uppercase display) + Karla (body, light 300).
   Forest green / river earth / slate charcoal / cream.
   Reference: neeraretreathotel.com (full-bleed, minimal, calm).
   ───────────────────────────────────────────────────────────── */

:root {
  /* ── Palette (forest / earth / slate / cream) ───────────── */
  /* Tokens locked to update/mock up website.html — do not drift. */
  --forest:        #2C3B2D;   /* primary brand (deep forest green)        */
  --forest-deep:   #1F351F;   /* deeper variant for borders on dark        */
  --moss:          #4A5C3A;   /* primary CTA fill                          */
  --sage:          #6B7B5A;   /* subtle borders, captions on dark bg       */
  --sage-soft:     #8C9C7B;   /* even subtler sage for hover states        */
  --earth:         #6B4C3B;   /* accent — replaces italic emphasis         */
  --earth-deep:    #6B4C3B;   /* (kept as alias of --earth for compat)     */
  --bark:          #8B6B4A;   /* alt accent / warm bark                    */
  --slate:         #5C6062;   /* structure: footer, booking strip          */
  --slate-deep:    #2F2C28;   /* deeper structure for sub-footer           */
  --cream:         #E8DFD0;   /* page background (matches --parch)         */
  --parch:         #E8DFD0;   /* alt section bg / panels                   */
  --linen:         #D0C9B8;   /* dividers / borders / warm grey            */
  --charcoal:      #1C1F1A;   /* hero overlay anchor                       */

  /* ── Semantic aliases (preserve older rule compatibility) ── */
  --ink:           var(--slate);
  --ink-muted:     #6F6A63;
  --olive:         var(--moss);
  --olive-soft:    var(--sage);
  --olive-dark:    var(--forest);
  --sage-dark:     var(--forest);
  --rust:          var(--earth);     /* link / accent colour              */
  --rust-dark:     var(--earth-deep);
  --beige:         var(--linen);
  --line:          #DAD3C3;          /* hairline divider on cream         */
  --line-soft:     rgba(92, 96, 98, 0.18);
  --dark:          var(--charcoal);
  --dark-soft:     var(--slate);
  --footer-bg:     var(--slate);
  --cream-alt:     var(--parch);
  --cream-mid:     var(--linen);
  --white:         #FFFFFF;

  /* ── Typography ──────────────────────────────────────────
     Tenor Sans: ONLY weight 400, NO italic. Always UPPERCASE in display.
     For emphasis inside headings use colour (earth) — never italic.
     Karla: 300 body, 400 labels, 500 buttons.
     Thai pairing: IBM Plex Sans Thai (headings) + Sarabun (body). */
  --font-display:  'Tenor Sans', sans-serif;
  --font-body:     'Karla', sans-serif;
  --font-thai-display: 'IBM Plex Sans Thai', 'Tenor Sans', sans-serif;
  --font-thai-body:    'Sarabun', 'Karla', sans-serif;
  /* compat aliases */
  --font-sans:     var(--font-body);
  --font-serif:    var(--font-display);

  /* ── Layout ─────────────────────────────────────────────── */
  --nav-height:    96px;
  --section-py:    7rem;
  --container-max: 1280px;
}

@media (max-width: 768px) {
  :root { --section-py: 4.5rem; --nav-height: 68px; }
}

/* ── Base ─────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Belt-and-braces guard: long uppercase headlines with wide letter-spacing
   can otherwise force a horizontal scrollbar on narrow viewports. */
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Thai locale uses Sarabun for body. Headings will pick up IBM Plex Sans Thai
   via the font-display stack (it's listed before the Latin Tenor Sans). */
html[lang="th"] body { font-family: var(--font-thai-body); }
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4,
html[lang="th"] h5,
html[lang="th"] h6,
html[lang="th"] .eyebrow,
html[lang="th"] .footer-heading,
html[lang="th"] .footer-brand-main,
html[lang="th"] .nav-link {
  font-family: var(--font-thai-display);
  font-weight: 400;
  /* Thai never sits all-caps; the spec also says no italic.
     Remove the uppercase + extreme spacing for Thai. */
  text-transform: none;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--earth); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--earth-deep); }

/* Tenor Sans has no italic — never let the browser synthesize one.
   Anywhere we use <em> inside a heading or display element, render it as
   river earth, upright. */
h1, h2, h3, h4, h5, h6,
.eyebrow, .footer-heading, .nav-link,
.btn-tara, .btn-tara-ghost, .btn-tara-dark,
.hero h1, .hero h2 {
  font-style: normal !important;
}
em {
  font-style: normal;
  color: var(--earth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.18;
  margin: 0 0 1rem;
  /* Allow forced line breaks inside long uppercase words at narrow widths
     instead of overflowing the viewport. */
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: 0.06em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); letter-spacing: 0.08em; line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: 0.16em; line-height: 1.3; }
h4 { font-size: 0.95rem; letter-spacing: 0.18em; }
h5, h6 { font-size: 0.78rem; letter-spacing: 0.22em; color: var(--earth); }

/* Mobile: ease the tracking on display headings so wide-tracked uppercase
   doesn't push past the viewport. */
@media (max-width: 480px) {
  h1, h2, h3 { letter-spacing: 0.04em; }
  h2 { font-size: clamp(1.5rem, 6vw, 1.85rem); }
}

p { margin: 0 0 1rem; color: var(--slate); font-weight: 300; }
.lead { font-size: 1.075rem; line-height: 1.75; color: var(--slate); }

::selection { background: var(--moss); color: var(--cream); }

/* ── Layout helpers ───────────────────────────────────────── */

.section { padding: var(--section-py) 0; }
.section-alt { background: var(--parch); }
.section-dark {
  background: var(--forest);
  color: var(--cream);
}
.section-dark p { color: rgba(232, 223, 208, 0.75); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark .eyebrow { color: var(--sage-soft); }
.section-dark .eyebrow::before,
.section-dark .eyebrow::after { background: var(--sage); }

.container { max-width: var(--container-max); }

/* ── Eyebrow + dividers ───────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--earth);
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--earth);
}

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--earth);
  border: 0;
  margin: 1.75rem auto;
}
.section-divider-gold { background: var(--earth); }

/* ── Buttons (chic minimal — sharp corners, generous tracking) ── */

.btn-tara,
.btn-tara-ghost,
.btn-tara-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
  white-space: nowrap;
}
html[lang="th"] .btn-tara,
html[lang="th"] .btn-tara-ghost,
html[lang="th"] .btn-tara-dark {
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 400;
}

/* Primary — moss olive fill, parchment text */
.btn-tara {
  background: var(--moss);
  color: var(--cream);
  border-color: var(--moss);
}
.btn-tara:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

/* Inside the footer (charcoal bg) — moss fill, mockup-matched */
#main-footer .btn-tara {
  background: var(--moss);
  color: var(--parch);
  border-color: var(--moss);
}
#main-footer .btn-tara:hover {
  background: var(--moss);
  color: var(--parch);
  border-color: var(--moss);
  opacity: 0.85;
}

/* Ghost — forest outline on light bg */
.btn-tara-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-tara-ghost:hover {
  background: var(--forest);
  color: var(--cream);
}
.btn-tara-ghost.on-dark {
  color: var(--cream);
  border-color: rgba(232, 223, 208, 0.5);
}
.btn-tara-ghost.on-dark:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

.btn-tara-dark {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.btn-tara-dark:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-arrow::after {
  content: '→';
  font-size: 1rem;
  transition: transform .25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── Navigation (transparent on hero, deep charcoal on scroll) ── */

#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1030;
  padding: 22px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, padding .25s ease, border-color .4s ease;
}
#main-nav.scrolled {
  background: var(--charcoal);
  border-bottom-color: rgba(232, 223, 208, 0.08);
  padding: 12px 0;
}

#main-nav .navbar-brand {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0;
  flex-shrink: 0;
}
#main-nav .brand-logo {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: height .25s ease, filter .35s ease;
}
#main-nav.scrolled .brand-logo {
  height: 50px;
  filter: brightness(0) invert(1);   /* keep cream over charcoal */
}

@media (max-width: 768px) {
  #main-nav,
  #main-nav.scrolled {
    padding: 10px 0;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  #main-nav .brand-logo,
  #main-nav.scrolled .brand-logo { height: 40px; }
}

#main-nav .nav-link {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  padding: 10px 14px !important;
  transition: color .25s ease, text-shadow .25s ease;
  position: relative;
}
html[lang="th"] #main-nav .nav-link {
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 400;
}
#main-nav .nav-link:hover { color: var(--earth); text-shadow: none; }
#main-nav .nav-link.active { color: var(--earth); text-shadow: none; }
#main-nav.scrolled .nav-link { color: var(--cream); text-shadow: none; }
#main-nav.scrolled .nav-link:hover,
#main-nav.scrolled .nav-link.active { color: var(--earth); }

/* Book Now — moss outline default, fills moss on hover (mockup-matched) */
#main-nav .nav-link.nav-book {
  background: transparent;
  color: var(--parch) !important;
  border: 0.5px solid var(--moss);
  padding: 10px 22px !important;
  margin-left: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  white-space: nowrap;
  border-radius: 0;
  text-shadow: none;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
#main-nav .nav-link.nav-book:hover {
  background: var(--moss);
  color: var(--parch) !important;
  border-color: var(--moss);
}
#main-nav.scrolled .nav-link.nav-book {
  background: transparent;
  color: var(--parch) !important;
  border-color: var(--moss);
}
#main-nav.scrolled .nav-link.nav-book:hover {
  background: var(--moss);
  color: var(--parch) !important;
  border-color: var(--moss);
}

.navbar-toggler { border: 0; padding: 8px; filter: brightness(0) invert(1); }
#main-nav.scrolled .navbar-toggler { filter: brightness(0) invert(1); }
.navbar-toggler:focus { box-shadow: none; }

/* Language switcher */
.lang-switcher .nav-link { display: inline-flex; align-items: center; gap: 6px; }
.lang-flag { border: 1px solid rgba(0, 0, 0, 0.08); display: inline-block; vertical-align: middle; }
.lang-dropdown {
  border-radius: 0;
  border-color: var(--line);
  padding: 0;
  min-width: 160px;
  background: var(--cream);
}
.lang-dropdown .dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
}
.lang-dropdown .dropdown-item:hover { background: var(--parch); color: var(--forest); }
.lang-dropdown .dropdown-item.active { background: var(--parch); color: var(--forest); }
.lang-label {
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 300;
}

/* Tight zone — nav expanded but container is only ~1185px, so trim nav-link
   horizontal padding so the 9 items + lang + book button fit without overflow. */
@media (min-width: 1200px) and (max-width: 1299.98px) {
  #main-nav .nav-link { padding: 10px 8px !important; }
  #main-nav .nav-link.nav-book { padding: 10px 18px !important; margin-left: 6px; }
}

/* Collapsed nav panel — applies whenever the nav is in hamburger mode (≤1199.98) */
@media (max-width: 1199.98px) {
  #main-nav .navbar-collapse {
    position: relative;
    background: var(--charcoal);
    margin: 14px -12px -10px;
    padding: 24px 28px;
    border-top: 1px solid rgba(232, 223, 208, 0.08);
  }
  #main-nav .nav-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--cream);
    font-size: 1.1rem;
    line-height: 1;
    z-index: 1;
  }
  #main-nav .nav-close:hover,
  #main-nav .nav-close:focus { color: var(--earth); outline: none; }
  #main-nav .nav-link { color: var(--cream) !important; padding: 12px 0 !important; }
  #main-nav .nav-link.nav-book {
    color: var(--cream) !important;
    margin: 14px 0 0 !important;
    display: inline-flex !important;
    align-self: flex-start;
  }
  #main-nav .nav-link.nav-book:hover { color: var(--cream) !important; }
}

/* Mobile sticky bottom bar */
.mobile-book-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1029;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--slate);
  color: var(--cream);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}
.mobile-book-bar span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.mobile-book-bar span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-book-bar .btn-tara {
  height: 38px;
  padding: 0 14px;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--parch);
  border-color: var(--moss);
  background: var(--moss);
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .mobile-book-bar { padding: 10px 12px; gap: 8px; }
  .mobile-book-bar span { font-size: 0.72rem; }
  .mobile-book-bar .btn-tara {
    padding: 0 12px;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }
}
.mobile-book-bar .btn-tara:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
@media (max-width: 768px) {
  .mobile-book-bar { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroBreathe 24s ease-in-out infinite alternate;
}
@keyframes heroBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Hero gradient overlay (darker at top + bottom so the booking strip reads) */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(28, 31, 26, 0.35) 0%,
      rgba(28, 31, 26, 0.10) 25%,
      rgba(28, 31, 26, 0.10) 55%,
      rgba(28, 31, 26, 0.60) 100%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}
.page-hero .hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 31, 26, 0.35) 0%, rgba(28, 31, 26, 0.6) 100%);
}
.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: 0.08em;
}

/* ── Booking widget (overlaid on hero) ───────────────────── */

.booking-wrap {
  position: relative;
  z-index: 5;
  margin-top: -130px;
  margin-bottom: 60px;
}

.booking-widget {
  background: var(--slate);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 32px;
  align-items: end;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 18px 50px rgba(28, 31, 26, 0.25);
  border-top: 2px solid var(--earth);
}
.booking-field {
  position: relative;
}
.booking-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--linen);
  margin-bottom: 8px;
}
html[lang="th"] .booking-field label {
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.78rem;
}
.booking-field input,
.booking-field select {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(232, 223, 208, 0.3);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cream);
  outline: none;
  transition: border-color .25s ease;
}
.booking-field input::placeholder,
.booking-field select option {
  color: var(--linen);
}
.booking-field input::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(0.1);
  cursor: pointer;
}
.booking-field input:focus,
.booking-field select:focus { border-color: var(--earth); }
.booking-widget button.btn-tara {
  height: 46px;
  padding: 0 32px;
  background: var(--moss);
  border-color: var(--moss);
}
.booking-widget button.btn-tara:hover {
  background: var(--moss);
  color: var(--parch);
  border-color: var(--moss);
  opacity: 0.85;
}
.booking-hint {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  font-size: 0.66rem;
  color: var(--linen);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
html[lang="th"] .booking-hint {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .booking-wrap { margin-top: -40px; margin-bottom: 40px; }
  .booking-widget {
    grid-template-columns: 1fr 1fr;
    padding: 22px;
    gap: 22px 18px;
  }
  .booking-widget button.btn-tara { grid-column: 1 / -1; }
}

/* ── Stats bar ────────────────────────────────────────────── */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--linen);
  border-bottom: 1px solid var(--linen);
  margin-top: 4rem;
}
.stat {
  text-align: center;
  padding: 2.25rem 1rem;
  border-right: 1px solid var(--linen);
}
.stat:last-child { border-right: 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--earth);
}
html[lang="th"] .stat-label {
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.85rem;
}
@media (max-width: 576px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--linen); }
  .stat-num { font-size: 1.85rem; }
}

/* ── Highlight grid (3 tiles) ─────────────────────────────── */

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.highlight-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--charcoal);
  border-radius: 0 40px 0 0;
}
.highlight-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.highlight-card:hover img { transform: scale(1.06); }
.highlight-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(28, 31, 26, 0.78) 100%);
}
.highlight-card .label {
  position: absolute;
  left: 32px; right: 32px; bottom: 30px;
  z-index: 2;
  color: var(--cream);
}
.highlight-card .label .eyebrow {
  color: var(--linen);
  margin-bottom: 10px;
}
.highlight-card .label .eyebrow::before { background: var(--linen); }
.highlight-card .label h3 {
  color: var(--cream);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.highlight-card .label a,
.highlight-card .label span {
  color: var(--earth);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
html[lang="th"] .highlight-card .label a,
html[lang="th"] .highlight-card .label span {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
}
.highlight-card .label a:hover { color: var(--cream); }

@media (max-width: 768px) {
  .highlight-grid { grid-template-columns: 1fr; }
  .highlight-card { aspect-ratio: 16 / 11; }
}

/* ── Guarantee row (5 items) ──────────────────────────────── */

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.guarantee { text-align: center; }
.guarantee-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--earth);
  border-radius: 50%;
  color: var(--earth);
  font-size: 1.45rem;
}
.guarantee h4 {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  color: var(--forest);
}
.guarantee p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.75;
}
@media (max-width: 992px) {
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .guarantee:nth-child(5) { grid-column: 1 / -1; max-width: 320px; margin: 0 auto; }
}

/* ── Room cards ──────────────────────────────────────────── */

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 992px) { .room-grid { grid-template-columns: 1fr; } }

.room-card {
  background: transparent;
  position: relative;
}
.room-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0 40px 0 0;
}
.room-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.room-card:hover .room-card-image img { transform: scale(1.06); }
.room-card-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
html[lang="th"] .room-card-badge {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.78rem;
}
.room-card-body { padding: 28px 0 0; }
.room-card-body h3 {
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}
.room-card-meta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 14px;
}
html[lang="th"] .room-card-meta {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.82rem;
}
.room-card-body p { font-size: 0.9rem; margin-bottom: 18px; color: var(--ink-muted); }
.room-card-cta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--earth);
  padding-bottom: 4px;
}
html[lang="th"] .room-card-cta {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
}
.room-card-cta:hover { color: var(--earth); }

/* ── Two-column image + text ──────────────────────────────── */

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.media-split.reverse > div:first-child { order: 2; }
.media-split img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border-radius: 0 40px 0 0;
}
@media (max-width: 992px) {
  .media-split { grid-template-columns: 1fr; gap: 32px; }
  .media-split.reverse > div:first-child { order: 0; }
}

/* ── Contact: form + info sidebar ─────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Getting here: location info + map ────────────────────── */

.location-map-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .location-map-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Map embed ────────────────────────────────────────────── */

.map-embed {
  width: 100%;
  aspect-ratio: 21 / 9;
  border: 0;
  filter: grayscale(0.25) contrast(0.95);
}

/* ── Footer (deep charcoal bg, fully readable cream text) ── */

#main-footer {
  background: var(--charcoal);
  color: rgba(232, 223, 208, 0.78);
  padding: 5.5rem 0 2rem;
  border-top: 2px solid var(--earth);
}
@media (max-width: 768px) {
  #main-footer { padding-bottom: calc(2rem + 72px + env(safe-area-inset-bottom, 0px)); }
}
.footer-brand-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}
.footer-brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--earth);
  margin-top: 10px;
  margin-bottom: 1.5rem;
}
html[lang="th"] .footer-brand-main { letter-spacing: 0.05em; }
html[lang="th"] .footer-brand-sub { letter-spacing: 0.04em; text-transform: none; }
#main-footer p {
  color: rgba(232, 223, 208, 0.72);
  font-size: 0.92rem;
  line-height: 1.85;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
html[lang="th"] .footer-heading { letter-spacing: 0.04em; text-transform: none; font-size: 0.9rem; }
/* In the lg range the link columns are only col-lg-2 (~167–202px) — tighten
   the heading letter-spacing so longer words ("INFORMATION") don't wrap. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .footer-heading { letter-spacing: 0.2em; }
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: rgba(232, 223, 208, 0.72);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color .25s ease, padding .25s ease;
}
.footer-links a:hover { color: var(--earth); padding-left: 6px; }

#main-footer a { color: rgba(232, 223, 208, 0.78); overflow-wrap: anywhere; }
#main-footer a:hover { color: var(--earth); }

.social-links { display: flex; gap: 14px; margin-top: 1.25rem; }
.social-links a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232, 223, 208, 0.3);
  border-radius: 50%;
  color: rgba(232, 223, 208, 0.85);
  transition: all .25s ease;
}
.social-links a:hover {
  background: var(--earth);
  border-color: var(--earth);
  color: var(--cream);
}

.footer-divider { border-color: rgba(232, 223, 208, 0.14); margin: 3rem 0 1.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(232, 223, 208, 0.58);
  letter-spacing: 0.02em;
}
.footer-bottom a { margin-left: 18px; color: rgba(232, 223, 208, 0.58); }
.footer-bottom a:hover { color: var(--earth); }

/* ── Reveal on scroll ─────────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(0.2, 0.7, 0.2, 1), transform .9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fade-up.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-media { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Lazy images ──────────────────────────────────────────── */

.lazy { opacity: 0; transition: opacity .6s ease; }
.lazy.loaded { opacity: 1; }

/* ─────────────────────────────────────────────────────────────
   PAGE-LEVEL COMPONENTS (inner pages)
   ───────────────────────────────────────────────────────────── */

.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  color: var(--linen);
  justify-content: center;
}
.page-hero .eyebrow::before, .page-hero .eyebrow::after {
  background: var(--linen);
}
.page-hero-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 223, 208, 0.78);
  margin-top: 1rem;
}
html[lang="th"] .page-hero-breadcrumb {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
}
.page-hero-breadcrumb a { color: rgba(232, 223, 208, 0.78); }
.page-hero-breadcrumb a:hover { color: var(--earth); }

.section-title-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-title-block.left { text-align: left; margin-left: 0; }
.section-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-muted);
  font-weight: 300;
}

/* Room detail block (alternating sides) */
.room-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 5rem;
}
.room-detail.reverse > div:first-child { order: 2; }
.room-detail-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0 40px 0 0;
}
.room-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-detail-badge {
  display: inline-block;
  background: transparent;
  color: var(--earth);
  border: 1px solid var(--earth);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border-radius: 0;
  max-width: 100%;
  line-height: 1.7;
}
html[lang="th"] .room-detail-badge {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.82rem;
  word-break: break-word;
}
.room-detail h2 { margin-bottom: 0.6rem; }
.room-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink-muted);
  margin: 16px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.room-detail-meta span { display: inline-flex; align-items: center; gap: 8px; }
.room-detail-meta i { color: var(--earth); }
.room-features-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.room-features-list li {
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding-left: 18px;
  position: relative;
  font-weight: 300;
}
.room-features-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  top: -4px;
  color: var(--earth);
  font-size: 1.4rem;
  line-height: 1;
}
.room-extra-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 22px;
  font-weight: 300;
}
@media (max-width: 992px) {
  .room-detail { grid-template-columns: 1fr; gap: 32px; }
  .room-detail.reverse > div:first-child { order: 0; }
  .room-features-list { grid-template-columns: 1fr; }
}

/* Generic card grid (3-up) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) {
  .card-grid, .card-grid-2, .card-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 992px) {
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Centered variant — last row's items are centered instead of left-aligned.
   Only active on desktop; mobile/tablet fall back to the standard grid. */
@media (min-width: 993px) {
  .card-grid-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }
  .card-grid-center.card-grid    > * { flex: 0 0 calc((100% - 2 * 32px) / 3); }
  .card-grid-center.card-grid-2  > * { flex: 0 0 calc((100% - 32px) / 2); }
  .card-grid-center.card-grid-4  > * { flex: 0 0 calc((100% - 3 * 32px) / 4); }
}

/* Feature card (icon + heading + text) */
.feature-card {
  background: var(--cream);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--line-soft);
}
.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--earth);
  border-radius: 50%;
  color: var(--earth);
  font-size: 1.4rem;
}
.feature-card h3, .feature-card h4 {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.85;
}

/* Image card */
.image-card { background: transparent; }
.image-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0 40px 0 0;
}
.image-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.image-card:hover .image-card-img img { transform: scale(1.06); }
.image-card-body { padding: 24px 0 0; }
.image-card-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 12px;
}
html[lang="th"] .image-card-badge {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.82rem;
}
.image-card-body h3 {
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.image-card-body p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.image-card-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.image-card-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 300;
}
.image-card-meta-row:last-child { border-bottom: 0; }

/* Offers grid — equalize title block so descriptions start on the same line
   and pin the CTA to the bottom so buttons align across cards. */
.offers-card-grid .image-card { display: flex; flex-direction: column; height: 100%; }
.offers-card-grid .image-card-body { display: flex; flex-direction: column; flex: 1; }
.offers-card-grid .image-card-body h3 { min-height: calc(2 * 1.2rem * 1.3); }
.offers-card-grid .image-card-body .btn-tara { margin-top: auto; }
@media (max-width: 767.98px) {
  .offers-card-grid .image-card-body h3 { min-height: 0; }
}

/* Hours / info pill */
.info-pill {
  display: inline-flex;
  gap: 18px;
  background: var(--parch);
  padding: 14px 22px;
  margin-top: 16px;
  border-left: 3px solid var(--earth);
}
.info-pill-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
}
html[lang="th"] .info-pill-label {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
}
.info-pill-value {
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 300;
}

/* Wellness — monthly events schedule */
.wellness-schedule {
  max-width: 860px;
  margin: 3.5rem auto 0;
  padding: 4px 0 4px 40px;
  border-left: 3px solid var(--earth);
}
.wellness-schedule-head {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.wellness-schedule-head h3 {
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  margin: 0;
}
.wellness-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.wellness-row:last-of-type { border-bottom: 0; padding-bottom: 8px; }
.wellness-date { text-align: center; }
.wellness-date .w-month,
.wellness-date .w-dow {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.wellness-date .w-month { color: var(--earth); }
.wellness-date .w-dow { color: var(--ink-muted); margin-top: 4px; }
.wellness-date .w-day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--forest);
}
html[lang="th"] .wellness-date .w-month,
html[lang="th"] .wellness-date .w-dow {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.78rem;
}
html[lang="th"] .wellness-date .w-day { font-family: var(--font-thai-display); }
.wellness-events { display: flex; flex-direction: column; gap: 12px; }
.wellness-event {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.wellness-event-name {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.6;
}
.wellness-event-time {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--forest);
  white-space: nowrap;
}
.wellness-event-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin: -6px 0 0;
}
.wellness-schedule-foot {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.wellness-schedule-foot i { color: var(--earth); }
@media (max-width: 575.98px) {
  .wellness-schedule { padding: 4px 0 4px 18px; }
  .wellness-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .wellness-date { display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .wellness-date .w-day { font-size: 1.25rem; line-height: 1; }
  .wellness-date .w-dow { margin-top: 0; }
  .wellness-event { flex-direction: column; gap: 2px; }
}

/* Contact / address block */
.info-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--parch);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--earth);
  font-size: 1.05rem;
}
.info-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--earth);
  display: block;
  margin-bottom: 6px;
}
html[lang="th"] .info-label {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.82rem;
}
.info-value {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  color: var(--slate);
  font-weight: 300;
}
.info-value a { color: var(--forest); }
.info-value a:hover { color: var(--earth); }

/* Contact form */
.form-tara label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 8px;
}
html[lang="th"] .form-tara label {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.82rem;
}
.form-tara input[type="text"],
.form-tara input[type="email"],
.form-tara input[type="tel"],
.form-tara input[type="date"],
.form-tara select,
.form-tara textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--slate);
  outline: none;
  transition: border-color .25s ease;
}
.form-tara input:focus,
.form-tara select:focus,
.form-tara textarea:focus { border-color: var(--earth); }
.form-tara textarea { resize: vertical; min-height: 130px; }
.form-tara .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-tara .field { margin-bottom: 18px; }
.form-tara .field-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 300;
  margin-bottom: 18px;
}
.form-tara .field-checkbox input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--earth); }
.form-tara .field-checkbox a { color: var(--earth); text-decoration: underline; }
@media (max-width: 768px) {
  .form-tara .field-row { grid-template-columns: 1fr; }
}

.alert-tara {
  padding: 16px 20px;
  border-radius: 0;
  margin-bottom: 22px;
  font-size: 0.92rem;
  font-weight: 300;
}
.alert-tara-success {
  background: rgba(74, 92, 58, 0.12);
  color: var(--moss);
  border-left: 3px solid var(--moss);
}
.alert-tara-error {
  background: rgba(107, 76, 59, 0.10);
  color: var(--earth-deep);
  border-left: 3px solid var(--earth);
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
}
.gallery-filter-btn {
  padding: 9px 22px;
  background: transparent;
  border: 1px solid var(--forest);
  border-radius: 0;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}
html[lang="th"] .gallery-filter-btn {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
}
.gallery-filter-btn:hover { color: var(--earth); border-color: var(--earth); }
.gallery-filter-btn.active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0 40px 0 0;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(44, 59, 45, 0);
  display: flex; align-items: center; justify-content: center;
  color: rgba(232, 223, 208, 0);
  font-size: 1.8rem;
  transition: all .3s ease;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(44, 59, 45, 0.45);
  color: rgba(232, 223, 208, 0.95);
}
@media (max-width: 992px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(28, 31, 26, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: transparent; border: 0;
  color: var(--cream); font-size: 1.8rem; cursor: pointer;
}

/* Policy (terms / privacy) content */
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-content h2,
.policy-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--forest);
}
.policy-content h3 { font-size: 1.05rem; letter-spacing: 0.18em; }
.policy-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 300;
  color: var(--slate);
}
.policy-content ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}
.policy-content li {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 8px;
  font-weight: 300;
}
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0 1.5rem;
}
.policy-content th, .policy-content td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.policy-content th {
  background: var(--parch);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
html[lang="th"] .policy-content th {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
}
.policy-content td {
  color: var(--ink-muted);
  font-weight: 300;
}
.policy-content .policy-note {
  background: var(--parch);
  border-left: 3px solid var(--earth);
  padding: 18px 22px;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  font-weight: 300;
}

/* CTA banner */
.cta-banner {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.cta-banner h2 { color: var(--cream); }
.cta-banner p {
  color: rgba(232, 223, 208, 0.78);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-weight: 300;
}
.cta-banner .btn-row {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-banner .eyebrow {
  color: var(--sage-soft);
  justify-content: center;
}
.cta-banner .eyebrow::before,
.cta-banner .eyebrow::after { background: var(--sage); }
.cta-banner .btn-tara-ghost {
  color: var(--cream);
  border-color: rgba(232, 223, 208, 0.5);
}
.cta-banner .btn-tara-ghost:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

/* ─────────────────────────────────────────────────────────────
   HOMEPAGE v2 — mockup-driven sections
   Hero pill / large display headline / intro split / pillars /
   full-bleed quote / time-of-day / alt rooms / dining-split /
   pool-spread / experiences / newsletter.
   ───────────────────────────────────────────────────────────── */

/* ── Home hero (large display + pill + scroll hint) ────────── */

.home-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.home-hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%;
  animation: heroBreathe 24s ease-in-out infinite alternate;
  z-index: 0;
}
.home-hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(28, 31, 26, 0.30) 0%,
      rgba(28, 31, 26, 0.05) 28%,
      rgba(28, 31, 26, 0.10) 55%,
      rgba(28, 31, 26, 0.85) 100%);
  z-index: 1;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 96px 72px;
  max-width: 920px;
}
.home-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(28, 31, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 223, 208, 0.35);
  padding: 8px 18px;
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 700ms ease-out 200ms forwards;
}
.home-hero-pill-dot {
  width: 6px; height: 6px;
  background: var(--earth);
  border-radius: 50%;
  animation: hpulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(107, 76, 59, 0.6);
}
@keyframes hpulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}
.home-hero-pill-txt {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
html[lang="th"] .home-hero-pill-txt {
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.82rem;
}
.home-hero-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
  margin: 0 0 24px;
  opacity: 0;
  animation: riseIn 1000ms ease-out 500ms forwards;
}
.home-hero-h em { color: var(--bark); font-style: normal; }
html[lang="th"] .home-hero-h {
  font-family: var(--font-thai-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.1;
}
.home-hero-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(232, 223, 208, 0.6);
  margin-bottom: 44px;
  font-weight: 300;
  opacity: 0;
  animation: riseIn 800ms ease-out 900ms forwards;
}
html[lang="th"] .home-hero-tagline {
  font-family: var(--font-thai-body);
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.95rem;
}
.home-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 700ms ease-out 1200ms forwards;
}

.home-hero-scroll {
  position: absolute;
  right: 56px;
  bottom: 96px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: riseIn 600ms ease-out 1700ms forwards;
}
.home-hero-scroll-line {
  width: 1px;
  height: 56px;
  background: var(--sage-soft);
  animation: scrollDrop 2.5s ease-in-out 2.5s infinite;
}
@keyframes scrollDrop {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50%      { transform: scaleY(1);   opacity: 0.85; }
}
.home-hero-scroll-txt {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-soft);
  writing-mode: vertical-rl;
  font-weight: 400;
}
html[lang="th"] .home-hero-scroll-txt {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.78rem;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .home-hero-content {
    padding: 0 24px 80px 24px;
    max-width: 100%;
  }
  .home-hero-scroll { display: none; }
  /* The uppercase tagline at 0.32em tracking is too wide for narrow phones.
     Loosen the wrap rules and ease the tracking so it fits. */
  .home-hero-tagline {
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    white-space: normal;
    margin-bottom: 32px;
  }
  .home-hero-pill {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .home-hero-pill-txt {
    letter-spacing: 0.22em;
    font-size: 0.6rem;
  }
  .home-hero-h {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
    letter-spacing: 0.06em;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* ── Booking strip (full-width, slate, below hero) ───────── */

.booking-strip {
  background: var(--charcoal);
  padding: 0 56px;
  display: flex;
  align-items: stretch;
  border-top: 0.5px solid #252820;
}
.booking-strip-field {
  flex: 1;
  padding: 22px 28px;
  border-right: 0.5px solid rgba(74, 92, 58, 0.2);
  transition: background 250ms;
}
.booking-strip-field:hover { background: rgba(74, 92, 58, 0.07); }
.booking-strip-field:last-of-type { border-right: 0; }
.bk-strip-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
html[lang="th"] .bk-strip-label {
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.78rem;
}
.bk-strip-field input,
.booking-strip-field input {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--parch);
  outline: none;
}
.booking-strip-field input::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(0.1);
  cursor: pointer;
}
.bk-strip-val {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--parch);
}
.booking-strip-btn {
  background: var(--moss);
  border: 0;
  padding: 0 44px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--parch);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 250ms;
}
html[lang="th"] .booking-strip-btn {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 400;
}
.booking-strip-btn:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .booking-strip {
    padding: 0;
    flex-direction: column;
  }
  .booking-strip-field {
    border-right: 0;
    border-bottom: 0.5px solid rgba(74, 92, 58, 0.2);
    padding: 18px 24px;
  }
  .booking-strip-btn { padding: 18px 28px; }
}

/* ── Intro split (forest panel left, photo right) ───────── */

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 86vh;
}
.intro-split-left {
  background: var(--forest);
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.intro-split-right {
  position: relative;
  overflow: hidden;
}
.intro-split-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s ease-out;
}
.intro-split-right:hover .intro-split-photo { transform: scale(1.04); }
.intro-split-left .eyebrow { color: var(--sage-soft); }
.intro-split-left .eyebrow::before { background: var(--sage); }
.intro-split-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.2;
  margin: 0 0 30px;
}
html[lang="th"] .intro-split-h {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.35;
}
.intro-split-h em { color: var(--bark); font-style: normal; }
.gold-rule {
  width: 40px;
  height: 1px;
  background: var(--earth);
  margin-bottom: 30px;
}
.intro-split-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(232, 223, 208, 0.78);
  line-height: 2.1;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 520px;
}
html[lang="th"] .intro-split-body {
  font-family: var(--font-thai-body);
  font-size: 0.98rem;
  line-height: 1.95;
}
.btn-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--earth);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: gap 250ms, color 250ms;
}
html[lang="th"] .btn-text {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.btn-text::after { content: '→'; font-size: 1rem; }
.btn-text:hover { gap: 22px; color: var(--cream); }
.intro-split-left .btn-text:hover { color: var(--cream); }

@media (max-width: 992px) {
  .intro-split { grid-template-columns: 1fr; min-height: 0; }
  .intro-split-left { padding: 70px 32px; }
  .intro-split-right { min-height: 360px; }
}

/* ── Three pillars (parchment with hairline separators) ── */

.pillars {
  background: var(--linen);
  padding: 80px 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.pillar {
  background: var(--parch);
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--linen);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 18px;
}
.pillar-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 16px;
}
html[lang="th"] .pillar-label {
  font-family: var(--font-thai-body);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.pillar-body {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 2;
  font-weight: 300;
  margin-bottom: 14px;
}
html[lang="th"] .pillar-body { font-family: var(--font-thai-body); font-size: 0.95rem; line-height: 1.95; }
.pillar-accent {
  font-size: 0.78rem;
  color: var(--earth);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-body);
}
html[lang="th"] .pillar-accent {
  font-family: var(--font-thai-body);
  letter-spacing: 0.02em;
}

@media (max-width: 992px) {
  .pillars { grid-template-columns: 1fr; gap: 1px; padding: 40px 24px; }
}

/* ── Full-bleed pull-quote ──────────────────────────────── */

.fb-quote {
  height: 82vh;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-quote-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.fb-quote-overlay {
  position: absolute; inset: 0;
  background: rgba(28, 31, 26, 0.55);
}
.fb-quote-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8vw;
  max-width: 1100px;
}
.fb-pull {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.85rem);
  font-weight: 400;
  font-style: normal;
  color: var(--cream);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
  text-transform: none;
}
html[lang="th"] .fb-pull {
  font-family: var(--font-thai-display);
  letter-spacing: 0.01em;
  line-height: 1.6;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.fb-pull-author {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-soft);
  font-weight: 400;
}
html[lang="th"] .fb-pull-author {
  font-family: var(--font-thai-body);
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.88rem;
}

/* ── Time of day (4 photo cards on charcoal) ────────────── */

.tod {
  background: var(--charcoal);
  padding: 96px 56px;
}
.tod-header { margin-bottom: 56px; max-width: 560px; }
.tod-header .eyebrow { color: var(--sage-soft); }
.tod-header .eyebrow::before { background: var(--sage); }
.tod-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 16px;
}
html[lang="th"] .tod-h {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
}
.tod-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--linen);
  line-height: 1.95;
  font-weight: 300;
}
html[lang="th"] .tod-sub { font-family: var(--font-thai-body); font-size: 1rem; }
.tod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.tod-card {
  position: relative;
  height: 460px;
  overflow: hidden;
  cursor: pointer;
}
.tod-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 800ms ease-out;
}
.tod-card:hover .tod-img { transform: scale(1.06); }
.tod-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 31, 26, 0.1) 28%, rgba(28, 31, 26, 0.92) 100%);
}
.tod-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 26px;
  transform: translateY(8px);
  transition: transform 400ms ease-out;
}
.tod-card:hover .tod-content { transform: translateY(0); }
.tod-time {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin-bottom: 10px;
}
html[lang="th"] .tod-time {
  font-family: var(--font-thai-body);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.82rem;
}
.tod-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.2;
  margin: 0 0 12px;
}
html[lang="th"] .tod-title {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
}
.tod-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(208, 201, 184, 0.68);
  line-height: 1.85;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms ease-out;
}
html[lang="th"] .tod-desc { font-family: var(--font-thai-body); font-size: 0.88rem; }
.tod-card:hover .tod-desc { max-height: 140px; }

@media (max-width: 992px) {
  .tod-grid { grid-template-columns: repeat(2, 1fr); }
  .tod-card { height: 380px; }
  .tod-desc { max-height: 140px; }   /* always show on touch */
}
@media (max-width: 560px) {
  .tod-grid { grid-template-columns: 1fr; }
}

/* ── Rooms — alternating media-text rows ────────────────── */

.rooms-alt { padding: 96px 0 0; background: var(--cream); }
.rooms-alt-header { padding: 0 72px 56px; max-width: 720px; }
.rooms-alt-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 16px;
}
html[lang="th"] .rooms-alt-h {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
}
.rooms-alt-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.95;
  font-weight: 300;
}
html[lang="th"] .rooms-alt-sub { font-family: var(--font-thai-body); font-size: 1rem; }

.room-row { display: grid; grid-template-columns: 1fr 1fr; }
.room-row:nth-of-type(even) .room-row-img { order: 2; }
.room-row:nth-of-type(even) .room-row-txt { order: 1; background: var(--forest); }
.room-row:nth-of-type(even) .room-row-txt .room-row-cat   { color: var(--sage-soft); }
.room-row:nth-of-type(even) .room-row-txt .room-row-name,
.room-row:nth-of-type(even) .room-row-txt .room-row-stat-val { color: var(--cream); }
.room-row:nth-of-type(even) .room-row-txt .room-row-desc     { color: rgba(232, 223, 208, 0.78); }
.room-row:nth-of-type(even) .room-row-txt .room-row-stat-label { color: var(--linen); }
.room-row:nth-of-type(even) .room-row-txt .room-row-stats      { border-color: rgba(107, 123, 90, 0.28); }

.room-row-img { position: relative; height: 540px; overflow: hidden; }
.room-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease-out; }
.room-row-img:hover img { transform: scale(1.05); }
.room-row-txt {
  padding: 80px 72px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.room-row-cat {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 14px;
}
html[lang="th"] .room-row-cat {
  font-family: var(--font-thai-body);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
}
.room-row-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 22px;
}
html[lang="th"] .room-row-name {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
}
.room-row-name em { color: var(--earth); font-style: normal; }
.room-row-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 2.05;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 440px;
}
html[lang="th"] .room-row-desc { font-family: var(--font-thai-body); font-size: 1rem; line-height: 1.95; }
.room-row-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--linen);
  flex-wrap: wrap;
}
.room-row-stat-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
html[lang="th"] .room-row-stat-label {
  font-family: var(--font-thai-body);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.8rem;
}
.room-row-stat-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--forest);
  margin-top: 4px;
}
html[lang="th"] .room-row-stat-val {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}

.btn-outline-forest, .btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 13px 30px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 250ms ease;
  text-decoration: none;
  border: 1px solid var(--forest);
  background: none;
  color: var(--forest);
  border-radius: 0;
}
html[lang="th"] .btn-outline-forest,
html[lang="th"] .btn-outline-light {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 400;
}
.btn-outline-forest:hover { background: var(--forest); color: var(--cream); }
.btn-outline-light {
  color: var(--cream);
  border-color: rgba(232, 223, 208, 0.4);
}
.btn-outline-light:hover {
  background: rgba(232, 223, 208, 0.12);
  border-color: var(--cream);
  color: var(--cream);
}

@media (max-width: 992px) {
  .rooms-alt-header { padding: 0 32px 40px; }
  .room-row { grid-template-columns: 1fr; }
  .room-row:nth-of-type(even) .room-row-img { order: 0; }
  .room-row:nth-of-type(even) .room-row-txt { order: 0; }
  .room-row-img { height: 380px; }
  .room-row-txt { padding: 56px 32px; }
}

/* ── Dining split (photo + forest panel) ────────────────── */

.dining-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 86vh;
}
.dining-split-photo {
  position: relative;
  overflow: hidden;
}
.dining-split-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease-out;
}
.dining-split-photo:hover img { transform: scale(1.04); }
.dining-split-content {
  background: var(--forest);
  padding: 96px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dining-split-content .eyebrow { color: var(--sage-soft); }
.dining-split-content .eyebrow::before { background: var(--sage); }
.dining-split-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 24px;
}
html[lang="th"] .dining-split-h {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
}
.dining-split-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(232, 223, 208, 0.78);
  line-height: 2.05;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 520px;
}
html[lang="th"] .dining-split-body { font-family: var(--font-thai-body); font-size: 0.98rem; line-height: 1.95; }
.dining-venue {
  border-top: 1px solid rgba(107, 123, 90, 0.28);
  padding: 22px 0;
}
.dining-venue:last-of-type {
  border-bottom: 1px solid rgba(107, 123, 90, 0.28);
  margin-bottom: 40px;
}
.dining-venue-name {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 6px;
}
html[lang="th"] .dining-venue-name {
  font-family: var(--font-thai-body);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.92rem;
}
.dining-venue-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(232, 223, 208, 0.65);
  line-height: 1.85;
  font-weight: 300;
}
html[lang="th"] .dining-venue-desc { font-family: var(--font-thai-body); font-size: 0.95rem; }
.btn-earth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--earth);
  border: 1px solid var(--earth);
  padding: 14px 32px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 250ms ease;
  text-decoration: none;
  border-radius: 0;
}
html[lang="th"] .btn-earth {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 400;
}
.btn-earth:hover { background: var(--earth-deep); border-color: var(--earth-deep); color: var(--cream); }

@media (max-width: 992px) {
  .dining-split { grid-template-columns: 1fr; min-height: 0; }
  .dining-split-photo { min-height: 360px; }
  .dining-split-content { padding: 64px 32px; }
}

/* ── Pool spread (photo + linen panel) ──────────────────── */

.pool-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.pool-spread-photo {
  position: relative;
  overflow: hidden;
}
.pool-spread-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease-out;
}
.pool-spread-photo:hover img { transform: scale(1.04); }
.pool-spread-text {
  background: var(--linen);
  padding: 96px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pool-spread-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 22px;
}
html[lang="th"] .pool-spread-h {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
}
.pool-spread-h em { color: var(--earth); font-style: normal; }
.pool-spread-body {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 2.05;
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 520px;
}
html[lang="th"] .pool-spread-body { font-family: var(--font-thai-body); font-size: 1rem; line-height: 1.95; }

@media (max-width: 992px) {
  .pool-spread { grid-template-columns: 1fr; min-height: 0; }
  .pool-spread-photo { min-height: 360px; }
  .pool-spread-text { padding: 64px 32px; }
}

/* ── Experiences (6 numbered cards on forest) ───────────── */

.exp {
  padding: 96px 56px;
  background: var(--forest);
}
.exp-header { margin-bottom: 56px; max-width: 540px; }
.exp-header .eyebrow { color: var(--sage-soft); }
.exp-header .eyebrow::before { background: var(--sage); }
.exp-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 16px;
}
html[lang="th"] .exp-h {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
}
.exp-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--sage-soft);
  line-height: 1.95;
  font-weight: 300;
}
html[lang="th"] .exp-sub { font-family: var(--font-thai-body); font-size: 1rem; }
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(107, 123, 90, 0.18);
}
.exp-card {
  background: var(--forest);
  padding: 48px 40px;
  transition: background 300ms;
  display: flex;
  flex-direction: column;
}
.exp-card:hover { background: #354738; }
.exp-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(107, 123, 90, 0.45);
  margin-bottom: 22px;
}
.exp-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 14px;
}
html[lang="th"] .exp-title {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 1.05rem;
}
.exp-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(232, 223, 208, 0.72);
  line-height: 1.95;
  font-weight: 300;
  flex: 1;
}
html[lang="th"] .exp-desc { font-family: var(--font-thai-body); font-size: 0.95rem; }
.exp-arrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--earth);
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: gap 250ms, color 250ms;
}
html[lang="th"] .exp-arrow {
  font-family: var(--font-thai-body);
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.85rem;
}
.exp-arrow::after { content: '→'; font-size: 1rem; }
.exp-card:hover .exp-arrow { gap: 16px; color: var(--cream); }

@media (max-width: 992px) {
  .exp { padding: 64px 24px; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-card { padding: 36px 28px; }
}

/* ── Newsletter block (deep charcoal, form) ─────────────── */

.newsletter {
  background: var(--charcoal);
  padding: 80px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  border-top: 1px solid rgba(232, 223, 208, 0.06);
}
.nl-h {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 16px;
  line-height: 1.2;
}
html[lang="th"] .nl-h {
  font-family: var(--font-thai-display);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
}
.nl-h em { color: var(--bark); font-style: normal; }
.nl-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--linen);
  line-height: 2;
  font-weight: 300;
  margin: 0;
  max-width: 460px;
}
html[lang="th"] .nl-sub { font-family: var(--font-thai-body); font-size: 1rem; }
.nl-form { display: flex; }
.nl-input {
  flex: 1;
  background: none;
  border: 1px solid rgba(232, 223, 208, 0.22);
  border-right: 0;
  padding: 15px 22px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--cream);
  outline: none;
  font-weight: 300;
}
.nl-input::placeholder { color: rgba(232, 223, 208, 0.45); }
.nl-input:focus { border-color: var(--moss); }
.nl-submit {
  background: var(--moss);
  border: 1px solid var(--moss);
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--parch);
  cursor: pointer;
  transition: opacity 250ms;
}
html[lang="th"] .nl-submit {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 400;
}
.nl-submit:hover { opacity: 0.85; }

/* Newsletter status messages (sit in the form cell) */
.nl-status {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 2px solid var(--earth);
  background: rgba(232, 223, 208, 0.05);
  color: var(--cream);
  max-width: 480px;
}
.nl-status-success {
  border-left-color: var(--moss);
  color: var(--cream);
  background: rgba(74, 92, 58, 0.18);
}
.nl-status-error {
  border-left-color: var(--earth);
  color: var(--linen);
  background: rgba(107, 76, 59, 0.14);
}
html[lang="th"] .nl-status { font-family: var(--font-thai-body); font-size: 0.98rem; }

@media (max-width: 992px) {
  .newsletter {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 32px;
    text-align: center;
  }
  .newsletter .nl-h,
  .newsletter .nl-sub,
  .newsletter .nl-status { max-width: 480px; margin-left: auto; margin-right: auto; }
  .newsletter .nl-status { text-align: left; }
  /* Stack input + submit on phones and centre the whole form in the cell */
  .nl-form {
    flex-direction: column;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
  .nl-input {
    border-right: 1px solid rgba(232, 223, 208, 0.22);
    margin-bottom: 10px;
    text-align: center;
  }
  .nl-input::placeholder { text-align: center; }
  .nl-submit { padding: 14px 24px; }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE GUARD — narrow phones (≤480px)
   Tame uppercase + wide letter-spacing on display headings so
   nothing overflows. Also tighten section paddings.
   ───────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .home-hero-h { font-size: clamp(2.2rem, 12vw, 3.2rem); letter-spacing: 0.05em; }
  .home-hero-tagline { letter-spacing: 0.18em; font-size: 0.65rem; }
  .home-hero-pill-txt { letter-spacing: 0.18em; font-size: 0.58rem; }
  .home-hero-content { padding: 0 18px 64px 18px; }

  .intro-split-left { padding: 56px 24px; }
  .intro-split-h    { font-size: clamp(1.6rem, 7vw, 2rem); letter-spacing: 0.04em; }
  .intro-split-body { font-size: 0.92rem; line-height: 1.95; }

  .pillars { padding: 32px 16px; }
  .pillar  { padding: 40px 24px; }

  .fb-quote { min-height: 420px; height: 420px; }
  .fb-pull  { font-size: clamp(1.3rem, 5.5vw, 1.7rem); }

  .tod        { padding: 64px 20px; }
  .tod-h      { font-size: clamp(1.6rem, 7vw, 2rem); letter-spacing: 0.04em; }
  .tod-card   { height: 340px; }

  .rooms-alt-header { padding: 0 20px 32px; }
  .rooms-alt-h      { font-size: clamp(1.6rem, 7vw, 2rem); letter-spacing: 0.04em; }
  .room-row-img     { height: 320px; }
  .room-row-txt     { padding: 48px 24px; }
  .room-row-name    { font-size: clamp(1.4rem, 6.5vw, 1.85rem); letter-spacing: 0.04em; }
  .room-row-stats   { gap: 18px 24px; }

  .dining-split-content { padding: 56px 24px; }
  .dining-split-h       { font-size: clamp(1.6rem, 7vw, 2rem); letter-spacing: 0.04em; }
  .dining-split-body    { font-size: 0.92rem; line-height: 1.95; }

  .pool-spread-text { padding: 56px 24px; }
  .pool-spread-h    { font-size: clamp(1.6rem, 7vw, 2rem); letter-spacing: 0.04em; }
  .pool-spread-body { font-size: 0.92rem; line-height: 1.95; }

  .exp        { padding: 56px 16px; }
  .exp-h      { font-size: clamp(1.6rem, 7vw, 2rem); letter-spacing: 0.04em; }
  .exp-card   { padding: 32px 24px; }

  .newsletter { padding: 48px 24px; }
  .nl-h       { font-size: clamp(1.4rem, 6vw, 1.85rem); letter-spacing: 0.04em; }

  .booking-strip-field { padding: 16px 22px; }
  .booking-strip-btn   { padding: 16px 24px; font-size: 0.65rem; letter-spacing: 0.22em; }
}

@media (max-width: 380px) {
  .home-hero-h        { font-size: clamp(1.8rem, 11vw, 2.5rem); letter-spacing: 0.04em; }
  .home-hero-pill     { padding: 6px 14px; }
  .home-hero-pill-txt { font-size: 0.52rem; letter-spacing: 0.12em; }
}
@media (max-width: 340px) {
  .home-hero-h        { font-size: clamp(1.6rem, 10vw, 2.2rem); letter-spacing: 0.03em; }
  .home-hero-pill-txt { font-size: 0.48rem; letter-spacing: 0.1em; }
  .home-hero-tagline  { font-size: 0.58rem; letter-spacing: 0.14em; }
}

/* ─────────────────────────────────────────────────────────────
   A Taste of Thailand (dining)
   Desktop mirrors the design/Taste-Of-Thailand.jpg reference:
   a dark featured band with two round-photo dishes, a pair of
   bordered upright cards, then one wide photo-left card.
   Mobile intentionally breaks from the reference into a uniform
   menu-list of rows (round thumb left, text right).
   ───────────────────────────────────────────────────────────── */

.taste-item-img { overflow: hidden; }
.taste-item-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.taste-item:hover .taste-item-img img { transform: scale(1.06); }

.taste-name {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.taste-sub {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 12px;
}
.taste-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.85;
  margin: 0;
}
/* Thai locale: dish names are already Thai — the transliteration
   sub-line is redundant, so hide it. */
html[lang="th"] .taste-sub { display: none; }
html[lang="th"] .taste-name { margin-bottom: 12px; }

/* Featured band — deep forest, round photos */
.taste-featured {
  background: var(--forest);
  border-radius: 0 40px 0 0;
  padding: clamp(30px, 4.5vw, 56px) clamp(24px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  margin-bottom: 30px;
}
.taste-feature {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 26px;
  align-items: center;
}
.taste-feature .taste-item-img {
  width: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  outline: 1px solid var(--sage);
  outline-offset: 6px;
}
.taste-feature .taste-name { color: var(--cream); }
.taste-feature .taste-sub  { color: var(--sage-soft); }
.taste-feature .taste-desc { color: rgba(232, 223, 208, 0.75); }

/* Middle pair — bordered upright cards, centered text */
.taste-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.taste-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}
.taste-card .taste-item-img { aspect-ratio: 4 / 3; }
.taste-card .taste-item-body {
  padding: 30px clamp(20px, 3vw, 44px) 36px;
  text-align: center;
}

/* Wide finale — photo left, text right */
.taste-wide {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}
.taste-wide .taste-item-img { min-height: 300px; max-height: 430px; }
.taste-wide .taste-item-body {
  align-self: center;
  padding: clamp(28px, 4vw, 56px);
}

@media (max-width: 992px) {
  .taste-featured { grid-template-columns: 1fr; gap: 34px; }
}

/* Mobile: a different layout from the reference — every dish becomes
   the same compact menu-list row (round thumbnail + text). */
@media (max-width: 768px) {
  .taste-featured,
  .taste-duo {
    display: block;
    background: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }
  .taste-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--line);
    padding: 18px;
    margin-bottom: 14px;
  }
  .taste-item .taste-item-img {
    width: 88px;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 50%;
    outline: 1px solid var(--linen);
    outline-offset: 4px;
  }
  .taste-item .taste-item-body {
    padding: 0;
    text-align: left;
  }
  .taste-feature .taste-name { color: var(--forest); }
  .taste-feature .taste-sub  { color: var(--earth); }
  .taste-feature .taste-desc { color: var(--ink-muted); }
  .taste-name { font-size: 0.95rem; letter-spacing: 0.1em; }
  .taste-sub  { font-size: 0.6rem; letter-spacing: 0.2em; margin-bottom: 8px; }
  .taste-desc { font-size: 0.82rem; line-height: 1.7; }
}

/* ─────────────────────────────────────────────────────────────
   Custom dot cursor
   Mossy 7px dot follows the pointer instantly; sage 32px ring
   lags behind via JS smoothing + CSS easing. Only on fine
   pointers; touch devices keep their native (lack of) cursor.
   Inputs/textareas/contenteditable keep the native caret so
   typing remains usable.
   ───────────────────────────────────────────────────────────── */
.cur, .cur-ring { display: none; }

@media (pointer: fine) {
  html.cursor-on,
  html.cursor-on body,
  html.cursor-on a,
  html.cursor-on button,
  html.cursor-on [role="button"],
  html.cursor-on label,
  html.cursor-on summary {
    cursor: none;
  }
  /* Keep the native caret where it matters */
  html.cursor-on input,
  html.cursor-on textarea,
  html.cursor-on select,
  html.cursor-on [contenteditable="true"] {
    cursor: auto;
  }

  html.cursor-on .cur {
    display: block;
    width: 7px;
    height: 7px;
    background: var(--moss);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: left, top;
  }
  html.cursor-on .cur-ring {
    display: block;
    width: 32px;
    height: 32px;
    border: 0.5px solid var(--sage);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
    transform: translate(-50%, -50%);
    transition: left 0.13s ease-out, top 0.13s ease-out, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
    will-change: left, top;
  }
  /* Ring expands on interactive hover */
  html.cursor-on .cur-ring.is-hover {
    width: 56px;
    height: 56px;
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.cursor-on .cur-ring { transition: none; }
}

/* ── Pop-up promotion banner (Xcaliber backend artwork) ────── */

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 2100;                       /* above the lightbox (2000) and nav */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.promo-popup[hidden] { display: none; }
.promo-popup.is-open { opacity: 1; }

.promo-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 31, 26, 0.86);
  backdrop-filter: blur(2px);
}

/* Shrink-wraps the artwork so the close button, arrows and dots hug the
   image itself rather than a fixed-width box (banners are often portrait). */
.promo-popup-dialog {
  position: relative;
  max-width: min(760px, 92vw);
  transform: translateY(18px);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.promo-popup.is-open .promo-popup-dialog { transform: none; }

.promo-popup-slides { position: relative; }
.promo-popup-slide {
  display: none;
  line-height: 0;
}
.promo-popup-slide.is-active { display: block; }
.promo-popup-slide img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.promo-popup-close {
  position: absolute;
  top: -44px;
  right: -6px;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.promo-popup-close:hover { color: var(--white); transform: scale(1.1); }

.promo-popup-close:focus-visible,
.promo-popup-nav:focus-visible,
.promo-popup-dot:focus-visible,
.promo-popup-cta:focus-visible {
  outline: 1px solid var(--sage-soft);
  outline-offset: 3px;
}

.promo-popup-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(28, 31, 26, 0.45);
  border: 0.5px solid rgba(232, 223, 208, 0.35);
  color: var(--cream);
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.promo-popup-nav:hover { background: var(--moss); border-color: var(--moss); }
.promo-popup-prev { left: -54px; }
.promo-popup-next { right: -54px; }

.promo-popup-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.promo-popup-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0.5px solid var(--cream);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease;
}
.promo-popup-dot.is-active { background: var(--cream); }

.promo-popup-cta {
  display: block;
  width: max-content;
  margin: 20px auto 0;
  padding: 0.85rem 2.4rem;
  background: var(--moss);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, letter-spacing 0.3s ease;
}
.promo-popup-cta:hover {
  background: var(--forest);
  color: var(--cream);
  letter-spacing: 0.26em;
}

@media (max-width: 900px) {
  .promo-popup-prev { left: 8px; }
  .promo-popup-next { right: 8px; }
}
@media (max-width: 600px) {
  .promo-popup { padding: 20px 16px; }
  .promo-popup-slide img { max-height: 62vh; }
  .promo-popup-close { top: -40px; right: 0; }
  .promo-popup-nav { width: 34px; height: 34px; }
  .promo-popup-cta { padding: 0.8rem 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-popup,
  .promo-popup-dialog { transition: none; }
}
