/* AC Habitat BKK — showroom. Editorial, image-led, warm paper + logo taupe. */
:root {
  --paper: #f6f2ea;
  --paper-2: #ede7db;
  --ink: #1f1c18;
  --ink-2: #4a443b;
  --muted: #5e574d;
  --taupe: #736452;      /* logo colour */
  --taupe-deep: #5b4f41;
  --line: rgba(31, 28, 24, .14);
  --line-strong: rgba(31, 28, 24, .32);
  --on-photo: #fbf8f2;

  --f-sans: "Anuphan", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-brand: "Tenor Sans", "Anuphan", serif;
  --f-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --gut: clamp(16px, 3.2vw, 40px);
  --max: 1520px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html:lang(zh-Hans) { --f-sans: "Anuphan", var(--f-zh); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.label::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.label--light { color: var(--on-photo); }
/* TH/ZH: no uppercase, so no wide tracking — and a touch larger, Thai glyphs read small at the same px */
html:lang(th) .label, html:lang(zh-Hans) .label,
html:lang(th) .nav a, html:lang(zh-Hans) .nav a,
html:lang(th) .hero__meta, html:lang(zh-Hans) .hero__meta,
html:lang(th) .cta__grid .k, html:lang(zh-Hans) .cta__grid .k,
html:lang(th) .menu-btn, html:lang(zh-Hans) .menu-btn { letter-spacing: .02em; }
html:lang(th) .label, html:lang(th) .hero__meta { font-size: 14px; }
html:lang(th) .nav a, html:lang(zh-Hans) .nav a { font-size: 16px; }
.num { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; letter-spacing: .06em; }

.display {
  font-weight: 500; text-transform: uppercase; letter-spacing: -.035em; line-height: .92;
  font-size: clamp(44px, 7.6vw, 120px);
}
html:lang(th) .display, html:lang(zh-Hans) .display { letter-spacing: -.01em; line-height: 1.12; font-size: clamp(34px, 5.2vw, 76px); }
.h1 { font-weight: 500; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(34px, 5vw, 76px); text-transform: uppercase; }
html:lang(th) .h1, html:lang(zh-Hans) .h1 { letter-spacing: -.005em; line-height: 1.2; text-transform: none; font-size: clamp(30px, 4vw, 60px); }
.h2 { font-weight: 500; letter-spacing: -.02em; line-height: 1.08; font-size: clamp(28px, 3.8vw, 56px); }
html:lang(th) .h2 { line-height: 1.25; letter-spacing: 0; }
.h3 { font-weight: 500; letter-spacing: -.01em; line-height: 1.2; font-size: clamp(20px, 1.8vw, 26px); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
html:lang(th) .lead { line-height: 1.75; }
.small { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
/* reading copy (room descriptions): 17px; Thai needs the taller line for its upper/lower marks */
.copy { font-size: 17px; font-weight: 400; line-height: 1.7; color: var(--ink-2); max-width: 60ch; }
html:lang(th) .copy { line-height: 1.8; }
.upper { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border: 1px solid var(--ink);
  font-size: 16px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--taupe-deep); border-color: var(--taupe-deep); }
.btn--taupe { background: var(--taupe); border-color: var(--taupe); color: var(--on-photo); }
.btn--taupe:hover { background: var(--taupe-deep); border-color: var(--taupe-deep); color: var(--on-photo); }
.btn--light { border-color: var(--on-photo); color: var(--on-photo); }
.btn--light:hover { background: var(--on-photo); color: var(--ink); }
html:lang(th) .btn, html:lang(zh-Hans) .btn, html:lang(th) .link, html:lang(zh-Hans) .link { letter-spacing: .01em; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link .arr { transition: transform .3s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--ink); background: rgba(246, 242, 234, .92);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.hdr--over:not(.is-scrolled):not(.is-open) { background: transparent; color: var(--on-photo); border-color: rgba(251, 248, 242, .25); backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 5px; margin-right: auto; }
.brand__name { font-family: var(--f-brand); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand__name b { font-family: var(--f-sans); font-weight: 600; font-size: 11px; letter-spacing: .32em; margin-left: 6px; vertical-align: 3px; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.langs { display: flex; gap: 2px; font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.langs a { padding: 6px 7px; opacity: .72; transition: opacity .2s; }
.langs a:hover, .langs a[aria-current="true"] { opacity: 1; }
.hdr__call { height: 40px; padding: 0 16px; font-size: 15px; font-weight: 600; border-color: currentColor; }
.hdr--over:not(.is-scrolled):not(.is-open) .hdr__call:hover { background: var(--on-photo); color: var(--ink); }
.menu-btn { display: none; height: 40px; padding: 0 2px; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; align-items: center; gap: 10px; }
.menu-btn__bars { width: 22px; height: 8px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn__bars::before { top: 0; } .menu-btn__bars::after { top: 6.5px; }
.is-open .menu-btn__bars::before { top: 3.25px; transform: rotate(45deg); }
.is-open .menu-btn__bars::after { top: 3.25px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--paper);
  display: flex; flex-direction: column; padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  overflow-y: auto;
}
.is-open + .drawer, .drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer__nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(32px, 9vw, 48px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.drawer__nav .num { font-size: 14px; }
.drawer__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 16px; }
.drawer__foot .langs { font-size: 14px; gap: 8px; }
.drawer__foot .langs a { border: 1px solid var(--line-strong); padding: 8px 14px; }

@media (max-width: 960px) {
  .nav, .hdr .langs, .hdr__call { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1100px; color: var(--on-photo); overflow: hidden; background: #3a332b; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; transform: scale(1.06); animation: heroIn 1.8s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,13,.72) 0%, rgba(20,17,13,.62) calc(var(--header-h) + 64px), rgba(20,17,13,0) 32%, rgba(20,17,13,0) 36%, rgba(20,17,13,.68) 57%, rgba(20,17,13,.82) 100%); }
.hero__in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(24px, 4vw, 48px); }
.hero__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; padding-top: calc(var(--header-h) + 18px); position: absolute; top: 0; left: var(--gut); right: var(--gut); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; text-shadow: 0 1px 10px rgba(20,17,13,.6); }
.hero__word { font-family: var(--f-brand); font-weight: 400; font-size: clamp(46px, 8.2vw, 132px); line-height: .82; letter-spacing: -.01em; text-transform: uppercase; margin-left: -.04em; white-space: nowrap; }
.hero__row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-top: clamp(18px, 2.4vw, 32px); padding-top: 18px; border-top: 1px solid rgba(251,248,242,.35); }
.hero__line { font-size: clamp(18px, 1.7vw, 24px); max-width: 30ch; line-height: 1.4; }
.hero__act { display: grid; gap: 12px; justify-items: end; }
.hero__ctas { display: flex; gap: 10px; }
/* hotel-wide starting price under the hero buttons (only rendered once a price is approved) */
.hero__price { font-size: 15px; line-height: 1.5; text-align: right; text-shadow: 0 1px 10px rgba(20,17,13,.6); }
.hero__price b { font-size: 20px; font-weight: 600; }
.hero__ctas .btn--solid { background: var(--on-photo); color: var(--ink); border-color: var(--on-photo); }
.hero__ctas .btn--solid:hover { background: transparent; color: var(--on-photo); }
@media (max-width: 760px) {
  .hero { height: 92svh; }
  .hero__meta { grid-template-columns: 1fr auto; }
  .hero__meta span:nth-child(2) { display: none; }
  .hero__row { grid-template-columns: 1fr; }
  .hero__act { justify-items: stretch; }
  .hero__price { text-align: left; }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__ctas .btn { padding: 0 12px; }
}

/* ---------- page head (inner pages) ---------- */
.phead { padding: calc(var(--header-h) + clamp(20px, 3vw, 44px)) 0 clamp(20px, 3vw, 40px); }
.phead__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: clamp(16px, 2.4vw, 32px); }
.phead__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .phead__grid { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 140px) 0; }
.sec--tight { padding: clamp(40px, 6vw, 88px) 0; }
.sec--alt { background: var(--paper-2); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 56px); }
.sec--dark .sec__top { border-color: rgba(246,242,234,.2); }
.sec--dark .label { color: var(--paper); }
.sec--dark .num { color: rgba(246,242,234,.75); }

/* about */
/* heading left, text right · 4 key facts · two photos at one height with captions */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); align-items: start; }
.about__head { grid-column: 1 / span 7; }
.about__body { grid-column: 8 / span 5; }
.about__body .lead { max-width: none; }
.about__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(36px, 5vw, 72px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.about__facts li { padding: 20px 20px 0 0; display: grid; gap: 6px; align-content: start; }
.about__facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.about__facts b { font-size: clamp(26px, 2.8vw, 42px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.about__facts span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.about__imgs { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(36px, 5vw, 72px); }
.about__imgs .media { height: clamp(260px, 34vw, 540px); }
.about__cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) {
  .about__head, .about__body { grid-column: 1 / -1; }
  .about__facts { grid-template-columns: repeat(2, 1fr); }
  .about__facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .about__facts li:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--line); }
  .about__imgs { grid-template-columns: 1fr; }
  .about__imgs .media { height: auto; aspect-ratio: 3 / 2; }
}

/* media */
.media { position: relative; overflow: hidden; background: var(--paper-2); margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.media picture { display: block; width: 100%; height: 100%; }
.hero picture { display: contents; }
@media (max-width: 760px) { .media--pic.ar-32 { aspect-ratio: 4 / 3; } }
a:hover > .media img, .media--zoom:hover img { transform: scale(1.035); }
.ar-32 { aspect-ratio: 3 / 2; } .ar-43 { aspect-ratio: 4 / 3; } .ar-45 { aspect-ratio: 4 / 5; } .ar-11 { aspect-ratio: 1; } .ar-34 { aspect-ratio: 3 / 4; } .ar-169 { aspect-ratio: 16 / 9; } .ar-21 { aspect-ratio: 2.1 / 1; }
figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; letter-spacing: .02em; }

/* room cards (home + rooms page) */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.rcard { display: flex; flex-direction: column; gap: 16px; }
.rcard:nth-child(2) { margin-top: clamp(0px, 6vw, 96px); }
.rcard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rcard__name { font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.rcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 16px; color: var(--ink-2); }
.rcard__meta span + span::before { content: "·"; margin-right: 14px; color: var(--muted); }
.rcard__price { font-size: 16px; color: var(--ink-2); }
.rcard__price strong { font-weight: 600; color: var(--ink); font-size: 18px; }
@media (max-width: 960px) {
  .rooms { grid-template-columns: 1fr; gap: 48px; }
  .rcard:nth-child(2) { margin-top: 0; }
}
@media (min-width: 600px) and (max-width: 960px) {
  .rcard { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: end; }
  .rcard .media { grid-row: span 4; }
}

/* essentials */
.ess { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.ess__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 3vw, 48px); }
.ess__list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ess__list li .num { min-width: 22px; }
.ess__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ess__imgs > :first-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .ess { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ess__list { grid-template-columns: 1fr; } }

