/* =========================================================
   Z4 Residence — Residential building marketing site
   Design system
   ========================================================= */

:root {
  /* Palette — derived from the building materials */
  --ink: #1d1c1a;          /* charcoal */
  --ink-soft: #3a3733;
  --stone: #6f6a62;        /* warm grey */
  --stone-light: #9a948b;
  --line: #e4ded4;         /* hairlines */
  --paper: #f6f3ee;        /* warm off-white */
  --paper-2: #efeae1;
  --white: #ffffff;
  --wood: #b07c4f;         /* timber accent */
  --wood-deep: #8c5e36;
  --sky: #cfd8dc;
  --gold: #b89766;

  --ok: #3f7d52;           /* available */
  --warn: #b8893f;         /* reserved */
  --sold: #a4524a;         /* sold */

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 18px 50px -22px rgba(29, 28, 26, .35);
  --shadow-soft: 0 10px 30px -18px rgba(29, 28, 26, .4);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t: .35s cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .002em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
/* Playfair reserved for section titles & tile titles; everything else uses Manrope */
h1, h2, .section-title, .display { font-family: var(--serif); }
.display { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 600; }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--wood-deep);
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--wood); display: inline-block; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--wood); display: inline-block; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: .35em 0 .5em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); width: 100%; }
section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.bg-dark { background: var(--ink); color: var(--paper); }
.bg-paper2 { background: var(--paper-2); }
.bg-dark .eyebrow { color: var(--gold); }
.bg-dark .lead { color: #cfc9bf; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; z-index: 0; isolation: isolate;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.7em; border-radius: 100px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: color var(--t), border-color var(--t);
}
/* Background sweep that grows left → right behind the text (mirrors the link underline) */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill, var(--wood-deep));
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary { background: var(--ink); color: var(--paper); --btn-fill: #000; }
.btn-gold { background: var(--wood); color: #fff; --btn-fill: var(--wood-deep); }
.btn-light { background: var(--paper); color: var(--ink); --btn-fill: #fff; }

/* Secondary/outline: white sweep, text turns dark as it fills */
.btn-ghost { border-color: currentColor; --btn-fill: var(--paper); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); border-color: var(--paper); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: var(--t);
  padding: 24px 0;
}
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 240%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,18,20,.82) 0%, rgba(15,18,20,.45) 45%, rgba(15,18,20,0) 100%);
  transition: opacity var(--t);
}
.site-header.scrolled {
  background: rgba(246, 243, 238, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 21px 0;
}
.site-header.scrolled::before { opacity: 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-right { display: flex; align-items: center; gap: clamp(8px, 1vw, 18px); }
.nav-info, .nav-mobile-phone { display: none; }
.nav-backdrop { display: none; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--sans); font-size: 1.2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--paper); transition: color var(--t); }
.scrolled .brand, .menu-open .brand { color: var(--ink); }
.brand .brand-logo { height: 32px; width: auto; flex: none; display: block; }
.brand-logo .logo-4 { fill: #be8f63; }
.brand-logo .logo-z { fill: #fff; transition: fill var(--t); }
.scrolled .brand-logo .logo-z,
.menu-open .brand-logo .logo-z { fill: var(--ink); }
.brand-wordmark { font-family: var(--sans); font-weight: 600; letter-spacing: .005em; }
.brand small { display:block; font-family: var(--sans); font-size: .48rem; letter-spacing: .3em; font-weight: 700; text-transform: uppercase; opacity: .75; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: clamp(8px, 1vw, 18px); }
.nav-links a { color: var(--paper); font-size: .92rem; font-weight: 600; position: relative; padding: 4px 0; transition: color var(--t); }
.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -24px; width: 0; height: 2px; background: var(--wood); transition: width var(--t); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.scrolled .nav-links a::after { bottom: -21px; }
.nav-links a:hover { color: var(--wood); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: .75em 1.1em; font-size: .88rem; line-height: 1; }
.nav .btn-ghost { color: var(--paper); }
.nav .btn-ghost:hover, .nav .btn-ghost:focus-visible { color: var(--ink); }
.scrolled .nav .btn-ghost { color: var(--ink); }
/* phone button: white sweep over the image; dark (black) sweep once the header is sticky */
.scrolled .nav .btn-quote-desktop { --btn-fill: var(--ink); }
.scrolled .nav .btn-quote-desktop:hover, .scrolled .nav .btn-quote-desktop:focus-visible { color: var(--paper); border-color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { height: 2px; background: var(--paper); transition: var(--t); border-radius: 2px; }
.scrolled .burger span, .menu-open .burger span { background: var(--ink); }

/* ---------- Hero (interactive building) ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); padding: 0; }
.hero-stage { position: relative; min-height: 100svh; }
/* Container always fills viewport width — no grey side bars. Image (object-fit:cover) crops top/bottom on wider-than-16:9 viewports, sides on narrower (mobile zoom-in). */
.hero-building { position: relative; width: 100%; height: min(56.25vw, 100svh); overflow: hidden; margin-inline: auto; }
.hb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.hb-img[data-floor="off"] { opacity: 1; }
.hero-building[data-active="f1"] .hb-img[data-floor="f1"],
.hero-building[data-active="f2"] .hb-img[data-floor="f2"],
.hero-building[data-active="f3"] .hb-img[data-floor="f3"],
.hero-building[data-active="f4"] .hb-img[data-floor="f4"] { opacity: 1; }
.hb-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,18,20,.5) 0%, rgba(15,18,20,0) 20%, rgba(15,18,20,0) 50%, rgba(29,28,26,.6) 88%, var(--ink) 100%); }
/* fade the bottom of the building into the section so it blends seamlessly */
.hero-building::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(29,28,26,.55) 55%, var(--ink) 100%); }

