/* Guest page demos: one editorial template, laid out like a printed resort catalogue.
   Every demo uses this file unchanged. Only two things differ from hotel to hotel:
   the photos (in the page) and the colours (--accent and --accent-ink in the page's small inline <style>).
   booking.js, guest.js and offer.js add the styles of the parts they build. */

:root {
  --accent: #1f4d45;
  --accent-ink: #ffffff;
  --paper: #f6f2eb;
  --soft: #f6f2eb;
  --ink: #1d1b18;
  --dim: #6b655c;
  --line: #d9d1c3;
  --white: #ffffff;
  --radius: 0px;
  --shadow: none;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Jost, system-ui, -apple-system, "Segoe UI", sans-serif;
  --caps: 500 11px/1.4 var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); counter-reset: chapter; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; }
a { color: inherit; }
button { font: inherit; }

/* Small tracked capitals: the catalogue's labels */
.hero__kicker, .item__meta, .chip, .how, .btn, .sb-know__row dt, .foot { text-transform: uppercase; letter-spacing: .16em; }

/* Demo strip: one line; guest.js folds the source text behind "Details". */
.demo { background: var(--ink); color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.4; padding: 9px 16px; text-align: center; }
.demo strong { font-weight: 500; color: #fff; }
.demo__more { display: none; }
.demo.is-open .demo__more { display: inline; }
.demo__tog { border: 0; background: none; color: #fff; font: 500 12px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; padding: 0 0 0 6px; cursor: pointer; }
.embed .demo, .embed #offer, .embed .foot { display: none; }

/* Cover */
.hero { position: relative; overflow: hidden; overflow: clip; min-height: max(460px, 78vh); min-height: max(460px, 78svh); display: flex; align-items: flex-end; color: #fff; background: #3a352e center / cover no-repeat; }
/* Shading so white type reads on any photo: a light dim overall and the top darkened for the language picker.
   The dark oval sits on .hero__in itself, so it follows the title block wherever it lands. */
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%),
  rgba(0,0,0,.16); }
.hero__in::before { content: ""; position: absolute; z-index: -1; inset: -8% -14% -4%; background: radial-gradient(closest-side, rgba(0,0,0,.52) 0%, rgba(0,0,0,.40) 45%, rgba(0,0,0,.18) 75%, rgba(0,0,0,0) 100%); pointer-events: none; }
.hero__in { position: relative; z-index: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 32px 20px 56px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.25), 0 2px 18px rgba(0,0,0,.35); }
.hero .hero__kicker { font: var(--caps); max-width: none; letter-spacing: .28em; margin: 0 0 18px; opacity: .92; }
.hero h1 { font-size: clamp(48px, 12vw, 96px); font-weight: 300; letter-spacing: .01em; line-height: .98; }
.hero p { margin: 20px auto 0; max-width: 40ch; font: italic 400 19px/1.45 var(--serif); opacity: .95; }

/* Page */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.how { margin: 0 -20px; padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font: var(--caps); letter-spacing: .16em; color: var(--dim); text-align: center; }
.how b { color: var(--accent); font-weight: 500; }

