/* ==========================================================================
   GMG Group — site stylesheet
   Sections:
   01 Fonts            02 Tokens            03 Base / reset       04 Utilities
   05 Buttons & icons  06 Demo strip        07 Header & menu      08 Hero
   09 Section chrome   10 Ready building    11 Project (Parkline) 12 Apartment picker
   13 Cards & list     14 About             15 Contact & forms    16 Footer
   17 Floating UI      18 Dialogs           19 Detail dialog      20 Plan drawing
   21 Reveal           22 Responsive        23 Motion & print
   ========================================================================== */

/* ---------- 01 Fonts (FiraGO, split by script; the browser fetches only what the page uses) ---------- */
@font-face { font-family: FiraGO; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../assets/fonts/FiraGO-Regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+20BE,U+2122,U+2190-2193,U+2196-2199,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: FiraGO; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../assets/fonts/FiraGO-Regular-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: FiraGO; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../assets/fonts/FiraGO-Regular-georgian.woff2') format('woff2');
  unicode-range: U+10A0-10FF,U+1C90-1CBF,U+2D00-2D2F; }
@font-face { font-family: FiraGO; font-weight: 600; font-style: normal; font-display: swap;
  src: url('../assets/fonts/FiraGO-SemiBold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+20BE,U+2122,U+2190-2193,U+2196-2199,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: FiraGO; font-weight: 600; font-style: normal; font-display: swap;
  src: url('../assets/fonts/FiraGO-SemiBold-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: FiraGO; font-weight: 600; font-style: normal; font-display: swap;
  src: url('../assets/fonts/FiraGO-SemiBold-georgian.woff2') format('woff2');
  unicode-range: U+10A0-10FF,U+1C90-1CBF,U+2D00-2D2F; }

/* ---------- 02 Design tokens ---------- */
:root {
  color-scheme: light;

  /* brand colour */
  --paper: #f2f0e8;
  --paper-raised: #f8f7f1;
  --paper-sunk: #eae8de;
  --white: #fff;
  --forest: #073d31;
  --forest-deep: #052b23;
  --emerald: #107653;
  --emerald-dark: #0b5a40;
  --emerald-light: #8fd6b4;      /* accent on dark backgrounds */
  --ink: #202421;
  --ink-2: #3c473f;
  --muted: #56635a;              /* AA on paper (see README: contrast table) */
  --line: #d8ddd4;
  --line-strong: #bcc5b8;
  --on-dark: #f2f0e8;
  --on-dark-muted: #b4c9ba;
  --danger: #9b2c1f;
  --danger-bg: #f8e9e5;

  /* status badges: text / background */
  --st-available: #0b5a40;  --st-available-bg: #dcebe1;
  --st-reserved: #7a4d00;   --st-reserved-bg: #f6e9cc;
  --st-sold: #4f5651;       --st-sold-bg: #e4e4de;
  --st-request: #073d31;    --st-request-bg: #e2eadd;

  /* type */
  --font: FiraGO, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, 'Noto Sans Georgian', sans-serif;
  --fs-xs: .75rem;      /* 12px: smallest text allowed */
  --fs-sm: .875rem;     /* 14px: secondary text */
  --fs-md: 1rem;        /* 16px */
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-h2: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --fs-h1: clamp(3rem, 1.5rem + 5.4vw, 6.5rem);

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
  --max: 1440px;

  /* shape, depth, motion */
  --radius-sm: 8px; --radius: 12px; --radius-lg: 20px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px #073d3114, 0 4px 14px #073d310d;
  --shadow-2: 0 10px 30px #073d3122;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;

  /* layout */
  --header-h: 72px;
  --focus: 3px solid var(--emerald);
}

/* ---------- 03 Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(1rem, .96rem + .15vw, 1.0625rem)/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.modal-open, body.menu-open, body.filters-open { overflow: hidden; }
h1, h2, h3, h4, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
p { max-width: 70ch; }
h1, h2 { font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); }
h3 { font-weight: 400; line-height: 1.25; letter-spacing: -.02em; font-size: var(--fs-xl); }
em { font-style: normal; color: var(--emerald); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: #107653; color: #fff; }
dl > div { margin: 0; }

.num, .card-price, .detail-price, .ready-price, .hero-facts dd, .project-stats dt, .manager-stats strong, .detail-grid dd { font-variant-numeric: tabular-nums; }

/* ---------- 04 Utilities ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 200; background: var(--forest); color: #fff; padding: 14px 18px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: var(--muted); }
.small-muted { font-size: var(--fs-sm); color: var(--muted); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.6; }
.noscript { margin: 0; padding: 12px var(--gutter); background: var(--forest); color: #fff; font-size: var(--fs-sm); max-width: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 05 Buttons & icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 40px; height: 40px; stroke-width: 1.4; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  background: var(--forest); color: var(--paper); border: 1px solid var(--forest);
  font-size: var(--fs-md); font-weight: 600; line-height: 1.2; text-align: center;
  transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur), box-shadow var(--dur);
}
.button:hover { background: var(--emerald-dark); border-color: var(--emerald-dark); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.button:active { transform: translateY(0); box-shadow: none; }
.button:disabled { opacity: .5; transform: none; box-shadow: none; }
.button .icon { transition: transform var(--dur); }
.button:hover .icon-ur, .button:hover .icon { transform: translate(1px, -1px); }
.button-sm { min-height: 44px; padding: 0 18px; font-size: var(--fs-sm); gap: 10px; }
.button-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.button-outline:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.button-light { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.button-light:hover { background: #fff; color: var(--forest); border-color: #fff; }
.button-danger { color: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.button-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.button-danger-solid:hover { background: #7e2217; border-color: #7e2217; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--forest); border-bottom: 1px solid transparent; transition: border-color var(--dur), color var(--dur);
}
.text-link:hover { color: var(--emerald-dark); border-bottom-color: currentColor; }
.text-link .icon { transition: transform var(--dur); }
.text-link:hover .icon { transform: translate(1px, -1px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--paper-raised); color: var(--forest);
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.icon-btn:hover { background: var(--forest); border-color: var(--forest); color: var(--paper); }

/* ---------- 06 Demo strip ---------- */
.demo-strip { background: var(--forest); color: var(--on-dark-muted); font-size: .8125rem; line-height: 1.4; }
.demo-strip-inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: 8px 0; display: flex; align-items: center; gap: 10px; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-light); flex: none; }
.demo-year { margin-left: auto; letter-spacing: .1em; white-space: nowrap; }

