/* The Curve by Cornerstone — fully-finished package site.
   Brand tokens are placeholders until Cornerstone's brand guide is applied. */
:root {
  --ink: #1f2925;
  --brand: #2e4244;        /* The Curve deep slate green (sales deck) */
  --brand-2: #5a7766;      /* The Curve sage */
  --sand: #c9a97a;         /* warm sand accent */
  --sand-2: #e9dcc6;
  --bg: #f2f0ea;
  --bg-2: #e8e6df;          /* deck stone beige */
  --card: #fff;
  --line: #e2dbcf;
  --muted: #6f7570;
  --ok: #3d7a57;
  --warn: #b5651d;
  --err: #a33a2b;
  --r: 14px;
  --shadow: 0 1px 2px rgba(31,41,37,.05), 0 8px 24px rgba(31,41,37,.06);
  --head: 'Cormorant Garamond', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: light;
}
html[dir="rtl"] { --head: 'Tajawal', sans-serif; --body: 'Tajawal', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
code { font-size: .85em; background: var(--bg-2); padding: .1em .35em; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.note { font-size: .82rem; color: var(--muted); margin: .7rem 0 0; }
.w100 { width: 100%; }
.nowrap { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .75em 1.3em; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem var(--body); cursor: pointer; text-decoration: none; transition: .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-wa { background: #1f8f4e; color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.danger { color: var(--err); }
.pill { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 600; padding: .15em .6em; border-radius: 999px; background: var(--sand-2); color: var(--brand); vertical-align: middle; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Header */
#hdr { position: sticky; top: 0; z-index: 30; background: rgba(247,244,238,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 1rem; height: 64px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--brand); margin-inline-end: auto; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--sand); display: grid; place-items: center; }
.logo-mark svg { width: 22px; height: 22px; }
.logo strong { font: 600 1.35rem/1 var(--head); display: block; }
.logo small { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
html[dir="rtl"] .logo small { letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .92rem; }
.nav a:not(.btn):hover { color: var(--brand-2); text-decoration: underline; }
.lang { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .8em; cursor: pointer; font: 500 .85rem var(--body); }
html[dir="ltr"] .lang { font-family: 'Tajawal', sans-serif; }
.burger { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--brand); }
.badge { background: var(--sand-2); color: var(--brand); border-radius: 999px; padding: .25em .8em; font-size: .8rem; font-weight: 600; }
@media (max-width: 920px) {
  .burger { display: block; }
  #hdr .nav { display: none; }
  #hdr.open .nav { display: flex; position: absolute; top: 64px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; }
  #hdr.open .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  #hdr.open .nav .btn { margin-top: .6rem; border: 0; }
  body.is-admin #hdr .nav { display: flex; }
}

/* Sections */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec.alt { background: var(--bg-2); }
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 2rem; font-size: 1.05rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1rem, 2.5vw, 1.6rem); box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .6rem; }
.card-h h1, .card-h h3 { margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; }
.hero-bg { position: absolute; inset: 0; opacity: .55; }
.hero-bg svg { width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,41,37,.94) 0%, rgba(31,41,37,.78) 45%, rgba(31,41,37,.25) 100%); }
html[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(31,41,37,.94) 0%, rgba(31,41,37,.78) 45%, rgba(31,41,37,.25) 100%); }
.hero-in { position: relative; z-index: 1; padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 14ch; color: #fff; }
.hero .lead { max-width: 52ch; font-size: 1.12rem; color: rgba(255,255,255,.86); margin: 0 0 1.8rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--sand); margin: 0 0 .8rem; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.hero .btn-primary { background: var(--sand); color: var(--brand); }
.hero .btn-primary:hover { background: #d8bd93; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; margin: 2.8rem 0 0; }
.stats div { border-inline-start: 2px solid var(--sand); padding-inline-start: .9rem; }
.stats dt { font: 600 2rem/1 var(--head); }
.stats dd { margin: .3rem 0 0; font-size: .85rem; color: rgba(255,255,255,.75); }

/* Scope */
.scope .ic-wrap { width: 46px; height: 46px; border-radius: 12px; background: var(--sand-2); color: var(--brand); display: grid; place-items: center; margin-bottom: .9rem; }
.ic { width: 24px; height: 24px; flex: none; }
.scope h3 { font-size: 1.25rem; }
.scope p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Fields */
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); min-width: 0; }
.field input, .field select, .field textarea, .tbl input, select, .adm-stages input[type=date] {
  font: 400 1rem var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .65em .8em; width: 100%; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sand); outline-offset: 1px; border-color: var(--sand); }
