/* Mae On Villas — boutique hospitality chrome
   Palette from the Sep 13 presentation board / PIL mockup:
   BG (244,241,232) TEXT (34,55,49) ACCENT (184,148,84) LINE (214,209,195)
*/
:root {
  --bg: #f4f1e8;
  --bg-deep: #ebe6d8;
  --card: #faf8f1;
  --text: #223731;
  --muted: #565e56;
  --accent: #b89454;
  --accent-deep: #9a7a3e;
  --line: #d6d1c3;
  --ink-inv: #f8f6ee;
  --shadow: 0 18px 50px rgba(34, 55, 49, 0.08);
  --radius: 14px;
  --header-h: 4.75rem;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --serif-th: "Noto Serif Thai", "Cormorant Garamond", serif;
  --sans-th: "Noto Sans Thai", "Source Sans 3", sans-serif;
  --max: 72rem;
  --wide: 86rem;
  --touch: 44px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --page-gutter: max(1.5rem, calc(var(--safe-l) + 0.75rem), calc(var(--safe-r) + 0.75rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  direction: ltr;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: clip;
  direction: ltr;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-deep);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--text);
  color: var(--ink-inv);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip:focus {
  top: 1rem;
}

.shell {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--max));
  margin-inline: auto;
}

.shell-wide {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--wide));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);
  padding-inline: var(--safe-l) var(--safe-r);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-nav {
  min-width: 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  min-height: var(--touch);
  min-width: var(--touch);
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem 0.85rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.84rem;
  color: var(--muted);
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  padding-inline: 0.25rem;
  touch-action: manipulation;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--text);
}

.has-sub {
  position: relative;
}

.nav-item-row {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.subnav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  min-width: var(--touch);
  min-height: var(--touch);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 8px;
}

.subnav-toggle:hover,
.subnav-toggle:focus-visible {
  color: var(--text);
}

.subnav-chevron {
  display: block;
  width: 0.38rem;
  height: 0.38rem;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.08rem);
  transition: transform 160ms ease;
}

.has-sub.is-open .subnav-chevron {
  transform: rotate(225deg) translateY(-0.08rem);
}

.subnav {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  inset-inline-end: auto;
  transform: none;
  min-width: 13.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.35rem 0;
  list-style: none;
  margin: 0;
  z-index: 45;
}

.has-sub.is-open > .subnav {
  display: block;
}

.subnav[hidden] {
  display: none !important;
}

.subnav a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.9rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 8px;
  padding: 0.72rem 1.15rem;
  min-height: var(--touch);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  color: inherit;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: var(--ink-inv);
}

.btn-primary:hover {
  background: #1a2c27;
  color: var(--ink-inv);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-accent {
  background: var(--accent);
  color: #2a2416;
}

.header-cta {
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  min-height: var(--touch);
  min-width: var(--touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  touch-action: manipulation;
}

.lang-switch a[aria-current="true"],
.lang-switch a:hover {
  color: var(--text);
}

.lang-switch [lang="th"] {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600;
}

html[lang="th"] {
  font-family: var(--sans-th);
}

html[lang="th"] body {
  font-family: var(--sans-th);
  line-height: 1.75;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] .display,
html[lang="th"] .compare-table th {
  font-family: var(--serif-th);
  letter-spacing: 0;
  line-height: 1.28;
}

html[lang="th"] .wordmark {
  font-family: var(--serif);
}

html[lang="th"] .kicker,
html[lang="th"] .nav-toggle {
  text-transform: none;
  letter-spacing: 0.04em;
}

html[lang="th"] .lang-switch {
  text-transform: none;
}

.hero-copy {
  padding: 4.2rem 0 1.6rem;
}

.cinematic {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--header-h) - var(--safe-t));
  min-height: calc(100svh - var(--header-h) - var(--safe-t));
  color: var(--ink-inv);
  width: 100%;
  margin: 0;
  --scrim-rgb: 34, 55, 49;
  --scrim-0: 0.82;
  --scrim-1: 0.38;
  --scrim-2: 0.12;
  --scrim-3: 0.18;
}

.cinematic--page {
  min-height: min(78vh, 42rem);
  min-height: min(78svh, 42rem);
}

.cinematic-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #1a2c27;
}

