/* Beaumont Pool Villa · forest + bone + amber · sharp corners everywhere */
:root {
  --ink: #142219;        /* deep forest, text on light */
  --forest: #1F3327;     /* dark surfaces */
  --forest-2: #2A4234;   /* raised on dark */
  --moss: #56665B;       /* secondary text on bone */
  --bone: #EEEBE2;       /* page */
  --ivory: #F7F5EF;      /* raised on light */
  --amber: #C4923F;      /* the one accent */
  --amber-ink: #7E5718;  /* amber as text on light */
  --line: rgba(20, 34, 25, .16);
  --line-d: rgba(238, 235, 226, .18);

  --display: "Taviraj", "Bodoni Moda", Georgia, serif;
  --latin-display: "Bodoni Moda", "Taviraj", Georgia, serif;
  --body: "Anuphan", system-ui, sans-serif;
  --lh-display: 1.28;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 4.4vw, 64px);
  --nav-h: 72px;
}
:root[lang="en"] { --display: "Bodoni Moda", "Taviraj", Georgia, serif; --lh-display: 1.08; }
:root[lang="th"] .en, :root[lang="en"] .th { display: none !important; }
.th { letter-spacing: 0; }  /* Thai is never tracked, even inside tracked labels */
.nw { white-space: nowrap; }
@media (min-width: 640px) { .nw-d { white-space: nowrap; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:root[lang="en"] body { font-size: 1.03rem; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ivory); padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.fig { font-family: "Bodoni Moda", Georgia, serif; font-variant-numeric: lining-nums; font-optical-sizing: none; font-variation-settings: "opsz" 14; }
.figures .fig, .times .fig { font-variation-settings: "opsz" 28; }
:root[lang="en"] .hero__title { font-optical-sizing: none; font-variation-settings: "opsz" 28; }
:root[lang="en"] .h2, :root[lang="en"] .h3 { font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.small { font-size: .92rem; color: var(--moss); }
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
:root[lang="th"] .eyebrow .th { font-size: .92rem; }

.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: var(--lh-display); letter-spacing: -.005em; text-wrap: balance; }
:root[lang="en"] .h2 { letter-spacing: -.015em; }
.h2--sm { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.3; }
.h4 { font-family: var(--body); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); }
:root[lang="th"] .h4 { font-size: .95rem; }

/* buttons: sharp, one accent */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.6em; border: 0; text-decoration: none; font-weight: 500; letter-spacing: .02em; white-space: nowrap; transition: background-color .25s var(--ease), transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #D3A250; }
.btn--block { width: 100%; }
.btn i { font-size: 1.3em; }
.link-btn { display: inline-flex; align-items: center; gap: .45em; background: none; border: 0; padding: 0 0 4px; border-bottom: 1px solid currentColor; font-weight: 500; text-decoration: none; }
.link-btn:hover { color: var(--amber-ink); }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--bone); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.nav::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(rgba(10, 20, 14, .45), transparent); pointer-events: none; transition: opacity .35s; }
.nav.is-solid { background: var(--forest); box-shadow: 0 1px 0 var(--line-d); }
.nav.is-solid::before { opacity: 0; }
.nav__inner { position: relative; display: flex; align-items: center; gap: 24px; height: var(--nav-h); max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.wordmark__name { font-family: "Bodoni Moda", Georgia, serif; font-weight: 500; font-size: 1.12rem; letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
.wordmark__sub { margin-top: 6px; font-size: .58rem; letter-spacing: .5em; text-transform: uppercase; color: var(--amber); font-weight: 500; }
.nav__links { display: none; gap: 30px; margin-left: auto; font-size: .92rem; }
.nav__links a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav__links a:hover { border-color: var(--amber); }
.nav__end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; letter-spacing: .1em; }
.lang span { opacity: .45; }
.lang button { background: none; border: 0; padding: 10px 6px; opacity: .6; font-weight: 500; }
.lang button[aria-pressed="true"] { opacity: 1; color: var(--amber); }
.nav__cta { display: none; min-height: 42px; padding: 0 1.3em; font-size: .9rem; }
.nav__burger { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.6rem; margin-right: -8px; }
.menu { position: fixed; inset: var(--nav-h) 0 0; background: var(--forest); padding: 28px var(--gutter); display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu a { font-family: var(--display); font-size: 1.7rem; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
@media (min-width: 1080px) {
  .nav__links { display: flex; }
  .nav__end { margin-left: 18px; }
  .nav__cta { display: inline-flex; }
  .nav__burger, .menu { display: none !important; }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; color: var(--bone); background: var(--forest); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 58%; transform-origin: 62% 62%; }
@media (min-width: 860px) { .hero__media img { object-position: 50% 58%; } }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(12, 22, 16, .5) 0%, rgba(12, 22, 16, 0) 22%, rgba(12, 22, 16, 0) 34%, rgba(12, 22, 16, .58) 56%, rgba(12, 22, 16, .84) 78%, rgba(12, 22, 16, .94) 100%); }
@media (min-width: 860px) { .hero__media::after { background:
  linear-gradient(90deg, rgba(12, 22, 16, .66) 0%, rgba(12, 22, 16, .4) 36%, rgba(12, 22, 16, 0) 64%),
  linear-gradient(180deg, rgba(12, 22, 16, .46) 0%, rgba(12, 22, 16, 0) 20%, rgba(12, 22, 16, 0) 44%, rgba(12, 22, 16, .56) 76%, rgba(12, 22, 16, .88) 100%); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: kenburns 32s var(--ease) infinite alternate; }
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.2%, -1%); } }
.hero__content { padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(20px, 5vh, 56px); }
.hero .eyebrow { color: var(--bone); opacity: .9; margin-bottom: 18px; }
.hero__title { font-family: var(--display); font-weight: 300; font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: 1.22; letter-spacing: -.005em; max-width: 14ch; text-shadow: 0 2px 28px rgba(8, 16, 11, .4); }
:root[lang="en"] .hero__title { font-weight: 400; line-height: 1.04; letter-spacing: -.02em; }
p { text-wrap: pretty; }
.hero__sub { text-wrap: balance; margin-top: 14px; max-width: 54ch; font-size: clamp(1rem, 1.4vw, 1.15rem); opacity: .92; }

