/* RokHaven listing pages. Single dark theme by choice (brand primary context: navy + bronze gold). */
:root {
  --navy-deep: #060F1C;
  --navy: #0B1B35;
  --navy-2: #102442;
  --slate: #2A3F5C;
  --gold: #C0A870;
  --gold-hi: #d2bc86;
  --gold-soft: rgba(192,168,112,.28);
  --gold-line: rgba(192,168,112,.18);
  --ivory: #F4EDE0;
  --ivory-dim: rgba(244,237,224,.7);
  --ivory-faint: rgba(244,237,224,.45);
  --f-display: "DM Serif Display", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy-deep); color: var(--ivory); font-family: var(--f-body); font-size: 16px; line-height: 1.55; font-weight: 300; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy-deep); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(6,15,28,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gold-line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.bar-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory-dim); text-decoration: none; font: 400 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.back:hover { color: var(--gold); }
.back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: var(--gold); flex: none; }
.brand span { font-family: var(--f-display); font-size: 15px; letter-spacing: .22em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 2px; font: 500 14px/1 var(--f-body); letter-spacing: .03em; text-decoration: none; cursor: pointer; border: 1px solid var(--gold); background: none; color: var(--ivory); transition: background .2s, color .2s, border-color .2s; }
.btn.solid { background: var(--gold); color: var(--navy-deep); }
.btn.solid:hover { background: var(--gold-hi); }
.btn.ghost { border-color: var(--gold-soft); }
.btn.ghost:hover { border-color: var(--gold); }
.bar .btn { padding: 10px 14px; font-size: 13px; }
@media (max-width: 640px) { .brand span { display: none; } }

/* Hero: info + 3D plan */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 0; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); border-bottom: 1px solid var(--gold-line); }
.info { padding-block: 44px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100vw - 1320px) / 2 + 16px)); padding-right: 36px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow { font: 500 11px/1 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4vw, 58px); line-height: 1.02; margin: 0; text-wrap: balance; }
.price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price-row strong { font-family: var(--f-display); font-weight: 400; font-size: 52px; line-height: 1; color: var(--gold); }
.price-row span { font: 400 11px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-dim); }
.lede { color: var(--ivory-dim); margin: 0; max-width: 46ch; }
.tabs { display: grid; gap: 8px; }
.tabs-k { font: 400 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); margin: 0; }
.tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; background: rgba(16,36,66,.5); border: 1px solid var(--gold-line); color: var(--ivory); cursor: pointer; font: inherit; }
.tab b { font-weight: 400; font-size: 15px; }
.tab small { display: block; font-size: 12px; color: var(--ivory-dim); }
.tab strong { flex: none; font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--gold); }
.tab[aria-pressed="true"] { border-color: var(--gold); background: rgba(192,168,112,.1); }
.tab:hover { border-color: var(--gold-soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--gold-line); }
.facts li { min-width: 0; }
.facts .k { font: 400 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); }
.facts .v { font-size: 15px; color: var(--ivory); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.stage { position: relative; min-height: 520px; background: radial-gradient(120% 90% at 60% 30%, #12294a 0%, var(--navy) 45%, var(--navy-deep) 100%); border-left: 1px solid var(--gold-line); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-top { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.stage-title { font: 500 11px/1.5 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.stage-title small { display: block; color: var(--ivory-faint); letter-spacing: .1em; text-transform: none; font-size: 11px; }
.levels { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: rgba(6,15,28,.78); border: 1px solid var(--gold-soft); }
.levels button { background: none; border: 0; color: var(--ivory-dim); font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; cursor: pointer; }
.levels button[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); }
.levels button:hover:not([aria-pressed="true"]) { color: var(--gold); }
.stage-foot { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.stage-foot > * { pointer-events: auto; }
.hint { font: 400 11px/1.4 var(--f-mono); letter-spacing: .06em; color: var(--ivory-faint); }
.replay { display: inline-flex; align-items: center; gap: 8px; background: rgba(6,15,28,.78); border: 1px solid var(--gold-soft); color: var(--ivory); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; cursor: pointer; }
.replay:hover { border-color: var(--gold); }
.replay svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.stage-note { position: absolute; z-index: 2; left: 18px; top: 64px; max-width: 280px; font: 400 11px/1.5 var(--f-mono); color: var(--ivory-faint); }
.no-webgl .stage canvas { display: none; }
.fallback { display: none; position: absolute; inset: 70px 18px 70px; }
.no-webgl .fallback { display: grid; gap: 12px; overflow: auto; }
.fallback img { width: 100%; height: auto; background: #fff; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .stage { order: -1; min-height: 0; height: 64vh; height: 64svh; border-left: 0; border-bottom: 1px solid var(--gold-line); }
  .info { padding: 28px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
  .price-row strong { font-size: 42px; }
  .stage-top { top: 12px; left: 12px; right: 12px; }
  .stage-foot { left: 12px; right: 12px; bottom: 12px; }
  .stage-note { display: none; }
  .hint .desk { display: none; }
}
@media (min-width: 861px) { .hint .mob { display: none; } }

/* Sections */
section.block { padding-block: 72px; border-bottom: 1px solid var(--gold-line); }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.block-head h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; margin: 8px 0 0; text-wrap: balance; }
.block-head p { margin: 0; color: var(--ivory-dim); max-width: 52ch; }

.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.sched { min-width: 0; }
.sched h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.sched .sub { font: 400 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-faint); margin: 0 0 14px; }
.sched ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.sched li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(192,168,112,.12); font-size: 14px; color: var(--ivory-dim); }
.sched li span:last-child { color: var(--ivory); font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--f-mono); font-size: 12px; }
@media (max-width: 520px) { .sched ul { columns: 1; } }

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); margin-top: 40px; }
.highlights div { background: var(--navy-deep); padding: 20px; min-width: 0; }
.highlights b { display: block; font-weight: 400; color: var(--ivory); margin-bottom: 4px; }
.highlights span { font-size: 14px; color: var(--ivory-dim); }

