/* RPT interactive prototype - values from rpt-tokens (Ink, Travertine, Paper, white; Freight Big Light, Elza Text Light/Medium; no italic) */
:root {
  --ink: #3B3027; --trav: #DDD4C6; --paper: #F7F4EE; --white: #FFFFFF;
  /* Freight Big and Elza Text: local files in dev, the Adobe web kit (freight-big-pro, elza-text) when hosted.
     Companions (rpt-tokens; Jason 26-NOV "2a"): Noto Serif / Noto Serif SC / Noto Naskh Arabic with Freight, Noto Sans / Noto Sans SC / Noto Sans Arabic with Elza */
  --serif: "Freight Big", "freight-big-pro", "Noto Serif", "Noto Serif SC", "Noto Naskh Arabic", serif;
  --sans: "Elza Text", "elza-text", "Noto Sans", "Noto Sans SC", "Noto Sans Arabic", sans-serif;
  --rule: rgba(59, 48, 39, .18);
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: var(--sans); font-weight: 300; font-style: normal; -webkit-font-smoothing: antialiased; }

.app { display: grid; grid-template-columns: 17.5rem 1fr; height: 100%; min-height: 40rem; }
.rail { background: var(--trav); padding: 2.6rem 2.2rem; display: flex; flex-direction: column; }
.wordmark { width: 11.5rem; display: block; margin-bottom: 3.4rem; }
.nav { display: flex; flex-direction: column; gap: 1.15rem; }
.nav a { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; letter-spacing: .025em; color: var(--ink); text-decoration: none; opacity: .55; }
.nav a.on { opacity: 1; }
.rail-foot { margin-top: auto; }
.langs { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-bottom: 1rem; }
.langs a { font-size: .82rem; letter-spacing: .02em; color: var(--ink); text-decoration: none; opacity: .55; padding-bottom: .15rem; }
.langs a.on { opacity: 1; border-bottom: 1px solid var(--ink); }
.small { font-size: .78rem; line-height: 1.4; letter-spacing: .02em; }
.asat { opacity: .7; }