.cinematic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  min-height: 100%;
  max-width: none;
  cursor: zoom-in;
}

.cinematic.portrait-prefer .cinematic-photo img {
  object-position: 50% 70%;
}

.cinematic-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(var(--scrim-rgb), var(--scrim-0)) 0%,
    rgba(var(--scrim-rgb), var(--scrim-1)) 42%,
    rgba(var(--scrim-rgb), var(--scrim-2)) 68%,
    rgba(var(--scrim-rgb), var(--scrim-3)) 100%
  );
}

.cinematic-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding-block: 5rem 3.2rem;
  padding-bottom: max(3.2rem, calc(var(--safe-b) + 1.75rem));
  --copy-veil-alpha: 0;
}

/* Copy-band veil. Alpha comes from CircadianContrast (Horaeum engine) sampling. */
.cinematic-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -1.1rem;
  right: -1.1rem;
  bottom: -1.6rem;
  top: auto;
  height: min(38rem, 70%);
  border-radius: 1.15rem;
  background: rgba(34, 55, 49, var(--copy-veil-alpha));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
}

@media (max-width: 1180px) {
  .cinematic:not(.is-contrast-resolved) .cinematic-copy {
    --copy-veil-alpha: 0.16;
  }

  .cinematic {
    --scrim-1: 0.46;
    --scrim-2: 0.2;
    --scrim-3: 0.2;
  }
}

.cinematic-copy .kicker {
  color: color-mix(in srgb, var(--ink-inv) 78%, var(--accent));
}

.cinematic-copy h1 {
  color: var(--ink-inv);
  max-width: 18ch;
  text-shadow: 0 12px 40px rgba(18, 28, 24, 0.35);
}

.cinematic-copy .lede {
  color: color-mix(in srgb, var(--ink-inv) 88%, var(--accent));
  max-width: 36rem;
}

.cinematic .btn-primary {
  background: var(--ink-inv);
  color: var(--text);
}

.cinematic .btn-primary:hover {
  background: #fff;
  color: var(--text);
}

.cinematic .btn-ghost {
  border-color: color-mix(in srgb, var(--ink-inv) 55%, transparent);
  color: var(--ink-inv);
}