/* ---------- 07 Header & mobile menu ---------- */
.site-header { position: sticky; top: 0; z-index: 40; isolation: isolate; height: var(--header-h); transition: box-shadow var(--dur); }
/* blurred paper layer lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile panel */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #f2f0e8f2; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 6px 24px #073d3114; }
.header-inner { width: min(100% - 2 * var(--gutter), var(--max)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: var(--s-5); }
.brand { display: block; flex: none; width: 150px; border-radius: 6px; }
.brand img { width: 150px; height: auto; }

.nav-panel { display: flex; align-items: center; flex: 1; gap: var(--s-5); }
.primary-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: .9375rem; color: var(--ink); border-radius: var(--radius-sm); transition: color var(--dur), background var(--dur);
}
.primary-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--emerald); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.primary-nav a:hover { background: #073d310d; color: var(--forest); }
.primary-nav a:hover::after { transform: scaleX(.45); }
.primary-nav a[aria-current="true"] { color: var(--forest); font-weight: 600; }
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav-extras { display: flex; align-items: center; gap: var(--s-4); }

.languages { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper-raised); }
.languages button { min-width: 44px; min-height: 40px; padding: 0 8px; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); transition: background var(--dur), color var(--dur); }
.languages button:hover { background: #073d3112; color: var(--forest); }
.languages button.active { background: var(--forest); color: var(--paper); }
.languages-dark { border-color: #ffffff33; background: transparent; }
.languages-dark button { color: var(--on-dark-muted); }
.languages-dark button:hover { background: #ffffff1a; color: #fff; }
.languages-dark button.active { background: var(--paper); color: var(--forest); }
.languages-dark button:focus-visible, .site-footer :focus-visible { outline-color: var(--emerald-light); }

.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper-raised); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur); }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 08 Hero ---------- */
.hero { padding: var(--s-5) 0 0; }
.hero-inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; min-height: clamp(560px, calc(100svh - 150px), 820px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: var(--s-6); }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.hero h1 { font-size: var(--fs-h1); margin: var(--s-5) 0 var(--s-5); }
.hero-description { font-size: var(--fs-lg); color: var(--ink-2); max-width: 40ch; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--s-4) var(--s-6); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); width: 100%; }
.hero-facts > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-facts dd { font-size: var(--fs-xl); font-weight: 600; color: var(--forest); letter-spacing: -.02em; line-height: 1.2; }
.hero-facts dt { font-size: var(--fs-sm); color: var(--muted); }

