/* ==========================================================================
   UTD8 Hotel & Residence — Design System (v2)
   One typeface, centred layout, justified text, no divider lines.
   Every page links this file. Change tokens here, not in pages.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour — navy is taken from the UTD8 logo */
  --navy: #1f3366;
  --navy-deep: #131f3d;
  --navy-overlay: rgba(19, 31, 61, 0.5);
  --sage: #b7bca5;
  --cream: #f6f3ec;
  --paper: #ffffff;
  --ink: var(--navy-deep);
  --ink-soft: #5d6577;
  --star: #e6b65c;

  /* One typeface across the whole site */
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-th: "Instrument Sans", "Noto Sans Thai", "Thonburi", sans-serif;

  --fs-display: clamp(2rem, 3.4vw, 3rem);
  --fs-h2: clamp(1.7rem, 2.4vw, 2.3rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.76rem;

  --container: 1320px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 130px);
  --header-h: 96px;
  --header-solid: 76px;
  --bookbar-h: 92px;
  --radius: 2px;
  --shadow: 0 18px 40px -24px rgba(19, 31, 61, 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-solid) + var(--bookbar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--sage); color: var(--navy-deep); }

/* All running text is justified (flush on both edges); centred blocks centre their last line */
p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; } /* "pretty" stops single words being left alone on the last line */
.center, .center p { text-align: center; }
.center p.justify, p.justify { text-align: justify; text-align-last: center; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }

/* ---------- 3. Typography ---------- */
.t-display { font-weight: 500; font-size: var(--fs-display); line-height: 1.1; letter-spacing: -0.02em; }
.t-h2 { font-weight: 500; font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.015em; }
.t-h3 { font-weight: 500; font-size: var(--fs-h3); line-height: 1.3; }
.t-lead { font-size: var(--fs-lead); line-height: 1.6; }
.t-eyebrow, .t-caption { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.t-muted { color: var(--ink-soft); }

/* Centred section heading block */
.head { text-align: center; max-width: 1000px; margin: 0 auto clamp(40px, 5vw, 64px); }
.head .t-eyebrow { display: block; color: var(--ink-soft); margin-bottom: 14px; }
.head h2 { white-space: nowrap; }            /* section titles stay on one line on larger screens */
.head p { max-width: 900px; margin: 18px auto 0; color: var(--ink-soft); text-align: center; text-wrap: balance; } /* lines evened out to equal length */

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 30px; border-radius: var(--radius); border: 1px solid var(--navy);
  background: var(--navy); color: #fff; cursor: pointer;
  font: inherit; font-size: var(--fs-small); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); gap: 1em; }
.btn--light { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.link-arrow { display: inline-flex; gap: .5em; align-items: center; font-size: var(--fs-small); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: gap .3s var(--ease); }
.link-arrow:hover { gap: .9em; }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: none; }
.site-header .logo { display: block; width: 160px; position: relative; z-index: 60; transition: width .4s var(--ease); }
.site-header .logo img { width: 100%; transition: opacity .4s var(--ease); }
.site-header .logo .logo-navy { position: absolute; inset: 0; opacity: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.site-nav a.nav-link { font-size: .9rem; position: relative; padding: 4px 0; }
.site-nav a.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.site-nav a.nav-link:hover::after { right: 0; }
.lang { font-size: var(--fs-small); letter-spacing: .1em; opacity: .85; }
.lang a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { padding: 11px 20px; }
.site-header:not(.is-solid) .header-cta { background: #fff; color: var(--navy-deep); border-color: #fff; }
.site-header.is-solid { background: rgba(255,255,255,.97); color: var(--ink); height: var(--header-solid); box-shadow: 0 6px 20px -16px rgba(19,31,61,.4); }
.site-header.is-solid .logo { width: 130px; }
.site-header.is-solid .logo .logo-white { opacity: 0; }
.site-header.is-solid .logo .logo-navy { opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; margin-right: -8px; }
.menu-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 7px 0; transition: transform .3s var(--ease); }

/* ---------- 6. Hero (silent room video, short title, rating) ---------- */
.hero { position: relative; height: calc(100vh - var(--bookbar-h)); height: calc(100svh - var(--bookbar-h)); min-height: 520px; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.06); animation: heroZoom 9s var(--ease) forwards; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__copy { display: grid; justify-items: start; gap: 14px; max-width: 760px; }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.02em; margin: 4px 0 0; text-wrap: balance; }
.hero__sources { margin: 0; font-size: .85rem; opacity: .85; text-align: left; }
.rating-chip .star { color: var(--star, #e6b65c); font-size: 1.1rem; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,31,61,.55) 0%, rgba(19,31,61,0) 28%, rgba(19,31,61,0) 42%, rgba(19,31,61,.78) 100%); }
.hero__foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(28px, 5vh, 56px); }
.hero__foot .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.rating-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius); font-size: .88rem; transition: background .3s; }
.rating-chip:hover { background: rgba(255,255,255,.24); }
.rating-chip strong { font-size: 1.35rem; font-weight: 600; line-height: 1; }
.rating-chip b { font-weight: 600; }