/* facility strip (home) */
.fstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.fstrip a { display: flex; flex-direction: column; gap: 12px; }
.fstrip__cap { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 500; }
@media (max-width: 860px) {
  .fstrip { grid-template-columns: repeat(6, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); scrollbar-width: none; }
  .fstrip::-webkit-scrollbar { display: none; }
  .fstrip a { scroll-snap-align: start; }
}

/* table rows (nearby, policies, facts) */
.rows { border-top: 1px solid var(--line); }
/* flex, not `1fr auto`: an auto column takes the value's full one-line width and a long value
   (e.g. "3 single beds (real beds, not extra beds)") pushed the room page wider than a phone */
.rows > div, .rows > li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.rows dt, .rows .k { color: var(--ink-2); font-weight: 400; flex: 1 1 auto; min-width: 0; }
.rows dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink); flex: 0 1 auto; min-width: 0; }
html:lang(th) .rows > div, html:lang(th) .rows > li { font-size: 17px; }
.rdetail > * { min-width: 0; }
.sec--dark .rows, .sec--dark .rows > div { border-color: rgba(246,242,234,.18); }
.sec--dark .rows .k { color: rgba(246,242,234,.7); }
.rows--stack > div { display: grid; grid-template-columns: 1fr 1.4fr; }
.rows--stack dd { text-align: left; }
@media (max-width: 520px) { .rows--stack > div { grid-template-columns: 1fr; gap: 2px; } }