.hero-photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-sunk); min-height: 360px; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-note { position: absolute; top: var(--s-4); left: var(--s-4); z-index: 1; padding: 6px 12px; border-radius: var(--radius-sm); background: #0c241dcc; color: #fff; font-size: var(--fs-xs); letter-spacing: .03em; backdrop-filter: blur(6px); }
.hero-project { position: absolute; left: var(--s-4); bottom: var(--s-4); right: var(--s-4); max-width: 380px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); border-radius: var(--radius); background: #f2f0e8ee; backdrop-filter: blur(10px); box-shadow: var(--shadow-2); }
.hero-project > div { display: grid; gap: 2px; }
.hero-project strong { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.hero-project span:last-child { font-size: var(--fs-sm); color: var(--muted); }
.circle-arrow { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: var(--paper); transition: background var(--dur), transform var(--dur); }
.circle-arrow:hover { background: var(--emerald-dark); transform: scale(1.06); }

/* ---------- 09 Section chrome ---------- */
.section { padding-block: var(--section-y); }
.section-heading { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; gap: var(--s-5) var(--s-6); align-items: start; margin-bottom: clamp(32px, 5vw, 64px); }
.section-heading .eyebrow { padding-top: 14px; }
.section-heading-body { display: grid; gap: var(--s-5); }
.section-heading-body .lead { max-width: 62ch; }
.outline-label, .ready-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); font-size: var(--fs-sm); white-space: nowrap; margin-top: 10px; }
.outline-label { border: 1px solid var(--line-strong); color: var(--ink-2); }
.ready-status { background: var(--st-request-bg); color: var(--forest); font-weight: 600; }
.ready-status .icon { color: var(--emerald); }

/* ---------- 10 Ready building ---------- */
.ready-content { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.ready-visual { display: grid; gap: var(--s-3); }
.ready-main-image { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-sunk); aspect-ratio: 1787 / 880; width: 100%; }
.ready-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ready-main-image:hover img { transform: scale(1.025); }
.gallery-open { position: absolute; right: var(--s-4); bottom: var(--s-4); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: #f2f0e8ee; color: var(--forest); font-size: var(--fs-sm); font-weight: 600; backdrop-filter: blur(8px); }
.ready-photo-credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.ready-photo-credit a { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; color: var(--forest); font-weight: 600; }
.ready-photo-credit a:hover { text-decoration: underline; }
.ready-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.ready-thumbnails button { display: grid; gap: 8px; text-align: left; font-size: var(--fs-sm); color: var(--ink-2); }
.ready-thumbnails img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--paper-sunk); transition: transform var(--dur), box-shadow var(--dur); }
.ready-thumbnails button:hover img { transform: translateY(-2px); box-shadow: var(--shadow-1); }

.ready-summary { display: grid; gap: var(--s-4); padding: clamp(20px, 2.4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); }
.ready-summary h3 { font-size: var(--fs-2xl); letter-spacing: -.03em; }
.ready-price { display: grid; gap: 2px; }
.ready-price-main { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--forest); }
.ready-price-sqm { font-size: var(--fs-sm); color: var(--muted); }
.ready-specs { display: grid; margin: var(--s-2) 0; }
.ready-specs > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 12px 0; border-top: 1px solid var(--line); }
.ready-specs dt { color: var(--muted); font-size: var(--fs-sm); }
.ready-specs dd { text-align: right; font-weight: 600; }
.ready-actions { display: grid; gap: var(--s-2); justify-items: start; }
.source-note { font-size: var(--fs-sm); color: var(--muted); }
.source-note a { display: inline-flex; align-items: center; gap: 4px; color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.ready-benefits, .about-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: clamp(40px, 6vw, 80px); }
.ready-benefits > div, .about-principles > div { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.num { font-size: var(--fs-sm); color: var(--emerald); font-weight: 600; letter-spacing: .08em; }
.ready-benefits p, .about-principles p { color: var(--ink-2); }

/* ---------- 11 Project (Parkline concept) ---------- */
.project { border-top: 1px solid var(--line); }
.project-feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); }
.interior-photo { position: relative; min-height: 360px; background: var(--paper-sunk); }
.interior-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-5); padding: clamp(24px, 4vw, 56px); }
.project-info h3 { font-size: var(--fs-2xl); letter-spacing: -.03em; max-width: 18ch; }
.project-stats { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s-5) var(--s-6); width: 100%; padding: var(--s-5) 0; border-block: 1px solid var(--line); }
.project-stats dt { font-size: var(--fs-2xl); font-weight: 600; color: var(--forest); letter-spacing: -.03em; line-height: 1.1; }
.project-stats dd { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }

/* ---------- 12 Apartment picker ---------- */
.apartments-section { background: var(--paper-sunk); border-top: 1px solid var(--line); }
.project-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); max-width: 760px; }
.project-picker button { position: relative; display: grid; gap: 2px; min-height: 76px; padding: var(--s-4) var(--s-5) var(--s-4) 56px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-raised); transition: background var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur); }
.project-picker button::before { content: ''; position: absolute; left: var(--s-5); top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--line-strong); border-radius: 50%; transition: inherit; }
.project-picker button:hover { border-color: var(--forest); box-shadow: var(--shadow-1); }
.project-picker button.selected { background: var(--forest); border-color: var(--forest); color: var(--paper); box-shadow: var(--shadow-2); }
.project-picker button.selected::before { border-color: var(--emerald-light); background: radial-gradient(circle, var(--emerald-light) 0 4px, transparent 5px); }
.project-picker button.selected:focus-visible { outline-color: var(--emerald); }
.pp-name { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.01em; }
.project-picker small { font-size: var(--fs-sm); color: var(--muted); }
.project-picker button.selected small { color: var(--on-dark-muted); }
.picker-context { margin: var(--s-4) 0 var(--s-6); font-size: var(--fs-sm); color: var(--ink-2); max-width: 80ch; }

.picker-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); }
.filters-head, .filters-foot, .filters-toggle, .filters-backdrop { display: none; }
#filter-form { display: grid; gap: var(--s-5); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.room-buttons { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.room-buttons button { min-width: 48px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); font-weight: 600; transition: background var(--dur), border-color var(--dur), color var(--dur); }
.room-buttons button:hover:not(:disabled) { border-color: var(--forest); }
.room-buttons button.selected { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.room-buttons button:disabled { opacity: .4; }
.filter-row { display: grid; gap: var(--s-2); }
.filter-row label { font-size: var(--fs-sm); font-weight: 600; }
.range-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-2); align-items: end; }
.range-inputs label { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.range-dash { padding-bottom: 14px; color: var(--muted); }
.reset-button { width: 100%; min-height: 48px; }
.filter-note { display: flex; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.filter-note .icon { margin-top: 2px; color: var(--emerald); }

/* shared form controls */
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur);
}
textarea { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073d31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
select:disabled, input:disabled { opacity: .55; cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: #657169; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover { border-color: var(--forest); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px #10765340; }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px #9b2c1f26 !important; }
input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--forest); cursor: pointer; }
.checkbox { display: flex; gap: var(--s-3); align-items: flex-start; min-height: 44px; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.checkbox a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.field { display: grid; gap: 6px; }
.field > label:not(.checkbox) { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field-error { display: block; font-size: var(--fs-sm); color: var(--danger); font-weight: 600; max-width: none; }
.field-error:empty { display: none; }
.form-status { min-height: 1.5em; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--emerald-dark); }
.lead-form { display: grid; gap: var(--s-4); }

/* toolbar, chips */
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.result-count { flex: 1 1 auto; font-weight: 600; color: var(--ink); }
.sort select { min-height: 44px; width: auto; min-width: 190px; }
.view-buttons { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-raised); }
.view-buttons button { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 6px; color: var(--ink-2); transition: background var(--dur), color var(--dur); }
.view-buttons button.selected { background: var(--forest); color: var(--paper); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--emerald); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 16px; border: 1px solid var(--forest); border-radius: var(--radius-pill); background: var(--paper-raised); font-size: var(--fs-sm); font-weight: 600; color: var(--forest); transition: background var(--dur), color var(--dur); }
.chip .icon { width: 14px; height: 14px; }
.chip:hover { background: var(--forest); color: var(--paper); }
.chip-reset { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }

/* ---------- 13 Cards, list view, skeletons, empty state ---------- */
.apartment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-4); }
.apartment-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); text-align: left; color: var(--ink); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.apartment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--emerald); }
.apartment-card:active { transform: translateY(-1px); }
.apartment-card:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 28px; }
.card-id { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.card-plan { display: grid; place-items: center; aspect-ratio: 13 / 10; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; padding: var(--s-2); }
.card-plan .plan, .card-plan img { width: 100%; height: 100%; object-fit: contain; }
.card-description { display: grid; gap: 2px; }
.card-title { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.card-meta { font-size: var(--fs-sm); color: var(--muted); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.card-price { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.03em; color: var(--forest); line-height: 1.15; }
.card-go { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--paper); transition: background var(--dur), transform var(--dur); }
.apartment-card:hover .card-go { background: var(--emerald); transform: rotate(0) scale(1.08); }

.availability { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.availability .icon { width: 14px; height: 14px; stroke-width: 2.25; }
.availability.available { color: var(--st-available); background: var(--st-available-bg); }
.availability.reserved { color: var(--st-reserved); background: var(--st-reserved-bg); }
.availability.sold { color: var(--st-sold); background: var(--st-sold-bg); }
.availability.request { color: var(--st-request); background: var(--st-request-bg); white-space: normal; }

.is-fresh .apartment-card { animation: card-in .45s var(--ease) both; }
.is-fresh .apartment-card:nth-child(2) { animation-delay: 30ms; }
.is-fresh .apartment-card:nth-child(3) { animation-delay: 60ms; }
.is-fresh .apartment-card:nth-child(4) { animation-delay: 90ms; }
.is-fresh .apartment-card:nth-child(5) { animation-delay: 120ms; }
.is-fresh .apartment-card:nth-child(6) { animation-delay: 150ms; }
.is-fresh .apartment-card:nth-child(7) { animation-delay: 180ms; }
.is-fresh .apartment-card:nth-child(8) { animation-delay: 210ms; }
.is-fresh .apartment-card:nth-child(n+9) { animation-delay: 240ms; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* list view: a compact, table-like row per apartment (card pieces are re-laid out on one grid) */
.apartment-grid.list-view { grid-template-columns: 1fr; gap: var(--s-2); }
.list-view .list-head, .list-view .apartment-card { display: grid; grid-template-columns: minmax(80px, .9fr) 88px minmax(90px, 1fr) minmax(130px, 1.4fr) minmax(130px, 1fr) minmax(110px, 1fr) 36px; align-items: center; gap: var(--s-4); }
.list-head { padding: 0 var(--s-5); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.list-view .apartment-card { padding: var(--s-3) var(--s-5); border-radius: var(--radius); }
.list-view .apartment-card:hover { transform: translateY(-2px); }
.list-view .card-top, .list-view .card-description, .list-view .card-bottom { display: contents; }
.list-view .card-plan { grid-column: 2; grid-row: 1; width: 88px; aspect-ratio: 4 / 3; padding: 4px; }
.list-view .card-id { grid-column: 1; grid-row: 1; }
.list-view .card-title { grid-column: 3; grid-row: 1; font-size: var(--fs-lg); }
.list-view .card-meta { grid-column: 4; grid-row: 1; }
.list-view .availability { grid-column: 5; grid-row: 1; justify-self: start; }
.list-view .card-price { grid-column: 6; grid-row: 1; font-size: var(--fs-xl); }
.list-view .card-go { grid-column: 7; grid-row: 1; width: 32px; height: 32px; }

.skeleton-card { min-height: 360px; border-radius: var(--radius-lg); background: linear-gradient(100deg, #e4e2d7 30%, #efede4 50%, #e4e2d7 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--s-3); padding: clamp(40px, 6vw, 72px) var(--s-5); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--paper-raised); }
.empty-state .icon-lg { color: var(--emerald); }
.empty-state p { color: var(--ink-2); }
.show-more { display: flex; margin: var(--s-6) auto 0; }

/* ---------- 14 About ---------- */
.about { border-top: 1px solid var(--line); }
.about .eyebrow { margin-bottom: var(--s-5); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-copy { display: grid; gap: var(--s-5); justify-items: start; }
.large-copy { font-size: var(--fs-xl); line-height: 1.5; letter-spacing: -.01em; }
.about-copy p:not(.large-copy) { color: var(--ink-2); }

/* ---------- 15 Contact ---------- */
.contact-section { background: var(--forest); color: var(--on-dark); }
.contact-section :focus-visible { outline-color: var(--emerald-light); }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: var(--s-5); justify-items: start; }
.contact-copy .eyebrow { color: var(--on-dark-muted); }
.contact-copy h2 em { color: var(--emerald-light); }
.contact-copy .lead { color: var(--on-dark); opacity: .92; }
.contact-location { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.contact-form { padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); }
.contact-form :focus-visible { outline-color: var(--emerald); }

/* ---------- 16 Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-dark); padding-top: clamp(48px, 6vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7) var(--s-6); padding-bottom: clamp(32px, 4vw, 56px); }
.footer-brand { display: grid; gap: var(--s-4); align-content: start; }
.footer-brand img { width: 150px; height: auto; }
.footer-brand p { font-size: var(--fs-xl); letter-spacing: -.02em; max-width: 18ch; line-height: 1.25; }
.footer-col { display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.footer-col h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: var(--on-dark-muted); }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--on-dark); border-bottom: 1px solid transparent; }
.footer-col li a:hover { border-bottom-color: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-5); padding: var(--s-5) 0; border-top: 1px solid #ffffff26; font-size: .8125rem; letter-spacing: .04em; color: var(--on-dark-muted); }
.footer-bottom a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.site-footer-slim { padding-top: 0; margin-top: var(--section-y); }
.site-footer-slim .footer-bottom { border-top: 0; }

/* ---------- 17 Floating UI ---------- */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #f2f0e8f5; backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.sticky-cta.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.sticky-cta .button { width: 100%; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 36; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: var(--paper); box-shadow: var(--shadow-2); opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity var(--dur), transform var(--dur), visibility 0s var(--dur), background var(--dur); }
.to-top.is-visible { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.to-top:hover { background: var(--emerald-dark); }
body.modal-open .sticky-cta, body.modal-open .to-top, body.menu-open .sticky-cta, body.menu-open .to-top, body.filters-open .sticky-cta, body.filters-open .to-top { visibility: hidden; opacity: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translateX(-50%); max-width: min(90vw, 520px); padding: 14px 22px; border-radius: var(--radius); background: var(--forest); color: var(--paper); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-2); }

/* ---------- 18 Dialogs ---------- */
dialog {
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--paper); color: var(--ink);
  width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: hidden; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .25s var(--ease), transform .25s var(--ease), overlay .25s allow-discrete, display .25s allow-discrete;
}
dialog[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(14px) scale(.985); } }
dialog::backdrop { background: #052b2399; backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s, overlay .25s allow-discrete, display .25s allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }
.dialog-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-5) var(--s-3) var(--s-6); border-bottom: 1px solid var(--line); background: var(--paper); }
.dialog-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-6); }
.dialog-narrow { width: min(560px, calc(100vw - 32px)); }
.prose { display: grid; gap: var(--s-4); align-content: start; }
.prose h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); }
.prose ul { display: grid; gap: var(--s-3); padding-left: 1.25em; list-style: disc; }
.prose li::marker { color: var(--emerald); }
.prose .button { justify-self: start; margin-top: var(--s-2); }
.dialog-confirm h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.dialog-confirm .dialog-body { display: grid; gap: var(--s-4); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-3); margin-top: var(--s-3); }