/* Review score card (Agoda) */
.scorecard { display: grid; grid-template-columns: auto 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: center; background: var(--cream); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); }
.scorecard__total { display: flex; align-items: center; gap: 16px; }
.scorecard__total strong { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; }
.scorecard__total span { font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
.scorecard__total b { display: block; font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.scorecard__bars { display: grid; grid-template-columns: 1fr; gap: 16px; }
.scorecard__bars li { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 20px; font-size: .9rem; }
.scorecard__bars b { font-weight: 600; color: var(--navy); white-space: nowrap; }
.scorecard__bars b small { display: inline-block; width: 2.6em; text-align: left; font-weight: 400; font-size: .75em; color: var(--ink-soft); }
.scorecard__bars i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--navy) var(--v), rgba(19,31,61,.1) var(--v)); }
.scorecard__quotes { display: grid; gap: 14px; }
.scorecard__quotes li { font-size: .95rem; line-height: 1.45; }
.scorecard__quotes span { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 3px; }
@keyframes heroZoom { to { transform: scale(1); } }

/* ---------- 7. Booking bar — sits under the hero, then sticks under the header ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bookbar { position: sticky; top: var(--header-solid); z-index: 45; background: var(--paper); box-shadow: 0 14px 30px -24px rgba(19,31,61,.45); }
.bookbar__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); min-height: var(--bookbar-h); }
.bookbar__fields { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(16px, 3vw, 44px); }
.bookbar__label { display: block; color: var(--ink-soft); margin-bottom: 6px; }
.bookbar__daterow { display: flex; align-items: center; gap: 14px; }
.bookbar__daterow input { border: 0; background: transparent; font: inherit; font-size: 1.02rem; color: var(--ink); padding: 2px 0; min-width: 0; cursor: pointer; }
.bookbar__daterow input:focus { outline: 2px solid var(--sage); outline-offset: 4px; }
.bookbar__arrow { color: var(--ink-soft); }
.bookbar__guests { position: relative; }
.bookbar__select { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; max-width: 300px; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 1.02rem; color: var(--ink); cursor: pointer; text-align: left; }
.bookbar__select svg { transition: transform .3s var(--ease); }
.bookbar__select[aria-expanded="true"] svg { transform: rotate(180deg); }
.bookbar__pop { position: absolute; top: calc(100% + 22px); left: 0; width: 300px; background: var(--paper); box-shadow: var(--shadow); padding: 14px 22px 20px; }
.stepper { display: grid; grid-template-columns: 1fr 34px 36px 34px; align-items: center; padding: 9px 0; }
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 1.05rem; cursor: pointer; transition: background .2s, color .2s; }
.stepper button:hover:not(:disabled) { background: var(--navy); color: #fff; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { text-align: center; font-weight: 500; }
.bookbar__done { margin-top: 12px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--navy); }
.bookbar__note { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.bookbar__cta-wrap { flex: none; }
.bookbar__summary { display: none; }

/* ---------- 8. Perks strip (included in every stay) ---------- */
.perks { background: var(--navy-deep); color: #fff; padding: 22px 0; }
.perks ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.perks li { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .88rem; text-align: center; }
.perks svg { flex: none; width: 22px; height: 22px; opacity: .85; }

/* ---------- 9. Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--cream { background: var(--cream); }
.section--tight-top { padding-top: 0; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; margin-top: clamp(40px, 5vw, 64px); }
.stats .num { display: block; font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stats .lbl { display: block; margin-top: 10px; color: var(--ink-soft); }

/* ---------- 10. Images ---------- */
.figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure__caption { position: absolute; left: 20px; bottom: 16px; color: #fff; z-index: 2; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.figure--wide { aspect-ratio: 16 / 7; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--land { aspect-ratio: 3 / 2; }
.duo { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(16px, 2vw, 24px); align-items: end; margin-top: clamp(48px, 6vw, 80px); }

/* ---------- 11. Room cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.room { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.room:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -26px rgba(19,31,61,.45); }
.room__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room:hover .room__media img { transform: scale(1.05); }
button.room__media { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.room__badges { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; }
.pill { background: rgba(19,31,61,.72); color: #fff; font-size: .74rem; font-weight: 500; padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill--play { background: #fff; color: var(--navy-deep); }
.gallery .figure > button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.room__tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--navy-deep); padding: 6px 10px; border-radius: var(--radius); }
.room__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; text-align: center; }
.room__meta { color: var(--ink-soft); font-size: .88rem; text-align: center; }
.room__body p.desc { font-size: .92rem; color: var(--ink-soft); }
.room__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.room__price { font-size: 1.5rem; font-weight: 500; line-height: 1; }
.room__price small { font-size: .8rem; color: var(--ink-soft); font-weight: 400; }
.room__price .from { display: block; font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.room .btn { width: 100%; }

/* ---------- 12. Amenities — spread evenly across the page ---------- */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(24px, 4vw, 64px); }
.amenity { text-align: center; }
.amenity svg { width: 34px; height: 34px; color: var(--navy); margin: 0 auto 16px; display: block; }
.amenity h3 { margin-bottom: 6px; }
.amenity p { color: var(--ink-soft); font-size: .93rem; text-align: center; max-width: 280px; margin: 0 auto; }

/* ---------- 13. Reviews ---------- */
.score { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.score strong { font-size: 3rem; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.score span { text-align: left; font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
.score .stars { color: var(--star); letter-spacing: 3px; display: block; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 24px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; background: var(--paper); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; min-height: 320px; box-shadow: var(--shadow); }
.review__score { font-size: 1.6rem; font-weight: 500; line-height: 1; }
.review__score small { font-size: .85rem; color: var(--ink-soft); }
.review h3 { font-size: 1.05rem; font-weight: 500; margin: 16px 0 10px; }
.review p { color: var(--ink-soft); font-size: .93rem; }
.review__who { margin-top: auto; padding-top: 22px; font-size: .88rem; text-align: left; }
.review__who .t-caption { display: block; color: var(--ink-soft); margin-top: 4px; font-weight: 400; }
.slider-nav { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.slider-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 1rem; box-shadow: var(--shadow); transition: background .3s, color .3s; }
.slider-nav button:hover { background: var(--navy); color: #fff; }

/* ---------- 14. Location: map + itinerary ---------- */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.map { position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.itinerary { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: var(--radius); overflow: hidden; color: #fff; }
.itinerary img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.itinerary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,31,61,.05) 20%, rgba(19,31,61,.85) 100%); }
.itinerary__body { position: relative; z-index: 2; padding: clamp(28px, 4vw, 48px); text-align: center; width: 100%; }
.itinerary__body h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; margin: 10px 0 14px; }
.itinerary__body p { color: rgba(255,255,255,.85); max-width: 420px; margin: 0 auto 22px; text-align: justify; text-align-last: center; }
.itinerary:hover img { transform: scale(1.04); }

/* ---------- 15. Journal ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.post { display: flex; flex-direction: column; gap: 14px; }
.post .figure { aspect-ratio: 4 / 3; }
.post:hover .figure img { transform: scale(1.04); }
.post .t-caption { color: var(--ink-soft); }
.post h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.35; }
.post p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- 16. Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filters button { background: var(--cream); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; color: var(--ink); font: inherit; font-size: .82rem; transition: background .3s, color .3s; }
.filters button.is-active, .filters button:hover { background: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery .figure { height: 100%; }
.gallery .figure.span-2 { grid-column: span 2; grid-row: span 2; }
.gallery .figure.is-hidden { display: none; }
.gallery .figure:hover img { transform: scale(1.04); }

/* ---------- 17. FAQ (cards, no lines) ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--cream); border-radius: var(--radius); padding: 0 26px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 1.02rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); position: relative; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .3s var(--ease); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); white-space: pre-line; }

/* ---------- 18. Final call-to-action banner ---------- */
.cta-band { position: relative; color: #fff; text-align: center; padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(19,31,61,.6); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { margin: 14px 0 18px; }
.cta-band p { max-width: 520px; margin: 0 auto 30px; color: rgba(255,255,255,.85); text-align: justify; text-align-last: center; }
.cta-band .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- 19. Contact band (sage) + footer ---------- */
.contact { background: var(--sage); padding: clamp(64px, 8vw, 110px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__info { text-align: center; }
.contact__logo { width: 170px; margin: 0 auto 20px; }
.contact__info .item { margin-top: 26px; }
.contact__info .t-caption { display: block; margin-bottom: 4px; opacity: .7; }
.form-card { background: rgba(255,255,255,.55); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); }
.form-card .t-h3, .form-card .form__note { text-align: center; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: #fff; border: 0; border-radius: var(--radius); padding: 13px 14px; font: inherit; color: var(--ink); outline: none; transition: box-shadow .3s; }
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 2px var(--navy); }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form__note { font-size: .82rem; opacity: .75; }
.form__ok { display: none; text-align: center; }
.form.is-sent .form__ok { display: block; }
.footer-bar { background: var(--navy-deep); color: rgba(255,255,255,.85); font-size: .8rem; padding: 20px 0; }
.footer-bar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 20. Floating chat button ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 48; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; background: #25d366; color: #fff; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); font-size: .88rem; font-weight: 600; transition: transform .3s var(--ease); }
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab { opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .4s var(--ease); }
body.is-scrolled .chat-fab { opacity: 1; pointer-events: auto; }
.chat-fab svg { width: 22px; height: 22px; }

.bookbar__note .star { color: var(--star); }

/* ---------- 20a. Photo / video viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10,16,32,.96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .3s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox { pointer-events: none; }
.lightbox[hidden], .nudge[hidden] { display: none; }
.lightbox__top { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.lightbox__title { font-weight: 500; }
.lightbox__count { color: rgba(255,255,255,.6); font-size: .85rem; margin-right: auto; }
.lightbox__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox__stage { position: relative; min-height: 0; }
.lightbox__stage img, .lightbox__stage video { position: absolute; inset: 0 76px; margin: auto; max-width: calc(100% - 152px); max-height: 100%; width: auto; height: auto; border-radius: var(--radius); object-fit: contain; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .3s; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__foot { display: flex; justify-content: center; padding: 16px 20px 22px; }
@media (max-width: 760px) {
  .lightbox__stage img, .lightbox__stage video { inset: 0 8px; max-width: calc(100% - 16px); }
  .lightbox__nav { top: auto; bottom: 22px; transform: none; width: 44px; height: 44px; }
}

/* ---------- 20b. "Before you go" popup (exit intent, once per visit) ---------- */
.nudge { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(19,31,61,.55); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.nudge.is-open { opacity: 1; pointer-events: auto; }
.nudge__card { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(820px, 100%); background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); transform: translateY(16px); transition: transform .45s var(--ease); }
.nudge.is-open .nudge__card { transform: none; }
.nudge__media { position: relative; min-height: 360px; }
.nudge__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nudge__body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 16px; text-align: center; }
.nudge__body .t-eyebrow { color: var(--ink-soft); }
.nudge__body p { color: var(--ink-soft); text-align: justify; text-align-last: center; }
.nudge__rating { display: inline-flex; align-self: center; align-items: center; gap: 10px; font-size: .88rem; }
.nudge__rating strong { background: var(--navy); color: #fff; border-radius: 8px; padding: 4px 8px; font-weight: 600; }
.nudge__code { align-self: center; border: 1.5px dashed var(--navy); border-radius: var(--radius); padding: 10px 18px; font-weight: 600; letter-spacing: .14em; }
.nudge__actions { display: grid; gap: 10px; margin-top: 6px; }
.nudge__close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.nudge__skip { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 21. Article pages ---------- */
.page-hero { position: relative; height: 62vh; min-height: 380px; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,31,61,.5), rgba(19,31,61,.15) 40%, rgba(19,31,61,.7)); }
.page-hero .container { position: relative; z-index: 2; padding-bottom: 48px; text-align: center; }
.page-hero h1 { max-width: 820px; margin: 12px auto 0; }
.article { padding: clamp(56px, 7vw, 96px) 0; }
.article .narrow > * + * { margin-top: 1.2em; }
.article h2 { font-size: 1.45rem; font-weight: 500; margin-top: 2em !important; text-align: center; }
.article ul.list { padding-left: 1.2em; list-style: disc; }
.article ul.list li + li { margin-top: .4em; }
.article .back { display: block; text-align: center; margin-top: 3em !important; }
.page-solid .site-header { /* article pages start with a dark image too, so header behaves the same */ }

/* ---------- 22. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav { position: fixed; inset: 0; background: var(--navy-deep); color: #fff; flex-direction: column; justify-content: center; gap: 22px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
  .site-nav a.nav-link { font-size: 1.6rem; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; }
  .site-nav .header-cta { background: #fff; color: var(--navy-deep); border-color: #fff; }
  .menu-toggle { display: block; position: relative; z-index: 60; }
  body.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; }
  body.menu-open .site-header .logo .logo-white { opacity: 1; }
  body.menu-open .site-header .logo .logo-navy { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-auto-columns: calc((100% - 20px) / 2); }
  .perks ul { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .scorecard { grid-template-columns: 1fr 1fr; }
  .scorecard__quotes { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; --header-solid: 64px; --bookbar-h: 68px; }
  .head h2 { white-space: normal; text-wrap: balance; }
  .site-header .logo { width: 118px; }
  .site-header.is-solid .logo { width: 104px; }
  .hero__foot .container { justify-content: flex-start; }
  .hero__foot .rating-chip { font-size: .8rem; }
  .hero__foot .hide-sm { display: none; }
  .bookbar__inner { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .bookbar__summary { display: block; flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
  .bookbar__summary .bookbar__label { margin-bottom: 2px; }
  .bookbar__summary-text { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bookbar .btn { padding: 13px 18px; }
  .bookbar__note { display: none; }
  .bookbar__fields { display: none; order: 3; flex-basis: 100%; grid-template-columns: 1fr; gap: 18px; padding: 16px 0 10px; }
  .bookbar.is-open .bookbar__fields { display: grid; }
  .bookbar__select { max-width: none; }
  .bookbar__pop { position: static; width: auto; margin-top: 12px; box-shadow: none; background: var(--cream); }
  .perks ul { grid-template-columns: repeat(2, 1fr); }
  .perks li { justify-content: flex-start; text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .duo { grid-template-columns: 1fr; }
  .figure--wide { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-auto-columns: 86%; }
  .location { grid-template-columns: 1fr; }
  .map, .itinerary { min-height: 340px; }
  .posts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .scorecard { grid-template-columns: 1fr; }
  .scorecard__total { justify-content: center; }
  .scorecard__quotes { grid-template-columns: 1fr; text-align: center; }
  .nudge__card { grid-template-columns: 1fr; }
  .nudge__media { min-height: 170px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 14px; right: 16px; bottom: calc(var(--bookbar-h) + 16px); }
  .footer-bar { padding-bottom: 84px; }

  /* ---- Phone: easy one-hand use ---- */
  /* Booking bar sits at the bottom of the screen (thumb reach) instead of under the header,
     so the top of the screen stays free for reading. */
  .bookbar { position: fixed; top: auto; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -12px 30px -20px rgba(19,31,61,.5); }
  .bookbar.is-open { max-height: calc(100svh - var(--header-solid)); overflow-y: auto; }
  body:has(.bookbar) { padding-bottom: calc(var(--bookbar-h) + env(safe-area-inset-bottom, 0px)); }
  body:has(.bookbar) .footer-bar { padding-bottom: 20px; }
  body:has(.bookbar) .chat-fab { bottom: calc(var(--bookbar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
  body:has(.bookbar.is-open) .chat-fab { opacity: 0; pointer-events: none; }
  html { scroll-padding-top: calc(var(--header-solid) + 16px); }
  /* Gallery filters: one row you swipe sideways, instead of three rows of chips */
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; min-height: 44px; }
  /* Bigger tap targets */
  .footer-bar .container { flex-direction: column; align-items: center; text-align: center; }
  .footer-bar nav { justify-content: center; gap: 4px 6px; }
  .footer-bar nav a { display: inline-block; padding: 10px 8px; }
  .scorecard__bars b small { font-size: .78rem; }
  /* 16px form text stops iPhones zooming in when a field is tapped */
  .field input, .field textarea, .field select, .bookbar__daterow input { font-size: 16px; }
}

/* ---------- Thai version (th/index.html) ----------
   Latin letters and numbers stay in Instrument Sans; Thai letters use Noto Sans Thai,
   a matching clean sans. Thai needs a little more line height for vowel and tone marks,
   and has no spaces between words, so justified lines are replaced by centred/left text. */
html[lang="th"] body, html[lang="th"] button, html[lang="th"] input, html[lang="th"] textarea, html[lang="th"] select { font-family: var(--font-th); }
html[lang="th"] body { line-height: 1.8; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] .hero__title { line-height: 1.3; letter-spacing: 0; }
/* Plain paragraphs: left instead of justified (low priority, so centred sections stay centred) */
:where(html[lang="th"]) p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
/* Blocks that are "justified with a centred last line" in English become simply centred */
html[lang="th"] p.justify, html[lang="th"] .itinerary__body p, html[lang="th"] .cta-band p, html[lang="th"] .nudge__body p, html[lang="th"] .review p { text-align: center; }
html[lang="th"] .t-eyebrow, html[lang="th"] .t-caption, html[lang="th"] .btn { letter-spacing: .04em; }

/* ---------- Booking page (book.html): SiteMinder booking engine embedded on our site ---------- */
.book { padding: calc(var(--header-solid) + clamp(28px, 4vw, 48px)) 0 clamp(48px, 6vw, 80px); min-height: 80vh; }
.book__head { text-align: center; margin-bottom: clamp(20px, 3vw, 32px); }
.book__head h1 { margin-top: 8px; }
.book__engine { background: #fff; border-radius: var(--radius); min-height: 480px; }
.book__engine .ibe, .book__engine iframe { width: 100%; max-width: 100%; border: 0; }
.book__fallback { display: grid; justify-items: center; gap: 16px; text-align: center; margin-top: 24px; color: var(--ink-soft); }
.book__fallback[hidden] { display: none; }