.bookbar { margin-top: clamp(18px, 4vh, 40px); display: grid; grid-template-columns: 1fr 1fr .72fr; background: var(--ivory); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(8, 18, 12, .55); }
.bookbar__field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 12px; border-right: 1px solid var(--line); min-width: 0; }
.bookbar__field:focus-within { outline: 2px solid var(--amber); outline-offset: -2px; }
.bookbar__field--guests { border-right: 0; }
.bookbar label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); font-weight: 500; }
:root[lang="th"] .bookbar label { font-size: .8rem; }
.bookbar__value { font-size: .95rem; font-weight: 500; white-space: nowrap; min-height: 1.6em; }
.bookbar__value.is-empty { color: var(--moss); font-weight: 400; }
/* the native date input sits invisibly over the field so its own picker opens anywhere on it */
.bookbar__field--date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.bookbar__field--date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.bookbar select { border: 0; background: transparent; padding: 0; font-size: .95rem; font-weight: 500; min-height: 1.6em; width: 100%; min-width: 0; color: var(--ink); cursor: pointer; }
.bookbar__go { grid-column: 1 / -1; min-height: 52px; font-size: 1rem; }
@media (min-width: 860px) {
  .bookbar { grid-template-columns: 1fr 1fr .8fr auto; max-width: 1040px; }
  .bookbar__field { padding: 14px 24px; }
  .bookbar__field--guests { border-right: 0; }
  .bookbar__value, .bookbar select { font-size: 1.05rem; }
  .bookbar__go { grid-column: auto; min-height: 78px; padding: 0 2.2em; }
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- INTRO ---------- */
.intro { display: grid; gap: 48px; padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(72px, 10vw, 140px); }
.lead { font-family: var(--display); font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.55; max-width: 34ch; }
:root[lang="en"] .lead { font-weight: 400; line-height: 1.38; }
.figures { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px 0; margin-top: 52px; border-top: 1px solid var(--line); padding-top: 28px; }
.figures > div { display: flex; flex-direction: column-reverse; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.figures > div:nth-child(3), .figures > div:last-child { border-right: 0; margin-right: 0; }
.figures dd { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; font-weight: 400; }
.figures dt { margin-top: 10px; font-size: .82rem; color: var(--moss); letter-spacing: .04em; }
.intro__crest img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 640px) {
  .figures { grid-template-columns: repeat(5, auto); }
  .figures > div:nth-child(3) { border-right: 1px solid var(--line); margin-right: 28px; }
}
@media (min-width: 900px) {
  .intro { grid-template-columns: 7fr 4fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
  .intro__crest { margin-top: 0; }
}

/* ---------- SPACES ---------- */
.spaces { padding-bottom: clamp(80px, 10vw, 140px); }
.spaces > .wrap > .h2 { margin-bottom: clamp(36px, 5vw, 64px); max-width: 16ch; }
.split { display: grid; gap: 24px; margin-bottom: clamp(64px, 9vw, 128px); }
.split__img img, .split__inset img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split__text { max-width: 44ch; }
.split__text .h3 { margin-bottom: 14px; }
.split__text p { color: #2F3D34; }
.split__inset { display: none; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
  .split--a .split__img { grid-column: 1 / 9; }
  .split--a .split__text { grid-column: 10 / 13; }
  .split--b { align-items: start; }
  .split--b .split__text { grid-column: 1 / 5; grid-row: 1; padding-top: clamp(24px, 6vw, 96px); }
  .split--b .split__img { grid-column: 6 / 13; grid-row: 1 / 3; }
  .split--b .split__img img { aspect-ratio: 4 / 3; }
  .split__inset { display: block; grid-column: 2 / 6; grid-row: 2; margin-top: 40px; position: relative; z-index: 1; }
  .split__inset img { box-shadow: 0 30px 60px -30px rgba(20, 34, 25, .45); }
}
.band { margin-bottom: clamp(72px, 10vw, 140px); }
.band img { width: 100%; height: clamp(340px, 68vh, 760px); object-fit: cover; object-position: 50% 42%; }
.band figcaption { margin-top: 14px; font-size: .9rem; color: var(--moss); }
.trio { display: grid; gap: 40px 24px; margin-top: clamp(32px, 4vw, 52px); }
.trio img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.trio figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; color: #2F3D34; }
.trio figcaption strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--ink); }
@media (min-width: 900px) {
  .trio { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; }
  .trio__a { grid-row: 1 / 3; }
  .trio__a img { aspect-ratio: 4 / 4.2; }
  .trio__c { align-self: end; }
}

/* ---------- ROOMS register (signature) ---------- */
.rooms { background: var(--ivory); padding-block: clamp(80px, 10vw, 140px); border-block: 1px solid var(--line); }
.rooms__grid { display: grid; gap: 40px; }
.rooms__intro > p { margin-top: 18px; max-width: 46ch; color: #2F3D34; }
.register { margin-top: 40px; border-bottom: 1px solid var(--ink); }
.register__floor { display: grid; grid-template-columns: 64px 1fr; align-items: stretch; border-top: 1px solid var(--ink); }
.register__label { padding: 14px 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); border-right: 1px solid var(--line); }
.register__rooms { display: grid; grid-template-columns: 1fr; }
.register__rooms--five { grid-template-columns: repeat(5, 1fr); }
.room-key { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 76px; padding: 10px 10px; background: transparent; border: 0; border-right: 1px solid var(--line); text-align: left; transition: background-color .25s var(--ease), color .25s var(--ease); }
.register__rooms > .room-key:last-child { border-right: 0; }
.room-key .fig { font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1; }
.room-key small { font-size: .7rem; color: var(--moss); line-height: 1.3; }
.room-key--wide { padding-inline: 18px; }
.room-key:hover { background: rgba(196, 146, 63, .12); }
.room-key[aria-pressed="true"] { background: var(--forest); color: var(--bone); }
.room-key[aria-pressed="true"] small { color: var(--amber); }
.room img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room__more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.room__more img { aspect-ratio: 16 / 10; }
.room .h3 { margin-top: 22px; }
.room__facts { margin-top: 10px; }
.room__facts li { padding: 9px 0; border-bottom: 1px solid var(--line); color: #2F3D34; }
.room__facts li:last-child { border-bottom: 0; }
.room.is-fresh { animation: fade .5s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 420px) { .register__floor { grid-template-columns: 52px 1fr; } .room-key { padding: 10px 6px; } .room-key small { font-size: .64rem; } }
@media (min-width: 900px) {
  .rooms__grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .rooms__intro { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* ---------- GALLERY ---------- */
.gallery { padding-top: clamp(80px, 10vw, 140px); }
.gallery__head { margin-bottom: clamp(28px, 4vw, 48px); }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; grid-auto-rows: 42vw; }
.tile { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--forest); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.tile:hover img { transform: scale(1.035); }
.tile:first-child, .tile.t-7 { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 26vw, 460px); gap: 6px; }
  .t-3 { grid-column: span 3 !important; } .t-4 { grid-column: span 4 !important; } .t-5 { grid-column: span 5 !important; }
  .t-7 { grid-column: span 7 !important; } .t-8 { grid-column: span 8 !important; }
}
.gallery__foot { padding-top: 24px; display: flex; justify-content: flex-end; }

/* ---------- AMENITIES ---------- */
.amenities { padding-block: clamp(80px, 10vw, 140px); }
.amenities .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.amenities__cols { display: grid; gap: 48px; }
.amenities .h4 { margin-bottom: 14px; }
.amen li { display: grid; grid-template-columns: 30px 1fr; align-items: start; gap: 12px; padding: 9px 0; }
.amen i { font-size: 1.45rem; color: var(--amber-ink); margin-top: 1px; }
@media (min-width: 900px) { .amenities__cols { grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); } }