.dialog-gallery { width: min(1200px, calc(100vw - 32px)); background: var(--forest-deep); color: var(--on-dark); }
.dialog-gallery .dialog-header { background: var(--forest-deep); border-color: #ffffff1f; }
.dialog-gallery .eyebrow { color: var(--on-dark-muted); }
.dialog-gallery .icon-btn { background: transparent; border-color: #ffffff40; color: #fff; }
.dialog-gallery .icon-btn:hover { background: #fff; color: var(--forest); }
.dialog-gallery :focus-visible { outline-color: var(--emerald-light); }
.gallery-stage { position: relative; flex: 1 1 auto; display: grid; place-items: center; min-height: 0; padding: var(--s-4); touch-action: pan-y; }
.gallery-stage img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 300px); object-fit: contain; border-radius: var(--radius); user-select: none; -webkit-user-drag: none; }
.gallery-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: #f2f0e8e6; color: var(--forest); transition: background var(--dur), transform var(--dur); }
.gallery-nav:hover { background: #fff; transform: scale(1.06); }
#gallery-prev { left: var(--s-5); }
#gallery-next { right: var(--s-5); }
.gallery-caption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); padding: var(--s-3) var(--s-6); font-size: var(--fs-sm); color: var(--on-dark-muted); }
.gallery-caption p { flex: 1 1 260px; color: var(--on-dark); }
.gallery-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--on-dark); }
.gallery-caption a { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.gallery-thumbs { flex: none; display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-2) var(--s-6) var(--s-5); scrollbar-width: thin; }
.gallery-thumb { flex: none; width: 112px; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; opacity: .65; transition: opacity var(--dur), border-color var(--dur); }
.gallery-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb[aria-current="true"] { opacity: 1; border-color: var(--emerald-light); }