.stage { position: relative; overflow: hidden; background: var(--paper); }
.h { font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
:lang(zh) .h, :lang(ar) .h { letter-spacing: .02em; }
.display { font-family: var(--serif); font-size: 3.6rem; line-height: 1; letter-spacing: .025em; }
.title { font-family: var(--serif); font-size: 2.6rem; line-height: 1.05; letter-spacing: .025em; }
.statement { font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; letter-spacing: .025em; }
.body { font-size: 1rem; line-height: 1.45; letter-spacing: .02em; }

/* Tower */
.tower { display: grid; grid-template-columns: 1fr 27rem; height: 100%; }
.scene { position: relative; background: linear-gradient(180deg, #E9E3D9 0%, var(--trav) 62%, #CFC5B5 100%); }
.scene canvas { display: block; width: 100%; height: 100%; }
.scene .intro { position: absolute; left: 2.6rem; top: 2.4rem; }
.scene .intro .count { margin-top: .9rem; }
.scale { position: absolute; right: 1.6rem; top: 2.4rem; bottom: 2.4rem; width: 4.2rem; display: flex; flex-direction: column-reverse; justify-content: space-between; }
.scale div { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; font-size: .62rem; letter-spacing: .04em; height: 1px; }
.scale div span.tick { width: .6rem; height: 1px; background: rgba(59,48,39,.35); }
.scale div.has span.tick { width: 1.1rem; background: var(--ink); height: 2px; }
.scale div.sel { font-weight: 500; }
.scale div.sel span.tick { width: 1.8rem; height: 3px; }
.floorpanel { background: var(--paper); padding: 2.6rem 2.4rem; display: flex; flex-direction: column; border-inline-start: 1px solid var(--rule); }
.floorpanel .title { margin: .5rem 0 .4rem; }
.legend { display: flex; gap: 1.1rem; margin: 1.2rem 0 1.4rem; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-inline-end: .4rem; vertical-align: .05rem; }
.dot.available { background: var(--ink); } .dot.reserved { border: 1px solid var(--ink); } .dot.sold { background: rgba(59,48,39,.22); }
.units { list-style: none; border-top: 1px solid var(--rule); }
.units li { display: grid; grid-template-columns: 3.6rem 1fr auto; align-items: center; gap: .8rem; padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.units li.sold, .units li.reserved { opacity: .55; }
.units .code { font-family: var(--serif); font-size: 1.35rem; }
.units .meta { font-size: .86rem; line-height: 1.35; }
.units .price { font-size: .95rem; font-weight: 500; text-align: end; }
.units li.pick { background: var(--white); margin: 0 -1rem; padding-inline: 1rem; opacity: 1; }
.btn { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .95rem 1.4rem; border: 1px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none; text-align: center; }
.btn.solid { background: var(--ink); color: var(--paper); }
.floorpanel .go { margin-top: auto; }
.note { font-size: .72rem; line-height: 1.4; opacity: .7; margin-top: .9rem; }

/* Residence */
.res { display: grid; grid-template-columns: 1fr 29rem; height: 100%; }
.planbox { background: var(--white); position: relative; padding: 2.4rem 2.6rem 2rem; display: flex; flex-direction: column; }
.tabs { display: flex; gap: 1.8rem; border-bottom: 1px solid var(--rule); }
.tabs a { font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 0 0 .8rem; color: var(--ink); text-decoration: none; opacity: .5; }
.tabs a.on { opacity: 1; border-bottom: 2px solid var(--ink); }
:lang(zh) .tabs a, :lang(ar) .tabs a { letter-spacing: .02em; font-size: .85rem; }
.plan { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.plan img.drawing { max-width: 100%; max-height: 30rem; }
.plan img.north { position: absolute; left: 0; top: 1.6rem; width: 2.6rem; }
[dir=rtl] .plan img.north { left: auto; right: 0; }
.planbox .foot { display: flex; justify-content: space-between; font-size: .72rem; opacity: .7; }
.facts { background: var(--paper); padding: 2.4rem 2.4rem 2rem; display: flex; flex-direction: column; }
.facts .title { margin: .45rem 0 .35rem; }
.facts .price { font-family: var(--serif); font-size: 2rem; margin: 1.5rem 0 .2rem; letter-spacing: .02em; }
table.kv { width: 100%; border-collapse: collapse; margin-top: 1.2rem; }
table.kv td { padding: .62rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; vertical-align: top; }
table.kv td:last-child { text-align: end; }
table.kv tr:first-child td { border-top: 1px solid var(--rule); }
table.rooms td { font-size: .82rem; padding: .45rem 0; }
table.rooms td.m { text-align: end; padding-inline-end: 1rem; opacity: .8; }
.actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: 1.4rem; }
.actions .btn.solid { grid-column: 1 / -1; }

/* Location */
.loc { display: grid; grid-template-columns: 1fr 26rem; height: 100%; }
.mapbox { background: var(--paper); position: relative; overflow: hidden; }
.mapbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; }
.mapbox .cap { position: absolute; left: 2.4rem; bottom: 2rem; background: var(--paper); padding: .9rem 1.1rem; max-width: 26rem; }
.walks { padding: 2.4rem 2.4rem 2rem; overflow: hidden; display: flex; flex-direction: column; border-inline-start: 1px solid var(--rule); }
.walks .title { margin: .45rem 0 .8rem; }
.walks .grp { margin-top: 1.3rem; }
.walks ul { list-style: none; margin-top: .55rem; border-top: 1px solid var(--rule); }
.walks li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--rule); font-size: .88rem; }
.walks li b { font-weight: 500; }

/* narrow screens (phone): stack the rail and the panels */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .rail { padding: 1.4rem max(16px, env(safe-area-inset-right, 0px)) 1.2rem max(16px, env(safe-area-inset-left, 0px)); }
  .wordmark { margin-bottom: 1.2rem; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: .4rem 1rem; }
  .nav a { font-size: 1.15rem; }
  .rail-foot { margin-top: 1.2rem; }
  .tower, .res, .loc { grid-template-columns: 1fr; height: auto; }
  .scene { height: 80vh; min-height: 30rem; }
  .mapbox { height: 26rem; }
  .floorpanel, .facts, .walks, .planbox { padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .display { font-size: 2.6rem; } .title { font-size: 2rem; }
}
.title { overflow-wrap: break-word; hyphens: auto; }
:lang(ru) .title { font-size: 2.05rem; } :lang(ru) .display { font-size: 3rem; }
/* Freight Big is Light only (rpt-tokens): headings never take the browser's bold */
h1, h2, h3, .title, .display, .statement, .price { font-weight: 300; }
.units .price { font-weight: 500; }
