/* Inner pages (rooms, owner, unit, privacy) in the home page's style: white page, Onest / IBM Plex Sans Thai,
   soft rounded cards, the same header and footer as the home page (see assets/js/chrome.js).
   Load it AFTER site.css. */
:root { --ink: #12253A; --copper: #A85F14; --line: #DDD8CC; --muted: #6B7280; --sky: #0548AD; --pad: clamp(18px, 4vw, 56px); }
html[lang="th"] [lang="en"]:not(html) { display: none !important; }
html[lang="en"] [lang="th"]:not(html) { display: none !important; }
body { background: #fff !important; background-image: none !important; color: var(--ink); font-family: "Onest", "IBM Plex Sans Thai", sans-serif; -webkit-font-smoothing: antialiased; }

/* ---------- header ---------- */
.rh { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--pad); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid rgba(18,37,58,.08); color: var(--ink); }
.rh a { color: inherit; text-decoration: none; }
.rh-brand img { display: block; height: 19px; width: auto; }
.rh-links { display: flex; gap: 34px; font: 500 15px "Onest", "IBM Plex Sans Thai", sans-serif; }
.rh-links a { white-space: nowrap; padding: 6px 0; opacity: .72; transition: opacity .2s; border-bottom: 1.5px solid transparent; }
.rh-links a:hover { opacity: 1; }
.rh-links a[aria-current="page"] { opacity: 1; border-bottom-color: var(--copper); }
.rh-r { display: flex; align-items: center; gap: 14px; }
.rh-tl { display: inline-flex; gap: 2px; align-items: center; border: 0; }
.rh-tl button { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px 6px; font: 500 12px "Onest", sans-serif; letter-spacing: .08em; opacity: .5; transition: opacity .2s; }
.rh-tl button[aria-pressed="true"] { opacity: 1; background: none; color: inherit; }
.rh-tl i { width: 1px; height: 12px; background: currentColor; opacity: .35; }
.rh-ob { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(18,37,58,.35); padding: 9px 16px; border-radius: 999px; font: 600 14px "Onest", "IBM Plex Sans Thai", sans-serif; transition: background .2s, color .2s, border-color .2s; }
.rh-ob:hover { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.rh-ln { width: 18px; height: 18px; flex: none; }
/* transparent white header over a photo (owner page) */
.rh-hero { position: absolute; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; color: #fff; }
.rh-hero .rh-ob { border-color: rgba(255,255,255,.8); }
.rh-hero .rh-links a { opacity: .88; }
@media (max-width: 1080px) { .rh-links { gap: 18px; font-size: 14px; } }
@media (max-width: 860px) { .rh-links a[href$="#about"] { display: none; } }
@media (max-width: 760px) { .rh { padding: 12px 16px; } .rh-links { display: none; } .rh-brand img { height: 15px; } .rh-ob { padding: 8px 13px; } }

/* ---------- footer ---------- */
.rf { border-top: 1px solid var(--line); margin-top: clamp(90px, 10vw, 140px); padding: clamp(56px, 6vw, 84px) var(--pad) 22px; font: 400 16px/1.55 "Onest", "IBM Plex Sans Thai", sans-serif; color: var(--ink); background: #fff; }
html[lang="th"] .rf { font-family: "IBM Plex Sans Thai", sans-serif; }
.rf-in { max-width: 1260px; margin: 0 auto; }
.rf a { color: inherit; text-decoration: none; transition: color .2s; } .rf a:hover { color: var(--copper); }
.rf ul { list-style: none; margin: 0; padding: 0; } .rf li + li { margin-top: 6px; }
.rf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.rf-lab { display: block; margin-bottom: 14px; color: var(--muted); font: 500 11.5px "Onest", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
html[lang="th"] .rf-lab { font: 500 13.5px "IBM Plex Sans Thai", sans-serif; letter-spacing: .02em; text-transform: none; }
.rf-dim { color: var(--muted); }
.rf-time { font: 400 34px/1 "Onest", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rf-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; margin-top: clamp(44px, 5vw, 64px); padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.rf-bar span:nth-child(2) { margin-right: auto; }
@media (max-width: 760px) { .rf { padding-top: 64px; } .rf-cols { grid-template-columns: 1fr 1fr; gap: 32px 18px; } .rf-time { font-size: 28px; } .rf-bar { font-size: 13px; } .rf-bar span:nth-child(2) { margin-right: 0; } }

/* ---------- old drafting-sheet pages (unit, privacy): soft cards instead of ruled boxes ---------- */
.wrap { max-width: 1180px; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: 0; }
a { text-underline-offset: 3px; }
.label { font: 500 11.5px "Onest", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html[lang="th"] .label { font: 500 13.5px "IBM Plex Sans Thai", sans-serif; letter-spacing: .02em; text-transform: none; }
.btn { border-radius: 12px; border: 0; background: var(--ink); color: #fff; font-family: "Onest", "IBM Plex Sans Thai", sans-serif; font-weight: 600; transform: none; }
.btn:hover { background: #1C3855; color: #fff; border: 0; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.c { background: var(--ink); }
.crumbs { padding-top: clamp(26px, 3vw, 40px); font-size: 15px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.unit-head { padding-top: 12px; }
.unit-head h1, .prose h1 { font: 500 clamp(32px, 4.4vw, 58px)/1.08 "Onest", sans-serif; letter-spacing: -.03em; margin: 10px 0 8px; text-wrap: balance; }
html[lang="th"] .unit-head h1, html[lang="th"] .prose h1 { font: 500 clamp(28px, 3.7vw, 48px)/1.3 "IBM Plex Sans Thai", sans-serif; letter-spacing: -.005em; }
.unit-head .where { color: #4E5866; font-size: 17px; }
.tblock { border: 0 !important; margin-top: 22px; gap: 10px; background: none; }
.tblock.check { border: 0 !important; }
.tblock > div { border: 0; background: #F6F4EF; border-radius: 14px; padding: 14px 18px; }
.tblock .k { font: 500 11px "Onest", sans-serif; letter-spacing: .14em; color: var(--muted); }
html[lang="th"] .tblock .k { font: 500 13px "IBM Plex Sans Thai", sans-serif; letter-spacing: .02em; text-transform: none; }
.tblock .v { font-size: 18px; font-weight: 600; }
.gallery { gap: 12px; }
.gallery figure { border: 0; border-radius: 16px; overflow: hidden; background: #E9E4D8; }
.gallery figcaption { font: 500 11.5px "Onest", sans-serif; background: none; color: var(--muted); padding: 10px 4px 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.panel-h { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.panel-b { padding: 8px 22px 20px; }
.spec th, .spec td, .terms td { border-bottom: 1px solid #EEEAE0; }
.spec th { font-weight: 400; }
.terms td:last-child { font-size: 20px; }
.feat li { border: 0; background: #F6F4EF; border-radius: 999px; padding: 7px 14px; }
.tag { border-radius: 999px; }
.side-actions .btn { justify-content: center; padding: 14px 20px; }
.prose { max-width: 760px; padding-top: clamp(40px, 5vw, 72px); }
.prose h2 { font: 500 22px/1.3 "Onest", "IBM Plex Sans Thai", sans-serif; margin-top: 34px; }
.prose p { color: #3B4655; line-height: 1.75; }
.prose h3 { font: 500 17px/1.45 "Onest", "IBM Plex Sans Thai", sans-serif; color: var(--ink, #12253A); margin: 22px 0 4px; }
.prose h3 + p { margin-top: 0; }
.mbar { background: rgba(255,255,255,.94); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mbar .btn { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 12px; }
.mbar .btn.c { background: var(--ink); color: #fff; box-shadow: none; }
.lightbox button { border-radius: 999px; }
@media (max-width: 760px) { .rf { padding-bottom: 92px; } }

/* ---------- room page: photo grid (one big, four small, "all photos" button) ---------- */
.pg { position: relative; display: grid; gap: 8px; height: clamp(280px, 36vw, 500px); border-radius: 20px; overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; margin-top: 8px; }
.pg-t { all: unset; position: relative; display: block; overflow: hidden; cursor: zoom-in; background: #E9E4D8; min-height: 0; }
.pg-t:first-child { grid-row: 1 / 3; }
.pg-t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .25s; }
.pg-t:hover img { transform: scale(1.03); filter: brightness(.92); }
.pg-t:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.pg[data-n="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pg[data-n="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } .pg[data-n="2"] .pg-t:first-child { grid-row: auto; }
.pg[data-n="3"] { grid-template-columns: 2fr 1fr; }
.pg[data-n="4"] { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); } .pg[data-n="4"] .pg-t:first-child { grid-row: 1 / 4; }
.pg-all { all: unset; position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; font: 600 14px "Onest", "IBM Plex Sans Thai", sans-serif; box-shadow: 0 2px 14px rgba(6,20,45,.22); transition: transform .2s; }
.pg-all:hover { transform: translateY(-1px); } .pg-all:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.gallery-hint { margin: 10px 2px 0; }
@media (max-width: 760px) {
  .pg { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
  .pg-t:not(:first-child) { display: none; } .pg-t:first-child { grid-row: auto !important; }
}

/* ---------- room page: details area (accordion, chosen 9 Nov) ---------- */
.unit-grid { margin-top: 34px; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .unit-grid { grid-template-columns: minmax(0, 1fr) 380px; } .unit-side { top: 88px; } }
.ug-main { display: grid; gap: 22px; align-content: start; min-width: 0; }
.ug-main.flat { gap: 0; }
.about-p { margin: 0 0 16px; font-size: 17px; line-height: 1.7; color: #2E3A4A; }
.unit-side .panel { box-shadow: 0 10px 34px rgba(6,20,45,.08); }
.acc { border-bottom: 1px solid var(--line); } .acc:first-child { border-top: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 2px; font: 500 21px/1.3 "Onest", "IBM Plex Sans Thai", sans-serif; letter-spacing: -.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; flex: none; font: 300 30px/1 "Onest", sans-serif; color: var(--muted); transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); color: var(--ink); }
.acc summary:hover { color: var(--copper); }
.acc-b { padding: 0 2px 28px; }

/* ---------- room page: key facts (floor / rooms / size / BTS) in one ruled bar with icons, and copper ticks for the feature tags (chosen 9 Nov) ---------- */
.unit-head { display: block !important; }
.tblock { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; padding: 18px 0; border: 0 !important; border-top: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; background: none !important; }
.tblock > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-width: 0; padding: 0 20px; background: none !important; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.tblock > div:first-child { padding-left: 0; border-left: 0; }
.tblock svg { display: block; grid-row: 1 / 3; flex: none; width: 24px; height: 24px; color: var(--copper); }
.tblock .k { margin: 0; font-size: 13px; font-weight: 400; }
.tblock .v { font-size: 18px; font-weight: 600; white-space: nowrap; }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.feat li { position: relative; background: none !important; border: 0; border-radius: 0; padding: 0 0 0 28px; font-size: 16px; }
.feat li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px; border: solid var(--copper); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .tblock { gap: 18px 0; grid-template-columns: 1fr 1fr; padding: 16px 0; }
  .tblock > div { padding: 0 12px 0 0; border-left: 0; }
  .tblock > div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .feat { grid-template-columns: 1fr; }
}