.loc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.note { margin-top: 28px; padding: 22px 24px; background: var(--paper); border-left: 2px solid var(--taupe); font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.sec--alt .note { background: var(--paper); }
@media (max-width: 860px) { .loc { grid-template-columns: 1fr; } }

/* big CTA band */
.cta { padding: clamp(72px, 10vw, 160px) 0 clamp(48px, 6vw, 80px); }
.cta__phone { display: block; font-weight: 500; letter-spacing: -.035em; line-height: .95; font-size: clamp(48px, 10.5vw, 168px); margin: 18px 0 clamp(28px, 4vw, 56px); transition: color .3s; }
.cta__phone:hover { color: #d9cdbb; }
.cta__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(20px, 3vw, 48px); padding-top: 18px; border-top: 1px solid rgba(246,242,234,.2); font-size: 15px; }
.cta__grid .k { display: block; color: rgba(246,242,234,.78); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 760px) { .cta__grid { grid-template-columns: 1fr; } }

/* footer */
.ftr { background: var(--ink); color: rgba(246,242,234,.82); padding: 0 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.ftr__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 1px solid rgba(246,242,234,.14); }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr a:hover { color: var(--paper); }
.ftr .brand__name { color: var(--paper); font-size: 16px; }

/* ---------- rooms page: room blocks ---------- */
.rblock { display: grid; grid-template-columns: 7fr 5fr; grid-template-areas: "media head" "media info"; grid-template-rows: auto 1fr; column-gap: clamp(20px, 3vw, 56px); row-gap: 20px; padding: clamp(28px, 3.5vw, 48px) 0; border-top: 1px solid var(--line); }
.rblock:nth-child(even) { grid-template-columns: 5fr 7fr; grid-template-areas: "head media" "info media"; }
.rblock__head { grid-area: head; display: grid; gap: 10px; align-content: start; }
.rblock__media { grid-area: media; }
.rblock__info { grid-area: info; }
.rblock__meta { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
html:lang(th) .rblock__meta { font-size: 17px; }
.rblock__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.rblock__media > :first-child { grid-column: 1 / -1; }
.rblock__info { display: flex; flex-direction: column; gap: 16px; }
.rblock__info .rows { margin-top: 4px; }
.rblock__btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
@media (max-width: 960px) {
  .rblock, .rblock:nth-child(even) { grid-template-columns: 1fr; grid-template-areas: "head" "media" "info"; }
}

/* ---------- room detail ---------- */
.rhero { padding-top: calc(var(--header-h) + 24px); }
.rhero__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; padding-bottom: 14px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.rhero__title { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin: clamp(16px, 3vw, 40px) 0 clamp(20px, 3vw, 36px); }
.rgal { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; align-items: start; }
.rgal button { display: block; width: 100%; position: relative; overflow: hidden; }
.rgal button:first-child { grid-row: 1 / span 2; align-self: stretch; }
.rgal button:first-child .media { aspect-ratio: auto; position: absolute; inset: 0; }
.lb-extra { display: none; }
.rgal__more { position: absolute; right: 12px; bottom: 12px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; }
@media (max-width: 760px) {
  .rgal { grid-template-columns: repeat(5, 86%); grid-template-rows: auto; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); scrollbar-width: none; }
  .rgal::-webkit-scrollbar { display: none; }
  .rgal button { scroll-snap-align: start; }
  .rgal button:first-child { grid-row: auto; }
  .rgal button:first-child .media { aspect-ratio: 3 / 2; position: relative; }
  .rgal__more { display: none; }
}
.rdetail { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 5vw, 96px); align-items: start; }
.rdetail__aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; background: var(--paper-2); display: grid; gap: 18px; }
.rdetail__aside .rows { border-color: var(--line-strong); }
/* price block — rooms list + room summary box. Amount 24–34px / 600; words around it stay body size.
   With no approved number it shows "สอบถามราคา…" instead, never "เริ่มต้น" on its own. */
