/* Property Store. Brand: Blueprint by Lunar (Canva, 15.11.2026): orange #FF6F00, navy #1A3A5B, cream #FFF8F0, black #020407;
   Fira Sans Extra Condensed 700 (h1), Montserrat 700 (h2, h3, numbers, captions), Fira Sans 400/600 (text). One stylesheet, no framework. */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/fira-sans-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/fira-sans-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/fira-sans-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/fira-sans-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/fira-sans-extra-condensed-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/fira-sans-extra-condensed-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  interpolate-size: allow-keywords;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ink: #1a3a5b;
  --ink-d: #132c45;
  --navy: #1a3a5b;
  --navy-2: #316eac;
  --black: #020407;
  --accent: #ff6f00;
  --accent-2: #e86400;
  --accent-ink: #1d0e02;
  --sand: #fff8f0;
  --sand-2: #fbeee0;
  --sand-3: #f4e7d8;
  --paper: #ffffff;
  --line: #efe2d3;
  --text: #22262d;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-h: Montserrat, "Fira Sans", system-ui, sans-serif;
  --font-h1: "Fira Sans Extra Condensed", "Fira Sans", system-ui, sans-serif;
  --muted: #5b6575;
  --ok: #18794e;
  --sea: #1f6f86;
  --viber: #6650e6;
  --wa: #107c3b;
  --accent-text: #b04a00;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(26, 58, 91, .06), 0 8px 24px rgba(26, 58, 91, .07);
  --shadow-lg: 0 2px 6px rgba(26, 58, 91, .08), 0 20px 48px rgba(26, 58, 91, .14);
  /* listing cards stand off the cream page: a tight contact shadow plus a long soft one */
  --shadow-card: 0 1px 2px rgba(26, 58, 91, .12), 0 4px 10px rgba(26, 58, 91, .08), 0 18px 36px -8px rgba(26, 58, 91, .26);
  --shadow-card-hover: 0 2px 4px rgba(26, 58, 91, .12), 0 10px 20px rgba(26, 58, 91, .10), 0 32px 56px -12px rgba(26, 58, 91, .36);
  --wrap: 1200px;
  --hdr: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