/* ---------- 19 Apartment detail dialog ---------- */
.apartment-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.detail-plan { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); position: sticky; top: 0; }
.detail-plan-art { display: grid; place-items: center; padding: var(--s-3); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.detail-plan-art .plan, .detail-plan-art img { width: 100%; max-height: 380px; object-fit: contain; }
.plan-note { font-size: var(--fs-sm); color: var(--muted); }
.detail-copy { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.detail-copy > p { color: var(--ink-2); }
.detail-copy h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-raised); }
.detail-grid > div { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border: 0 solid var(--line); }
.detail-grid > div:nth-child(odd) { border-right-width: 1px; }
.detail-grid > div:nth-child(n+3) { border-top-width: 1px; }
.detail-grid dt { font-size: var(--fs-sm); color: var(--muted); }
.detail-grid dd { font-weight: 600; }
.detail-unknown { color: var(--ink-2); font-weight: 400 !important; font-size: var(--fs-sm); }
.detail-price { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.03em; color: var(--forest); }
.detail-copy .lead-form { width: 100%; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.detail-copy .lead-form + * { margin: 0; }
.detail-copy h3 { font-size: var(--fs-xl); }
.lead-success { justify-items: start; padding-block: var(--s-4); }
.success-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--st-available-bg); color: var(--emerald-dark); }
.success-mark .icon { width: 28px; height: 28px; stroke-width: 2.25; }
.source-plan-link { justify-self: start; }