/* ---------- LOCATION ---------- */
.location { padding-bottom: clamp(80px, 10vw, 140px); }
.location__grid { display: grid; gap: 36px; }
.location__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; }
.location__text > p { margin-top: 16px; max-width: 44ch; color: #2F3D34; }
.location__text > p.small { color: var(--moss); }
.distances { margin: 34px 0 6px; border-top: 1px solid var(--line); }
.distances > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.distances dt { font-weight: 500; }
.distances dd { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.distances dd .fig { font-size: 2.2rem; line-height: 1; }
.distances small { width: 100%; color: var(--moss); font-size: .85rem; }
@media (min-width: 640px) { .distances dd { justify-content: flex-end; } .distances small { text-align: right; } }
.location .link-btn { margin-top: 28px; }
@media (min-width: 900px) {
  .location__grid { grid-template-columns: 6fr 5fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
}

/* ---------- AVAILABILITY (dark block) ---------- */
.avail, .rules, .footer { background: var(--forest); color: var(--bone); }
.avail { padding-block: clamp(80px, 10vw, 140px); }
.avail__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.avail .eyebrow { color: var(--amber); margin-bottom: 16px; }
.avail__head > p { margin-top: 14px; color: rgba(238, 235, 226, .82); }
.avail__body { display: grid; gap: 28px; }
.cal { position: relative; }
.cal__bar { position: absolute; right: 0; top: -6px; display: flex; gap: 4px; }
.cal__nav { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-d); font-size: 1.2rem; }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; gap: 36px; }
.month__name { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin-bottom: 14px; min-height: 44px; display: flex; align-items: center; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.month__dow { font-size: .78rem; text-align: center; color: rgba(238, 235, 226, .6); padding-bottom: 6px; }
.day { aspect-ratio: 1 / 1; min-height: 40px; display: grid; place-items: center; background: transparent; border: 0; font-size: .95rem; color: var(--bone); font-variant-numeric: tabular-nums; position: relative; }
.day:not(:disabled):hover { background: var(--forest-2); outline: 1px solid var(--amber); outline-offset: -1px; }
.day:disabled { cursor: default; }
.day--past { color: rgba(238, 235, 226, .25); }
.day--booked { color: rgba(238, 235, 226, .42); text-decoration: line-through; text-decoration-color: var(--amber); text-decoration-thickness: 1.5px; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(238, 235, 226, .05) 6px 7px); }
.day--booked.day--co-ok { color: var(--bone); cursor: pointer; }
.day--range { background: rgba(196, 146, 63, .22); }
.day--in, .day--out { background: var(--amber); color: var(--ink); font-weight: 600; text-decoration: none; }
.day--today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; background: var(--amber); border-radius: 50%; }
.day--in::after, .day--out::after { background: var(--ink); }
.day--in:not(:disabled):hover, .day--out:not(:disabled):hover { background: var(--amber); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .85rem; color: rgba(238, 235, 226, .8); }
.cal__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--line-d); }
.sw--booked { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(238, 235, 226, .35) 3px 4px); }
.sw--sel { background: var(--amber); border-color: var(--amber); }
.cal__sync { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line-d); color: var(--bone); font-size: .92rem; }
.cal__sync i { color: var(--amber); }
.summary { background: var(--forest-2); padding: 28px clamp(20px, 3vw, 32px); align-self: start; }
.summary .h4 { color: var(--amber); }
.summary__rows { margin-top: 14px; }
.summary__rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.summary__rows dt { color: rgba(238, 235, 226, .72); font-size: .92rem; }
.summary__rows dd { text-align: right; font-weight: 500; }
.summary select { background: var(--forest); border: 1px solid var(--line-d); padding: 8px 12px; min-height: 44px; color: var(--bone); }
.msg { min-height: 3.4em; margin: 16px 0; font-size: .95rem; line-height: 1.55; }
.msg--ok { color: #CFE3C9; }
.msg--err { color: #F2C9A8; }
.msg--err::before { content: ""; display: inline-block; width: 3px; height: 1em; margin-right: 10px; vertical-align: -2px; background: var(--amber); }
.summary__note { margin-top: 14px; color: rgba(238, 235, 226, .66); }
@media (min-width: 760px) { .cal__months { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 1080px) { .avail__body { grid-template-columns: 1fr 360px; gap: 56px; } }

/* ---------- RULES ---------- */
.rules { padding-bottom: clamp(80px, 10vw, 140px); }
.rules__grid { display: grid; gap: 40px; background: linear-gradient(var(--line-d), var(--line-d)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; padding-top: clamp(64px, 8vw, 112px); }
.times { display: flex; gap: clamp(28px, 5vw, 64px); margin-top: 36px; }
.times > div { display: flex; flex-direction: column; }
.times .fig { font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--bone); }
.times__label { margin-top: 10px; font-size: .85rem; color: var(--amber); letter-spacing: .06em; }
.rules__list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-d); color: rgba(238, 235, 226, .88); }
.rules__list i { font-size: 1.35rem; color: var(--amber); margin-top: 2px; }
@media (min-width: 900px) { .rules__grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); } }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line-d); padding-block: 56px 40px; }
.footer__grid { display: grid; gap: 28px; }
.wordmark--lg .wordmark__name { font-size: 1.5rem; }
.footer .wordmark { margin-bottom: 16px; }
.footer .small { color: rgba(238, 235, 226, .66); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer__links a { text-decoration: none; border-bottom: 1px solid var(--line-d); padding-bottom: 2px; }
.footer__links a:hover { border-color: var(--amber); }
.footer__managed { letter-spacing: .06em; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 2fr 1fr; align-items: end; } .footer__managed { text-align: right; } }

