/* ==========================================================================
   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; }
.photo-credit { margin: 0 0 22px; font-size: .8rem; line-height: 1.45; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-soft); text-align: left; hyphens: manual; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.post .photo-credit { margin: 0; font-size: .72rem; }
.article-photo { margin: 4px 0 8px; }
.article-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.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; }
.nav-extra { display: none; }
/* Phone header: flag button for the other language (Thai on English pages, English on Thai pages) */
.lang-flag { display: none; align-items: center; gap: 7px; margin-left: auto; margin-right: 14px; padding: 6px 10px; border: 1px solid currentColor; border-radius: var(--radius); font-size: .72rem; font-weight: 600; letter-spacing: .12em; position: relative; z-index: 60; transition: background .3s var(--ease), color .3s var(--ease); }
.lang-flag .flag { width: 20px; height: 13px; flex: none; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-flag:hover { background: rgba(255,255,255,.12); }
.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; flex: none; min-width: 84px; height: 84px; padding: 0 14px; 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(6, auto); justify-content: space-between; gap: 16px 24px; }
.perks li { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .88rem; text-align: center; white-space: nowrap; }
.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; border: 1px solid var(--navy); }
.room:hover .room__media img { transform: scale(1.05); }
.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(5, 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: 1px 1px 8px; 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; border: 1px solid var(--navy); }
.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: 1px solid var(--navy); background: var(--paper); color: var(--navy); cursor: pointer; font-size: 1rem; 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; overflow: hidden; transition: background .35s var(--ease); }
.faq details:hover, .faq details[open] { background: #efeadf; }
.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 { transition: transform .45s var(--ease), background .3s var(--ease); }
.faq details[open] .plus { transform: rotate(180deg); }
.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; }
.contact__grid--single { grid-template-columns: 1fr; max-width: 640px; }
.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; padding: 12px 0; }
.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: 1000px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1180px) {
  /* Mobile menu: editorial list, numbered, links glide in one after another */
  .site-nav { position: fixed; inset: 0; background: var(--navy-deep); color: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; counter-reset: navnum;
    padding: calc(var(--header-h) + 28px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease), visibility 0s .45s; visibility: hidden; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .45s var(--ease); }
  /* Plain left-aligned list (no numbers, no outlines) */
  .site-nav a.nav-link { display: block; padding: 12px 0; font-size: 1.45rem; font-weight: 400; letter-spacing: -.01em;
    opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease), opacity .3s var(--ease); }
  .site-nav a.nav-link::before, .site-nav a.nav-link::after { display: none; content: none; }
  .site-nav a.nav-link:hover, .site-nav a.nav-link:focus-visible { opacity: .7; }
  .site-nav.is-open a.nav-link { opacity: 1; transform: none; }
  .site-nav.is-open a.nav-link:nth-of-type(1) { transition-delay: .06s; }
  .site-nav.is-open a.nav-link:nth-of-type(2) { transition-delay: .1s; }
  .site-nav.is-open a.nav-link:nth-of-type(3) { transition-delay: .14s; }
  .site-nav.is-open a.nav-link:nth-of-type(4) { transition-delay: .18s; }
  .site-nav.is-open a.nav-link:nth-of-type(5) { transition-delay: .22s; }
  .site-nav.is-open a.nav-link:nth-of-type(6) { transition-delay: .26s; }
  .site-nav.is-open a.nav-link:nth-of-type(7) { transition-delay: .3s; }
  .site-nav.is-open a.nav-link:nth-of-type(8) { transition-delay: .34s; }
  /* When the Motion library is loaded it drives the entrance instead of the CSS delays above */
  .has-motion .site-nav a.nav-link, .has-motion .site-nav .nav-extra, .has-motion .site-nav .lang, .has-motion .site-nav .header-cta { transition-property: color; transition-delay: 0s !important; }
  .site-nav .nav-extra { display: grid; gap: 4px; margin-top: auto; padding-top: 24px; font-size: .9rem; color: rgba(255,255,255,.72); order: 10; }
  .site-nav .nav-extra a { padding: 4px 0; }
  .site-nav .lang { order: 11; margin-top: 18px; font-size: .8rem; }
  .site-nav .header-cta { order: 12; margin-top: 18px; width: 100%; background: #fff; color: var(--navy-deep); border-color: #fff; padding: 16px 20px; }
  .site-nav .nav-extra, .site-nav .lang, .site-nav .header-cta { opacity: 0; transition: opacity .5s var(--ease) .4s; }
  .site-nav.is-open .nav-extra, .site-nav.is-open .lang, .site-nav.is-open .header-cta { opacity: 1; }
  .menu-toggle { display: block; position: relative; z-index: 60; }
  .lang-flag { display: inline-flex; }
  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, auto); 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, minmax(0, 1fr)); justify-content: stretch; column-gap: 16px; }
  .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-top: var(--header-solid); min-height: 80vh; }