/* floor hotspots — sized to match the image's rendered 16:9 frame (which may overflow the container) so the % positions stay aligned with the building */
.hb-hotspots { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vw; height: 56.25vw; z-index: 3; pointer-events: none; }
.hb-hot { pointer-events: auto; }
.hb-hot { position: absolute; left: 15.8%; width: 69.1%; background: transparent; border: 0; cursor: pointer; padding: 0; }
.hb-hot::before { content: ""; position: absolute; inset: 0; border: 1.5px solid transparent; border-radius: 4px; transition: border-color var(--t), background var(--t); }
.hb-hot::after { content: attr(aria-label); position: absolute; left: 0; top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .45em .9em; border-radius: 100px; white-space: nowrap; opacity: 0; transition: opacity var(--t); pointer-events: none; box-shadow: var(--shadow-soft); }
.hb-hot:hover::before, .hb-hot:focus-visible::before,
.hero-building[data-active="f1"] .hb-hot[data-floor="f1"]::before,
.hero-building[data-active="f2"] .hb-hot[data-floor="f2"]::before,
.hero-building[data-active="f3"] .hb-hot[data-floor="f3"]::before,
.hero-building[data-active="f4"] .hb-hot[data-floor="f4"]::before { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }
.hb-hot:hover::after, .hb-hot:focus-visible::after,
.hero-building[data-active="f1"] .hb-hot[data-floor="f1"]::after,
.hero-building[data-active="f2"] .hb-hot[data-floor="f2"]::after,
.hero-building[data-active="f3"] .hb-hot[data-floor="f3"]::after,
.hero-building[data-active="f4"] .hb-hot[data-floor="f4"]::after { opacity: 1; }