.cinematic .btn-ghost:hover {
  color: var(--ink-inv);
  background: color-mix(in srgb, var(--ink-inv) 10%, transparent);
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

h1,
h2,
h3,
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1,
.display {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.hero-copy h1 {
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.45rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 1.1rem 0 1.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.photo,
.photo-frame img {
  width: 100%;
  object-fit: cover;
}

.photo-frame img {
  cursor: zoom-in;
}

.photo-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.hero-photo {
  width: 100%;
  margin: 0 auto 4rem;
  padding-inline: 0;
}

.hero-photo .photo-frame {
  border-radius: 0;
}

.hero-photo .photo-frame,
.hero-photo img {
  min-height: min(72vh, 44rem);
  max-height: 48rem;
  width: 100%;
  object-fit: cover;
}

.hero-photo.portrait-prefer img {
  object-position: 50% 70%;
}

.section {
  padding: 4.2rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.muted {
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: center;
}

.split.reverse .copy {
  order: 2;
}

.split .photo-frame img {
  min-height: 32rem;
}

.villa-grid .card img,
.card--feature img {
  height: min(52vh, 28rem);
}

.villa-grid,
.card-grid,
.amenity-grid,
.faq-list,
.guide-grid {
  display: grid;
  gap: 1.4rem;
}

.villa-grid,
.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card .photo-frame,
.card img {
  height: 18rem;
  object-fit: cover;
}

.card-body,
.guide-card,
.amenity,
.choice,
.faq details,
.note {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p,
.guide-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.list-quiet {
  margin: 0.4rem 0 1.1rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.list-quiet li {
  margin: 0.25rem 0;
}

.band {
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(184, 148, 84, 0.09), transparent 60%),
    var(--bg-deep);
}

.quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.leaf {
  display: block;
  margin: 2.5rem auto 0;
  width: 72px;
  opacity: 0.55;
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.85rem;
}

.gallery img,
.gallery .photo-frame {
  height: 100%;
  min-height: 16rem;
}

.gallery-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-3 img {
  height: 16rem;
  object-fit: cover;
}

.amenity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amenity {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.choice:hover {
  border-color: var(--accent);
  color: var(--text);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form label,
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.span-2 {
  grid-column: 1 / -1;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  min-height: var(--touch);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.form-status[data-state="ok"] {
  color: #2d5a3d;
}

.form-status[data-state="err"] {
  color: #8a3b32;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.2rem;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  touch-action: manipulation;
}

.faq p {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.note {
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2.4rem 0 max(3rem, calc(var(--safe-b) + 1.5rem));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}

.fineprint {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.reveal {
  animation: rise 700ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hidden-until-config {
  display: none;
}

body.has-whatsapp .hidden-until-config.whatsapp-only,
body.has-email .hidden-until-config.email-only {
  display: inline-flex;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.nav-drawer-head {
  display: none;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(18, 28, 24, 0.38);
}

.nav-backdrop.is-open {
  display: block;
  pointer-events: none;
}

.nav-backdrop.is-open.is-armed {
  pointer-events: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, var(--safe-t)) max(1.25rem, var(--safe-r)) max(1.25rem, var(--safe-b)) max(1.25rem, var(--safe-l));
  background: rgba(18, 28, 24, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  min-width: var(--touch);
  min-height: var(--touch);
  border: 0;
  background: color-mix(in srgb, var(--bg) 18%, transparent);
  color: var(--ink-inv);
  cursor: pointer;
  font: inherit;
  border-radius: 8px;
  touch-action: manipulation;
}

.lightbox-close {
  top: max(0.75rem, var(--safe-t));
  inset-inline-end: max(0.75rem, var(--safe-r));
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  inset-inline-start: max(0.5rem, var(--safe-l));
}

.lightbox-next {
  inset-inline-end: max(0.5rem, var(--safe-r));
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav,
  .site-nav.is-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(22rem, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    background: var(--bg);
    border-inline-end: 1px solid var(--line);
    padding: calc(var(--safe-t) + 0.65rem) 1.25rem calc(1.5rem + var(--safe-b));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 40px rgba(18, 28, 24, 0.18);
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .nav-drawer-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
    margin-bottom: 0.35rem;
  }

  .nav-drawer-close {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    min-height: var(--touch);
    min-width: var(--touch);
    cursor: pointer;
    touch-action: manipulation;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-item-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .site-nav > ul > li > a,
  .nav-item-row > a {
    font-size: 1rem;
    width: 100%;
  }

  .subnav {
    position: static;
    transform: none;
    inset: auto;
    display: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    min-width: 0;
    padding: 0.15rem 0 0.35rem 0.85rem;
    background: transparent;
  }

  .has-sub.is-open > .subnav {
    display: block;
  }

  .split,
  .villa-grid,
  .card-grid,
  .gallery,
  .gallery-3,
  .amenity-grid,
  .choice-row,
  .form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .copy {
    order: 0;
  }

  .hero-photo .photo-frame,
  .hero-photo img,
  .split .photo-frame img,
  .villa-grid .card img,
  .card--feature img {
    min-height: 18rem;
    height: auto;
  }

  .header-cta {
    min-height: var(--touch);
    padding-inline: 0.75rem;
    font-size: 0.8rem;
  }

  .cinematic {
    min-height: unset;
  }

  .cinematic-copy {
    min-height: calc(100svh - var(--header-h) - var(--safe-t));
    padding-top: 2.4rem;
    padding-bottom: max(2.25rem, calc(var(--safe-b) + 1.5rem));
    box-sizing: border-box;
  }

  .cinematic-copy .lede {
    font-size: 1.05rem;
    margin: 0.8rem 0 1.15rem;
  }

  .cinematic .cta-row {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .header-cta {
    display: none;
  }

  .wordmark {
    font-size: 1.18rem;
  }

  .cinematic-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
}

@media (max-width: 380px) {
  .header-inner {
    grid-template-columns: auto auto auto;
    gap: 0.3rem;
  }

  .wordmark {
    font-size: 1.02rem;
    letter-spacing: 0;
    min-width: max-content;
  }

  .nav-toggle {
    padding-inline: 0.5rem;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
  }

  .lang-switch {
    font-size: 0.72rem;
    gap: 0;
  }

  .cinematic-copy h1 {
    font-size: clamp(1.7rem, 8.4vw, 2.4rem);
  }

  .cinematic-copy .lede {
    font-size: 0.98rem;
  }

  .cinematic .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cinematic .cta-row .btn {
    width: 100%;
  }
}

@media (max-height: 560px) {
  .cinematic-copy .lede {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-height: 700px) {
  .cinematic,
  .cinematic-copy {
    min-height: 0;
  }

  .cinematic-copy {
    padding-top: 2rem;
    padding-bottom: max(1.35rem, calc(var(--safe-b) + 1rem));
  }
}

/* Operator desk (/ops/) — private, noindex. Reuses guest tokens. */
.ops-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem var(--page-gutter, 1.25rem) 3rem;
}
.ops-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.25rem;
}
.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.ops-tabs button {
  min-height: var(--touch, 44px);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(34, 55, 49, 0.2);
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.ops-tabs button[aria-selected="true"] {
  background: #223731;
  color: #f4efe4;
}
.ops-panel[hidden] { display: none; }
.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.ops-card img {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  display: block;
}
.ops-body {
  min-height: 100dvh;
  min-height: 100svh;
}

.ops-login-shell[hidden],
.ops-shell:has(#desk[hidden]) {
  display: none;
}

.ops-login-shell {
  min-height: 100dvh;
  min-height: 100svh;
  background: var(--bg-deep);
}

.ops-login-layout {
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
}

.ops-login-hero {
  position: relative;
  isolation: isolate;
  min-height: 38svh;
  color: var(--ink-inv);
  overflow: hidden;
  --scrim-rgb: 34, 55, 49;
  --scrim-0: 0.82;
  --scrim-1: 0.42;
  --scrim-2: 0.18;
  --scrim-3: 0.22;
}

.ops-login-hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #1a2c27;
}

.ops-login-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

.ops-login-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(var(--scrim-rgb), var(--scrim-0)) 0%,
    rgba(var(--scrim-rgb), var(--scrim-1)) 42%,
    rgba(var(--scrim-rgb), var(--scrim-2)) 68%,
    rgba(var(--scrim-rgb), var(--scrim-3)) 100%
  );
}

.ops-login-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: 1.5rem var(--page-gutter) 1.75rem;
  max-width: 32rem;
}

.ops-login-hero-inner .kicker {
  color: color-mix(in srgb, var(--ink-inv) 78%, var(--accent));
  margin-bottom: 0.65rem;
}

.ops-login-hero-title {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink-inv);
  text-shadow: 0 12px 40px rgba(18, 28, 24, 0.35);
}

.ops-login-hero-lede {
  margin: 0 0 1.1rem;
  color: color-mix(in srgb, var(--ink-inv) 88%, var(--accent));
  font-size: 1.02rem;
}

.ops-login-hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.ops-login-hero-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink-inv) 90%, var(--accent));
}

.ops-login-hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.ops-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.35rem, 5vw, 3rem) var(--page-gutter);
  background: var(--bg);
}

.ops-login-card {
  width: 100%;
  max-width: 26.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.15rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.ops-login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.ops-login-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 6%, var(--card));
}

.ops-login-brand-type {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.15;
}

.ops-login-brand-sub {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ops-login-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
}

.ops-login-sub,
.ops-login-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ops-login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ops-login-field input,
.ops-copy textarea,
.ops-copy input,
.ops-card select {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.ops-login-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.ops-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  margin-top: 0.15rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: var(--ink-inv);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
}

.ops-login-submit:hover:not(:disabled) {
  background: #1a2c27;
}

.ops-login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ops-login-foot {
  text-align: center;
  font-size: 0.78rem;
}

.ops-login-foot-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.ops-login-foot-link:hover {
  color: var(--accent-deep);
}

@media (min-width: 960px) {
  .ops-login-layout {
    grid-template-columns: 1.05fr 1fr;
  }

  .ops-login-hero {
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
  }

  .ops-login-hero-inner {
    padding: clamp(2rem, 6vw, 4.5rem);
    justify-content: center;
  }

  .ops-login-panel {
    min-height: 100dvh;
    min-height: 100svh;
  }
}
.ops-err { color: #8b2e2e; min-height: 1.2em; }
.ops-login-card .ops-err:empty { display: none; min-height: 0; }
.ops-ok { color: #223731; }
.ops-copy-row { margin-bottom: 1rem; }
.ops-copy-row h3 { font-size: 0.95rem; margin: 0 0 0.35rem; }
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.ops-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.ops-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.ops-table th,
.ops-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(34, 55, 49, 0.12);
  vertical-align: top;
}
.ops-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.ops-form-grid label,
.ops-panel label {
  display: block;
  font-size: 0.9rem;
}
.ops-form-grid input,
.ops-form-grid select,
.ops-panel input[type="text"],
.ops-panel input[type="number"],
.ops-panel input[type="date"],
.ops-panel input[type="datetime-local"],
.ops-panel input[type="email"],
.ops-panel input[type="search"],
.ops-panel input[type="password"],
.ops-panel input[type="tel"],
.ops-panel textarea,
.ops-panel select {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 0.5rem 0.65rem;
}
.ops-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ops-note { margin: 0.5rem 0 1rem; }
.ops-remind {
  background: #faf8f1;
  border: 1px solid #d6d1c3;
  border-radius: 14px;
  padding: 1.2rem 1.3rem 1.05rem;
  margin: 0 0 1.5rem;
}
.ops-remind .ops-kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #9a7a3e;
}
.ops-remind h3 {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #223731;
}
.ops-remind-meta { margin: 0.75rem 0 0; color: #565e56; }
.ops-remind-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0.35rem;
}
.ops-remind-sent {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: #565e56;
}
.ops-remind-sent li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(34, 55, 49, 0.1);
}

/* Site manager — editorial studio, not a form dump. */
.ops-body:has(#desk:not([hidden])) {
  background: #ebe6d8;
}
.ops-shell:has(#desk:not([hidden])) {
  max-width: none;
  margin: 0;
  padding: 0;
}
.studio {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.studio-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #223731;
  color: #f4f1e8;
  padding: 1.25rem 0.85rem 1rem;
}
.studio-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 0.2rem 0.45rem 1.1rem;
}
.studio-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.studio-brand em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b89454;
}
.studio-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 148, 84, 0.7);
  font-family: var(--serif);
  font-size: 0.95rem;
}
.studio .ops-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: auto;
  border: 0;
  margin: 0;
  padding: 0;
}
.studio .ops-tabs button {
  appearance: none;
  text-align: left;
  background: transparent;
  color: rgba(244, 241, 232, 0.78);
  border: 0;
  border-radius: 0;
  padding: 0.62rem 0.7rem;
  font: 500 0.92rem/1.2 var(--sans);
  cursor: pointer;
}
.studio .ops-tabs button[aria-selected="true"] {
  background: rgba(244, 241, 232, 0.08);
  color: #f4f1e8;
  box-shadow: inset 2px 0 0 #b89454;
}
.studio-nav-foot {
  margin-top: auto;
  padding: 1rem 0.7rem 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.45);
}
.studio-site {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.35rem 0.85rem;
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
  margin-bottom: 0.75rem;
}
.studio-site p,
.studio-nav-label {
  margin: 0.35rem 0.35rem 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b89454;
}
.studio-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.studio-page button {
  flex: 1;
  text-align: left;
  background: transparent;
  color: rgba(244, 241, 232, 0.82);
  border: 0;
  padding: 0.32rem 0.45rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.studio-page button[aria-current="true"] {
  color: #f4f1e8;
  box-shadow: inset 2px 0 0 #b89454;
}
.studio-page a {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b89454;
  text-decoration: none;
  padding-right: 0.35rem;
}
.page-stage[hidden] { display: none !important; }
.page-stage {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.page-stage-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.8fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.page-stage-bar p { margin: 0 0 0.35rem; grid-column: 1 / -1; }
.page-stage-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-stage-bar textarea,
.page-stage-bar select,
.page-stage-bar input {
  font: 400 16px/1.4 var(--sans);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.guest-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}
.guest-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.guest-lane h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
}
.guest-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem;
  margin: 0 0 0.65rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.guest-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #223731;
  color: #f4f1e8;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.guest-card-copy { display: flex; flex-direction: column; min-width: 0; }
.guest-card-copy strong { font-size: 1rem; }
.guest-card-copy em, .guest-card-copy small {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guest-pills { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-end; }
.guest-pills b, .guest-pills i {
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: #ebe6d8;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}
.guest-empty { color: var(--muted); margin: 0; }
.guest-checks { list-style: none; padding: 0; margin: 0.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.guest-checks li { font-size: 0.78rem; padding: 0.25rem 0.5rem; border-radius: 999px; background: #ebe6d8; }
.guest-checks .is-ready { background: #e4efe4; }
#guest-profile { margin-top: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
@media (max-width: 900px) {
  .guest-board { grid-template-columns: 1fr; }
}
#page-stage-frame {
  width: 100%;
  height: min(78vh, 920px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.mill-truth {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.mill-truth div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
}
.mill-truth dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
}
.mill-truth dd {
  margin: 0;
  color: var(--text);
}
.studio-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.studio-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  background: rgba(250, 248, 241, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}
.studio-top .kicker {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.studio-top-actions {
  display: flex;
  gap: 0.5rem;
}
.studio-canvas {
  padding: 1.5rem 1.75rem 3rem;
  max-width: 76rem;
}
.studio-section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.4rem;
}
.ops-panel > .ops-note,
.ops-panel > p.muted {
  max-width: 46rem;
  margin-top: 0;
}
.ops-table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}
.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.ops-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.ops-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(214, 209, 195, 0.7);
  vertical-align: top;
}
.ops-copy-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 0.8rem;
}
.ops-copy-row h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}
#copy-filter {
  width: min(24rem, 100%);
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
}
.media-drop {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.media-drop-target {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 11rem;
  padding: 1.25rem;
  border: 1px dashed #b89454;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(34, 55, 49, 0.04), rgba(34, 55, 49, 0.0)),
    var(--card);
  cursor: pointer;
}
.media-drop-target input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.media-drop-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.media-drop-title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin: 0.3rem 0;
}
.media-drop-hint {
  color: var(--muted);
}
.media-drop-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
}
.media-assign,
.media-card-body label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.media-assign select,
.media-card-body select {
  font: inherit;
  color: var(--text);
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.media-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
}
.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.media-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #d6d1c3;
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-card-body {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.media-card-page {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.media-card-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}
.media-card-file {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.media-empty {
  color: var(--muted);
}
.stay-cal {
  margin: 0 0 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
}
.stay-cal-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
}
.stay-cal-head p {
  margin: 0.25rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.stay-cal-months {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
}
.stay-cal-month {
  flex: 0 0 20.5rem;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
}
.stay-cal-month h4 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
}
.stay-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.stay-cal-dow {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.2rem 0.2rem;
}
button.stay-cal-day {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  min-height: 4.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.4rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stay-cal-day span { font-size: 0.82rem; }
.stay-cal-day em {
  font-style: normal;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #223731;
}
.stay-cal-day.is-occupied {
  background: #223731;
  color: #f4f1e8;
  border-color: #223731;
}
.stay-cal-day.is-special {
  box-shadow: inset 0 0 0 2px #b89454;
}
.stay-cal-day.is-closed {
  background: repeating-linear-gradient(-45deg, #ebe6d8, #ebe6d8 6px, #f4f1e8 6px, #f4f1e8 12px);
  color: #565e56;
}
.rate-rules {
  list-style: none;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
}
.rate-rules li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.rate-desk h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
}
.stay-cal-day.is-occupied em { color: #e6d3a4; }
.stay-cal-day.is-pad {
  background: transparent;
  border-color: transparent;
}
@media (max-width: 860px) {
  .studio {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }
  .studio-nav {
    position: relative;
    height: auto;
    padding-top: max(0.85rem, var(--safe-t));
    padding-left: max(0.85rem, var(--safe-l));
    padding-right: max(0.85rem, var(--safe-r));
  }
  .studio .ops-tabs {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .studio .ops-tabs button {
    white-space: nowrap;
    min-height: var(--touch);
    scroll-snap-align: start;
    padding: 0.7rem 0.9rem;
  }
  .media-drop,
  .studio-top,
  .page-stage-bar,
  .arrival-prep li {
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }
  .studio-canvas {
    padding: 1rem max(1rem, var(--safe-r)) max(1.5rem, var(--safe-b)) max(1rem, var(--safe-l));
  }
  .guest-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .guest-pills {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  #page-stage-frame {
    height: 70dvh;
  }
  .money-year,
  .tm30-check {
    grid-template-columns: 1fr;
  }
  .money-day,
  button.stay-cal-day {
    min-height: var(--touch);
  }
}

/* Guest value pillars + post-request journey (owner origin) */
.value-pillars .section-head {
  max-width: 42rem;
}

.value-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.value-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0;
}

.value-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.guest-journey {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.guest-journey:not([hidden]) {
  animation: journey-in 0.45s ease;
}

@keyframes journey-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.journey-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0;
}

.journey-fieldset legend {
  font-weight: 600;
  padding: 0 0.35rem;
}

.choice-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.55rem;
  cursor: pointer;
}

.journey-preview {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.journey-preview h3 {
  font-family: var(--serif);
  margin: 0 0 0.5rem;
}

.journey-preview ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

html[lang="th"] .value-card h3,
html[lang="th"] .journey-preview h3 {
  font-family: var(--serif-th);
}

.arrival-brief {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.4rem;
  margin: 0 0 1rem;
}

.arrival-brief h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0.2rem 0 0.35rem;
}

.arrival-brief h4 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.95rem;
}

.arrival-brief pre {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 0.8rem;
}

.arrival-prep {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.arrival-prep li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.arrival-prep .kind {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.tm30-board {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.tm30-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}
.tm30-card.is-on { border-color: #223731; }
.tm30-card h3 {
  margin: 0.15rem 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}
.tm30-check {
  list-style: none;
  margin: 0.6rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1rem;
}
.tm30-check li {
  padding: 0.28rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.tm30-check .is-gap { color: #223731; }
.tm30-check .is-in { color: var(--muted); }
.tm30-flight { margin-top: 0.6rem; }
@media (max-width: 700px) {
  .tm30-check { grid-template-columns: 1fr; }
}

.money-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.money-figures figure {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.money-figures strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.money-figures em {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.money-figures small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.money-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.money-chips { display: flex; gap: 0.35rem; }
.money-chips button {
  min-height: var(--touch);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.money-chips button[aria-pressed="true"] {
  background: #223731;
  color: var(--ink-inv);
  border-color: #223731;
}
.money-chart-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
#money-series { width: 100%; height: auto; display: block; touch-action: none; }
.money-booked { fill: #223731; }
.money-pipeline { fill: #b89454; }
.money-fill { fill: rgba(184, 148, 84, 0.28); }
.money-cash-in { stroke: #b89454; stroke-width: 2.2; }
.money-cash-out { stroke: #223731; stroke-width: 2.2; }
.money-axis { stroke: #d6d1c3; stroke-width: 1; }
.money-tick, .money-scale {
  fill: #565e56;
  font-size: 12px;
  font-family: "Source Sans 3", sans-serif;
}
.money-read {
  margin: 0.35rem 0.6rem 0.2rem;
  min-height: 2.6rem;
}
.money-year {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.5rem 0 1.25rem;
}
.money-month h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}
.money-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.money-month-grid > span,
.money-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: var(--muted);
}
.money-day {
  border: 0;
  padding: 0;
  border-radius: 3px;
  color: #223731;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
}
.money-day.is-ink { color: #f4f1e8; }
.money-day.is-on { outline: 2px solid #223731; outline-offset: 1px; }
.money-params {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.money-params label { font-size: 0.82rem; color: var(--muted); }
.money-params input[type="range"] { width: 100%; accent-color: #b89454; }
.money-params span { color: #223731; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .money-figures, .money-params { grid-template-columns: 1fr 1fr; }
  .money-year { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .money-figures, .money-year, .money-params, .tm30-check { grid-template-columns: 1fr; }
}

/* H-W-P10: every text control on the desk is 16px, including WebKit selects. */
#desk input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
#desk select,
#desk textarea {
  font-size: 16px !important;
}
#desk select {
  min-height: var(--touch);
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23223731' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 1.8rem 0.5rem 0.65rem;
  color: var(--text);
}