/* Contents: the category tabs stick to the top and follow the scroll (guest.js) */
.chips { position: sticky; top: 0; z-index: 5; margin: 56px -20px 0; padding: 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; justify-content: safe center; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.is-stuck { box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.chips.has-track { display: block; overflow: visible; }
.chips__track { display: flex; justify-content: safe center; gap: 28px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.chips__track::-webkit-scrollbar { display: none; }
/* More tabs than fit: a fade and an arrow on the side that has more (guest.js) */
.chips__more { position: absolute; top: 0; bottom: 0; z-index: 1; width: 64px; border: 0; padding: 0 16px; display: flex; align-items: center; color: var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; -webkit-tap-highlight-color: transparent; }
.chips__more--next { right: 0; justify-content: flex-end; background: linear-gradient(90deg, rgba(246,242,235,0) 0%, var(--paper) 60%); }
.chips__more--prev { left: 0; justify-content: flex-start; background: linear-gradient(270deg, rgba(246,242,235,0) 0%, var(--paper) 60%); }
.chips.can-next .chips__more--next, .chips.can-prev .chips__more--prev { opacity: 1; pointer-events: auto; }
.chips__more svg { pointer-events: none; }
.chips__more:focus-visible { outline: 1px solid var(--accent); outline-offset: -4px; }
.chip { flex: none; min-height: 50px; border: 0; background: none; color: var(--dim); padding: 0; font: var(--caps); letter-spacing: .16em; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .2s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.chip__n { font: 400 11px var(--sans); letter-spacing: 0; opacity: .6; font-variant-numeric: tabular-nums; }

/* Chapters: one per category, numbered */
.cat { margin: 88px 0 0; scroll-margin-top: 64px; counter-increment: chapter; }
.cat h2 { font-size: clamp(42px, 9vw, 64px); font-weight: 300; text-align: center; margin: 0 0 14px; }
.cat h2::before { content: counter(chapter, decimal-leading-zero); display: block; font: var(--caps); letter-spacing: .28em; color: var(--accent); margin: 0 0 14px; }
.cat > p { margin: 0 auto 40px; color: var(--dim); font: italic 400 19px/1.5 var(--serif); text-align: center; max-width: 52ch; }
.grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 680px) { .grid { grid-template-columns: 1fr 1fr; gap: 56px 32px; } }
@media (min-width: 940px) { .grid { grid-template-columns: 1fr 1fr 1fr; gap: 64px 36px; } }

/* Services: open layout on the paper, no boxes */
.item { position: relative; background: none; display: flex; flex-direction: column; cursor: pointer; }
.item__img { position: relative; aspect-ratio: 4 / 5; background: #e2dbcf center / cover no-repeat; transition: filter .4s ease; }
@media (hover: hover) { .item:hover .item__img { filter: brightness(1.06) saturate(1.04); } .item:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; } }
.item__img[data-ill]::after { content: "Illustration"; position: absolute; left: 0; bottom: 0; background: rgba(29,27,24,.55); color: #fff; font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; }
.item__body { padding: 20px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item__meta { order: -1; font: var(--caps); letter-spacing: .16em; color: var(--dim); margin: 0; }
.item h3 { font-size: 28px; font-weight: 500; line-height: 1.1; }
.item__desc { font-size: 15px; color: #4a453e; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.item__desc + .item__foot, .item__meta + .item__foot { margin-top: 12px; }
.item__foot .btn { margin-left: auto; max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.price { font: 400 16px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.price small { color: var(--dim); }
.price:has(small ~ small) { flex-basis: 100%; line-height: 1.6; }
.price--ask { color: var(--dim); font-style: italic; font-family: var(--serif); font-size: 17px; }

/* Wide screens: the first service of each chapter is a two-page feature, alternating sides */
@media (min-width: 680px) {
  .grid > .item:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 56px; align-items: center; }
  .cat:nth-of-type(even) .grid > .item:first-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .cat:nth-of-type(even) .grid > .item:first-child .item__img { order: 2; }
  .grid > .item:first-child .item__img { aspect-ratio: 3 / 2; }
  .grid > .item:first-child .item__body { padding: 0; gap: 12px; }
  .grid > .item:first-child h3 { font-size: 44px; font-weight: 300; }
  .grid > .item:first-child .item__desc { font-size: 16px; -webkit-line-clamp: 5; }
  .grid > .item:first-child .item__foot { margin-top: 18px; }
}

/* Phone: the first service is a full-width feature, the rest are rows divided by hairlines */
@media (max-width: 679px) {
  .grid > .item:first-child { margin: 0 -20px 8px; }
  .grid > .item:first-child .item__img { aspect-ratio: 4 / 5; }
  .grid > .item:first-child .item__body { padding: 22px 20px 28px; }
  .grid > .item:first-child h3 { font-size: 34px; font-weight: 400; }
  .grid > .item:not(:first-child) { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 16px; padding: 20px 0; border-top: 1px solid var(--line); }
  .grid > .item:not(:first-child) .item__img { aspect-ratio: 4 / 5; align-self: start; }
  .grid > .item:not(:first-child) .item__img[data-ill]::after { font-size: 8.5px; padding: 4px 5px; }
  .grid > .item:not(:first-child) .item__body { padding: 0; gap: 4px; }
  .grid > .item:not(:first-child) h3 { font-size: 23px; }
  .grid > .item:not(:first-child) h3, .grid > .item:not(:first-child) .item__meta { padding-right: 40px; }
  .grid > .item:not(:first-child) .item__desc { display: none; }
  .grid > .item:not(:first-child) .item__foot { border-top: 0; padding-top: 6px; margin-top: 4px; gap: 8px; }
  .grid > .item:not(:first-child) .btn { padding: 0 14px; }
}

/* Buttons: outlined small capitals; the filled colour is kept for the main step */
.btn { border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); min-height: 44px; padding: 0 22px; font: 500 11.5px/1 var(--sans); letter-spacing: .18em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; }
.btn:hover, .item:hover .btn { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.contact .btn:not(.btn--ghost), #offer .btn:not(.btn--ghost) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:focus-visible, .chip:focus-visible, .demo__tog:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Something else? */
.contact { margin: 104px 0 0; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.contact h2 { font-size: clamp(36px, 7vw, 48px); font-weight: 300; margin-bottom: 10px; }
.contact p { margin: 0 auto 24px; color: var(--dim); font: italic 400 19px/1.5 var(--serif); max-width: 44ch; }
.contact .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.foot { text-align: center; font: var(--caps); letter-spacing: .2em; color: var(--dim); padding: 56px 16px 64px; line-height: 2; }
.foot a { color: var(--dim); }

/* Older request sheet. booking.js replaces it on every page; kept for a page without the script. */
.sheet { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.sheet[open-sheet] { display: flex; }
.sheet__box { background: var(--white); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 18px 18px 24px; }
@media (min-width: 680px) { .sheet { align-items: center; } }
.sheet__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 10px; }
.sheet__head h2 { font-size: 26px; }
.x { border: 0; background: var(--paper); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 18px; flex: none; }
.f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
.f .full { grid-column: 1 / -1; }
.f input, .f select, .f textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: #fff; width: 100%; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--dim); margin: 12px 0; }
.err { color: #b3261e; font-size: 13px; min-height: 1em; margin: 0 0 8px; }
.done { display: none; }
.done h3 { font-size: 22px; margin: 4px 0 8px; }
.msg { background: #e9f8ef; border: 1px solid #bfe6cd; padding: 12px 14px; font-size: 14px; white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; }
.msg__from { font: 600 12px var(--sans); color: #06c755; margin-bottom: 6px; }
.note { font-size: 13px; color: var(--dim); margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) { .item__img, .btn, .chip { transition: none; } }

/* Thai and Chinese have no capitals: drop the wide letter spacing there */
html:is([lang=th],[lang=zh]) :is(.hero__kicker, .item__meta, .chip, .how, .btn, .foot), html:is([lang=th],[lang=zh]) .cat h2::before { letter-spacing: .02em; }

/* Shown inside the phone on /guest-page (?embed=1): a shorter cover, so a service shows on the first screen */
.embed .hero { min-height: 250px; }
.embed .hero__in { padding-bottom: 32px; }
.embed .hero h1 { font-size: 46px; }
.embed .hero p { font-size: 16.5px; }

.embed .cat:first-of-type { margin-top: 28px; }
.embed .cat:first-of-type > p { margin-bottom: 20px; }
.embed .how, .embed .sb-know, .embed .sb-today { display: none; }
.embed .chips { margin-top: 0; }