.pbox { border-top: 1px solid var(--line-strong); }
.pbox__row { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pbox__k { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pbox__v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pbox__from, .pbox__unit { font-size: 16px; color: var(--ink-2); }
.pbox__amt { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pbox--lg .pbox__amt { font-size: clamp(26px, 2.5vw, 36px); }
.pbox__meta { font-size: 15px; color: var(--ink-2); }
.pbox__ask { font-size: 17px; font-weight: 500; color: var(--ink); }
.pbox__terms { padding: 14px 0 4px; border-bottom: 1px solid var(--line); }
.pbox__terms dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.pbox__terms dt { color: var(--ink-2); }
.pbox__terms dd { margin: 0; text-align: right; font-weight: 500; }
.pbox__notes { display: grid; gap: 4px; padding-top: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pbox__notes li::before { content: "· "; }
.preview-flag { position: fixed; z-index: 90; left: 8px; bottom: 76px; background: #8a1c1c; color: #fff; font-size: 14px; font-weight: 600; padding: 6px 12px; pointer-events: none; white-space: nowrap; }
.amen { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.amen li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; gap: 12px; }
.amen li::before { content: ""; width: 5px; height: 5px; background: var(--taupe); margin-top: .62em; flex: none; }
@media (max-width: 960px) {
  .rdetail { grid-template-columns: 1fr; }
  .rdetail__aside { position: static; order: -1; }
}
@media (max-width: 600px) { .rhero__title { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 480px) { .amen { grid-template-columns: 1fr; } }

.others { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.others a { display: grid; gap: 12px; }
@media (max-width: 560px) { .others { grid-template-columns: 1fr; } }

/* ---------- facilities page ---------- */
.fac { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 72px); padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); align-items: start; }
.fac__info { display: grid; gap: 18px; align-content: start; position: sticky; top: calc(var(--header-h) + 32px); }
.fac__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fac__imgs--1 { grid-template-columns: 1fr; }
.fac__imgs--3 > :first-child { grid-column: 1 / -1; }
.fac:nth-child(even) .fac__info { order: 2; }
@media (max-width: 860px) {
  .fac { grid-template-columns: 1fr; }
  .fac__info { position: static; }
  .fac:nth-child(even) .fac__info { order: 0; }
}

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(20px, 3vw, 36px); }
.filters button { height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; letter-spacing: .04em; transition: background .25s, color .25s; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .count { color: var(--muted); margin-left: 6px; font-weight: 400; }
.filters button[aria-pressed="true"] .count { color: rgba(246,242,234,.6); }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 14px); }
.ggrid button { display: block; }
.ggrid [hidden] { display: none; }
@media (max-width: 760px) { .ggrid { grid-template-columns: 1fr 1fr; } }

/* ---------- contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.contact__phone { display: inline-block; font-size: clamp(36px, 5.6vw, 84px); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 6px 0 22px; }
.contact__phone:hover { color: var(--taupe); }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12); }
.map__bg { position: absolute; inset: 0; opacity: .3; }
.map__bg .media { height: 100%; }
.map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- mobile action bar ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--paper); border-top: 1px solid var(--line-strong); padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar .btn { height: 48px; font-size: 16px; }
  body { padding-bottom: 0; }
  .ftr { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(20, 17, 13, .96); color: var(--on-photo); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gut); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__cap { padding: 14px var(--gut) calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.lb__nav { display: flex; gap: 6px; }
.lb__nav button, .lb__close { height: 40px; min-width: 40px; padding: 0 14px; border: 1px solid rgba(251,248,242,.35); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.lb__nav button:hover, .lb__close:hover { background: var(--on-photo); color: var(--ink); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero__img { animation: none; transform: none; }
  .media img { transition: none; }
}

/* ---------- grades + terms (item 7) ---------- */
.grade { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line-strong); background: transparent; }
.grade .label { margin-bottom: 8px; }
.grade p { font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.terms { overflow-x: auto; }
.terms table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
html:lang(th) .terms table { font-size: 17px; }
.terms th, .terms td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.terms thead th { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }
.terms tbody th { font-weight: 400; color: var(--ink-2); width: 26%; }
.terms td { width: 37%; }

/* ---------- inquiry form (item 8) ---------- */
.inq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
html:lang(th) .form label, html:lang(zh-Hans) .form label { text-transform: none; letter-spacing: .02em; font-size: 15px; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: 400 16px/1.4 var(--f-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 0; padding: 11px 12px; width: 100%; min-height: 46px; -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--taupe); outline-offset: 0; border-color: var(--taupe); }
.form__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 860px) { .inq { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr 1fr; } .form label:nth-child(1), .form label:nth-child(4) { grid-column: 1 / -1; } }

/* ---------- round 2: compact intros, disclosure, room summary, terms as blocks on phones ---------- */
.phead--compact { padding-bottom: clamp(8px, 1.5vw, 20px); }
.phead--compact .display { font-size: clamp(40px, 6vw, 96px); }
html:lang(th) .phead--compact .display, html:lang(zh-Hans) .phead--compact .display { font-size: clamp(32px, 4.2vw, 60px); }
@media (max-width: 960px) { .rblock__media > :not(:first-child) { display: none; } .rblock__media { grid-template-columns: 1fr; } }
/* Thai/Chinese room names are longer than "Double": smaller than the English display size */
.display--room { font-size: clamp(40px, 6.4vw, 104px); }
html:lang(th) .display--room, html:lang(zh-Hans) .display--room { font-size: clamp(30px, 4.2vw, 60px); }
.rsum { display: grid; gap: 10px; justify-items: start; max-width: 360px; }
.rsum__facts { font-size: 16px; color: var(--ink-2); }
html:lang(th) .rsum__facts { font-size: 17px; }
.rsum__price { font-size: 16px; color: var(--ink-2); }
.rsum__price strong { font-size: clamp(22px, 2vw, 28px); font-weight: 600; color: var(--ink); }
details.grade { margin-top: 18px; padding: 0; border: 1px solid var(--line-strong); }
details.grade summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 16px; font-weight: 500; }
details.grade summary::-webkit-details-marker { display: none; }
details.grade summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ink-2); }
details.grade[open] summary::after { content: "−"; }
details.grade p { padding: 0 18px 16px; }
.form__status { font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--paper); border-left: 2px solid var(--taupe); padding: 12px 14px; }
@media (max-width: 640px) {
  .terms { overflow: visible; }
  .terms table, .terms tbody, .terms tr, .terms th, .terms td { display: block; width: auto; }
  .terms table { min-width: 0; }
  .terms thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .terms tbody tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .terms tbody th { padding: 0 0 6px; border: 0; font-weight: 500; color: var(--ink); }
  .terms td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; }
  .terms td::before { content: attr(data-label); color: var(--ink-2); flex: none; }
  .terms td { text-align: right; }
}

