:root {
  --ink: #121110; --panel: #1c1a17; --panel-2: #24211d; --gold: #d4af5f; --gold-2: #e2c27a;
  --text: #f5efe2; --muted: #b8b1a3; --line: rgba(212,175,95,0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: "Noto Sans Thai", system-ui, sans-serif; line-height: 1.6; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }
.kicker { font-size: 12px; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
h2 { margin: 4px 0 12px; font-size: clamp(1.4rem, 5.5vw, 2rem); line-height: 1.3; }
.lead { color: #e2dbcc; margin: 0 0 12px; }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* hero */
.hero { position: relative; min-height: 78dvh; display: flex; flex-direction: column; background: url(assets/ext-row.jpg) center 45% / cover; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,16,.55) 0%, rgba(18,17,16,.15) 30%, rgba(18,17,16,.85) 66%, var(--ink) 100%); }
.head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand strong { display: block; letter-spacing: .22em; color: var(--gold-2); font-size: 17px; line-height: 1.2; }
.brand small { display: block; color: #e7dfcf; font-size: 11px; letter-spacing: .08em; }
.pill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(18,17,16,.55); text-decoration: none; font-size: 14px; font-weight: 700; }
.copy { position: relative; margin-top: auto; padding-bottom: 24px; }
.copy h1 { margin: 6px 0 8px; font-size: clamp(2.4rem, 11vw, 4.4rem); line-height: 1.15; font-weight: 800; }
.copy h1 em { display: block; font-style: normal; font-size: .42em; font-weight: 700; color: #e7dfcf; margin-top: 6px; }
.price { margin: 0 0 16px; font-size: 18px; }
.price b { font-size: 34px; color: var(--gold-2); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 28rem; }

.btn { display: grid; place-items: center; min-height: 50px; border-radius: 14px; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; padding: 0 14px; }
.btn.primary { border: 0; background: linear-gradient(180deg, #e2c27a, #b8913f); color: #1a1408; box-shadow: 0 10px 30px rgba(212,175,95,.25); }
.btn.ghost { border: 1px solid var(--line); background: rgba(18,17,16,.55); color: var(--text); }
.btn.wide { width: 100%; margin-top: 10px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.facts div { background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 10px 6px; text-align: center; }
.facts b { display: block; font-size: 22px; color: var(--gold-2); line-height: 1.2; }
.facts small { color: var(--muted); font-size: 12.5px; }

.sec { margin-top: 40px; }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zones div { background: var(--panel); border-radius: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; }
.zones span { color: var(--gold-2); font-weight: 700; }

/* gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--panel); aspect-ratio: 3 / 2; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 14px; font-weight: 600; }
.todo { display: grid; place-items: center; border: 1px dashed var(--line); background: var(--panel); color: var(--muted); font-size: 14px; text-align: center; border-radius: 16px; }
.planimg { min-height: 220px; margin-bottom: 12px; }

/* plan */
.area { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.area div { flex: 1; background: var(--panel); border-radius: 14px; padding: 12px; border: 1px solid rgba(255,255,255,.06); }
.area b { display: block; font-size: 28px; color: var(--gold-2); line-height: 1.2; }
.area small { color: var(--muted); }
.plus { color: var(--gold); font-weight: 800; font-size: 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--panel); padding: 4px; border-radius: 14px; margin-bottom: 12px; }
.tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { background: linear-gradient(180deg, #e2c27a, #b8913f); color: #1a1408; }
.rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.08); }
.rooms li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rooms span { color: #e2dbcc; }
.rooms b { white-space: nowrap; }
.more { margin-top: 12px; background: var(--panel); border-radius: 14px; padding: 4px 14px; border: 1px solid rgba(255,255,255,.06); }
.more summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.more ul, .more p { margin: 0 0 12px; color: #e2dbcc; }

h3.sub { margin: 18px 0 8px; font-size: 17px; }
.site { overflow-x: auto; scrollbar-width: none; margin: 4px -16px 10px; padding: 0 16px; }
.site::-webkit-scrollbar { display: none; }
.site-row { display: flex; gap: 3px; align-items: stretch; width: max-content; }
.site .u, .site .mark { white-space: pre-line; text-align: center; font-size: 11px; line-height: 1.25; border-radius: 8px; padding: 8px 0; width: 38px; text-decoration: none; font-weight: 700; }
.site .u.free { background: #2f7d55; color: #fff; }
.site .u.booked { background: #5a2a25; color: #e8b9b2; }
.site .mark { width: 60px; background: var(--panel-2); color: var(--gold-2); border: 1px solid var(--line); font-weight: 600; display: grid; place-items: center; }
.site .gap { width: 10px; }
.road { margin-top: 4px; padding: 6px; text-align: center; font-size: 12px; color: var(--muted); background: repeating-linear-gradient(90deg, #3a3631 0 18px, #2b2824 18px 30px); border-radius: 6px; width: 100%; min-width: max-content; }
.units { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.units li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; scroll-margin-top: 80px; }
.units li:target { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,95,.35); }
.units b { color: var(--gold-2); }
.units span { color: var(--muted); font-size: 13px; }
.units strong { font-size: 16px; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .free { background: #2f7d55; }
.legend .booked { background: #5a2a25; margin-left: 10px; }

/* tools */
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.link { position: relative; padding: 14px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 5px; min-width: 0; text-decoration: none; }
.link .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1408; font-weight: 800; }
.link strong { font-size: 15px; }
.link small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.link i { position: absolute; top: 14px; right: 14px; color: var(--gold); font-weight: 800; font-style: normal; }
.link.soon { opacity: .6; border-style: dashed; }
.link.soon i { top: 12px; right: 12px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; border: 1px solid var(--line); }

.steps { margin: 0; padding-left: 22px; color: #e2dbcc; }
.steps li { padding: 4px 0; }

.crew { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-items: end; max-width: 26rem; }
.crew img { max-height: 110px; margin: auto; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }

.foot { margin-top: 32px; padding: 22px 16px calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; display: grid; gap: 6px; }
.foot p { margin: 0; }
.slogan { color: var(--gold); letter-spacing: .3em; font-weight: 700; font-size: 11px; }

/* sticky dock */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; border-radius: 18px; background: rgba(28,26,23,.88); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 480px; margin-inline: auto; }
.dock a { display: grid; justify-items: center; gap: 0; padding: 6px 0; border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 700; }
.dock a:first-child { background: linear-gradient(180deg, #e2c27a, #b8913f); color: #1a1408; }
.dock span { font-size: 18px; line-height: 1.2; }

@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(6, 1fr); }
  .links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery { grid-auto-columns: 48%; }
  .hero { min-height: 86vh; }
}

.tabs.three { grid-template-columns: repeat(3, 1fr); }
.tabs small { opacity: .7; font-weight: 600; }
.gallery[hidden] { display: none; }
.deco { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(18,17,16,.7); color: #e7dfcf; }
.planpic { width: 100%; border-radius: 14px; margin-bottom: 12px; background: #fff; }
.deliver { display: grid; gap: 10px; margin-bottom: 12px; }
.deliver ul { list-style: none; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(255,255,255,.06); display: grid; gap: 6px; }
.deliver li { padding-left: 26px; position: relative; color: #e2dbcc; }
.deliver .yes li::before { content: "✓"; position: absolute; left: 0; color: #5fc28a; font-weight: 800; }
.deliver .no li::before { content: "✕"; position: absolute; left: 2px; color: #d9776b; font-weight: 800; }
.deliver .no { opacity: .85; }
.area div { text-align: center; }
@media (min-width: 900px) { .deliver { grid-template-columns: 1fr 1fr; } }
.dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dist a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid rgba(255,255,255,.06); text-decoration: none; }
.dist span { grid-row: 1 / 3; color: #e2dbcc; }
.dist b { color: var(--gold-2); font-size: 17px; text-align: right; }
.dist small { color: var(--muted); font-size: 12px; text-align: right; }