.book__intro { background: var(--cream); padding: clamp(32px, 5vw, 56px) 0 clamp(22px, 3vw, 30px); }
.book__intro-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.book__intro .t-eyebrow { display: block; color: var(--ink-soft); margin-bottom: 10px; }
.book__lede { margin-top: 10px; color: var(--ink-soft); text-align: left; max-width: 520px; }
.book__rating { display: flex; align-items: center; gap: 14px; }
.book__rating strong { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 10px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 1.7rem; font-weight: 600; }
.book__rating > span { font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.book__rating b { display: block; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.book__rating .stars { display: block; color: var(--star); letter-spacing: .12em; font-size: .85rem; }
.book__perks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(20px, 3vw, 28px); font-size: .9rem; }
.book__perks li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.book__perks svg { width: 20px; height: 20px; color: var(--navy); }
.book__main { padding: clamp(24px, 3vw, 36px) 0 clamp(48px, 6vw, 80px); }
.book__engine { min-height: 520px; max-width: 1180px; margin: 0 auto; }
.book__engine .ibe { display: flex; justify-content: center; }
.book__engine iframe { display: block; width: 100% !important; max-width: 100%; margin: 0 auto; 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; }
.book__help { max-width: 1180px; margin: clamp(28px, 4vw, 44px) auto 0; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.book__help p:not(.t-h3) { color: var(--ink-soft); text-align: left; margin-top: 4px; }
.book__help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .book__intro-grid { align-items: flex-start; }
  .book__perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .book__help-actions, .book__help-actions .btn { width: 100%; }
}

/* Cookie notice steps aside while the mobile menu is open */
body.menu-open [aria-label="Cookies"] { display: none !important; }

/* Stars: a flex for the scores */
.scorecard__total .stars { display: block; color: var(--star); letter-spacing: .12em; font-size: .95rem; margin: 2px 0 4px; }
.scorecard__bars b::before { content: "\2605"; color: var(--star); font-size: .8em; margin-right: 6px; }
.slider-nav--rooms { display: none; }
@media (max-width: 760px) {
  /* Rooms on phones: one card at a time, swipe sideways like the reviews */
  .cards { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1px 1px 6px; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .cards::-webkit-scrollbar { display: none; }
  .cards .room { scroll-snap-align: start; }
  .room__media { aspect-ratio: 16 / 10; }
  .room__body { padding: 16px 18px 18px; gap: 8px; }
  .room__body h3 { font-size: 1.1rem; }
  .room__meta { font-size: .82rem; }
  .room__body p.desc { font-size: .86rem; line-height: 1.5; }
  .room__foot { padding-top: 6px; gap: 10px; }
  .room__price { font-size: 1.3rem; }
  .room .btn { padding: 12px 18px; }
  .slider-nav--rooms { display: flex; }
}

/* ---------- Date range calendar (booking bar) ---------- */
.bb-date { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 1.02rem; color: var(--ink); cursor: pointer; text-align: left; white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.bb-date:hover, .bb-date:focus-visible { border-bottom-color: var(--navy); outline: none; }
body.cal-open { overflow: hidden; }
.cal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(19,31,61,.5); opacity: 0; transition: opacity .3s var(--ease); }
.cal.is-open { opacity: 1; }
.cal__panel { position: relative; width: min(680px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; background: var(--paper); border-radius: var(--radius); padding: 24px 24px 20px; }
.cal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-right: 4px; }
.cal__step { display: block; color: var(--ink-soft); margin-bottom: 4px; }
.cal__range { font-size: 1.12rem; font-weight: 500; text-align: left; }
.cal__x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--navy); background: none; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cal__nav { display: flex; justify-content: space-between; margin: 18px 0 -36px; position: relative; z-index: 1; pointer-events: none; }
.cal__arrow { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--navy); background: var(--paper); color: var(--navy); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.cal__arrow:hover:not(:disabled) { background: var(--navy); color: #fff; }
.cal__arrow:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.cal__title { text-align: center; font-weight: 500; line-height: 36px; margin-bottom: 10px; text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__wk span { text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-soft); padding-bottom: 6px; }
.cal__day { position: relative; height: 44px; border: 0; background: none; padding: 0; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.cal__day span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); transition: background .2s var(--ease), color .2s var(--ease); }
.cal__day:hover:not(:disabled) span { background: var(--cream); }
.cal__day:disabled { color: rgba(19,31,61,.25); cursor: default; }
.cal__day.is-today span { box-shadow: inset 0 0 0 1px var(--navy); }
.cal__day.is-mid { background: var(--cream); }
.cal__day.is-start.has-range { background: linear-gradient(90deg, transparent 50%, var(--cream) 50%); }
.cal__day.is-end { background: linear-gradient(90deg, var(--cream) 50%, transparent 50%); }
.cal__day.is-start span, .cal__day.is-end span { background: var(--navy); color: #fff; }
.cal__day:focus-visible { outline: none; }
.cal__day:focus-visible span { box-shadow: 0 0 0 2px var(--star); }
.cal__foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.cal__done:disabled { opacity: .4; cursor: default; }
@media (max-width: 760px) {
  /* Phones: slides up from the bottom of the screen */
  .cal { align-items: end; padding: 0; }
  .cal__panel { width: 100%; max-height: 92svh; padding: 22px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 14px 14px 0 0; }
  .cal__done { width: 100%; }
  .cal__day { height: 46px; }
  .cal__day span { width: 42px; height: 42px; }
}

/* Reviews and Rooms are both white: one shared gap between them instead of two */
#reviews { padding-bottom: 0; }
#rooms { padding-top: clamp(48px, 6vw, 72px); }

/* ---------- Room pages (rooms/<slug>.html) ---------- */
.rp-gallery { padding-top: calc(var(--header-solid) + 24px); }
.rp-shots { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(170px, 18vw, 250px)); gap: 10px; }
.rp-shot { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--cream); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.rp-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rp-shot:hover img { transform: scale(1.04); }
.rp-shot--main { grid-row: 1 / span 2; }
.rp-shot:nth-child(n+6) { display: none; }
.rp-intro { padding: clamp(28px, 4vw, 48px) 0 0; }
.rp-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.rp-back { display: inline-block; color: var(--ink-soft); margin-bottom: 14px; }
.rp-tag { display: inline-block; margin: 0 0 12px 14px; padding: 5px 10px; border: 1px solid var(--navy); border-radius: var(--radius); color: var(--navy); }
.rp-intro h1 { margin-bottom: 10px; }
.rp-meta { color: var(--ink-soft); text-align: left; margin-bottom: 18px; }
.rp-desc { font-size: var(--fs-lead); line-height: 1.6; text-align: left; max-width: 640px; }
.rp-book { position: sticky; top: calc(var(--header-solid) + 20px); display: grid; gap: 12px; padding: 24px; border: 1px solid var(--navy); border-radius: var(--radius); text-align: center; }
.rp-book .room__price { margin-bottom: 6px; }
.rp-features { padding-top: clamp(40px, 5vw, 64px); }
.rp-features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.rp-features .t-eyebrow { display: block; color: var(--ink-soft); margin-bottom: 14px; }
.rp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.rp-list li { display: flex; align-items: flex-start; gap: 10px; }
.rp-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--navy); }
.rp-video video { display: block; width: 100%; border-radius: var(--radius); background: #000; }
.rp-others { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.rp-other { display: flex; flex-direction: column; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; background: var(--paper); transition: border-color .3s var(--ease); }
.rp-other img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rp-other:hover img { transform: scale(1.04); }
.rp-other__body { display: grid; gap: 4px; padding: 14px 14px 16px; text-align: center; }
.rp-other__body strong { font-weight: 500; }
.rp-other__body > span:not(.room__price) { color: var(--ink-soft); font-size: .82rem; }
.rp-other .room__price { font-size: 1.1rem; margin-top: 6px; }
@media (max-width: 1000px) {
  .rp-others { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .rp-others::-webkit-scrollbar { display: none; }
  .rp-other { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .rp-gallery { padding-top: calc(var(--header-solid) + 12px); }
  .rp-gallery .container { padding-right: 0; }
  .rp-shots { display: grid; grid-template-columns: none; grid-template-rows: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: var(--gutter); }
  .rp-shots::-webkit-scrollbar { display: none; }
  .rp-shot { aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .rp-shot--main { grid-row: auto; }
  .rp-shot:nth-child(n+6) { display: block; }
  .rp-intro__grid { grid-template-columns: 1fr; gap: 22px; }
  .rp-book { position: static; }
  .rp-features__grid, .rp-list { grid-template-columns: 1fr; }
  .rp-others { grid-auto-columns: 70%; }
}

/* Room details: parts spaced apart with a short thin divider (instead of "·") */
.room__meta, .rp-meta, .rp-other__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 2px; }
.rp-meta { justify-content: flex-start; }
.room__meta > span + span::before, .rp-meta > span + span::before, .rp-other__meta > span + span::before {
  content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 12px; background: currentColor; opacity: .35; vertical-align: -1px; }
.rp-other__meta { color: var(--ink-soft); font-size: .82rem; }
/* Room pages carry the booking bar at the top (sticky under the header on computers; at the bottom on phones) */
.room-page .rp { padding-top: var(--header-solid); }
.room-page .rp-gallery { padding-top: 24px; }
@media (max-width: 760px) { .room-page .rp-gallery { padding-top: 12px; } }

/* Booking page: everything lines up with the 1024px-wide SiteMinder engine */
.book .container { max-width: calc(1024px + 2 * var(--gutter)); }
.book__engine, .book__help { max-width: 1024px; }

/* ---------- Booking prompts on every page (added by utd8.js) ---------- */
/* Reviews: rating + button right under the guest reviews */
.reviews-cta { display: flex; align-items: center; justify-content: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 28px; text-align: center; }
.reviews-cta__rating { font-size: .95rem; color: var(--ink); }
.reviews-cta__rating .stars { color: var(--star); letter-spacing: .12em; margin-right: 8px; }
.reviews-cta__rating strong { font-weight: 600; margin-right: 4px; }

/* Phone header: small Book button beside the language flag */
.header-book { display: none; align-items: center; padding: 6px 12px; margin-right: 12px; border: 1px solid #fff; border-radius: var(--radius); background: #fff; color: var(--navy-deep); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; position: relative; z-index: 60; transition: background .3s var(--ease), color .3s var(--ease); }
.site-header.is-solid .header-book { background: var(--navy); border-color: var(--navy); color: #fff; }
body.menu-open .header-book { opacity: 0; pointer-events: none; }
@media (max-width: 1180px) {
  .header-book { display: inline-flex; }
  .lang-flag { margin-right: 8px; }
}

/* Articles: booking card part-way through the text */
.article .inline-book { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-top: 2.4em !important; padding: 22px 24px; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--paper); }
.inline-book .t-eyebrow { display: block; }
.inline-book__title { font-size: 1.2rem; font-weight: 500; margin: 6px 0 4px; color: var(--navy-deep); }
.inline-book__perks { font-size: .85rem; opacity: .75; }
@media (max-width: 760px) { .article .inline-book .btn { width: 100%; justify-content: center; } }

/* Pages without the booking bar: slim bar at the bottom on phones */
.mini-book { display: none; }
@media (max-width: 760px) {
  .mini-book { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--navy); transform: translateY(110%); transition: transform .4s var(--ease); }
  .mini-book.is-on { transform: none; }
  .mini-book p { font-size: .8rem; color: var(--ink); }
  .mini-book strong { font-size: 1.05rem; font-weight: 600; color: var(--navy-deep); }
  .mini-book .btn { padding: 12px 18px; }
  body.menu-open .mini-book { transform: translateY(110%); }
}

/* Footer: booking link stands out */
.footer-bar .footer-book { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Homepage journal: one row of articles (3 on computers and tablets, 2 on phones), then "View All Articles" */
#journal .posts > .post:nth-child(n+4) { display: none; }
#journal .post .photo-credit { order: 9; }          /* credit under the text, so titles line up across cards */
.posts-more { margin-top: 40px; }
@media (max-width: 760px) {
  #journal .posts > .post:nth-child(n+3) { display: none; }
  .posts-more { margin-top: 28px; }
  .posts-more .btn { width: 100%; justify-content: center; }
}

/* Booking page: deposit notice above the booking engine */
.book__notice { display: flex; align-items: flex-start; gap: 12px; max-width: 1024px; margin: 0 auto clamp(18px, 2.5vw, 26px); padding: 14px 18px; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--cream); color: var(--ink); font-size: .92rem; line-height: 1.5; text-align: left; }
.book__notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--navy); }
.book__notice strong { font-weight: 600; }
