/* Sadowa 7: the sample developer site. Type is light, as on the reference site: 400 for text and
   headlines, 500 (Medium) at most for emphasis, buttons and numbers; only the wordmark is bold.
   Layout: a white page; two rounded blocks side by side at the top (a blue one that speaks, a picture
   that shows); below, the finder as a folder with three tabs. Palette: orchard green (Sadowa is an orchard
   street), a light leaf green, warm brown and beige, near-black; the layout after QuintoAndar and Let Us. One typeface,
   Riforma LL when licensed, Instrument Sans until then, regular and bold side by side in a headline;
   the wordmark "sadowa7" in Bricolage Grotesque Bold. Max's own black and lime appear only
   in the small "sample" pill at the bottom of the screen. */
:root {
  --white: #FFFFFF;
  --mist: #F5F3EF;      /* the folder and quiet panels */
  --beige: #E8E3DA;
  --sand: #D5D0C6;
  --brown: #816241;
  --brand: #1F5A3A;     /* orchard green: Sadowa is an orchard street */
  --brand-2: #2C7550;
  --leaf: #C9E3B8;
  --leaf-2: #E7F2DF;
  --ink: #141511;
  --ink-2: #4D4E49;
  --ink-3: #8B8C86;
  --line: #E5E1D9;
  --line-2: #D3CEC4;
  /* Riforma LL (Lineto) is the face of the reference site; until the web licence is bought, it shows only
     where it is installed, and Instrument Sans stands in. With the licence: add its @font-face, nothing else. */
  --font: "Riforma LL", "Riforma", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mark-font: "Bricolage Grotesque", "Instrument Sans", Arial, sans-serif;   /* the wordmark only */
  --r: 10px;      /* corners as on the reference site: panels, pictures, the bar */
  --r-sm: 10px;
  --pad: clamp(16px, 2.6vw, 32px);
  --gut: clamp(8px, .7vw, 12px);   /* the blue frame around the white panels */
  --col-gap: clamp(20px, 2.4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 14px 44px rgba(20, 21, 17, .13);
  /* status: free is the brand's green, reserved its brown, sold a quiet grey */
  --free: #1F5A3A;
  --free-bg: #E7F2DF;
  --held: #816241;
  --held-bg: #F0E7DA;
  --sold: #A3A19B;
  --sold-bg: #F1F0EC;
  /* names the older parts of the page still use */
  --serif: var(--font);
  --sans: var(--font);
  --paper: var(--white);
  --card: var(--white);
  --green: var(--brand);
  --clay: var(--brand);
  --clay-2: var(--brand-2);
  /* Max's colours, for the sample pill only */
  --mm-black: #111111;
  --mm-lime: #DAFA9C;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--brand); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.5 var(--font); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
[hidden] { display: none !important; }
b, strong { font-weight: 500; }   /* light type, as on the reference site */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.wrap { width: min(100%, 1400px); margin: 0 auto; padding: 0 var(--pad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.two > * { min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 500; }

/* ---------- Buttons: pills, sized like the reference site (about 40px, regular weight) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: none; font-size: 14.5px; font-weight: 400; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.pill-blue { background: var(--brand); color: var(--white); }
.pill-white { background: var(--white); color: var(--brand); }
.pill-line { border-color: var(--line-2); background: var(--white); color: var(--ink); }
.round { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); color: var(--ink); line-height: 0; }
/* the arrows and crosses are drawn, so they sit in the middle of the circle whatever the font */
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the older parts of the page call their buttons .btn */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: 14.5px; font-weight: 400; text-decoration: none; white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease); }
.btn-clay, .btn-green { background: var(--brand); color: var(--white); }
.btn-line { border-color: var(--line-2); background: var(--white); color: var(--ink); }
.btn-small { height: 34px; padding: 0 16px; font-size: 13.5px; }
/* On hover the "flippity-flop" of Tiny Mighty Buttons (Eduard Bodak), made round: a fill of the hover colour
   rises from the bottom like a dome until it fills the pill, and the label rolls up, the new one in the
   hover colour. The label is wrapped in .lbl by app.mjs; the copy you see at rest is its text-shadow.
   --tone is the label at rest, --ghost the fill, --ghost-ink the label on it. Touch screens keep the plain button. */
.pill, .btn, .round { position: relative; isolation: isolate; --tone: var(--ink); --ghost: var(--brand); --ghost-ink: var(--white); }
.pill-blue, .btn-clay, .btn-green { --tone: var(--white); --ghost: var(--ink); --ghost-ink: var(--leaf); }
.pill-white { --tone: var(--brand); --ghost: var(--leaf); --ghost-ink: var(--brand); }
.pill-ghost { --tone: var(--white); --ghost: var(--white); --ghost-ink: var(--brand); }
.lbl { display: inline-flex; align-items: center; gap: inherit; }
@media (hover: hover) and (pointer: fine) {
  :is(.pill, .btn) { overflow: hidden; }
  :is(.pill, .btn, .round)::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--ghost);
    clip-path: inset(100% 12% 0 12% round 999px 999px 0 0);
    transition: clip-path .45s cubic-bezier(.21, 1, .34, 1);
  }
  :is(.pill, .btn, .round):is(:hover, :focus-visible)::before { clip-path: inset(0 round 999px); }
  /* the overflow clips the fill inside the border, so the border takes the fill's colour too */
  :is(.pill, .btn):is(:hover, :focus-visible) { border-color: var(--ghost); }
  :is(.pill, .btn) .lbl {
    color: var(--ghost-ink); text-shadow: 0 -2em 0 var(--tone); transform: translateY(2em);
    transition: transform .45s cubic-bezier(.21, 1, .34, 1), text-shadow .15s cubic-bezier(.215, .61, .355, 1);
  }
  :is(.pill, .btn):is(:hover, :focus-visible) .lbl { transform: none; text-shadow: 0 -2em 0 var(--ghost-ink); }
  .round:is(:hover, :focus-visible) { color: var(--ghost-ink); transition: color .2s .08s; }
  /* round buttons (arrows, crosses) keep the "casper": a circle grows out of the middle and fills them */
  .round::before { clip-path: inset(30% round 999px); opacity: 0; transition: clip-path .45s cubic-bezier(.21, 1, .34, 1), opacity .2s cubic-bezier(.215, .61, .355, 1); }
  .round:is(:hover, :focus-visible)::before { opacity: 1; }
}
.link { padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- The page: white panels on the brand blue, ten pixels from the edge ---------- */
body { background: var(--brand); }
.panel { margin: 0 var(--gut) var(--gut); border-radius: var(--r); background: var(--white); }
.label { color: var(--ink-3); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
/* every section: a narrow label column on the left, the content from a sixth of the width */
.sec-top { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 5fr); gap: 0 var(--col-gap); margin-bottom: clamp(28px, 3vw, 44px); }
.sec-top .label { padding-top: 12px; }
.sec-top h2, .say h2 { font-size: clamp(32px, 3.8vw, 58px); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
.sec-top h2 b { color: var(--brand); font-weight: 500; }
.sec-top > div > p { max-width: 38em; margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }

/* ---------- The masthead, on the blue ---------- */
.mast { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr) minmax(0, 2fr) auto; gap: 0 var(--col-gap); align-items: start; padding: 22px calc(var(--gut) + var(--pad)) 34px; color: var(--white); }
/* the wordmark: "sadowa7" in a tight, heavy grotesque, lower case; the line under it small and spaced */
.wm { font-family: var(--mark-font); font-weight: 700; font-variation-settings: "opsz" 96; letter-spacing: -0.05em; white-space: nowrap; }
.mark { display: inline-grid; justify-items: start; align-self: start; align-content: start; gap: 4px; color: inherit; text-decoration: none; }
.mark .wm { font-size: 31px; line-height: .9; }
.wm-sub { color: var(--leaf); font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.mast-nav { display: flex; gap: clamp(28px, 5vw, 96px); padding-top: 4px; }
.mast-nav a { color: var(--white); font-size: 15px; font-weight: 400; text-decoration: none; }
.mast-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mast-nav li + li { margin-top: 6px; }
.mast-nav .sub { padding-left: 14px; border-left: 1px solid rgba(201, 227, 184, .4); }
.mast-nav .sub a { color: var(--leaf); font-size: 14px; }
.mast-meta { display: grid; gap: 2px; padding-top: 4px; color: var(--leaf); font-size: 14px; }
.mast-meta b { color: var(--white); font-size: 15px; font-weight: 500; }

/* the slim bar that takes over once the masthead has scrolled away */
.bar { position: fixed; top: var(--gut); left: var(--gut); right: var(--gut); z-index: 30; display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 10px 0 22px; border-radius: var(--r); background: rgba(255, 255, 255, .96); box-shadow: 0 8px 30px rgba(16, 42, 28, .16); backdrop-filter: blur(12px); transform: translateY(-140%); transition: transform .45s var(--ease); }
.bar.is-on { transform: none; }
.logo { margin-right: auto; color: var(--brand); font-size: 25px; line-height: 1; text-decoration: none; }
.bar-nav { display: flex; gap: 26px; }
.bar-nav a { color: var(--ink-2); font-size: 15px; font-weight: 400; text-decoration: none; }
.bar-nav a:hover { color: var(--brand); }
.bar .pill { height: 38px; }
.fav-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); }
.fav-btn svg { width: 18px; fill: var(--brand); stroke: var(--brand); stroke-width: 1.6; }
.fav-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--white); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- Hero: the promise on the left, the building on the right, in one panel ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); min-height: min(calc(100svh - 130px), 860px); padding: var(--gut); }
.hero-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(16px, 2vw, 28px) clamp(8px, 1vw, 16px) clamp(8px, 1vw, 16px); }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 4.6vw, 76px); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.hero h1 b { color: var(--brand); font-weight: 500; }
.hero-dek { max-width: 26em; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }
.hero-foot { display: grid; gap: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.facts div { padding-top: 16px; }
.facts div + div { padding-left: 16px; }
.facts dt { color: var(--ink-3); font-size: 13px; }
.facts dd { margin-top: 2px; font-size: clamp(18px, 1.5vw, 24px); white-space: nowrap; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-pic { position: relative; min-height: 360px; overflow: hidden; border-radius: var(--r-sm); background: var(--leaf-2); }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* the first screen comes in on load: the words rise one after another, the picture settles */
@keyframes fx-up { from { opacity: 0; transform: translateY(26px); } }
@keyframes fx-in { from { opacity: 0; transform: scale(1.03); } }
.hero-text > * { animation: fx-up .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .18s; }
/* the first photo is visible from its first frame (it is what Google times), only the zoom eases */
@keyframes fx-zoom { from { transform: scale(1.03); } }
.hero-pic { animation: fx-zoom 1.2s var(--ease) both; }
.mast > * { animation: fx-up .7s var(--ease) both; }

/* ---------- A statement on the blue ---------- */
.say { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 5fr); gap: 0 var(--col-gap); padding: clamp(56px, 7vw, 112px) calc(var(--gut) + var(--pad)); color: var(--white); }
.say .label, .quote .label, .foot .label { color: var(--leaf); }
.say .label { padding-top: 12px; }
.say h2 { max-width: 20em; }
.say h2 b { font-weight: 500; }
/* the photo on the left, the text level with its top and the buttons level with its bottom;
   every child has a fixed cell, because a <source> in the <picture> would take one otherwise */
.say-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto 1fr; gap: 24px clamp(32px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.say-row img { grid-column: 1; grid-row: 1 / 3; width: 100%; aspect-ratio: 3 / 2; border-radius: var(--r-sm); object-fit: cover; }
.say-row p { grid-column: 2; grid-row: 1; max-width: 26em; color: var(--leaf); font-size: 17px; }
.say-row .cta { grid-column: 2; grid-row: 2; align-self: end; }

/* ---------- The finder ---------- */
section { padding: 0; }
.panel.finder, .panel.inside, .panel.place, .panel.standard, .panel.build { padding: clamp(36px, 4.4vw, 72px) var(--pad) clamp(28px, 3.4vw, 56px); }
/* filters: a row of pills; each opens a small panel with its controls */
.filters { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 0 32px; }
/* the bar sits a layer above the folder, so an open filter is never drawn under the tabs and the list
   (the scroll entrances turn the folder into a layer of its own for a moment) */
.flt-row { display: contents; }
.flt { position: relative; }
/* a filter: its name, what is chosen (grey until something is), a chevron, a hairline under it */
.flt-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 400; white-space: nowrap; transition: border-color .2s var(--ease); }
.flt-btn:hover, .flt-btn[aria-expanded="true"] { border-bottom-color: var(--ink); }
.flt-val { color: var(--ink-3); transition: color .2s var(--ease); }
.flt.is-on .flt-val { color: var(--brand); }
.flt-btn i { width: 6px; height: 6px; margin: -3px 2px 0 2px; border-right: 1.3px solid var(--ink-2); border-bottom: 1.3px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s var(--ease); }
.flt-btn[aria-expanded="true"] i { margin-top: 3px; transform: rotate(-135deg); }
.pop { position: absolute; z-index: 25; top: calc(100% + 8px); left: 0; width: max-content; min-width: 300px; max-width: min(420px, calc(100vw - 32px)); padding: 20px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.pop-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--ink-3); font-size: 13.5px; font-weight: 500; }
.pop-title output { color: var(--ink); font-weight: 500; }
.pop-title:not(:first-child) { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 44px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: 14.5px; font-weight: 500; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--white); }
/* sliders: a thin track, the chosen span in blue, round handles */
.dual { position: relative; height: 36px; }
.dual::before, .dual-fill { content: ""; position: absolute; top: 16px; height: 4px; border-radius: 2px; }
.dual::before { left: 0; right: 0; background: var(--line); }
.dual-fill { left: var(--a, 0%); right: calc(100% - var(--b, 100%)); background: var(--brand); }
.dual input, .range { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 36px; margin: 0; appearance: none; background: none; pointer-events: none; }
.range { position: relative; margin-top: 16px; pointer-events: auto; background: linear-gradient(var(--brand), var(--brand)) 0 50% / var(--p, 100%) 4px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 4px no-repeat; border-radius: 2px; }
.dual input::-webkit-slider-thumb, .range::-webkit-slider-thumb { width: 22px; height: 22px; border: 2px solid var(--brand); border-radius: 50%; background: var(--white); appearance: none; pointer-events: auto; cursor: grab; }
.dual input::-moz-range-thumb, .range::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid var(--brand); border-radius: 50%; background: var(--white); pointer-events: auto; cursor: grab; }
.switch { display: flex; align-items: center; gap: 10px; height: 36px; font-size: 15px; font-weight: 400; cursor: pointer; white-space: nowrap; }
.switch input { position: relative; width: 38px; height: 22px; margin: 0; border-radius: 11px; background: var(--line-2); appearance: none; cursor: pointer; transition: background-color .2s var(--ease); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }
.reset { height: 36px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-2); background: none; color: var(--ink-2); font-size: 15px; font-weight: 400; }
.reset:hover { border-bottom-color: var(--ink); color: var(--ink); }
.count { margin-left: auto; color: var(--ink-2); font-size: 15px; }
.count b { color: var(--ink); font-weight: 500; }