/* ---------- round 2: hero ---------- */
/* the overlay (::after) was painted over the facts row, dimming it — lift it above like .hero__in */
.hero__meta { z-index: 1; }
/* balanced lines: Thai has no spaces, so without this a short last line can split a word pair (ราย|เดือน) */
.hero__line, .display, .h1, .h2, .h3, .rcard__name { text-wrap: balance; }
.hero__price .hero__p { white-space: nowrap; }
.hero__price .hero__p + .hero__p::before { content: " · "; }
@media (min-width: 761px) {
  /* show the bed, not the ceiling: photo taller than the frame, anchored to the bottom */
  .hero__img { inset: auto 0 0 0; height: 118%; object-position: 50% 100%; }
}
@media (max-width: 760px) {
  /* phones: photo on top, text below on the dark band — nothing sits over the room */
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero picture { display: block; position: relative; height: 54svh; min-height: 320px; overflow: hidden; }
  .hero__img { position: absolute; inset: 0; height: 100%; object-position: 50% 82%; }
  .hero::after { bottom: auto; height: 54svh; min-height: 320px; background: linear-gradient(180deg, rgba(20,17,13,.74) 0%, rgba(20,17,13,.6) calc(var(--header-h) + 52px), rgba(20,17,13,0) 34%); }
  .hero__in { height: auto; padding-top: 22px; }
  .hero__price .hero__p { display: block; }
  .hero__price .hero__p + .hero__p::before { content: none; }
}
@media (min-width: 761px) {
  /* desktop: brand name on the empty wall above the headboard, intro + buttons + price over the floor;
     the bed itself (headboard, pillows, mattress) stays clear */
  .hero__in { justify-content: space-between; padding-top: calc(var(--header-h) + 72px); }
  .hero__word { font-size: clamp(56px, 7vw, 116px); }
  .hero::after { background: linear-gradient(180deg, rgba(20,17,13,.74) 0%, rgba(20,17,13,.6) calc(var(--header-h) + 64px), rgba(20,17,13,.42) 30%, rgba(20,17,13,0) 42%, rgba(20,17,13,0) 58%, rgba(20,17,13,.7) 80%, rgba(20,17,13,.84) 100%); }
}
@media (max-width: 960px) {
  /* the summary under the room title already shows name + guests/beds; the box keeps price, terms and buttons */
  .rdetail__aside > .h3, .rdetail__aside > .rblock__meta { display: none; }
}