/* Live from site */
.live { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.live-badge { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); padding: 8px 12px; border: 1px solid var(--gold-soft); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #e0574a; box-shadow: 0 0 0 4px rgba(224,87,74,.2); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(224,87,74,0); } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } }
.live-copy h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; margin: 18px 0 14px; text-wrap: balance; }
.live-copy p { color: var(--ivory-dim); max-width: 50ch; margin: 0 0 18px; }
.live-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; padding-top: 18px; border-top: 1px solid var(--gold-line); max-width: 520px; }
.live-meta .k { font: 400 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); }
.live-meta .v { font-size: 15px; }
.live video { display: block; width: min(360px, 100%); aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--gold-soft); }
.live-empty { width: min(360px, 100%); aspect-ratio: 9 / 16; display: grid; place-items: center; text-align: center; padding: 24px; border: 1px dashed var(--gold-soft); color: var(--ivory-faint); font: 400 12px/1.6 var(--f-mono); }
@media (max-width: 860px) { .live { grid-template-columns: 1fr; gap: 28px; } .live video, .live-empty { width: 100%; max-width: 420px; } }

/* Enquiry */
.enquire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.enquire form { display: grid; gap: 14px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font: 400 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); }
.field input, .field select, .field textarea { width: 100%; background: rgba(16,36,66,.55); border: 1px solid var(--gold-line); color: var(--ivory); font: 400 15px/1.4 var(--f-body); padding: 12px 14px; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 96px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lines { display: grid; gap: 10px; align-content: start; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--gold-line); background: rgba(16,36,66,.35); }
.line > div { min-width: 0; }
.line .k { font: 400 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); }
.line .v { font-size: 17px; user-select: all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy { flex: none; background: none; border: 1px solid var(--gold-soft); color: var(--gold); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 9px 12px; cursor: pointer; }
.copy:hover { border-color: var(--gold); }
.form-note { font: 400 11px/1.6 var(--f-mono); color: var(--ivory-faint); margin: 0; }
@media (max-width: 860px) { .enquire { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }

footer { padding-block: 34px 48px; color: var(--ivory-faint); font: 400 11px/1.7 var(--f-mono); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

[hidden] { display: none !important; }

/* In-page navigation */
.bar-nav { display: flex; gap: 22px; font: 400 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.bar-nav a { color: var(--ivory-dim); text-decoration: none; }
.bar-nav a:hover { color: var(--gold); }
.bar-right { display: flex; align-items: center; gap: 26px; }
@media (max-width: 1020px) { .bar-nav { display: none; } }

/* The building */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); margin-bottom: 40px; }
.stats div { background: var(--navy-deep); padding: 22px 20px; min-width: 0; }
.stats strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1; color: var(--gold); margin-bottom: 8px; }
.stats span { font: 400 10px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-dim); }
.amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px 36px; margin-bottom: 48px; }
.amen div { min-width: 0; padding-top: 16px; border-top: 1px solid var(--gold-soft); }
.amen b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 21px; margin-bottom: 6px; }
.amen p { margin: 0; color: var(--ivory-dim); font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 10px; margin-bottom: 52px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--navy); grid-column: span 2; grid-row: span 2; }
.gallery figure.wide { grid-column: span 4; }
.gallery figure.tall { grid-row: span 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(6,15,28,.88)); font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); }
.gallery figure.plan { background: #f4f2ee; }
.gallery figure.plan img { object-fit: contain; padding: 14px; }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .gallery figure, .gallery figure.wide { grid-column: span 2; grid-row: span 2; } .gallery figure.tall { grid-row: span 3; } }
.mix-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.mix-wrap h3 { font-family: var(--f-display); font-weight: 400; font-size: 24px; margin: 0 0 16px; }
.table-scroll { overflow-x: auto; }
.mix { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.mix th { text-align: left; font: 400 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); padding: 0 12px 10px 0; border-bottom: 1px solid var(--gold-soft); font-weight: 400; }
.mix td { padding: 14px 12px 14px 0; border-bottom: 1px solid rgba(192,168,112,.12); color: var(--ivory-dim); font-variant-numeric: tabular-nums; vertical-align: middle; }
.mix td:first-child { color: var(--ivory); }
.mix td.price { font-family: var(--f-display); font-size: 20px; color: var(--gold); white-space: nowrap; }
.pill { display: inline-block; padding: 5px 9px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.pill.ok { color: #8fd1a8; border-color: rgba(143,209,168,.45); }
.pill.sold { color: #e39a8f; border-color: rgba(227,154,143,.45); }
.pill.ask { color: var(--ivory-dim); border-color: var(--gold-line); }
.mix tr.sold td:not(:last-child) { opacity: .55; text-decoration: line-through; text-decoration-color: rgba(244,237,224,.35); }
.mix tr.here td:first-child::before { content: "● "; color: var(--gold); }
.nearby ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nearby li { padding: 11px 0; border-bottom: 1px solid rgba(192,168,112,.12); color: var(--ivory-dim); font-size: 14px; }
.nearby .note { font: 400 11px/1.6 var(--f-mono); color: var(--ivory-faint); margin: 14px 0 0; }
@media (max-width: 860px) { .mix-wrap { grid-template-columns: 1fr; } }

/* Units without a published floor plan */
.noplan-card { display: none; position: absolute; inset: 0; z-index: 1; }
.stage.noplan .noplan-card { display: block; }
.stage.noplan canvas, .stage.noplan .stage-foot, .stage.noplan .levels { display: none; }
.noplan-card img { width: 100%; height: 100%; object-fit: cover; }
.noplan-card p { position: absolute; left: 18px; right: 18px; bottom: 18px; margin: 0; padding: 14px 16px; background: rgba(6,15,28,.85); border: 1px solid var(--gold-soft); color: var(--ivory); font-size: 14px; max-width: 420px; }

/* Price list by floor */
.pricing { margin-top: 40px; display: grid; gap: 6px; }
.pricing h3 { font-family: var(--f-display); font-weight: 400; font-size: 24px; margin: 0; }
.pricing .sub { font: 400 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-faint); margin: 0 0 10px; }
.price-table td.price { font-size: 18px; }

/* Consent + FAQ */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ivory-dim); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--gold); }
#f-extra:empty { display: none; }
.faq-list { display: grid; max-width: 860px; }
.faq-list details { border-top: 1px solid var(--gold-line); padding: 18px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--gold-line); }
.faq-list summary { cursor: pointer; font-family: var(--f-display); font-size: 21px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gold); font-family: var(--f-body); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 12px 0 0; color: var(--ivory-dim); max-width: 70ch; }