/* the folder: three tabs, the open one joined to its panel */
.tabs { display: flex; }
.tabs button { position: relative; height: 46px; padding: 0 26px; border: 0; border-radius: var(--r) var(--r) 0 0; background: none; color: var(--ink-3); font-size: 15px; font-weight: 400; transition: color .2s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--mist); color: var(--ink); }
.tabs button[aria-selected="true"]::before, .tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; width: var(--r); height: var(--r); pointer-events: none; }
.tabs button[aria-selected="true"]::before { left: calc(-1 * var(--r)); background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--mist) var(--r)); }
.tabs button[aria-selected="true"]::after { right: calc(-1 * var(--r)); background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--mist) var(--r)); }
.tabs button:first-child[aria-selected="true"]::before { display: none; }
.view { padding: clamp(14px, 1.6vw, 22px); border-radius: var(--r); background: var(--mist); }
.folder:has(.tabs button:first-child[aria-selected="true"]) .view,
.card-folder:has(.tabs button:first-child[aria-selected="true"]) .card-view { border-top-left-radius: 0; }
.tabs { padding-left: 0; }

/* view 1: the building beside its floors */
.view-bryla { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.stage { position: relative; min-width: 0; }
.stage-pic { position: relative; overflow: hidden; border-radius: var(--r-sm); background: #E6EAEB; aspect-ratio: 16 / 10; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage-pic.is-drag { cursor: grabbing; }
.stage-pic img { width: 100%; height: 100%; object-fit: cover; }
.stage-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-svg path { fill: var(--brand); fill-opacity: 0; stroke: var(--white); stroke-opacity: 0; stroke-width: 2; vector-effect: non-scaling-stroke; fill-rule: evenodd; cursor: pointer; transition: fill-opacity .25s var(--ease), stroke-opacity .25s var(--ease); }
.stage-svg path.is-on { fill-opacity: .58; stroke-opacity: 1; stroke-width: 2.5; }
.stage-svg path.is-none { cursor: default; }
.stage-svg path.is-none.is-on { fill: var(--sold); }
.stage-ctrl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.stage-ctrl .round { width: 44px; height: 44px; border: 0; box-shadow: 0 4px 16px rgba(20, 21, 17, .16); }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -100%); padding: 5px 10px 6px; border-radius: 13px; background: var(--brand); color: var(--white); font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; z-index: -1; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.tip { position: absolute; z-index: 5; min-width: 230px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--white); box-shadow: var(--shadow); pointer-events: none; font-size: 14.5px; }
.tip h4 { margin-bottom: 4px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.tip p { color: var(--ink-2); }
.tip p b { color: var(--ink); font-weight: 500; }
.tip .tip-go { display: none; margin-top: 12px; pointer-events: auto; }
.tip.is-touch .tip-go { display: inline-flex; }
.floor-list { display: flex; flex-direction: column; justify-content: center; }
.floor-list li + li { border-top: 1px solid var(--line); }
.floor-list button { display: grid; grid-template-columns: 52px 1fr; gap: 0 14px; align-items: center; width: 100%; padding: 14px 14px 14px 10px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; transition: background-color .2s var(--ease); }
.floor-list li:has(button:hover) + li, .floor-list li:has(button.is-on) + li { border-top-color: transparent; }
.floor-list button:hover, .floor-list button.is-on { background: var(--white); }
.floor-list .fl-no { grid-row: span 2; color: var(--ink-3); font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: -0.04em; text-align: center; transition: color .2s var(--ease); }
.floor-list button:hover .fl-no, .floor-list button.is-on .fl-no { color: var(--brand); }
.floor-list .fl-name { font-size: 16px; font-weight: 500; }
.floor-list .fl-meta { color: var(--ink-3); font-size: 14px; }
.floor-list .fl-meta b { color: var(--brand); font-weight: 500; }

/* view 2: one floor */
.view-rzut { position: relative; }
.floor-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--white); }
.seg button { height: 40px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--white); }
.legend { display: flex; gap: 18px; color: var(--ink-2); font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend .is-wolne { background: var(--free); }
.legend .is-zarezerwowane { background: var(--held); }
.legend .is-sprzedane { background: var(--sold); }
.floor-bar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-left: auto; }
.floor-3d { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-sm); background: #E6EAEB; aspect-ratio: 20 / 9; }
.floor-3d img { display: block; width: 100%; height: 100%; object-fit: cover; }
.floor-3d figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--ink-2); font-size: 13px; line-height: 1.3; box-shadow: 0 1px 4px rgba(20, 21, 17, .12); }
.floor-plan { overflow-x: auto; padding: 18px; border-radius: var(--r-sm); background: var(--white); }
.floor-plan .plan { min-width: 860px; }
.plan-floor .pl-unit { cursor: pointer; outline: none; }
.plan-floor .pl-hit { fill: var(--free-bg); transition: fill .2s var(--ease); }
.plan-floor .pl-unit.is-zarezerwowane .pl-hit { fill: var(--held-bg); }
.plan-floor .pl-unit.is-sprzedane .pl-hit { fill: var(--sold-bg); }
.plan-floor .pl-unit.is-wolne:hover .pl-hit, .plan-floor .pl-unit.is-wolne:focus-visible .pl-hit { fill: var(--leaf); }
.plan-floor .pl-unit.is-zarezerwowane:hover .pl-hit, .plan-floor .pl-unit.is-zarezerwowane:focus-visible .pl-hit { fill: #E4D3B9; }
.plan-floor .pl-unit.is-dim .pl-hit { fill: #F8F7F4; }
.plan-floor .pl-tag text { fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.plan-floor .pl-no { font-size: 1.15em; font-weight: 500; }
.plan-floor .pl-sz { font-size: .82em; font-weight: 500; fill: var(--ink-2); }
.plan-floor .pl-tag.is-sprzedane text { fill: var(--ink-3); }
.plan-floor .pl-tag.is-wolne .pl-no { fill: var(--brand); }
.plan-floor .pl-common { fill: var(--ink-3); font-size: .78em; text-anchor: middle; dominant-baseline: middle; }
.plan-floor .pl-street { fill: var(--ink-3); font-size: .78em; text-anchor: middle; letter-spacing: .04em; text-transform: uppercase; }

/* view 3: the list, one row per flat */
/* the list sorts by its column heads; the select is for the phone, where the heads are hidden */
.list-bar { display: none; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 12px; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14.5px; }
.sort select { height: 40px; padding: 0 36px 0 16px; border: 0; border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23141511' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--ink); font-weight: 500; appearance: none; }
.rows-head, .rows button { display: grid; grid-template-columns: 92px minmax(110px, 1.3fr) repeat(3, minmax(70px, .8fr)) minmax(120px, 1.2fr) minmax(130px, 1.2fr) 124px 16px; align-items: center; gap: 16px; }
.rows-head { padding: 0 20px 10px 12px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.rows-head button { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.rows-head button:hover, .rows-head button[aria-sort] { color: var(--ink); }
.rows-head button[aria-sort]::after { content: "↑"; color: var(--brand); }
.rows-head button[aria-sort="descending"]::after { content: "↓"; }
.rows-head .r-num { justify-self: end; }
.rows { display: grid; gap: 6px; }
.rows button { width: 100%; padding: 10px 20px 10px 10px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--white); text-align: left; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.rows button:hover { border-color: var(--leaf); box-shadow: 0 8px 24px rgba(31, 90, 58, .08); }
.rows .r-plan { display: grid; place-items: center; height: 64px; border-radius: 10px; background: var(--mist); }
.rows .r-plan svg { width: 80px; height: 54px; }
.rows .r-id { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.rows .r-sub { display: block; color: var(--ink-3); font-size: 13.5px; }
.rows .r-cell { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.rows .r-cell small { color: var(--ink-3); font-size: 13px; }
.rows .r-out { color: var(--ink-2); font-size: 14.5px; }
.rows .r-price { font-size: 17px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .r-price small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.rows .status { justify-self: end; }
.rows .r-go { color: var(--ink-3); font-size: 20px; transition: transform .2s var(--ease), color .2s var(--ease); }
.rows button:hover .r-go { color: var(--brand); transform: translateX(3px); }
.rows .is-sold { opacity: .6; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.is-wolne { background: var(--free-bg); color: var(--free); }
.status.is-zarezerwowane { background: var(--held-bg); color: var(--held); }
.status.is-sprzedane { background: var(--sold-bg); color: #75736D; }
.empty { padding: 48px 20px; border-radius: var(--r-sm); background: var(--white); color: var(--ink-2); text-align: center; }
.heart svg { width: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.heart[aria-pressed="true"] svg { fill: var(--brand); stroke: var(--brand); }
.heart { --ghost: var(--leaf-2); --ghost-ink: var(--brand); }

/* ---------- The sample pill, in Max's colours ---------- */
.demo-pill { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: var(--mm-black); color: #BDBDBD; font-size: 13px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.demo-pill a { color: var(--mm-lime); font-weight: 600; text-decoration: none; }
.demo-pill a:hover { text-decoration: underline; }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(20, 21, 17, .5); backdrop-filter: blur(3px); }

/* the visit: a phone number, a promise and a person */
.visit { width: min(880px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); border-radius: var(--r); background: var(--white); overflow: auto; }
.visit[open] { animation: rise .4s var(--ease); }
.visit-in { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.visit-person { position: relative; min-height: 100%; overflow: hidden; background: var(--beige); }
.visit-person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.visit-person figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .94); font-size: 14px; line-height: 1.35; }
.visit-person figcaption b { display: block; font-size: 15.5px; }
.visit-person figcaption span { color: var(--ink-3); }
.visit-body { position: relative; padding: clamp(24px, 3.4vw, 44px); }
.visit-body .round[data-close] { position: absolute; top: 16px; right: 16px; }
.visit h2 { max-width: 12em; font-size: clamp(28px, 3vw, 40px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.visit h2 b { color: var(--brand); font-weight: 500; }
.visit-dek { margin-top: 12px; color: var(--ink-2); }
.lead { display: grid; gap: 14px; margin-top: 26px; }
.lead label:not(.check) { display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.lead input:not([type="checkbox"]), .lead select { height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); font-size: 17px; font-weight: 500; }
.lead input[type="tel"] { font-size: 22px; font-weight: 500; letter-spacing: .02em; }
.lead input:focus, .lead select:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--leaf-2); }
.lead legend { margin-bottom: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.lead .check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-3); font-size: 13.5px; }
.lead .check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.lead .is-bad { border-color: #C2432F !important; box-shadow: 0 0 0 3px #F6DCD6 !important; }
.lead .pill { height: 44px; }
.lead-note { color: var(--ink-3); font-size: 13px; }
.lead-done { padding: 18px 20px; border-radius: var(--r-sm); background: var(--leaf-2); color: var(--ink); font-size: 16px; line-height: 1.5; }
.lead-done b { font-weight: 500; }

/* the card of one flat */
.sheet { width: min(1240px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); border-radius: var(--r); background: var(--white); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 20px; padding: 18px 28px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); }
.sheet-head h2 { margin-top: 2px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 400; line-height: 1; letter-spacing: -0.035em; }
.sheet-head h2 b { color: var(--brand); font-weight: 500; }
.sheet-area { padding-left: 20px; border-left: 1px solid var(--line); font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sheet-area small { color: var(--ink-3); font-size: .6em; font-weight: 500; }
.sheet-head .grow { flex: 1; }
.sheet-nav { display: flex; gap: 6px; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); }
.sheet-left { padding: 22px 28px 32px; border-right: 1px solid var(--line); }
.sheet-right { padding: 22px 28px 32px; }
/* the plan views as a folder with three tabs, and the variants of each tab as a switch inside */
.card-folder .tabs button { height: 46px; padding: 0 22px; font-size: 15px; }
.card-view { display: grid; gap: 12px; padding: 12px; }
.card-seg { justify-self: start; background: var(--white); }
.card-seg button { height: 36px; font-size: 14px; }
.plan-box { padding: 14px; border-radius: var(--r-sm); background: var(--white); }
.v3d-host { overflow: hidden; border-radius: var(--r-sm); }
.v3d-fail { padding: 40px 16px; color: var(--ink-3); text-align: center; }
.plan-box .plan-unit { max-height: 62vh; margin: 0 auto; }
.where { position: relative; overflow: hidden; border-radius: var(--r-sm); background: #E6EAEB; }
.where img { width: 100%; }
.where svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.where path { fill: var(--brand); fill-opacity: .55; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; fill-rule: evenodd; }
.where-key .plan-key { max-width: 520px; }
.price { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.price .label { margin-bottom: 8px; }
.price .big { color: var(--brand); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.price .per { margin-top: 6px; color: var(--ink-2); }
.price .since { margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 18px 0 20px; }
.actions .btn, .actions .pill { width: 100%; }
/* the flat's own page: plain HTML with its price, for sharing and for search engines */
.card-page { display: inline-block; margin: -8px 0 18px; color: var(--brand); font-size: 14px; }
.facts-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts-list div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts-list div:nth-child(odd) { padding-right: 12px; }
.facts-list dt { color: var(--ink-3); font-size: 13px; }
.facts-list dd { font-weight: 500; }
.sides { display: inline-flex; gap: 4px; }
.sides span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-3); font-size: 10.5px; font-weight: 500; }
.sides span.is-on { border-color: var(--brand); background: var(--brand); color: var(--white); }
.block { margin-top: 26px; }
.block h3 { margin-bottom: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.block h3.label { margin-bottom: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; }
.where-cap { color: var(--ink-3); font-size: 13.5px; }
.rooms { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rooms td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rooms td:last-child { font-weight: 500; text-align: right; white-space: nowrap; }
.rooms tr.sum td { border-bottom: 0; font-weight: 500; }
.rooms tr.out td { color: var(--ink-2); }
.history svg { width: 100%; height: auto; overflow: visible; }
.history .h-line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.history .h-area { fill: var(--brand); opacity: .07; }
.history .h-dot { fill: var(--brand); }
.history .h-axis { stroke: var(--line-2); vector-effect: non-scaling-stroke; }
.history text { fill: var(--ink-3); font: 500 11px var(--font); }
.h-list { margin-top: 8px; font-size: 14px; }
.h-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.h-list .up { color: var(--brown); font-weight: 500; }
.h-list .down { color: var(--brand); font-weight: 500; }
.h-list span:first-child { color: var(--ink-2); }
.extras li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.extras b { font-weight: 500; white-space: nowrap; }
.similar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.similar button { padding: 12px; border: 0; border-radius: var(--r-sm); background: var(--mist); text-align: left; }
.similar button:hover { background: var(--leaf-2); }
.similar svg { height: 80px; margin: 0 auto 8px; }
.similar b { display: block; font-weight: 500; }
.similar span { color: var(--ink-3); font-size: 13px; }

/* the PDF card, shown as a PDF */
.pdf { width: min(980px, calc(100vw - 24px)); max-width: none; height: calc(100dvh - 24px); max-height: none; border-radius: var(--r); background: #33343A; color: var(--white); }
.pdf[open] { display: flex; flex-direction: column; }
.pdf-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; background: #26272C; }
.pdf-name { flex: 1; overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.pdf-tools { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pdf .round { border-color: #55565C; background: #33343A; color: var(--white); }
.pdf .btn-small { background: var(--brand); color: var(--white); }
.pdf-body { flex: 1; overflow: auto; padding: 18px; }
.pdf-body canvas { display: block; margin: 0 auto 18px; background: var(--white); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.pdf-loading { padding: 40px; color: #CFCFCF; text-align: center; }
.pdf-mail { display: flex; align-items: end; gap: 10px; padding: 12px 20px; background: #26272C; }
.pdf-mail label { flex: 1; display: grid; gap: 4px; color: #CFCFCF; font-size: 12.5px; font-weight: 500; }
.pdf-mail input { height: 38px; padding: 0 12px; border: 1px solid #55565C; border-radius: 10px; background: #33343A; color: var(--white); }

/* drawer: the saved flats */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; background: var(--white); overflow: auto; }
.drawer[open] { animation: slide .4s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer-top h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.drawer-pad { padding: 20px 22px 32px; }
.fav-item { display: grid; grid-template-columns: auto 90px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fav-item svg { width: 90px; height: 60px; }
.fav-item b { display: block; font-weight: 500; }
.fav-item span { color: var(--ink-3); font-size: 13px; }
.t-act { display: flex; justify-content: flex-end; gap: 6px; }
.compare { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { color: var(--ink-3); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.compare td svg { width: 100%; max-height: 140px; }
.compare .best { color: var(--brand); font-weight: 500; }

/* ---------- The estate: a slider, one large picture at a time and the next one peeking in ---------- */
.panel.estate { padding: clamp(36px, 4.4vw, 72px) var(--pad) clamp(28px, 3.4vw, 56px); }
/* the row runs to the panel's right edge; snapping is off while the mouse drags it */
.gallery { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); scrollbar-width: none; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 4px; border-radius: var(--r-sm); }
.gallery.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.g-item { position: relative; flex: none; width: min(70%, 1040px); aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--mist); cursor: inherit; scroll-snap-align: start; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); -webkit-user-drag: none; }
.g-item:hover img { transform: scale(1.03); }
.g-cap { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; font-weight: 500; }
.slider-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 18px; }
.slider-count { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.slider-count b { color: var(--ink); font-weight: 500; }
.slider-line { height: 2px; border-radius: 1px; background: var(--line); }
.slider-line i { display: block; width: var(--at, 12.5%); height: 100%; border-radius: inherit; background: var(--brand); transition: width .4s var(--ease); }
.slider-nav { display: flex; gap: 8px; }
.slider-nav .round:disabled { opacity: .35; pointer-events: none; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 26, 17, .94); }
.lightbox figure { display: grid; place-items: center; align-content: center; gap: 14px; height: 100%; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 150px); border-radius: var(--r-sm); object-fit: contain; }
.lightbox figcaption { color: var(--leaf); font-size: 15px; }
.lightbox .round { position: absolute; width: 48px; height: 48px; border: 0; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 16px; right: 16px; }

/* ---------- Interiors: photographs, with the rooms of the plan under them ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shot, .space { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--mist); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img, .space:hover img { transform: scale(1.03); }
.shot-cap { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; font-size: 14.5px; }
.shot-cap b { font-weight: 500; }
.shot-cap span { color: var(--ink-3); text-align: right; }
.spaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.space img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.space-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 60px 22px 20px; background: linear-gradient(to top, rgba(12, 34, 22, .72), rgba(12, 34, 22, 0)); color: var(--white); }
.space-cap h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.space-cap p { color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.space-cap .pill { flex: none; }

/* the sample flat in 3D, beside a few words and the three ways to look at it */
.inside-3d { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--col-gap); align-items: center; margin-top: 12px; padding: clamp(16px, 2vw, 28px); border-radius: var(--r-sm); background: var(--mist); }
.inside-3d-text { display: grid; gap: 14px; justify-items: start; }
.inside-3d-text h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.inside-3d-text h3 b { color: var(--brand); font-weight: 500; }
.inside-3d-text p:not(.label) { color: var(--ink-2); font-size: 15.5px; }
.inside-3d-text .seg { background: var(--white); }
.inside-3d-view { position: relative; min-height: 320px; overflow: hidden; border-radius: var(--r-sm); background: var(--white); }

/* ---------- A quote on the blue ---------- */
.quote { display: grid; justify-items: center; gap: 28px; padding: clamp(64px, 9vw, 140px) calc(var(--gut) + var(--pad)); color: var(--white); text-align: center; }
.quote-tab { color: var(--leaf); font-size: 18px; letter-spacing: -0.02em; }
.quote-tab b { color: var(--white); font-weight: 500; }
.quote blockquote { margin: 0; }
.quote blockquote p { max-width: 21em; margin: 0 auto; font-size: clamp(28px, 3.4vw, 52px); font-weight: 400; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.quote footer { margin-top: 18px; color: var(--leaf); font-size: 15px; }

/* ---------- Location: a real map with a panel of layers, as on the big portals ---------- */
.map-box { position: relative; display: grid; grid-template-columns: minmax(270px, 1fr) minmax(0, 3fr); gap: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--mist); }
.map-side { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.map-h { display: block; margin-top: 12px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.map-h:first-child { margin-top: 0; }
.map-sub { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.map-sub svg { color: var(--brand); }
.toggles { display: grid; gap: 2px; margin: 4px 0; }
.tg { display: grid; grid-template-columns: 28px 1fr auto 40px; gap: 10px; align-items: center; padding: 6px 0; cursor: pointer; font-size: 15px; }
/* the icon doubles as the legend: in colour when the kind is on the map, grey when it is not */
.tg-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: var(--white); transition: background-color .2s var(--ease); }
.tg:has(input:not(:checked)) .tg-ico { background: var(--line-2); color: var(--ink-3); }
.tg-n { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); transition: background-color .2s var(--ease); }
.tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.tg input:checked + i { background: var(--brand); }
.tg input:checked + i::after { transform: translateX(16px); }
.tg input:focus-visible + i { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.map-select { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); font-size: 15px; }
.map-select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141511' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.map { position: relative; min-height: 560px; }
.map.leaflet-container { font: inherit; background: #EFEDE8; }
/* the map's own colours, quietened so the brand's pins carry the picture */
.map-tiles { filter: grayscale(.55) sepia(.12) brightness(1.04) contrast(.92); }
.map-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }
/* Leaflet's own stylesheet loads after this one and sets `display: block` on every marker,
   so the pins are drawn by an inner span and the selectors below start with .map */
.map .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 21, 17, .16); }
.map .leaflet-popup-content { margin: 12px 16px; color: var(--ink-2); font: 13.5px/1.45 var(--font); }
.map .leaflet-popup-content b { color: var(--ink); font-weight: 500; font-size: 15px; }
.map .leaflet-popup-tip { box-shadow: none; }
.map .leaflet-container a.leaflet-popup-close-button, .map a.leaflet-popup-close-button { top: 6px; right: 6px; color: var(--ink-3); }
.map .leaflet-bar { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px rgba(20, 21, 17, .08); }
.map .leaflet-bar a { width: 36px; height: 36px; border-bottom-color: var(--line); color: var(--ink); font: 400 20px/34px var(--font); }
.map .leaflet-bar a:hover { background: var(--mist); }
.map .leaflet-control-attribution { padding: 2px 8px; border-radius: 8px 0 0 0; background: rgba(255, 255, 255, .8); color: var(--ink-3); font-size: 11px; }
.map .leaflet-control-attribution a { color: var(--ink-2); }

/* the colours of the kinds of places: one disc per kind, the same on the map and in the legend */
.c-kom { --c: #22231E; }
.c-edu { --c: #3A6687; }
.c-shop { --c: var(--brown); }
.c-park { --c: #4E8040; }
.c-play { --c: #8C9A35; }
.c-med { --c: #B4442F; }
.c-sport { --c: #6A5F8E; }
.c-food { --c: #BC7B37; }

.map .m-poi { background: none; border: 0; }
.poi { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid var(--white); border-radius: 50%; background: var(--c); color: var(--white); box-shadow: 0 1px 2px rgba(20, 21, 17, .2), 0 3px 8px rgba(20, 21, 17, .14); transition: transform .18s var(--ease); }
.m-poi:hover .poi { transform: scale(1.18); }
.map.is-far .poi { transform: scale(.86); }
.map.is-far .m-poi:hover .poi { transform: scale(1.05); }
.map.is-farther .poi { transform: scale(.72); }
.map.is-farther .m-poi:hover .poi { transform: scale(.95); }
.map.is-farther .site-tag { padding: 7px 11px 8px; font-size: 16px; }

/* the site: a green tag with the wordmark, its tail on the spot, a soft pulse under it */
.map .m-site { overflow: visible; background: none; border: 0; }
.m-site::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border: 3px solid var(--white); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(31, 90, 58, .35); animation: site-pulse 2.4s var(--ease) infinite; }
.site-tag { position: absolute; left: 0; bottom: 14px; transform: translateX(-50%); padding: 8px 14px 9px; border-radius: 12px; background: var(--brand); box-shadow: 0 8px 22px rgba(20, 21, 17, .22); color: var(--white); font: 700 19px/1 var(--mark-font); letter-spacing: -0.04em; white-space: nowrap; cursor: pointer; }
.site-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 12px; height: 7px; margin-left: -6px; background: var(--brand); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes site-pulse { 70% { box-shadow: 0 0 0 16px rgba(31, 90, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 90, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .m-site::before { animation: none; } }

/* the minutes on the top of the walking circle */
.map .m-radius { overflow: visible; background: none; border: 0; }
.radius-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; transform: translate(-50%, -50%); border: 1px solid rgba(31, 90, 58, .25); border-radius: 999px; background: var(--white); box-shadow: 0 2px 8px rgba(20, 21, 17, .1); color: var(--brand); font-size: 13px; font-weight: 500; white-space: nowrap; }

.near { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.near li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--mist); font-size: 14px; }
.near b { color: var(--brand); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.near b small { font-size: 14px; font-weight: 500; }
.near span { font-weight: 500; }
.near > li > small { color: var(--ink-3); }

/* ---------- The sales office: a wide photograph, the text under it ---------- */
.office { padding: var(--gut) var(--gut) clamp(36px, 4vw, 64px); }
.office-pic img { width: 100%; aspect-ratio: 21 / 9; border-radius: var(--r-sm); object-fit: cover; object-position: 50% 40%; }
.office .sec-top { margin: clamp(28px, 3vw, 48px) 0 0; padding: 0 calc(var(--pad) - var(--gut)); }
.office-text { display: grid; gap: 16px; justify-items: start; }
.office-text p { max-width: 34em; color: var(--ink-2); font-size: 18px; }

/* ---------- Standard: eight numbered facts in four columns ---------- */
.std { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px var(--col-gap); margin-left: calc(16.66% + var(--col-gap) * .2); }
.std li { padding-top: 16px; border-top: 1px solid var(--line); }
.std-no { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.std b { display: block; margin-top: 10px; color: var(--brand); font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.03em; }
.std h3 { margin-top: 4px; font-size: 16px; font-weight: 500; }
.std p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

/* a <picture> around a photo takes no box of its own, so img selectors keep working */
picture { display: contents; }

/* ---------- Construction ---------- */
.build-film { position: relative; margin-bottom: 32px; overflow: hidden; border-radius: var(--r); background: var(--ink); }
.build-film video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.build-film figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 13px; font-weight: 500; }
.progress { margin-bottom: 24px; }
.progress .track { height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.progress .track i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.progress p { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.progress p b { color: var(--brand); font-weight: 500; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stages img { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-sm); object-fit: cover; background: var(--mist); }
.stages li.is-future img { opacity: .5; filter: grayscale(.4); }
.stages div { padding: 12px 2px 0; }
.stages .when { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.stages h3 { margin-top: 2px; font-size: 16px; font-weight: 500; }
.stages p { margin-top: 2px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.stages .now { padding: 1px 8px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: 11.5px; font-weight: 500; }

/* ---------- How to buy: three numbered steps ---------- */
.panel.steps, .panel.faq { padding: clamp(36px, 4.4vw, 72px) var(--pad) clamp(32px, 3.6vw, 60px); }
/* the timeline: the stops sit on one line, the dot of each joined to the next; the last stop is the goal */
/* the rows are shared (subgrid), so every heading and text starts level across the four columns */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 var(--col-gap); margin-left: calc(16.66% + var(--col-gap) * .2); }
.timeline li { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; min-width: 0; }
.tl-when { color: var(--brand); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.tl-mark { position: relative; height: 44px; margin: 12px 0 22px; }
.tl-mark span { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--white); font-size: 16px; font-weight: 500; }
.tl-mark::after { content: ""; position: absolute; top: 21px; left: 56px; right: calc(12px - var(--col-gap)); height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--brand) 0%, var(--leaf) 100%); }
.timeline li:last-child .tl-mark::after { display: none; }
.is-goal .tl-mark span { background: var(--leaf); color: var(--brand); box-shadow: 0 0 0 6px var(--leaf-2); }
.timeline h3 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.02em; }
.tl-text { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.steps-cta { margin: 36px 0 0 calc(16.66% + var(--col-gap) * .2); }

/* ---------- Questions ---------- */
.faq-list { margin-left: calc(16.66% + var(--col-gap) * .2); border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.01em; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231F5A3A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details.is-closing summary::after { transform: none; }
.faq-list summary:hover { color: var(--brand); }
.faq-list details p { max-width: 46em; padding: 0 54px 24px 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* ---------- Contact: the person who calls back beside the form ---------- */
.contact > *, .inside-3d > *, .hero > * { min-width: 0; }
.lead input:not([type="checkbox"]), .lead select, .lead textarea { min-width: 0; width: 100%; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); padding: var(--gut); }
.contact-person { position: relative; min-height: 560px; overflow: hidden; border-radius: var(--r-sm); background: var(--beige); }
.contact-person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.contact-person figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; padding: 14px 18px; border-radius: 8px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); font-size: 14px; }
.contact-person figcaption b { font-size: 17px; font-weight: 500; }
.contact-person figcaption span { color: var(--ink-3); }
.contact-body { padding: clamp(20px, 3vw, 48px) clamp(8px, 2vw, 32px) clamp(16px, 2vw, 32px); }
.contact-body h2 { margin-top: 14px; max-width: 14em; font-size: clamp(32px, 3.6vw, 54px); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
.contact-body h2 b { color: var(--brand); font-weight: 500; }
.contact-ways { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.contact-ways span { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.contact-tel { color: var(--brand); text-decoration: none; }
.contact-tel b { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; }
.contact-tel:hover b { text-decoration: underline; text-underline-offset: 5px; }
.contact-ways p { color: var(--ink-2); font-size: 15px; }
.lead-inline { margin-top: 24px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.lead textarea { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); font: inherit; font-size: 16px; resize: vertical; }
.lead textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--leaf-2); }
.lead-inline input[type="tel"] { font-size: 19px; }
.lead-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lead-send .lead-note { max-width: 28em; }

/* ---------- The footer, on the blue ---------- */
.foot { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(4, minmax(0, 1fr)); gap: 32px var(--col-gap); padding: clamp(48px, 6vw, 88px) calc(var(--gut) + var(--pad)) 110px; color: var(--white); font-size: 15px; }
.foot .label { margin-bottom: 12px; }
.foot p, .foot li { color: var(--leaf); }
.foot li + li { margin-top: 6px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-white { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--white); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.foot-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(201, 227, 184, .3); font-size: 13.5px; }

/* ---------- Small screens ---------- */
@media (max-width: 1100px) {
  .view-bryla { grid-template-columns: 1fr; }
  .floor-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .floor-list li + li { border-top: 0; }
  .floor-list button { background: var(--white); }
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .std { grid-template-columns: repeat(2, 1fr); margin-left: 0; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .mast { grid-template-columns: auto 1fr auto; }
  .mast-meta { display: none; }
  .bar-nav { display: none; }
  .near { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .mark { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-pic { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .visit-in { grid-template-columns: 1fr; }
  .visit-person { min-height: 0; height: 180px; }
  .visit-person img { object-position: 50% 25%; }
  .two { grid-template-columns: 1fr; }
  .mast { grid-template-columns: 1fr auto; padding-bottom: 22px; }
  .mast-nav { display: none; }
  .sec-top, .say { grid-template-columns: 1fr; gap: 10px; }
  .sec-top .label, .say .label { padding-top: 0; }
  .say-row { grid-template-columns: 1fr; }
  .say-row { grid-template-rows: none; }
  .say-row img, .say-row p, .say-row .cta { grid-column: auto; grid-row: auto; }
  .shots { grid-template-columns: 1fr; }
  .g-item { width: 80%; }
  .lightbox figure { padding: 64px 12px; }
  .spaces { grid-template-columns: 1fr; }
  .inside-3d { grid-template-columns: minmax(0, 1fr); }
  /* the model's 4:3 box with a 320px floor made it 427px wide on a phone and pushed the page sideways */
  .inside-3d .inside-3d-view { min-height: 0; }
  .map-box { grid-template-columns: minmax(0, 1fr); }
  .map-side { border-radius: 0 0 var(--r-sm) var(--r-sm); }
  .map { order: -1; min-height: 380px; }
  .office-pic img { aspect-ratio: 4 / 3; }
  .timeline, .faq-list, .steps-cta { margin-left: 0; }
  /* on a narrow screen the line runs down the left */
  .timeline { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .timeline li { grid-row: auto; grid-template-rows: none; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding-bottom: 32px; }
  .timeline li > * { grid-column: 2; }
  .tl-when { padding-top: 13px; }
  .timeline .tl-mark { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .tl-mark::after { display: none; }
  .timeline li:not(:last-child)::before { content: ""; position: absolute; top: 56px; bottom: 8px; left: 21px; width: 2px; border-radius: 1px; background: linear-gradient(180deg, var(--brand), var(--leaf)); }
  .timeline h3 { margin-top: 6px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-person { min-height: 0; aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  /* floor buttons stay one row and scroll sideways, instead of folding into a blob */
  .seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg button { flex: none; padding: 0 14px; }
  /* the floor in 3D as wide as the plan under it, both swiped sideways, the caption below */
  .floor-3d { aspect-ratio: auto; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; background: none; }
  .floor-3d::-webkit-scrollbar { display: none; }
  .floor-3d img { width: 860px; max-width: none; height: auto; aspect-ratio: 20 / 9; border-radius: var(--r-sm); background: #E6EAEB; }
  .floor-3d figcaption { position: static; margin-top: 8px; padding: 0; background: none; box-shadow: none; }
  .floor-bar-end { margin-left: 0; }
  /* rows you swipe sideways instead of pictures piled one on another: each row runs to the edges
     of its panel and the next item peeks in, so it is clear there is more */
  .flt-row, .shots, .spaces, .stages, .near, .toggles {
    display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad); margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none;
  }
  :is(.flt-row, .shots, .spaces, .stages, .near, .toggles)::-webkit-scrollbar { display: none; }
  :is(.flt-row, .shots, .spaces, .stages, .near, .toggles) > * { flex: none; scroll-snap-align: start; }
  .shots > *, .spaces > * { width: 84%; }
  .gallery { gap: 10px; }
  .g-item { width: 84%; aspect-ratio: 4 / 3; }
  .g-cap { left: 10px; bottom: 10px; padding: 6px 12px; font-size: 12.5px; }
  .slider-bar { gap: 14px; margin-top: 14px; }
  .shot-cap { flex-direction: column; gap: 2px; }
  .shot-cap span { text-align: left; }
  .space img { aspect-ratio: 1 / 1; }
  .stages > * { width: 72%; }
  .stages p:not(.when) { display: block; }
  .near > * { width: 42%; }
  .inside-3d .inside-3d-view { aspect-ratio: 1 / 1; }
  /* the filters: one row of pills, the count under it */
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; }
  .flt-row { grid-column: 1 / -1; gap: 8px; scroll-snap-type: none; }
  .count { grid-row: 2; grid-column: 1; margin-left: 0; }
  .reset { grid-row: 2; grid-column: 2; }
  .flt-row { gap: 22px; }
  .list-bar { display: flex; justify-content: flex-end; }
  /* map layers: the switches become pills you tap, in one row under the map */
  .map-side { padding: 18px 16px; }
  .toggles { --pad: 16px; gap: 6px; margin-block: 2px 4px; }
  .tg { position: relative; display: flex; gap: 8px; height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
  .tg i { display: none; }
  .tg:has(input:checked) { border-color: var(--brand); background: var(--leaf-2); }
  .tg:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 2px; }
  .mast { padding-top: 16px; }
  .mast .pill { height: 40px; padding: 0 16px; font-size: 14px; }
  .mark .wm { font-size: 26px; }
  .bar { height: 54px; padding-left: 16px; }
  .bar .pill { height: 38px; padding: 0 14px; font-size: 14px; }
  .hero { padding: var(--gut); }
  .hero h1 { font-size: 40px; }
  .space-cap { flex-direction: column; align-items: flex-start; padding: 80px 18px 18px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .facts dd { font-size: 19px; }
  .filters:has(.pop:not([hidden])) { z-index: 46; }
  .pop { position: fixed; z-index: 45; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; min-width: 0; max-width: none; }
  .tabs button { height: 46px; padding: 0 18px; font-size: 15px; }
  .floor-list { grid-template-columns: repeat(2, 1fr); }
  .floor-list button { grid-template-columns: 38px 1fr; padding: 10px; }
  .floor-list .fl-no { font-size: 26px; }
  .stage-ctrl .round { width: 40px; height: 40px; }
  .rows-head { display: none; }
  .rows button { grid-template-columns: 72px minmax(0, 1fr) 16px; gap: 6px 14px; padding: 10px 14px 10px 10px; }
  .rows .r-cell, .rows .r-out { display: none; }
  .rows .r-plan { grid-row: span 2; height: 58px; }
  .rows .r-plan svg { width: 64px; height: 46px; }
  .rows .r-price { grid-column: 2; text-align: left; }
  .rows .status { display: none; }
  .rows .r-go { grid-row: 1 / span 2; grid-column: 3; }
  .sheet { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .sheet-head { flex-wrap: wrap; padding: 12px 16px; }
  .sheet-area { display: none; }
  .card-folder .tabs button { padding: 0 14px; }
  .sheet-left, .sheet-right { padding: 16px; }
  .sheet-left, .sheet-right { padding: 16px; }
  .similar { grid-template-columns: 1fr 1fr; }
  .std { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .std p { display: none; }
  .lead-row { grid-template-columns: minmax(0, 1fr); }
  .faq-list details p { padding-right: 0; }
  .progress p { font-size: 12.5px; }
  .progress p span { white-space: nowrap; }
  .pdf { width: 100vw; height: 100dvh; border-radius: 0; }
  .pdf-tools span { display: none; }
  .pdf-mail { flex-direction: column; align-items: stretch; }
  .visit { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .demo-pill { left: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .fav-item { grid-template-columns: auto 70px 1fr; }
  .fav-item > :last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