/* ---------- Burmese (my) ----------
   Myanmar script stacks vowels and medials above and below the line: it needs much more line-height,
   has no case (so no uppercase), and letter-spacing breaks the glyph clusters. Font loads only on /my/. */
html:lang(my) { --f-sans: "Noto Sans Myanmar", "Myanmar Text", "Padauk", "Anuphan", sans-serif; }
html:lang(my) body { line-height: 1.85; }
html:lang(my) .label, html:lang(my) .nav a, html:lang(my) .hero__meta, html:lang(my) .cta__grid .k,
html:lang(my) .menu-btn, html:lang(my) .btn, html:lang(my) .link, html:lang(my) .form label,
html:lang(my) .upper, html:lang(my) .terms thead th, html:lang(my) .price .k, html:lang(my) .filters button {
  letter-spacing: 0; text-transform: none;
}
html:lang(my) .nav a { font-size: 15px; }
html:lang(my) .label, html:lang(my) .hero__meta { font-size: 14px; line-height: 1.7; }
html:lang(my) .display { letter-spacing: 0; text-transform: none; line-height: 1.55; font-size: clamp(30px, 4.2vw, 60px); }
html:lang(my) .h1 { letter-spacing: 0; text-transform: none; line-height: 1.55; font-size: clamp(26px, 3.4vw, 50px); }
html:lang(my) .h2 { letter-spacing: 0; line-height: 1.6; font-size: clamp(22px, 2.8vw, 40px); }
html:lang(my) .h3, html:lang(my) .rcard__name { letter-spacing: 0; line-height: 1.6; }
html:lang(my) .lead, html:lang(my) .copy { line-height: 1.9; }
html:lang(my) .btn { height: auto; min-height: 48px; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; line-height: 1.5; }
html:lang(my) .phead--compact .display, html:lang(my) .display--room { font-size: clamp(28px, 3.8vw, 54px); }
html:lang(my) .drawer__nav a { font-size: clamp(24px, 7vw, 36px); line-height: 1.6; }
html:lang(my) .cta__phone, html:lang(my) .contact__phone { line-height: 1.1; }