.form { display: flex; flex-direction: column; gap: .9rem; }
.form h3 { margin: .4rem 0 0; }
.two, .three, .four { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .two, .three, .four { grid-template-columns: 1fr; } }
.inline { display: flex; gap: .5rem; align-items: center; }
.form-msg { margin: 0; font-size: .92rem; min-height: 1em; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }
.form-msg:empty { display: none; }

/* Visualizer */
.vis-controls { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.vis-controls .field { min-width: 240px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: .5em 1em; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--body); color: var(--ink); }
.seg button.on { background: var(--brand); color: #fff; }
.compare { position: relative; aspect-ratio: 8 / 5; border-radius: var(--r); overflow: hidden; background: #ddd; box-shadow: var(--shadow); user-select: none; }
.compare .layer { position: absolute; inset: 0; }
.compare .layer svg, .compare .layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.3); }
.compare .handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 12px; padding: .3em .8em; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(31,41,37,.78); color: #fff; pointer-events: none; }
.compare .tag-l { left: 12px; }
.compare .tag-r { right: 12px; background: var(--sand); color: var(--brand); }
.plan-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 1rem; align-items: start; }
@media (max-width: 820px) { .plan-wrap { grid-template-columns: 1fr; } }
.plan-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.plan-svg { width: 100%; height: auto; display: block; }
.plan-img { width: 100%; }
.plan-room { cursor: pointer; outline: none; }
.plan-room:hover rect:last-of-type, .plan-room:focus rect:last-of-type { fill: rgba(201,169,122,.25); }
.plan-label { font: 600 17px var(--body); fill: #1f2925; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; }
.plan-sub { font: 500 14px var(--body); fill: #3c5046; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; }
.plan-side { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; }
.chip { display: inline-block; margin: 0 0 .6rem; padding: .25em .8em; border-radius: 999px; background: #e8e6e1; font-size: .82rem; font-weight: 600; }
.chip-wood { background: #ead8bf; }
.checks { list-style: none; margin: .4rem 0 0; padding: 0; }
.checks li { display: flex; gap: .55rem; align-items: center; padding: .38rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.checks .ic { width: 18px; height: 18px; color: var(--brand-2); }
.tour { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.tour iframe { width: 100%; height: 100%; border: 0; }
.tour.empty { display: grid; place-items: center; text-align: center; color: var(--muted); padding: 1rem; }
.tour.empty .ic { width: 40px; height: 40px; margin: 0 auto; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-content: start; }
.calc-unit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.calc-unit div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
@media (max-width: 520px) { .calc-unit { grid-template-columns: 1fr; } }
.calc-out { background: var(--brand); color: #fff; border-radius: var(--r); padding: 1.4rem; }
.calc-out .muted { color: rgba(255,255,255,.65); }
.calc-out .note { color: rgba(255,255,255,.6); }
.calc-out .btn-primary { background: var(--sand); color: var(--brand); margin-top: .6rem; }
.row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(127,127,127,.18); align-items: baseline; }
.row > :last-child { text-align: end; }
.row.big { font-size: 1.05rem; }
.row.big strong { font: 600 1.7rem/1.1 var(--head); }
.row.cash strong { font: 600 1.4rem/1.1 var(--head); color: var(--sand); }
.card .row.cash strong { color: var(--ok); }
.valid { font-size: .9rem; margin: 1rem 0 .2rem; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.steps li { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; font-size: .95rem; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--sand); display: grid; place-items: center; font-weight: 600; flex: none; font-size: .9rem; }
.track { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.track > div { max-width: 62ch; }
.track p { margin: 0 0 .4rem; }

.faq { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: .8rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--sand); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 1rem; color: var(--muted); }

/* Auth */
.auth { display: grid; place-items: center; min-height: 70vh; padding-inline: 16px; }
.auth-card { width: 100%; max-width: 420px; }

/* Portal */
.portal-head { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.portal-head h1 { margin-bottom: .2rem; }
.portal-head .eyebrow { color: var(--brand-2); }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--sand-2) 0); display: grid; place-items: center; flex: none; }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring strong { font: 600 1.8rem/1 var(--head); }
.ring span { font-size: .7rem; color: var(--muted); }
.portal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: .9rem; position: relative; padding-bottom: 1rem; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--brand-2); }
.timeline .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; margin-top: 3px; }
.timeline .done .dot { background: var(--brand-2); border-color: var(--brand-2); }
.timeline .current .dot { border-color: var(--sand); background: var(--sand); box-shadow: 0 0 0 5px rgba(201,169,122,.3); }
.timeline li div { display: flex; flex-direction: column; }
.timeline .next strong { color: var(--muted); font-weight: 500; }
.eng-name { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: 1.05rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sand-2); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery .ph { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery .ph:hover img { transform: scale(1.03); }
.gallery figcaption { display: flex; flex-direction: column; font-size: .92rem; padding-top: .45rem; }
.svc { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.stack .card { margin-bottom: 1.2rem; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,20,18,.92); display: grid; place-items: center; padding: 16px; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #ddd; text-align: center; padding-top: .7rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-x { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

/* Footer */
#ftr { border-top: 1px solid var(--line); padding: 1.6rem 0; font-size: .88rem; }
.ftr-in { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.side { background: var(--brand); padding: 1.2rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.side a { color: rgba(255,255,255,.82); text-decoration: none; padding: .6rem .8rem; border-radius: 8px; font-size: .93rem; }
.side a.on, .side a:hover { background: rgba(255,255,255,.1); color: #fff; }
.side a.muted { margin-top: auto; color: rgba(255,255,255,.5); }
.admin-main { padding: 1.5rem clamp(16px, 3vw, 2rem); min-width: 0; }
.admin-main h1 { font-size: 2rem; }
@media (max-width: 820px) {
  .admin { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; padding: .5rem; }
  .side a { white-space: nowrap; }
  .side a.muted { margin-top: 0; }
}
.admin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .admin-grid { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi strong { font: 600 1.6rem/1.1 var(--head); }
.kpi.warn { border-color: var(--warn); background: #fdf5ec; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend .cell { width: 12px; height: 12px; display: inline-block; }
.stack-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.blk h4 { margin-bottom: .5rem; }
.blds { display: flex; gap: .5rem; flex-wrap: wrap; }
.bld { display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .8rem; color: var(--muted); }
.bld-grid { display: grid; grid-template-columns: repeat(4, 11px); gap: 2px; }
.cell { width: 11px; height: 11px; border-radius: 2px; display: block; }
.st-open { background: #ddd8cf; color: #555; }
.st-signed { background: #e7c98f; color: #6a4a12; }
.st-works { background: #6a9b80; color: #fff; }
.st-handed { background: var(--brand); color: #fff; }
.tag-st { display: inline-block; font: 600 .75rem var(--body); padding: .25em .7em; border-radius: 999px; vertical-align: middle; }
.filters { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1rem 0; }
.filters .field { width: 150px; }
.filters .grow { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.tbl th { background: var(--bg); font-weight: 600; font-size: .8rem; color: var(--muted); position: sticky; top: 0; }
.tbl tfoot td { background: var(--bg); }
.tbl.cc input { padding: .45em .6em; font-size: .9rem; }
.tbl.cc td:first-child { min-width: 280px; }
.tbl.cc td:nth-child(2), .tbl.cc td:nth-child(3) { width: 130px; }
.bar { width: 90px; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand-2); }
.adm-stages { list-style: none; margin: 0 0 .6rem; padding: 0; }
.adm-stages li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 8px; flex-wrap: wrap; }
.adm-stages li.done { background: #eef4f0; }
.adm-stages li.current { background: #fbf3e6; }
.adm-stages input[type=date] { width: auto; padding: .3em .5em; font-size: .85rem; }
.chk { display: flex; gap: .55rem; align-items: center; cursor: pointer; font-size: .93rem; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); }
.notify { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.ph-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-bottom: 1rem; }
.ph-form .grow { flex: 1; min-width: 220px; }
.adm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.adm-gallery figure { margin: 0; }
.adm-gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 8px; }
.adm-gallery figcaption { display: flex; flex-direction: column; font-size: .85rem; padding: .35rem 0; }
.slot-h { margin: 1.2rem 0 .5rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.slot { border: 1px solid var(--line); border-radius: 10px; padding: .5rem; display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; }
.slot img, .slot-ph { aspect-ratio: 8/5; width: 100%; object-fit: cover; border-radius: 6px; overflow: hidden; }
.slot-ph svg { width: 100%; height: 100%; display: block; opacity: .55; }
.slot-act { display: flex; gap: .4rem; }
.inline-f { flex-direction: row; align-items: center; flex: 1; min-width: 260px; }
.inline-f input { flex: 1; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; z-index: 200; box-shadow: var(--shadow); font-size: .92rem; }
body.is-admin #ftr { display: none; }

/* ---------- Brand logos ---------- */
.logo-curve { display: block; width: 112px; height: 59px; background: var(--brand); -webkit-mask: url(../brand/the-curve-white.svg) center / contain no-repeat; mask: url(../brand/the-curve-white.svg) center / contain no-repeat; }
.ftr-brand { display: flex; align-items: center; gap: .8rem; }
.ftr-brand img { height: 46px; width: auto; }
.ftr-brand small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 3D explorer ---------- */
.explore { position: relative; height: min(100svh - 64px, 900px); min-height: 560px; overflow: hidden; background: #dfe6e3; color: var(--ink); }
.x-canvas { position: absolute; inset: 0; }
.x-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.x-label { position: absolute; left: 0; top: 0; pointer-events: none; font: 600 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(31,41,37,.72); padding: .3em .7em; border-radius: 999px; transition: opacity .3s; white-space: nowrap; }
html[dir="rtl"] .x-label { letter-spacing: 0; }
.x-ui { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: min(520px, 100%); padding: clamp(1.4rem, 4vw, 3rem) 16px 1.4rem clamp(16px, 4vw, 3rem); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,244,238,.94) 0%, rgba(247,244,238,.78) 60%, rgba(247,244,238,0) 100%); }
html[dir="rtl"] .x-ui { background: linear-gradient(270deg, rgba(247,244,238,.94) 0%, rgba(247,244,238,.78) 60%, rgba(247,244,238,0) 100%); padding-inline: clamp(16px, 4vw, 3rem) 16px; }
.x-ui > * { pointer-events: auto; }
.x-intro h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 12ch; }
.x-intro .lead { color: var(--muted); max-width: 40ch; margin: 0 0 1.3rem; }
.x-intro .eyebrow { color: var(--brand-2); }
.x-search { display: flex; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); max-width: 440px; }
.x-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.05rem var(--body); padding: .5em .9em; outline: none; }
.x-msg { min-height: 1.2em; margin: .6rem 0 0; color: var(--err); font-size: .9rem; }
.explore .stats { margin: 0; }
.explore .stats div { border-color: var(--sand); }
.explore .stats dt { color: var(--brand); }
.explore .stats dd { color: var(--muted); }
.x-panel { position: absolute; top: 16px; inset-inline-end: 16px; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; background: rgba(255,255,255,.97); border-radius: var(--r); box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 1.3rem; animation: xin .45s ease both; }
.x-panel[hidden] { display: none; }
@keyframes xin { from { opacity: 0; transform: translateY(12px); } }
.x-panel h2 { font-size: 2rem; margin-bottom: .2rem; }
.x-close { position: absolute; top: 10px; inset-inline-end: 12px; border: 0; background: var(--bg-2); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.x-plan { position: relative; margin: .9rem 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.x-plan img { width: 100%; height: auto; }
.x-marker { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(201,169,122,.35); border: 3px solid #c9a97a; box-shadow: 0 0 0 6px rgba(201,169,122,.25); animation: xpulse 1.6s ease-in-out infinite; }
@keyframes xpulse { 50% { box-shadow: 0 0 0 14px rgba(201,169,122,0); } }
.x-panel .cta { margin-top: 1rem; }
.x-scroll { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-decoration: none; color: var(--brand); box-shadow: var(--shadow); }
.explore.no-3d { background: #dfe6e3 url(../media/masterplan.jpg) center / cover; }
@media (max-width: 760px) {
  .explore { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .x-canvas { position: relative; height: 56svh; order: 2; }
  .x-ui { position: relative; width: 100%; background: var(--bg); order: 1; gap: 1.2rem; padding: 1.6rem 16px; }
  .explore .stats { display: none; }
  .x-panel { position: relative; top: 0; inset-inline-end: 0; width: auto; max-height: none; margin: 0 16px 16px; order: 3; }
  .x-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) { .x-panel, .x-marker { animation: none; } }

/* =====================================================================
   The Curve brand book theme (palette p.07, logo p.04–08, typography p.09)
   Gabriel Sans → Lexend, Univers LT → Hanken Grotesk until licensed web fonts are supplied.
   ===================================================================== */
:root {
  --c-black: #000000; --c-grey: #706f6f; --c-plum: #473e4a; --c-mauve: #ab9597; --c-sand: #eee1d6;
  --c-slate: #415c6d; --c-mist: #889faa; --c-ice: #cedeed; --c-deep: #344645; --c-green: #5c7a6a; --c-ivory: #efede8;
  --gold: #c9962e; --gold-grad: linear-gradient(135deg, #f2cf63 0%, #d9a332 45%, #b77c1c 100%);
  --ink: #2b3a39; --brand: #344645; --brand-2: #5c7a6a; --sand: #c9962e; --sand-2: #eee1d6;
  --bg: #efede8; --bg-2: #eee1d6; --line: #dcd8cf; --muted: #6b716d;
  --head: 'Lexend', 'Hanken Grotesk', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
}
body { background: var(--c-ivory); }
h1, h2 { font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-weight: 500; letter-spacing: .01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { text-transform: none; letter-spacing: 0; font-weight: 700; }
.eyebrow { color: var(--gold); letter-spacing: .22em; font-weight: 600; }
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--gold-grad); vertical-align: middle; margin-inline-end: .7em; }
.btn { border-radius: 2px; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; font-weight: 600; padding: .95em 1.6em; }
html[dir="rtl"] .btn { letter-spacing: 0; font-size: .95rem; }
.btn-sm { padding: .55em 1em; font-size: .74rem; }
.btn-primary { background: var(--c-deep); }
.btn-primary:hover { background: var(--c-green); }
.btn-gold { background: var(--gold-grad); color: #2a2418; }
.pill { background: var(--c-sand); color: var(--c-plum); border-radius: 2px; }
.card { border-radius: 4px; box-shadow: 0 1px 0 rgba(52,70,69,.06), 0 18px 40px -24px rgba(52,70,69,.35); }
.sub { color: inherit; opacity: .78; }
h2 + .sub::before { content: ''; display: block; width: 56px; height: 3px; background: var(--gold-grad); margin: .2rem 0 1.2rem; }

/* header + footer */
#hdr { background: rgba(239,237,232,.94); border-bottom-color: rgba(52,70,69,.12); }
.hdr-in { height: 72px; }
.logo-img { height: 50px; width: auto; display: block; }
.nav a:not(.btn) { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-deep); }
html[dir="rtl"] .nav a:not(.btn) { letter-spacing: 0; font-size: .95rem; }
.lang { border-radius: 2px; border-color: rgba(52,70,69,.2); }
html { scroll-padding-top: 80px; }
@media (max-width: 920px) { #hdr.open .nav { top: 72px; } }
#ftr { background: var(--c-deep); color: rgba(255,255,255,.8); border: 0; padding: 2.6rem 0; }
#ftr .muted { color: rgba(255,255,255,.6); }
.ftr-in { align-items: center; }
.ftr-logo { height: 58px; width: auto; }
.ftr-brand small { color: rgba(255,255,255,.55); }

/* 3D explorer: signature green panel */
.explore { background: var(--c-deep); }
.x-ui { color: #fff; background: linear-gradient(90deg, rgba(52,70,69,.97) 0%, rgba(52,70,69,.88) 55%, rgba(52,70,69,0) 100%); }
html[dir="rtl"] .x-ui { background: linear-gradient(270deg, rgba(52,70,69,.97) 0%, rgba(52,70,69,.88) 55%, rgba(52,70,69,0) 100%); }
.x-intro h1 { color: #fff; max-width: 13ch; }
.x-intro .eyebrow { color: #f0cf7a; }
.x-intro .lead { color: rgba(255,255,255,.78); }
.x-search { border-radius: 2px; border: 0; box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }
.x-search .btn-primary { background: var(--gold-grad); color: #2a2418; }
.x-msg { color: #f6b8a8; }
.explore .stats dt { color: #fff; font-family: var(--head); font-weight: 300; }
.explore .stats dd { color: rgba(255,255,255,.65); }
.explore .stats div { border-image: var(--gold-grad) 1; }
.x-panel { border-radius: 4px; border-top: 4px solid; border-image: var(--gold-grad) 1; }
.x-panel h2 { text-transform: none; letter-spacing: .01em; }
.x-label { background: rgba(52,70,69,.85); border-radius: 2px; }
.stats dt { font-family: var(--head); font-weight: 300; }

/* section colour blocks, following "Logo over color" */
#visualize { background: var(--c-ivory); }
#scope { background: var(--c-deep); color: #fff; }
#scope .card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-shadow: none; color: #fff; }
#scope .scope p { color: rgba(255,255,255,.7); }
#scope .ic-wrap { background: transparent; border: 1px solid rgba(240,207,122,.55); color: #f0cf7a; border-radius: 50%; }
#price { background: var(--c-sand); }
.calc-out { background: var(--c-slate); border-radius: 4px; }
.calc-out .btn-primary { background: var(--gold-grad); color: #2a2418; }
.row.cash strong { color: #f0cf7a; }
.calc-unit { border-radius: 4px; }
#process { background: var(--c-ice); }
.steps li { border-radius: 2px; border: 0; }
.steps .n { background: var(--c-deep); color: #f0cf7a; font-family: var(--head); font-weight: 400; }
.track { background: var(--c-plum); color: #fff; border: 0; }
.track .muted { color: rgba(255,255,255,.65); }
.track .btn-primary { background: var(--gold-grad); color: #2a2418; }
#faq { background: var(--c-ivory); }
.faq summary { font-family: var(--head); font-weight: 400; letter-spacing: .01em; }
.faq summary::after { color: var(--gold); }
#quote { background: var(--c-green); color: #fff; }
#quote .card { color: var(--ink); }
.seg { border-radius: 2px; }
.seg button { border-radius: 2px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
html[dir="rtl"] .seg button { letter-spacing: 0; font-size: .92rem; }
.seg button.on { background: var(--c-deep); }
.compare, .plan-box, .plan-side, .tour { border-radius: 4px; }
.compare .tag { border-radius: 2px; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.compare .tag-r { background: var(--gold-grad); color: #2a2418; }

/* client portal + auth */
.portal { background: linear-gradient(180deg, var(--c-ice) 0, var(--c-ivory) 360px); }
.portal-head h1 { text-transform: none; letter-spacing: .02em; }
.ring { background: conic-gradient(var(--c-green) calc(var(--p) * 1%), rgba(52,70,69,.12) 0); }
.ring > div { background: var(--c-ivory); }
.timeline .done .dot { background: var(--c-green); border-color: var(--c-green); }
.timeline li.done:not(:last-child)::before { background: var(--c-green); }
.timeline .current .dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px rgba(201,150,46,.25); }
.auth { background: var(--c-deep); }
.auth-card { border-top: 4px solid; border-image: var(--gold-grad) 1; }

/* admin keeps a calmer palette */
.side { background: var(--c-deep); }
body.is-admin h1, body.is-admin h2 { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- Gate intro ---------- */
.intro { position: fixed; inset: 0; z-index: 300; background: #1c2524; overflow: hidden; transition: opacity 1s ease; }
.intro.out { opacity: 0; pointer-events: none; }
html.intro-on, html.intro-on body { overflow: hidden; }
.intro video, .intro-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: center / cover no-repeat; opacity: 0; will-change: transform, opacity; }
.intro video { opacity: 1; }
.intro-shot.on { opacity: 1; }
.intro-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,37,36,.35) 0%, rgba(28,37,36,0) 35%, rgba(28,37,36,.55) 100%); pointer-events: none; }
.intro-copy { position: absolute; left: 0; right: 0; bottom: clamp(2rem, 9vh, 6rem); text-align: center; color: #fff; pointer-events: none; }
.intro-copy img { width: clamp(150px, 18vw, 240px); height: auto; margin: 0 auto 1rem; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.intro-line { font: 300 clamp(1rem, 2.2vw, 1.6rem) var(--head); letter-spacing: .22em; text-transform: uppercase; margin: 0; opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s ease; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
html[dir="rtl"] .intro-line { letter-spacing: 0; }
.intro-line.on { opacity: 1; transform: none; }
.intro-skip { position: absolute; top: 18px; inset-inline-end: 18px; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 2px; padding: .55em 1.1em; font: 600 .75rem var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); }
.x-lv { margin-top: .8rem; }
.x-apt { background: #f2f0ea; display: grid; place-items: center; }
.x-apt img { max-height: 340px; width: auto; max-width: 100%; }

/* ---- Location: The Curve in R8 ---- */
.loc .eyebrow { margin-bottom: .4rem; }
.loc-tabs { margin: 1.2rem 0 1rem; }
.loc-stage { position: relative; height: min(72svh, 720px); min-height: 420px; border-radius: 4px; overflow: hidden; background: #d9dcd6; box-shadow: 0 24px 60px -30px rgba(31,41,37,.45); }
.loc-live, .loc-real { position: absolute; inset: 0; }
.loc-live[hidden], .loc-real[hidden] { display: none; }
.loc-views { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(255,255,255,.9); backdrop-filter: blur(6px); flex-wrap: nowrap; max-width: calc(100% - 24px); overflow-x: auto; }
.loc-views button { white-space: nowrap; }
.loc .x-lm { background: rgba(160,120,50,.88); }
.loc-real figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.loc-real figure.on { opacity: 1; }
.loc-real img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.loc-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.loc-dots button.on { background: #fff; }
.loc-facts { margin-top: 1.6rem; }
.loc .note { margin-top: 1rem; }
.loc.no-3d .loc-live { background: url(../context/sat-near.webp) center / cover; }
@media (max-width: 700px) { .loc-stage { height: 62svh; min-height: 360px; } }
.loc-facts dt { color: var(--brand); }
.loc-facts dd { color: var(--muted); }
.loc-facts div { border-color: var(--sand); }
.loc-layers { position: absolute; right: 16px; top: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); }
html[dir="rtl"] .loc-layers { right: auto; left: 16px; }
.loc .x-dist { background: rgba(255,255,255,.88); color: var(--ink); font-size: .7rem; }
.loc .x-dist.x-here { background: var(--brand); color: #fff; }
.loc-cap { position: absolute; left: 16px; top: 16px; margin: 0; max-width: min(420px, calc(100% - 32px)); font-size: .78rem; color: #fff; background: rgba(31,41,37,.62); padding: .45em .8em; border-radius: 2px; }
html[dir="rtl"] .loc-cap { left: auto; right: 16px; }

/* ---- Specification catalogue ---- */
.specs .eyebrow { margin-bottom: .4rem; }
.sp-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin: 1.4rem 0 1.6rem; }
.sp-tabs { flex-wrap: wrap; }
.sp-theme.off { opacity: .35; pointer-events: none; }
.sp-group { margin-bottom: 2.2rem; }
.sp-gt { font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.sp-gt span { font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 400; }
html[dir="rtl"] .sp-gt { letter-spacing: 0; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.sp-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; cursor: zoom-in; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.sp-card:hover, .sp-card:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(52,70,69,.45); outline: none; }
.sp-media { aspect-ratio: 4 / 3; background: #f1efea; overflow: hidden; }
.sp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-card.contain .sp-media { background: #fff; }
.sp-card.contain .sp-media img { object-fit: contain; padding: 6%; }
.sp-body { padding: 1rem 1.1rem 1.2rem; }
.sp-eye { margin: 0 0 .25rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #a6803e); }
html[dir="rtl"] .sp-eye { letter-spacing: 0; }
.sp-body h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.sp-body ul { margin: 0; padding: 0; list-style: none; }
.sp-body li { position: relative; padding-inline-start: 1rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.sp-body li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold, #a6803e); }
.sp-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0; }
.sp-chips span { border: 1px solid var(--gold, #a6803e); border-radius: 999px; padding: .1em .65em; font-size: .78rem; }
.sp-note { margin: .6rem 0 0; font-size: .78rem; color: var(--muted); font-style: italic; }
.sp-extras { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.sp-extras li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; font-size: .9rem; }
.sp-incl { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; margin-top: 1rem; padding: 1.4rem; background: var(--sand-2, #efe9de); border-radius: 4px; }
.sp-incl h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .7rem; }
html[dir="rtl"] .sp-incl h3 { letter-spacing: 0; }
.sp-incl ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.sp-incl li { padding-inline-start: 1.6rem; position: relative; font-size: .95rem; }
.sp-incl li::before { position: absolute; inset-inline-start: 0; top: 0; font-weight: 700; }
.sp-incl li.yes::before { content: '✓'; color: #4f7a4a; }
.sp-incl li.no::before { content: '✕'; color: #a5493c; }
.sp-more { margin: 1.6rem 0 0; }
.sp-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(24,28,26,.86); display: grid; place-items: center; padding: 3vw; cursor: zoom-out; }
.sp-lightbox[hidden] { display: none; }
.sp-lightbox img { max-width: min(1400px, 100%); max-height: 92vh; border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); cursor: default; }
.sp-close { position: absolute; top: 14px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.6rem; cursor: pointer; }
html.lb-on { overflow: hidden; }
@media (max-width: 700px) { .sp-incl { grid-template-columns: 1fr; } .sp-bar { align-items: stretch; } .sp-tabs { overflow-x: auto; flex-wrap: nowrap; } .sp-tabs button { white-space: nowrap; } }
.sp-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.sp-card.wide .sp-media { flex: 0 0 62%; aspect-ratio: 2 / 1; }
.sp-card.wide .sp-body { padding: clamp(1.2rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.sp-card.wide .sp-body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.sp-card.wide .sp-body li { font-size: .98rem; }
.sp-card.wide.contain .sp-media { background: #f4f2ed; }
.sp-card.wide.contain .sp-media img { mix-blend-mode: multiply; }
@media (max-width: 800px) { .sp-card.wide { flex-direction: column; } .sp-card.wide .sp-media { flex: none; width: 100%; } }
.sp-card.wide .sp-media { background: #f3f1ec; }
.sp-card.wide.contain .sp-media img { padding: 4%; }
/* official unit sheet in the explorer panel */
.x-sheet { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.x-sheet img { display: block; width: 100%; height: auto; }
.x-rooms { margin: .4rem 0 .8rem; font-size: .9rem; }
.x-rooms summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: .3rem 0; }
.x-rooms ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.x-rooms li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.x-rooms li span:last-child { color: var(--muted); white-space: nowrap; }
.sp-card.cat-shower-area .sp-media img { object-position: 50% 82%; }
.plan-note { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; margin-top: .15rem; }
.calc-out .plan-note, [class*='result'] .plan-note { color: rgba(255,255,255,.72); }
/* showcase: example apartment before / after */
.sc-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin: 0 0 1rem; }
.sc-legend { display: flex; gap: 1.6rem; margin: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .sc-legend { letter-spacing: 0; }
.compare.sc { aspect-ratio: 1672 / 941; background: #e9e5de; }
.compare.sc .layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-hot { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(166,128,62,.92); box-shadow: 0 0 0 6px rgba(166,128,62,.25); cursor: pointer; padding: 0; z-index: 3; animation: scpulse 2.4s ease-in-out infinite; }
.sc-hot span { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: rgba(31,41,37,.88); color: #fff; font-size: .75rem; padding: .3em .7em; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sc-hot:hover span, .sc-hot:focus-visible span { opacity: 1; }
@keyframes scpulse { 50% { box-shadow: 0 0 0 11px rgba(166,128,62,.08); } }
@media (max-width: 700px) { .sc-hot { width: 20px; height: 20px; } .sc-legend { display: none; } }
.sc-hot { z-index: 5; } .sc-hot.off { opacity: 0; pointer-events: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.leads-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.leads { overflow-x: auto; }
.ltab { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
.ltab th { text-align: left; background: var(--sand-2); padding: .55rem .6rem; white-space: nowrap; }
.ltab td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ltab .ln { max-width: 280px; white-space: pre-wrap; }