/* ---------- MOBILE BAR ---------- */
.mbar { position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--forest); color: var(--bone); box-shadow: 0 -1px 0 var(--line-d); transform: translateY(110%); transition: transform .35s var(--ease); }
.mbar.is-on { transform: none; }
.mbar p { font-size: .82rem; line-height: 1.35; opacity: .85; }
.mbar .btn { min-height: 46px; flex-shrink: 0; }
@media (min-width: 1080px) { .mbar { display: none; } }
@media (max-width: 1079px) { body { padding-bottom: 72px; } }

/* ---------- LIGHTBOX ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 18, 13, .97); color: var(--bone); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(10, 18, 13, .9); }
.lb__fig { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100dvh; padding: 56px 0 24px; min-width: 0; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; touch-action: pan-y; user-select: none; }
.lb__fig figcaption { margin-top: 16px; display: flex; gap: 18px; font-size: .92rem; opacity: .85; }
.lb__count { opacity: .6; }
.lb__nav, .lb__close { background: none; border: 0; color: var(--bone); width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.8rem; }
.lb__close { position: absolute; top: 8px; right: 8px; }
.lb__prev { grid-column: 1; justify-self: center; } .lb__next { grid-column: 3; justify-self: center; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb__fig { grid-column: 1; padding-inline: 0; }
  .lb__nav { position: absolute; bottom: 12px; }
  .lb__prev { left: 12px; } .lb__next { right: 12px; }
}

/* ---------- TOAST ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: min(92vw, 460px); padding: 14px 20px; background: var(--ivory); color: var(--ink); font-size: .95rem; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