/* floor info panel */
.hb-panel { position: absolute; z-index: 5; top: clamp(84px, 10vw, 120px); right: clamp(16px, 3vw, 40px); width: min(340px, 44vw);
  background: rgba(12,11,10,.78); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  color: var(--paper); border: 0; border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.hero-building:not([data-active="off"]) .hb-panel { opacity: 1; transform: none; pointer-events: auto; }
.hb-panel-head { border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 12px; margin-bottom: 12px; }
.hb-lvl { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hb-panel h3 { font-size: 1.5rem; margin: 3px 0 4px; }
.hb-count { font-size: .82rem; color: #c9c3b8; }
.hb-apts { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.hb-apts li { display: grid; grid-template-columns: 2.6em 1fr auto; gap: 8px; align-items: center; font-size: .85rem; }
.hb-apt-n { font-family: var(--serif); font-weight: 700; color: var(--gold); }
.hb-apt-t { color: #e7e2d8; }
.hb-apts .status { font-size: .68rem; padding: .25em .65em; }
/* Brighter status colors for legibility on the dark panel */
.hb-panel .status.ok   { color: #79d68d; background: rgba(121,214,141,.15); }
.hb-panel .status.warn { color: #f0c473; background: rgba(240,196,115,.15); }
.hb-panel .status.sold { color: #ec8e84; background: rgba(236,142,132,.15); }
.hb-panel .status .dot.ok   { background: #79d68d; }
.hb-panel .status .dot.warn { background: #f0c473; }
.hb-panel .status .dot.sold { background: #ec8e84; }
.hb-cta { width: 100%; justify-content: center; margin-top: 2px; }
.hb-panel-close { display: none; position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--paper); font-size: 1.5rem; line-height: 1; }
.hb-panel-close:hover { background: rgba(255,255,255,.26); }

/* hero copy */
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(10px, 1.4vw, 18px); z-index: 4; pointer-events: none; }
.hero-copy a, .hero-copy .btn { pointer-events: auto; }
.hero .eyebrow { color: #e8c891; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.hero .eyebrow::before { background: #e8c891; }
.hero h1 { margin: .2em 0 .35em; text-shadow: 0 2px 30px rgba(0,0,0,.45); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { color: #e7e2d8; text-shadow: 0 1px 12px rgba(0,0,0,.4); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero-hint { margin-top: 1.5rem; font-size: .78rem; letter-spacing: .08em; color: #d7d1c6; display: inline-flex; align-items: center; gap: .7em; }
.hero-hint::before { content: ""; width: 24px; height: 1px; background: var(--gold); display: inline-block; }

/* hero stat strip (under the building) */
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 0; margin-top: clamp(20px, 3vw, 40px); }
/* Full-bleed top divider (spans viewport even though cells stay inside .wrap) */
.hero-stats::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 1px; background: rgba(255,255,255,.16); }
.hero-stats div { padding: clamp(18px, 2.6vw, 30px) 18px clamp(18px, 2.6vw, 30px) 28px; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; justify-content: center; }
.hero-stats div:first-child { border-left: 0; padding-left: 0; }
.hero-stats b { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 600; display: block; line-height: 1; color: var(--paper); }
.hero-stats span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #c9c3b8; }

/* ---------- About / intro ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
.about-figure .tag { position: absolute; bottom: 18px; left: 18px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 100px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2rem; }
/* Explicit cell borders (robust against sub-pixel gap collapse) */
.facts .feature { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts .feature:nth-child(-n+2) { border-top: 0; }
.facts .feature:nth-child(odd) { border-left: 0; }
.facts .feature h3 { font-size: 1.7rem; }
.facts .feature { background: #fbf9f4; }

/* ---------- Full-width split sections (content + media) ---------- */
.split { padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--paper); }
.split-text { display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px);
  padding-left: clamp(36px, 6vw, 90px); padding-right: clamp(36px, 6vw, 90px); }
.split-text > * { width: 100%; max-width: 560px; }
.split-media { position: relative; min-height: 480px; background: var(--paper-2); }
.split-media img, .split-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
#project .split-media img { object-position: -200px center; }
.split-map iframe { filter: grayscale(.25) contrast(1.02); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--paper); padding: 34px 28px; transition: var(--t); }
.feature:hover { background: #fff; }
.feature .ic { width: 40px; height: 40px; color: var(--wood-deep); margin-bottom: 18px; }
.feature h3 { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; line-height: 1.25; letter-spacing: .01em; margin-bottom: .4em; }
.feature p { font-size: .92rem; color: var(--stone); }

/* ---------- Architecture ---------- */
.arch-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.arch-tab { padding: .6em 1.3em; border-radius: 100px; border: 1px solid rgba(255,255,255,.25); font-weight: 600; font-size: .9rem; transition: var(--t); }
.arch-tab[aria-selected="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.arch-stage { background: #fff; border-radius: var(--radius-lg); padding: clamp(18px,3vw,42px); box-shadow: var(--shadow); }
.arch-stage img { margin-inline: auto; max-height: 64vh; width: auto; }
.arch-cap { text-align: center; margin-top: 18px; color: var(--stone); font-size: .9rem; letter-spacing: .04em; }
.arch-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 26px; }
.arch-thumbs button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 10px; transition: var(--t); }
.arch-thumbs button:hover, .arch-thumbs button[aria-selected="true"] { border-color: var(--gold); background: rgba(184,151,102,.12); }
.arch-thumbs img { aspect-ratio: 4/3; object-fit: contain; }

/* ---------- Carousel (gallery & preview) ---------- */
.carousel { max-width: 1040px; margin-inline: auto; }
.carousel-frame { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; background: #1a1815; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); height: 100%; }
.carousel-slide { flex: 0 0 100%; min-width: 100%; height: 100%; margin: 0; padding: 0; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Sketches: drawings on a white background — letterboxed inside the same 16:9 frame as the exteriors */
.carousel-slide[data-cat="sketches"] { background: #fff; padding: 24px; }
.carousel-slide[data-cat="sketches"] img { width: 100%; height: 100%; object-fit: contain; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.7rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow-soft); transition: background var(--t); }
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: -12px; }
.carousel-next { right: -12px; }
.carousel-cap { text-align: center; margin-top: 18px; color: #cfc9bf; font-size: .92rem; letter-spacing: .03em; min-height: 1.2em; }
.carousel-dots { display: flex; gap: 9px; justify-content: center; margin-top: 14px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background var(--t), transform var(--t); }
.carousel-dots button[aria-current="true"] { background: var(--gold); transform: scale(1.25); }
.carousel-thumbs { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: flex-start; margin-top: 18px; }
.carousel-thumbs-group { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); }
.carousel-thumbs-heading { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-light); font-weight: 700; margin-bottom: 10px; text-align: left; }
.carousel-thumbs-row { display: flex; flex-wrap: wrap; gap: 10px; }
.carousel-thumbs button { width: 88px; height: 60px; border-radius: 7px; overflow: hidden; border: 2px solid transparent; background: transparent; opacity: .5; padding: 0; transition: opacity var(--t), border-color var(--t); }
.carousel-thumbs button img { width: 100%; height: 100%; object-fit: cover; padding: 0; display: block; }
.carousel-thumbs button:hover { opacity: .85; }
.carousel-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }

/* ---------- Apartments ---------- */
.apts-toolbar { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cat-panel[hidden], .filter-group[hidden] { display: none; }
#apartments .section-head { margin-bottom: clamp(20px, 2.5vw, 32px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 8px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.filter-group .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.segmented { display: inline-flex; max-width: 100%; border: 1px solid var(--line); border-radius: 100px; background: var(--white); overflow: hidden; }
.chip { padding: .55em .8em; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; font-size: .82rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; transition: background var(--t), color var(--t); }
.chip:first-child { border-left: 0; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--stone); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.sold { background: var(--sold); }

.apt-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fbf9f4; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.apt-table thead th { text-align: left; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 700; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.apt-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: middle; }
.apt-table tbody tr { transition: background var(--t); cursor: pointer; }
.apt-table tbody tr:hover { background: #fff; }
.apt-table tbody tr:last-child td { border-bottom: 0; }
.apt-num { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--wood-deep); }
.apt-area b { font-size: 1.02rem; }
.apt-area small { color: var(--stone); }
.apt-sub { display: block; color: var(--stone); }
/* Bonus row: full-width strip beneath apartments with a двор/тераса.
   Apartment row drops its bottom border; the bonus row's bottom border
   becomes the apt-block separator. Dashed top border links it visually
   to the apartment row above. */
.apt-table tr.has-bonus td { border-bottom: 0; padding-bottom: 10px; }
.apt-table tr.apt-bonus-row td {
  padding: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.apt-table tr.apt-bonus-row .apt-bonus-bar {
  display: flex; align-items: center;
  padding: 8px 20px 10px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  color: var(--wood-deep);
  background: rgba(176,124,79,.10);
  border-top: 1px dashed rgba(176,124,79,.45);
  letter-spacing: .005em;
  line-height: 1.3;
}
.apt-table tr.apt-bonus-row:hover { background: transparent; }
.apt-table tr.apt-bonus-row:hover .apt-bonus-bar { background: rgba(176,124,79,.14); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; padding: .35em .85em; border-radius: 100px; }
.status.ok { color: var(--ok); background: rgba(63,125,82,.1); }
.status.warn { color: var(--warn); background: rgba(184,137,63,.12); }
.status.sold { color: var(--sold); background: rgba(164,82,74,.1); }
.row-link { color: var(--wood-deep); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 5px; }
.apt-cell-link { text-align: right; }
.apt-cell-num .status { margin-left: 12px; vertical-align: middle; }
.sold-row { opacity: .55; }

.apts-note { font-size: .82rem; color: var(--stone); margin-top: 16px; }
.no-results { text-align: center; padding: 48px; color: var(--stone); display: none; }
.no-results-cta { color: var(--wood-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.no-results-cta:hover { color: var(--ink); }

/* ---------- Floor plans ---------- */
.plan-layout { display: grid; grid-template-columns: 1fr; gap: clamp(10px, 1.4vw, 18px); align-items: start; }
#plans .section-head { margin-bottom: clamp(16px, 2vw, 28px); }
/* Floor tabs structurally match the .apt-table: paper container, 1px var(--line) dividers via borders */
.plan-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: static; }
.plan-nav button { background: var(--paper); padding: 28px 26px; border: 0; border-left: 1px solid var(--line); border-radius: 0; text-align: left; transition: var(--t); cursor: pointer; font-family: inherit; color: inherit; }
.plan-nav button:first-child { border-left: 0; }
.plan-nav button:hover { background: #fff; }
.plan-nav button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.plan-nav .lvl { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wood-deep); margin-bottom: 12px; }
.plan-nav button[aria-selected="true"] .lvl { color: var(--gold); }
.plan-nav .nm { display: block; font-family: var(--sans); font-weight: 700; font-size: 1.18rem; line-height: 1.25; letter-spacing: .01em; margin: 0 0 .4em; }
.plan-nav .ct { display: block; font-size: .92rem; color: var(--stone); }
.plan-nav button[aria-selected="true"] .ct { color: #c9c3b8; }
.plan-stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px,3vw,36px); }
.plan-stage img { margin-inline: auto; max-height: 78vh; width: auto; cursor: zoom-in; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.plan-meta h3 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.plan-apts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.plan-apts .pill { font-size: .82rem; border: 1px solid var(--line); padding: .45em 1em; border-radius: 100px; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px,5vw,60px); align-items: stretch; }
.loc-map { border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.loc-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.25) contrast(1.02); }
.loc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; margin-top: 1.4rem; }
.loc-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .95rem; border-bottom: 1px solid var(--line); }
.loc-list li:nth-last-child(-n+2) { border-bottom: 0; }
.loc-ic { width: 22px; height: 22px; flex: none; color: var(--wood-deep); }
.addr-card { display: inline-flex; align-items: center; gap: 14px; background: var(--paper-2); border-radius: var(--radius-lg); padding: 18px 22px; margin-top: 1.5rem; }
.addr-card svg { width: 26px; color: var(--wood-deep); flex:none; }

/* ---------- Timeline ---------- */
#timeline { padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
#timeline > .split-text { padding-bottom: clamp(24px, 4vw, 56px); }
/* Timeline rail mirrors the split-text content position: same left edge as the heading, mirrored on the right.
   Using % (not vw) so the calc references the section width, matching how .split-text centers its 560px content. */
#timeline > .timeline-band { grid-column: 1 / -1;
  padding-left:  max(clamp(36px, 6%, 90px), calc(25% - 280px));
  padding-right: max(clamp(36px, 6%, 90px), calc(25% - 280px));
  padding-bottom: clamp(56px, 8vw, 110px); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; margin-top: 20px; }
.tl-step { padding: 28px 18px 0; position: relative; }
.tl-step::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.18); }
.tl-step .node { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid var(--stone-light); position: absolute; top: 0; left: 0; z-index: 1; }
.tl-step.done .node { background: var(--gold); border-color: var(--gold); }
.tl-step.current .node { background: var(--paper); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(184,151,102,.25); }
/* Gold overlay line — fills left→right on .in (per .done segment), staggered */
.tl-step::after { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left center; pointer-events: none; z-index: 0; }
.tl-step:not(.done)::after { display: none; }
.timeline.reveal:not(.in) .tl-step.done .node,
.timeline.reveal:not(.in) .tl-step.current .node { background: var(--ink); border-color: var(--stone-light); box-shadow: none; }
.timeline.reveal .tl-step .node { transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
.timeline.reveal .tl-step::after { transition: transform .5s ease; }
.timeline.reveal.in .tl-step.done::after { transform: scaleX(1); }
.timeline.reveal.in .tl-step:nth-child(1)::after { transition-delay: .2s; }
.timeline.reveal.in .tl-step:nth-child(2)::after { transition-delay: .9s; }
.timeline.reveal.in .tl-step:nth-child(1) .node { transition-delay: 0s; }
.timeline.reveal.in .tl-step:nth-child(2) .node { transition-delay: .7s; }
.timeline.reveal.in .tl-step:nth-child(3) .node { transition-delay: 1.4s; }
.tl-step h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.tl-step .yr { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.tl-step p { font-size: .85rem; color: #c9c3b8; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 7px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white); font: inherit; color: var(--ink); transition: var(--t);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--wood); box-shadow: 0 0 0 3px rgba(176,124,79,.15); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--sold); }
.form-note { font-size: .8rem; color: var(--stone); margin-top: 8px; }
.form-success { display: none; background: rgba(63,125,82,.1); color: var(--ok); border: 1px solid rgba(63,125,82,.3); padding: 16px 20px; border-radius: var(--radius); margin-top: 14px; font-weight: 600; }
.contact-aside { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px,4vw,44px); }
.contact-aside h3 { color: #fff; font-size: 1.6rem; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item svg { width: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.contact-item b { display: block; font-size: .95rem; }
.contact-item span { color: #c2bcb1; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #14130f; color: #b7b2a7; padding: 70px 0 30px; font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-logo .logo-z { fill: #fff; }
.footer-col h5 { font-family: var(--sans); color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 26px; font-size: .8rem; color: #837e74; }
.footer-disclaimer { max-width: 60ch; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,14,12,.94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox .lb-close { position: absolute; top: 24px; right: 30px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; display: grid; place-items: center; transition: var(--t); }
.lightbox .lb-close:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; letter-spacing: .05em; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; display: grid; place-items: center; transition: var(--t); }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; grid-auto-rows: 200px; }
.gallery-grid figure { overflow: hidden; border-radius: var(--radius); position: relative; cursor: zoom-in; background: #fff; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 14px; font-size: .8rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: var(--t); }
.gallery-grid figure:hover figcaption { opacity: 1; }
.g-wide { grid-column: span 3; } .g-tall { grid-row: span 2; } .g-2 { grid-column: span 2; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-text { padding-left: var(--gut); padding-right: var(--gut); padding-top: clamp(48px,8vw,90px); padding-bottom: clamp(40px,6vw,70px); }
  .split-media { min-height: 380px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  /* Plan-nav stays 5-col at tablet; mobile pill takes over at <=760 */
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .g-wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .btn-quote-desktop { display: none; }
  .burger { display: flex; }
  .site-header { background: rgba(246,243,238,.95); backdrop-filter: blur(12px); padding: 14px 0; }
  .site-header.scrolled { padding: 11px 0; }
  .site-header .brand { color: var(--ink); }
  .site-header .brand-logo .logo-z { fill: var(--ink); }
  .site-header .burger span { background: var(--ink); }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px var(--gut) 30px;
    box-shadow: var(--shadow); display: flex;
    max-height: calc(100svh - 66px); overflow-y: auto;
    transform: translateY(-130%); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
  }
  body.menu-open .nav-links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { color: var(--ink); font-size: 1.1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--wood); }
  .nav-links .btn { margin-top: 14px; width: 100%; justify-content: center; padding: 1.2em 1.1em; border-bottom: 0; }
  .nav-info { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 4px; }
  .nav-info li { font-size: 1rem; color: var(--ink); }
  .nav-info span { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 3px; }
  .nav-mobile-phone { display: inline-flex; }
  .nav .nav-mobile-phone { color: var(--ink); --btn-fill: var(--ink); margin-top: 10px; }
  .nav .nav-mobile-phone:hover, .nav .nav-mobile-phone:focus-visible { color: var(--paper); border-color: var(--ink); }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 99; background: rgba(15,14,12,.5); opacity: 0; pointer-events: none; transition: opacity var(--t); }
  body.menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .hero { padding-top: 66px; }
  .site-header::before { display: none; }
  .hero-stage { min-height: 0; }
  /* Mobile zoom-in: taller container so the image fills height and crops the extra garden/trees on the sides */
  .hero-building { height: 70vw; }
  .hb-hotspots { width: calc(70vw * 16 / 9); height: 70vw; }
  .hero-copy { position: static; bottom: auto; padding-top: 26px; padding-bottom: 40px; }
  .hero-hint { display: none; }
  .hero h1 { max-width: none; }
  .hero p.lead { font-size: .85rem; max-width: none; }
  .hero .eyebrow { color: var(--gold); text-shadow: none; }
  .hero .eyebrow::before { background: var(--wood); }
  .hb-scrim { background: none; }
  .hb-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 72vh; overflow-y: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 18px 18px; z-index: 150; }
  .hb-panel h3 { font-size: 1.3rem; }
  .hb-panel-close { display: grid; }
  .hb-hot::after { font-size: .66rem; padding: .35em .7em; }
  /* On mobile .wrap = 100vw, so dropping the wrap's padding alone gives full-bleed without negative margins */
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .hero-stats div { padding: 20px var(--gut); border-left: 0; }
  .hero-stats div:first-child { padding-left: var(--gut); }
  .hero-stats div:nth-child(even) { border-left: 1px solid rgba(255,255,255,.1); padding-left: 18px; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 20px 22px; }
  .feature .ic { width: 30px; height: 30px; margin-bottom: 0; }
  .feature h3 { margin-bottom: 0; }
  .feature p { grid-column: 1 / -1; margin-top: 8px; }
  .facts { grid-template-columns: 1fr; }
  .facts .feature { border-left: 0; border-top: 1px solid var(--line); }
  .facts .feature:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .facts .feature:nth-child(odd) { border-left: 0; }
  .facts .feature:first-child { border-top: 0; }
  .facts .feature h3 { font-size: 1.18rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .arch-thumbs { grid-template-columns: repeat(2,1fr); }
  #timeline { grid-template-columns: 1fr; }
  #timeline > .timeline-band { padding-left: var(--gut); padding-right: var(--gut); padding-bottom: clamp(40px, 6vw, 70px); }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .tl-step { padding: 0 0 0 32px; }
  .tl-step::before { left: 8px; top: 0; bottom: 0; right: auto; width: 2px; height: 100%; }
  .tl-step::after { left: 8px; top: 0; bottom: 0; right: auto; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top center; }
  .timeline.reveal.in .tl-step.done::after { transform: scaleY(1); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .loc-list { grid-template-columns: 1fr; }
  .loc-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .split-media { min-height: 280px; }
  #project .split-media img { object-position: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-wide, .g-2 { grid-column: span 2; }
  /* apartments table -> cards */
  .apt-table { box-shadow: none; background: #fbf9f4; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .apt-table thead { display: none; }
  .apt-table, .apt-table tbody { display: block; width: 100%; }
  .apt-table tr { display: block; position: relative; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 16px 18px; margin-bottom: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .apt-table tbody tr:last-child { border-bottom: 0; }
  .apt-table td { display: block; position: relative; padding: 4px 0 4px 84px; border: 0; text-align: right; font-size: .92rem; }
  .apt-table td::before { content: attr(data-label); position: absolute; left: 0; top: 4px; width: 80px; text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
  .apt-table td.apt-cell-num { padding: 0; margin-bottom: 10px; text-align: left; border-bottom: 0; }
  .apt-table td.apt-cell-num::before { content: none; }
  .apt-table .apt-num { font-size: 1.25rem; }
  .apt-table .apt-cell-num .status { font-size: .72rem; margin-left: 10px; }
  .apt-table td.apt-cell-link { position: absolute; top: 16px; right: 18px; padding: 0; margin: 0; border: 0; width: auto; }
  .apt-table td.apt-cell-link::before { content: none; }
  .apt-table .status { background: none; padding: 0; }
  .apt-table .apt-area b { font-weight: 400; font-size: 1em; }
  .apt-sub { display: inline; }
  .apt-sub::before { content: " ("; }
  .apt-sub::after { content: ")"; }
  /* Bonus strip on mobile: full-width edge-to-edge, no extra divider line */
  .apt-table tr.has-bonus { padding-bottom: 10px; border-bottom: 0; }
  .apt-table tr.apt-bonus-row { padding: 0; border-bottom: 0; }
  .apt-table tr.apt-bonus-row td { display: block; padding: 0; text-align: left; }
  .apt-table tr.apt-bonus-row td::before { content: none; }
  /* floor tabs: 4 floors on row 1, parking on row 2 spanning full width */
  .plan-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-bottom: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
  .plan-nav button { padding: .64em .25em; text-align: center; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; transition: background var(--t), color var(--t); }
  .plan-nav button:first-child { border-left: 0; }
  .plan-nav button:nth-child(5) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .plan-nav button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
  .plan-nav .lvl, .plan-nav .ct { display: none; }
  .plan-nav .nm { margin: 0; font-size: .9rem; line-height: 1.6; font-weight: 600; white-space: nowrap; }
  /* filters: full-width, all groups merged into one rounded container with row dividers */
  .filters { flex-direction: column; align-items: stretch; gap: 0; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
  .filter-group .lbl { display: none; }
  .filter-group { width: 100%; border-top: 1px solid var(--line); }
  .filter-group:first-child { border-top: 0; }
  .segmented { display: flex; width: 100%; border: 0; border-radius: 0; background: transparent; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.4rem; }
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
  .carousel-slide { padding: 0; }
  .carousel-thumbs { gap: 10px; justify-content: flex-start; margin-top: 14px; }
  .carousel-thumbs-group { padding: 10px 10px 8px; }
  .carousel-thumbs-heading { margin-bottom: 6px; }
  .carousel-thumbs-row { gap: 6px; }
  .carousel-thumbs button { width: 56px; height: 38px; }
  .chip { flex: 1 1 0; min-width: 0; text-align: center; padding: .64em .25em; margin: 0; font-size: .9rem; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; }
}