/* ---------- 20 Schematic plan drawing (Parkline demo units) ---------- */
.plan { width: 100%; height: auto; }
.plan text { font: 600 12px var(--font); fill: #4a5a50; }
.pl-room { fill: #fbfbf6; stroke: #34493b; stroke-width: 4; }
.pl-balcony { fill: #e4eada; stroke: #34493b; stroke-width: 1.2; }
.pl-window { stroke: #cfe0d4; stroke-width: 4.5; fill: none; }
.pl-door-gap { stroke: #fbfbf6; stroke-width: 5; }
.pl-door-arc { stroke: #8d9e88; stroke-width: 1; fill: none; }
.pl-wall-mid { stroke: #34493b; stroke-width: 2.5; fill: none; }
.pl-fixture { fill: #e1e7d9; stroke: #a1af99; }
.pl-fixture-line { stroke: #a1af99; fill: none; }
.actual-plan { background: #fff; }

/* ---------- 21 Reveal on scroll (progressive enhancement: the hiding class is added by JS only) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 22 Responsive ---------- */
@media (max-width: 1100px) {
  .picker-layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-5); }
  .ready-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .list-view .list-head, .list-view .apartment-card { grid-template-columns: minmax(70px, .8fr) 72px minmax(80px, 1fr) minmax(110px, 1.2fr) minmax(120px, 1fr) minmax(100px, 1fr) 32px; gap: var(--s-3); }
}

@media (max-width: 1180px) {
  .primary-nav a { padding: 0 10px; font-size: .9rem; white-space: nowrap; }
  .primary-nav a::after { left: 10px; right: 10px; }
  .nav-cta { display: none; }
  .nav-panel, .nav-extras { gap: var(--s-4); }
}

/* Mobile menu: collapses at 1024px (not only on phones) because the longer Georgian labels need the room */
@media (max-width: 1024px) {
  .brand, .brand img { width: 130px; }
  .menu-toggle { display: grid; }

  /* full-height menu panel under the header */
  .nav-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, var(--header-h)); z-index: 39;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-6);
    padding: var(--s-5) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-panel.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .primary-nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .primary-nav a { min-height: 56px; padding: 0 4px; font-size: var(--fs-xl); border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current="true"] { color: var(--emerald-dark); }
  .primary-nav a[aria-current="true"]::before { content: ''; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; background: var(--emerald); }
  .nav-extras { flex-direction: column; align-items: stretch; gap: var(--s-4); }
  .nav-extras .languages { align-self: flex-start; }
  .nav-extras .button { width: 100%; min-height: 52px; font-size: var(--fs-md); }

  .nav-cta { display: inline-flex; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: var(--s-4) 0; }
  .hero-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .eyebrow { padding-top: 0; }
  .outline-label, .ready-status { justify-self: start; margin-top: 0; }
  .project-feature, .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .interior-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .ready-benefits, .about-principles { grid-template-columns: 1fr; gap: var(--s-5); }

  /* picker: filters become a bottom sheet */
  .picker-layout { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: 88dvh; padding: 0 var(--gutter) 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-width: 1px 0 0;
    transform: translateY(105%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; box-shadow: 0 -12px 40px #052b2340;
  }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: #052b2380; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: var(--s-4) 0 var(--s-3); background: var(--paper-raised); }
  .filters-head h3 { font-size: var(--fs-xl); }
  .filters-foot { display: block; position: sticky; bottom: 0; padding: var(--s-3) 0 calc(var(--s-4) + env(safe-area-inset-bottom)); background: var(--paper-raised); border-top: 1px solid var(--line); margin-top: var(--s-4); }
  .filters-foot .button { width: 100%; }
  .filter-note { margin-top: var(--s-4); }
  .catalog-toolbar .result-count { order: 3; flex-basis: 100%; }
  .sticky-cta { display: block; }
  .to-top { bottom: 20px; }
  .sticky-cta.is-visible ~ .to-top { bottom: 88px; }
  body { padding-bottom: 0; }
}

@media (max-width: 700px) {
  .demo-year { display: none; }
  .project-picker { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .apartment-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: center; }
  .project-stats { grid-template-columns: repeat(3, auto); gap: var(--s-4); }
  .apartment-detail { grid-template-columns: 1fr; }
  .detail-plan { position: static; }
  .gallery-nav { width: 44px; height: 44px; margin-top: -22px; }
  #gallery-prev { left: var(--s-2); }
  #gallery-next { right: var(--s-2); }
  .gallery-thumb { width: 88px; }
  .gallery-stage img { max-height: calc(100dvh - 330px); }

  /* list view: two compact lines per apartment */
  .list-head { display: none !important; }
  .list-view .apartment-card { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 2px var(--s-3); padding: var(--s-3) var(--s-4); }
  .list-view .card-plan { grid-column: 1; grid-row: 1 / 4; width: 72px; align-self: start; }
  .list-view .card-id { grid-column: 2; grid-row: 1; }
  .list-view .card-price { grid-column: 3; grid-row: 1; }
  .list-view .card-title { grid-column: 2; grid-row: 2; }
  .list-view .availability { grid-column: 3; grid-row: 2; justify-self: end; }
  .list-view .card-meta { grid-column: 2 / 4; grid-row: 3; }
  .list-view .card-go { display: none; }

  /* dialogs become full-screen sheets */
  dialog, .dialog-narrow, .dialog-gallery { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; inset: 0; }
  dialog.dialog-narrow:not(.dialog-confirm) { height: 100dvh; }
  dialog.dialog-confirm { height: auto; inset: auto 0 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .dialog-header { padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); }
  .dialog-body { padding: var(--s-5) var(--s-4) var(--s-7); }
  dialog { transform: translateY(24px); }
  .dialog-actions .button { flex: 1 1 140px; }
}

@media (max-width: 420px) {
  .hero-facts { gap: var(--s-4); }
  .range-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .range-dash { display: none; }
}

/* ---------- 23 Motion preferences & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .skeleton-card { animation: none; }
}

@media print {
  :root { --paper: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .demo-strip, .site-header, .sticky-cta, .to-top, .filters, .filters-backdrop, .filters-toggle, .view-buttons, .sort, .chips, .show-more, .toast, .menu-toggle, .skip, .contact-form, .languages, .noscript { display: none !important; }
  .reveal, .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .section { padding-block: 24pt; break-inside: avoid-page; }
  .hero { padding-top: 0; }
  .hero-inner { min-height: 0; display: block; }
  .hero-photo { aspect-ratio: 3 / 2; margin-top: 12pt; }
  .contact-section, .site-footer, .apartments-section { background: #fff !important; color: #000; }
  .contact-section em, .contact-copy .eyebrow, .contact-copy .lead, .footer-col h2, .footer-bottom, .footer-col li a { color: #000 !important; }
  .apartment-card, .ready-summary, .project-feature { break-inside: avoid; box-shadow: none; }
  .source-note a::after, .ready-photo-credit a::after { content: " (" attr(href) ")"; font-weight: 400; word-break: break-all; }
  a { color: #000; }
}