* { font-feature-settings: "locl" 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0; background: var(--sand); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; font-family: var(--font-h); font-weight: 700; }
h1 { font-family: var(--font-h1); font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: 0; }
h2 { font-size: clamp(22px, 2.5vw, 32px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255, 111, 0, .3); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-d); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-viber, .btn-wa { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-viber .i { color: var(--viber); }
.btn-wa .i { color: var(--wa); }
.btn-viber:hover { border-color: var(--viber); color: var(--ink); }
.btn-wa:hover { border-color: var(--wa); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link { background: none; border: 0; padding: 0; color: var(--navy-2); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--navy-2); }
.link-arrow .i { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .i { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: #e8f3ee; color: var(--ok); font-size: 12.5px; font-weight: 600; }
.badge-new { background: var(--ink); color: #fff; }
.badge-sea { background: #e3f1f5; color: var(--sea); }
.badge-ghost { background: var(--sand-2); color: var(--muted); }

/* ---------- header ---------- */
/* Clear at the top (the page or the hero photo shows through), a cream bar once the page scrolls (app.js adds .is-scrolled).
   The blur sits on ::before: backdrop-filter on .hdr itself would make it the containing block of the fixed mobile drawer. */
.hdr { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease-out); }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 248, 240, .9); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); opacity: 0; transition: opacity .3s var(--ease-out); }
.hdr.is-scrolled, .menu-open .hdr { border-bottom-color: var(--line); }
.hdr.is-scrolled::before, .menu-open .hdr::before { opacity: 1; }
.hdr-in { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.logo { flex: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: 8px; align-self: stretch; align-items: center; }
.nav-dd { display: flex; align-items: center; align-self: stretch; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 11px; border: 0; background: none; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.nav-dd-btn .i { width: 16px; height: 16px; transition: transform .15s; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { background: var(--sand); }
.nav-dd-btn.is-active { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-dd:hover .nav-dd-btn .i, .nav-dd.open .nav-dd-btn .i { transform: rotate(180deg); }
.mega { display: grid; opacity: 0; visibility: hidden; pointer-events: none; translate: -50% -8px; transition: opacity .2s var(--ease-out), translate .35s var(--ease-out), visibility 0s linear .2s; position: absolute; top: var(--hdr); left: 50%; width: min(920px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 18px 18px; box-shadow: var(--shadow-lg); padding: 24px; grid-template-columns: 1fr 1fr 1.5fr; gap: 28px; z-index: 55; }
.nav-dd:hover .mega, .nav-dd.open .mega { opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0; transition-delay: .04s, .04s, 0s; }
.mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-h { font-family: var(--font-h); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.nav .mega a { padding: 0; border-radius: 0; box-shadow: none; }
.nav .mega .mega-link { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text); }
.nav .mega .mega-link:hover { background: var(--sand); color: var(--ink); }
.mega-link span { color: var(--muted); font-size: 13px; font-weight: 500; }
.nav .mega .mega-all { font-weight: 700; color: var(--ink); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.nav .mega .link-arrow { margin: 8px 10px 0; font-size: 14.5px; }
.nav .mega .mega-cta { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: var(--sand); font-size: 14px; color: var(--muted); line-height: 1.4; }
.nav .mega .mega-cta strong { display: block; color: var(--ink); }
.nav .mega .mega-cta:hover { background: var(--sand-2); }
.nav a { padding: 8px 11px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav > a { position: relative; }
.nav > a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); scale: 0 1; transform-origin: left; transition: scale .35s var(--ease-out); }
.nav > a:hover { color: var(--ink); }
.nav > a:hover::after, .nav > a[aria-current]::after { scale: 1 1; }
.nav a[aria-current] { color: var(--ink); font-weight: 700; }
.hdr-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hdr-phone .i { color: var(--accent-2); }
.hdr-phone span { display: flex; flex-direction: column; line-height: 1.15; }
.hdr-phone b { font-weight: 700; }
.hdr-phone small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
/* language switch (BG · EN · RU): in the header on wide screens, at the bottom of the drawer on phones */
.lang { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.lang a, .lang .lang-on { display: inline-block; padding: 7px 6px; line-height: 1; color: var(--muted); text-decoration: none; border-radius: 6px; }
.lang a:hover { color: var(--ink); background: var(--sand); }
.lang .lang-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.lang-drawer { margin-top: 18px; gap: 8px; font-size: 15px; }
.lang-drawer a, .lang-drawer .lang-on { padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; }
.lang-drawer .lang-on { box-shadow: none; border-color: var(--ink); }
/* the guide for buyers from abroad (/kupuvane-na-imot-ot-chuzhdenci) */
.guide .lead { max-width: 720px; }
.guide-toc { margin: 22px 0 8px; padding: 16px 20px; border-radius: 14px; background: var(--sand); max-width: 720px; }
.guide-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.guide-toc li { margin: 4px 0; break-inside: avoid; }
.guide-toc a { color: var(--ink); text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }
.guide .prose h2 { scroll-margin-top: calc(var(--hdr) + 16px); }
.guide-sources { font-size: 14.5px; }
.guide-link { margin: 4px 0 0; font-size: 15px; }
.guide-link a { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .guide-toc ol { columns: 1; } }
/* a complex we sell with its own site (PROJECTS in site.mjs) */
.project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.project figure { position: relative; margin: 0; }
.project img { display: block; width: 100%; height: auto; border-radius: 12px; }
.project figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; }
.project h2 { margin: 0 0 10px; }
.project p { margin: 0 0 10px; color: var(--muted); }
.project .btn { margin-top: 6px; }
/* the complex's own forest green: stands apart from our navy and orange */
.btn-project { background: #2f5d46; color: #fff; }
.btn-project:hover { background: #244a37; color: #fff; box-shadow: 0 6px 18px rgba(36, 74, 55, .3); }
@media (max-width: 760px) { .project { grid-template-columns: 1fr; gap: 16px; } }
.desc-note { max-width: 720px; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--sand); color: var(--muted); font-size: 14.5px; }
.drawer-hours { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }
.drawer-hours .i { width: 18px; height: 18px; }
.broker-hours { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.broker-hours .i { width: 15px; height: 15px; }
.company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; max-width: 980px; }
.company > div { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.company dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.company dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .company { grid-template-columns: 1fr; } }
.hdr-fav { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.hdr-fav:hover { background: var(--sand); }
.hdr-fav span { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--ink); }
.burger .i { width: 26px; height: 26px; }
.drawer { position: fixed; inset: var(--hdr) 0 0; background: var(--paper); padding: 16px 20px calc(32px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 0; opacity: 0; visibility: hidden; translate: 0 -12px; transition: opacity .25s var(--ease-out), translate .4s var(--ease-out), visibility 0s linear .25s; }
.drawer.open { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.drawer.open > * { animation: drawer-item .5s var(--ease-out) both; }
.drawer.open > :nth-child(2), .drawer.open > :nth-child(3) { animation-delay: .04s; }
.drawer.open > :nth-child(4), .drawer.open > :nth-child(5) { animation-delay: .08s; }
.drawer.open > :nth-child(6), .drawer.open > :nth-child(7) { animation-delay: .12s; }
.drawer.open > :nth-child(n+8) { animation-delay: .16s; }
@keyframes drawer-item { from { opacity: 0; translate: 0 10px; } }
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; animation: spin-in .35s var(--ease-out); }
@keyframes spin-in { from { opacity: 0; rotate: -90deg; } }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.drawer-all { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }
.drawer-all span { background: rgba(255, 255, 255, .16); border-radius: 6px; padding: 0 10px; font-size: 14px; }
.drawer-all { margin-bottom: 6px; }
.dd { border-bottom: 1px solid var(--line); }
.dd summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-size: 18px; font-weight: 600; color: var(--ink); cursor: pointer; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary .i { color: var(--muted); transition: rotate .35s var(--ease-out); }
.dd[open] summary .i { rotate: 180deg; }
.dd::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.dd[open]::details-content { block-size: auto; }
.dd-list { display: grid; padding: 0 0 10px; }
.dd-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 16px; }
.dd-link:hover, .dd-link:active { background: var(--sand); color: var(--ink); }
.dd-link span { color: var(--muted); font-size: 14px; }
.dd-more { justify-content: flex-start; gap: 6px; color: var(--navy-2); font-weight: 600; }
.dd-more .i { width: 16px; height: 16px; }
.drawer .drawer-search { margin-top: 18px; }
.drawer > .btn { margin-top: 12px; }
/* the bottom call bar steps aside while the menu is open */
.menu-open .mbar { transform: translateY(110%); }
.drawer-search { display: block; padding: 12px 14px; border-radius: 12px; background: var(--sand); color: var(--muted); font-size: 14.5px; text-decoration: none; }
.drawer-search strong { color: var(--ink); }
.drawer nav a[aria-current] { color: var(--accent-text); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, #ffe4cf 0%, rgba(255, 228, 207, 0) 60%), var(--sand); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 620px; }
.hero-copy h1 { max-width: 640px; }
.search { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--paper); padding: 10px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.s-fld { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; min-width: 0; }
.s-fld:hover { background: var(--sand); }
.s-fld span { font-family: var(--font-h); font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.s-fld select { border: 0; background: transparent; padding: 2px 0; font-weight: 600; color: var(--ink); appearance: none; cursor: pointer; width: 100%; text-overflow: ellipsis; }
.s-fld select:focus { outline: none; }
.s-fld:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.search .btn { border-radius: 12px; grid-column: 1 / -1; }

/* ---------- sections ---------- */
.sec { padding-top: 72px; padding-bottom: 72px; }
.sec-tight { padding-top: 8px; padding-bottom: 56px; } /* only top and bottom: as .wrap it keeps its side padding */
.sec-tint { background: var(--paper); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.sec-sub { color: var(--muted); margin: 8px 0 0; max-width: 640px; }

/* ---------- cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* behind listing cards the page steps back to a deeper cream, so the white cards stand out:
   a section of cards, or the whole page where the cards sit straight on it (catalog, type and hood lists, saved, 404) */
.sec:has(.grid-cards), body:has(.catalog, .sec-tight > .grid-cards) { background: var(--sand-3); }
.card { position: relative; background: var(--paper); border: 1px solid rgba(26, 58, 91, .08); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-6px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-badges .badge { background: rgba(255, 255, 255, .94); }
.card-badges .badge-new { background: var(--ink); }
.card-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(26, 58, 91, .78); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.card-count .i { width: 14px; height: 14px; }
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.fav .i { width: 19px; height: 19px; }
.fav[aria-pressed="true"] { color: #e5484d; }
.fav[aria-pressed="true"] .i { fill: currentColor; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-kicker { margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; }
.card-title { font-size: 16px; line-height: 1.35; margin: 0; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-facts { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.card-facts i { font-style: normal; margin: 0 6px; opacity: .5; }
.card-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-price strong { font-family: var(--font-h); font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.card-price span { font-size: 13px; color: var(--muted); }
.card-cta { background: var(--ink); color: #fff; padding: 24px; justify-content: center; gap: 10px; }
.card-cta h3 { color: #fff; font-size: 20px; margin: 0; }
.card-cta p { color: #c8d3e0; margin: 0 0 8px; font-size: 15px; }
.card-cta:hover { transform: none; }

/* tiles */

/* hoods */
.hood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hood { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--r-sm); background: var(--sand); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.sec .hood-grid .hood { background: var(--paper); }
.sec-tint .hood-grid .hood { background: var(--sand); }
.hood:hover { border-color: var(--ink); }
.hood strong { font-size: 16px; }
.hood span { font-size: 13.5px; color: var(--muted); }

/* seller band */
.seller { position: relative; background: var(--ink); color: #dbe4ee; padding: 72px 0; }
.seller-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.seller-copy h2 { color: #fff; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; }
.ticks .i { color: var(--accent); margin-top: 3px; }
.ticks-dark li { color: var(--text); }
.ticks-dark .i { color: var(--ok); }

/* forms */
.lead-form { background: var(--paper); color: var(--text); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; position: relative; }
.form-title { font-size: 20px; margin: 0; }
.form-sub { margin: -8px 0 0; color: var(--muted); font-size: 15px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.fld > span, .fld legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.fld input:not([type=checkbox]):not([type=radio]):not([type=range]), .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; color: var(--text);
}
.fld select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6575' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 40px; }
.fld textarea { resize: vertical; min-height: 88px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(36, 80, 124, .15); }
.fld .err, .fld input[aria-invalid="true"], .fld select[aria-invalid="true"] { border-color: #d93025 !important; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* the steps of the valuation form keep the form's own rhythm (each field apart, the button after a breath) */
.lead-form .step { display: flex; flex-direction: column; gap: 16px; }
.lead-form .step[hidden] { display: none; }
.lead-form .step > .btn { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; transition: all .12s; }
.chip-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); align-items: flex-start; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.consent.err span { color: #d93025; }
.form-note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; align-items: flex-start; }
.form-note .i { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); }
.form-ok { position: absolute; inset: 0; background: var(--paper); border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 6px; }
.form-ok > .i { width: 54px; height: 54px; color: #fff; background: var(--ok); border-radius: 50%; padding: 12px; margin-bottom: 8px; }
.demo-note { font-size: 12px; color: var(--muted); background: var(--sand); padding: 4px 10px; border-radius: 6px; }
.form-err { color: #d93025; font-size: 14px; margin: 0; }

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-home { grid-template-columns: 340px 1fr; }
.about-photo img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; box-shadow: var(--shadow-lg); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--sand); border-radius: var(--r); padding: 22px; border: 1px solid var(--line); }
.sec:not(.sec-tint) .steps li { background: var(--paper); }
.steps li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* calc */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; padding-bottom: 24px; }
.calc-in, .calc-out { background: var(--paper); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; }
.calc-in input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; }
.calc-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.calc-out span { color: var(--muted); }
.calc-out strong { font-family: var(--font-h); font-size: 21px; color: var(--ink); white-space: nowrap; }
.calc-big strong { font-size: 32px; color: var(--accent-text); }
.calc-warn { background: #fff4e5; color: #8a4b00; padding: 10px 14px; border-radius: 10px; margin: 0; font-size: 14.5px; }
.hint { font-size: 13.5px; color: var(--muted); margin: -6px 0 0; }

/* articles */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.art-card { background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s; }
.art-card:hover { box-shadow: var(--shadow-lg); color: var(--text); }
.art-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.art-card > div { padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; }
.art-card h3 { margin: 0; }
.art-card p { color: var(--muted); font-size: 15px; margin: 0 0 auto; }
.sec-tint .art-card { background: var(--sand); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); }
.sec-tint .faq details { background: var(--sand); }
.sec-tint + .contact { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

/* contact */
.contact { background: var(--paper); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.big-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-h); font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; margin: 6px 0 18px; }
.big-phone .i { width: 32px; height: 32px; color: var(--accent-2); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; color: var(--text); }
.contact-list .i { color: var(--muted); margin-top: 2px; }
.contact .lead-form { box-shadow: none; border: 1px solid var(--line); background: var(--sand); }
.contact .lead-form .form-ok { background: var(--sand); }
.office-wide { border-radius: 18px; width: 100%; }

/* cta band */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #c8d3e0; padding: 48px 0; }
.cta-band::after, .seller::after { content: ""; position: absolute; right: 28px; top: 20px; width: 132px; height: 84px; background: radial-gradient(circle, rgba(255, 248, 240, .32) 1.4px, transparent 1.8px) 0 0 / 12px 12px; pointer-events: none; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* page head, crumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.crumbs > span { padding: 4px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding-top: 18px; padding-bottom: 24px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 900px; }
.mini-stats { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-stats li { background: var(--paper); border: 1px solid var(--line); padding: 6px 14px; border-radius: 10px; font-size: 14.5px; color: var(--muted); }
.mini-stats strong { color: var(--ink); }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.prose-2 h2 { font-size: 22px; }

/* catalog */
.catalog > *, .listing > *, .hero-in > *, .calc > * { min-width: 0; }
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; padding-bottom: 64px; }
.filters { position: sticky; top: calc(var(--hdr) + 16px); background: var(--paper); border-radius: var(--r); padding: 20px; display: grid; gap: 18px; box-shadow: var(--shadow); max-height: calc(100vh - var(--hdr) - 32px); overflow: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head strong { font-size: 18px; color: var(--ink); }
.filters-close, .filters-open, .filters-apply { display: none !important; }
.f-group { border: 0; padding: 0; margin: 0; }
.f-group legend { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.f-group .chip-opt span { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.results-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 16px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 12px; background: var(--paper); font-weight: 600; color: var(--ink); }
.catalog .grid-cards { grid-template-columns: repeat(3, 1fr); }
.f-badge { background: var(--accent); color: var(--accent-ink); border-radius: 6px; font-size: 12px; padding: 0 7px; font-weight: 700; }
.empty { background: var(--paper); border-radius: var(--r); padding: 40px; text-align: center; }
.empty .btn-row { justify-content: center; }

/* listing */
.gallery { padding-top: 16px; }
.g-main { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(560px, 56vw); border-radius: 18px; overflow: hidden; }
.g-item { border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--sand-2); overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.03); }
.g0 { grid-row: 1 / 3; }
.g-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; background: var(--paper); border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); color: var(--ink); }
.fav-lg { top: 16px; right: 16px; width: 44px; height: 44px; }
.g-strip { display: none; }
.listing { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.l-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ref { font-size: 13.5px; color: var(--muted); margin-left: 4px; }
.listing-main h1 { font-size: clamp(32px, 3.8vw, 46px); margin-bottom: 6px; }
.l-tagline { font-size: 18px; color: var(--text); margin: 0 0 8px; }
.l-where { display: flex; align-items: center; gap: 6px; color: var(--muted); flex-wrap: wrap; }
.l-where .i { width: 18px; height: 18px; }
.price-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--paper); border-radius: var(--r); padding: 18px 22px; margin: 20px 0 10px; box-shadow: var(--shadow); }
.price { font-family: var(--font-h); font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; color: var(--ink); letter-spacing: -.01em; display: block; line-height: 1.1; }
.ppsqm { color: var(--muted); font-size: 15px; }
.loan { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--sand); padding: 10px 14px; border-radius: 12px; flex-wrap: wrap; }
.loan small { font-weight: 400; color: var(--muted); font-size: 12.5px; flex-basis: 100%; padding-left: 28px; margin-top: -4px; }
.compare { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14.5px; }
.compare.good { color: var(--ok); }
.compare .i { width: 18px; height: 18px; }
.h-sm { font-size: 20px; margin: 36px 0 14px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.specs div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.specs .i { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--navy-2); }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; color: var(--ink); }
.desc { max-width: 720px; }
.desc.clamp { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.amen { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amen li { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; font-size: 14.5px; }
.amen .i { width: 18px; height: 18px; color: var(--ok); }
.loc { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.loc > .i { width: 28px; height: 28px; color: var(--accent-2); }
.loc p { margin-bottom: 8px; }
.share-btn { margin-top: 28px; }
.share-btn .i { transform: rotate(-45deg); }
.side-sticky { position: sticky; top: calc(var(--hdr) + 16px); display: grid; gap: 16px; }
.broker { background: var(--paper); border-radius: 18px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.broker img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; object-position: top; }
.broker-name { font-weight: 700; color: var(--ink); margin: 0; font-size: 17px; }
.broker-role { margin: 0; color: var(--muted); font-size: 14px; }
.broker-actions { grid-column: 1 / -1; display: grid; gap: 8px; }
.broker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.broker-row .btn { min-height: 42px; font-size: 14px; padding: 0 10px; }
.listing-side .lead-form { box-shadow: var(--shadow); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 16, 28, .96); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s linear .3s; }
.lightbox.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; transition: opacity .3s var(--ease-out), scale .5s var(--ease-out); }
.lightbox:not(.open) img { scale: .96; }
.lightbox figcaption { color: #c8d3e0; font-size: 14px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* legal pages */
.legal { max-width: 960px; }
.legal .lead { color: var(--muted); max-width: 760px; }
.legal > section > p, .legal > section > ul { max-width: 760px; }
.legal-meta { color: var(--muted); font-size: 14px; margin: -4px 0 18px; }
.legal-toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 20px 0 8px; }
.legal-toc p { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.legal-toc li { margin: 3px 0; break-inside: avoid; }
.legal-toc a { text-decoration: none; }
.legal section { scroll-margin-top: calc(var(--hdr) + 12px); }
.legal h2 { font-size: 20px; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.legal-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14.5px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--sand); color: var(--ink); font-weight: 700; }
.legal-table tr:last-child td { border-bottom: 0; }
/* the examples on the taxes-and-fees page: numbers only, so narrower than the legal tables */
.costs-table { min-width: 520px; }
.costs-table td { white-space: nowrap; }
.legal code { background: var(--sand-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
.mail-action { padding-top: 56px; padding-bottom: 72px; }
.fld > span small { font-weight: 500; color: var(--muted); }
.form-ok-mail { font-size: 14.5px; color: var(--ink); background: var(--sand); padding: 8px 12px; border-radius: 8px; }

/* office, article */
.office { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.office img { border-radius: 18px; }
.article { padding-bottom: 48px; }
.article h1 { font-size: clamp(34px, 4.2vw, 52px); margin-top: 8px; }
.byline { color: var(--muted); }

/* footer */
.ftr { background: var(--ink-d); color: #a9b7c8; padding: 56px 0 24px; font-size: 15px; }
.ftr a { color: #dbe4ee; text-decoration: none; display: block; padding: 3px 0; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-top { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.ftr-top p { margin: 0; max-width: 520px; }
.ftr-top img { height: 42px; width: auto; }
.ftr p { margin: 0 0 8px; }
.ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 20px; font-size: 13.5px; }
.ftr-bottom a { display: inline; }

/* mobile bar */
.mbar { display: none; }
.mbar.is-off { transform: translateY(110%); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 8px; font-size: 14.5px; }
  .hdr-phone span { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .lang-hdr { display: none; }
  .burger { display: grid; place-items: center; }
  .hdr-phone span { display: flex; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .hood-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .catalog .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .filters { position: fixed; inset: 0; z-index: 80; border-radius: 0; max-height: none; transform: translateY(100%); transition: transform .25s ease; padding-bottom: 100px; align-content: start; }
  .filters.open { transform: none; }
  .filters-close, .filters-open, .filters-apply { display: inline-flex !important; }
  .filters-apply { position: sticky; bottom: 0; }
  .filters-close { border: 0; background: none; padding: 6px; cursor: pointer; }
  .results-bar { justify-content: space-between; }
  .listing { grid-template-columns: 1fr 340px; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --hdr: 60px; }
  .hero { padding: 24px 0 32px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { display: none; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .grid-cards, .catalog .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .seller-in, .about, .calc-teaser, .contact-in, .prose-2, .office, .calc { grid-template-columns: 1fr; gap: 28px; }
  .about-photo img { max-height: 420px; }
  .grid-3 { grid-template-columns: 1fr; }
  .sec { padding-top: 52px; padding-bottom: 52px; }
  .seller { padding: 52px 0; }
  .cta-band-in { flex-direction: column; align-items: flex-start; }
  .listing { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .g-main { grid-template-columns: 1fr; grid-template-rows: none; height: auto; border-radius: 14px; }
  .g-item:not(.g0) { display: none; }
  .g0 { aspect-ratio: 4 / 3; }
  .g-strip { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .g-strip img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; scroll-snap-align: start; cursor: pointer; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  body { padding-bottom: 72px; }
  .hdr-phone { display: none !important; }
  .broker-actions { display: none; }
  .mbar { transition: transform .2s ease; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15, 37, 64, .08); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--sand); }
  .mbar .mbar-viber .i { color: var(--viber); }
  .mbar .mbar-main { background: var(--accent); color: var(--accent-ink); }
  .hide-sm { display: none !important; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 36px; }
  /* phone: type + area side by side, budget, button: the whole search fits above the call bar */
  .search { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; margin-top: 18px; }
  .s-fld { background: var(--sand); border-radius: 10px; padding: 7px 11px; }
  .s-fld:nth-of-type(3) { grid-column: 1 / -1; }
  .s-fld span { font-size: 11px; }
  .s-fld select { font-size: 15px; }
  .search .btn { min-height: 50px; }
  .grid-cards, .catalog .grid-cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { aspect-ratio: 1 / 1; }
  .hood-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .fld-row { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lead-form { padding: 18px; }
  .hdr-phone span { display: none; }
  .hdr-phone { width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: var(--sand); }
  .logo img { height: 32px; }
  .stats strong { font-size: 22px; }
  .price-box { padding: 16px; }
  .ftr-top { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { transform: rotate(180deg); }
  .card-price strong { font-size: 21px; }
  .crumbs > [aria-current], .crumbs > span[aria-hidden]:nth-last-child(2) { display: none; }
  .sort span { display: none; }
  .sort { flex: 1; min-width: 0; justify-content: flex-end; }
  .sort select { max-width: 100%; min-width: 0; }
  .filters-open { flex: none; }
  .calc-in, .calc-out { padding: 18px; }
  .calc-out strong { font-size: 18px; }
  .calc-big strong { font-size: 26px; }
}

/* ---------- hero with project photos ---------- */
.hero-home { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 128px) 0 clamp(64px, 9vw, 120px); background: var(--sand-3); }
/* the hero runs up under the clear header: one picture from the top of the screen */
.pg-home .hero-home { margin-top: calc(-1 * var(--hdr)); padding-top: calc(var(--hdr) + clamp(48px, 8vw, 112px)); }
.hero-home .hero-in { grid-template-columns: 1fr; }
.hero-home .hero-copy { max-width: 640px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; opacity: 0; scale: 1.08; transition: opacity 1.8s var(--ease-in-out), scale 12s linear; }
.hero-slide.is-on { opacity: 1; scale: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 248, 240, .85) 0, rgba(255, 248, 240, 0) calc(var(--hdr) + 40px)), linear-gradient(90deg, rgba(255, 248, 240, .96) 0%, rgba(255, 248, 240, .9) 34%, rgba(255, 248, 240, .72) 50%, rgba(255, 248, 240, .18) 64%, rgba(255, 248, 240, 0) 80%), linear-gradient(0deg, var(--sand-3) 0%, rgba(255, 248, 240, 0) 16%); }
.hero-caption { position: absolute; right: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); bottom: 32px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transition: opacity .45s var(--ease-out), translate .45s var(--ease-out), background .2s; }
.hero-caption.is-swapping { opacity: 0; translate: 0 6px; }
.hero-caption:hover { background: #fff; color: var(--ink); }
.hero-caption .i { width: 16px; height: 16px; transition: translate .3s var(--ease-out); }
.hero-caption:hover .i { translate: 3px 0; }
@media (max-width: 860px) {
  .hero-home { padding: 40px 0 48px; }
  .pg-home .hero-home { padding-top: calc(var(--hdr) + 32px); }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255, 248, 240, .8) 0%, rgba(255, 248, 240, .74) 45%, rgba(255, 248, 240, .9) 80%, var(--sand-3) 100%); }
  .hero-slide { object-position: 60% 50%; }
  .hero-caption { display: none; }
}
@media (max-width: 560px) {
  .hero-home { padding: 20px 0 28px; }
  .pg-home .hero-home { padding-top: calc(var(--hdr) + 16px); }
  .hero-home h1 { font-size: 36px; line-height: 1.05; margin-bottom: 10px; }
  .hero-home .lead { font-size: 16px; line-height: 1.5; }
}

/* ---------- motion ---------- */
@view-transition { navigation: auto; }
.hdr { view-transition-name: site-header; }
.mbar { view-transition-name: site-bar; }
.g0 img { view-transition-name: listing-photo; }
::view-transition-old(root) { animation: vt-out .2s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) .05s both; }
::view-transition-group(listing-photo) { animation-duration: .6s; animation-timing-function: var(--ease-out); }
::view-transition-old(listing-photo), ::view-transition-new(listing-photo) { height: 100%; object-fit: cover; }
::view-transition-group(*.card) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 16px; } }

/* content rises in as it scrolls into view (scroll-driven, no JS; browsers without support show it as is) */
@supports (animation-timeline: view()) {
  .sec-head, .grid-cards > *, .seller-copy, .seller .lead-form, .about-photo, .about-copy, .faq details, .steps li,
  .prose-2 > *, .hood, .art-card, .office > *, .cta-band-in, .specs > div, .amen, .loc, .listing-side .lead-form, .calc-in, .calc-out {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  .grid-cards > :nth-child(4n + 2), .specs > div:nth-child(3n + 2), .faq details:nth-child(2) { animation-range: entry 6% entry 76%; }
  .grid-cards > :nth-child(4n + 3), .specs > div:nth-child(3n), .faq details:nth-child(3) { animation-range: entry 12% entry 82%; }
  .grid-cards > :nth-child(4n + 4) { animation-range: entry 18% entry 88%; }
}
@keyframes rise { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }

/* FAQ answers open smoothly where the browser can animate to height: auto */
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* form thank-you */
.form-ok:not([hidden]) { animation: pop .55s var(--ease-out) both; }
.form-ok:not([hidden]) > .i { animation: pop .6s var(--ease-out) .12s both; }
@keyframes pop { from { opacity: 0; scale: .94; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- content from the admin (15.11.2026) ---------- */
.badge-reserved { background: var(--accent); color: var(--accent-ink); }
.card-badges .badge-reserved { background: var(--accent); }
/* a broker without a photo yet: initials in a circle */
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--sand-2); color: var(--ink); font: 700 22px/1 var(--font-h); }
.video-btn { margin: 20px 0 4px; }
.video-btn .i { color: var(--accent-2); }
/* reviews */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; font-size: 16.5px; color: var(--text); }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "“"; }
.quote figcaption { margin-top: auto; display: grid; font-size: 14.5px; }
.quote figcaption strong { color: var(--ink); }
.quote figcaption span { color: var(--muted); }
/* team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.member img, .member .avatar { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 12px; margin-bottom: 8px; }
.member .avatar { font-size: 48px; }
.member h3 { margin: 0; font-size: 18px; }
.member-role { margin: 0; color: var(--muted); font-size: 14.5px; }
.member-bio { margin: 6px 0 0; font-size: 15px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.member-phone { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1.2 var(--font-h); color: var(--ink); text-decoration: none; }
.member-phone .i { width: 18px; height: 18px; color: var(--accent-2); }
/* partners */
.partners-h { font-size: 17px; margin: 22px 0 10px; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.partner { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; display: grid; gap: 6px; align-content: start; }
.sec-tint .partner { background: var(--sand); }
.partner strong { color: var(--ink); }
.partner p { margin: 0; color: var(--muted); font-size: 14.5px; }
.partner-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.partner-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--navy-2); }
.partner-links .i { width: 16px; height: 16px; }
/* neighbourhood: what is nearby */
.places { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; }
.places li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.places em { font-style: normal; color: var(--muted); white-space: nowrap; }
/* articles from the admin */
.article-cover { margin: 8px 0 24px; }
.article-cover img { width: 100%; height: auto; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.prose figure { margin: 22px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 12px; }
.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.prose blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text); }
.prose ol { padding-left: 1.3em; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
