/* ============================================================
   GREEN PARK ŻORY — wspólny arkusz stylów
   System: ciepła biel + zieleń marki, serif (Cormorant) +
   sans (Manrope) + condensed (Saira) jako echo logotypu.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --green:      #2f5e2f;
  --green-700:  #284f29;
  --green-900:  #16301c;
  --olive:      #768f3c;   /* z pinezki na mapie — akcent */
  --olive-700:  #61782f;

  /* neutrals */
  --bg:       #F7F6F1;     /* ciepła biel */
  --bg-alt:   #FFFFFF;
  --sage:     #E7EBE0;     /* jasny szałwiowy panel */
  --sage-2:   #EEF1E9;
  --ink:      #1b241d;
  --muted:    #69716a;
  --line:     rgba(27,36,29,.12);
  --line-2:   rgba(27,36,29,.07);

  /* statusy lokali */
  --st-free:  #2f7d3a;
  --st-free-bg:#e7f1e4;
  --st-res:   #c2691a;
  --st-res-bg:#fbe7d5;
  --st-sold:  #c0392b;
  --st-sold-bg:#f7dcd8;

  /* type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;
  --brand: "Saira Condensed", "Arial Narrow", var(--sans);

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(27,36,29,.05), 0 6px 20px rgba(27,36,29,.05);
  --shadow-md: 0 10px 40px rgba(27,36,29,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.scroll-lock { overflow: hidden; }
section[id], [data-anchor] { scroll-margin-top: calc(var(--nav-h) + 18px); }

/* ---------- 3. Type helpers ---------- */
h1,h2,h3,h4 { font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
.serif { font-family: var(--serif); }
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.015em;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
}
.h-xl { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.06; letter-spacing: -.012em; }
.h-lg { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.12; }
.h-md { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.18; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.28rem); line-height: 1.6; color: #3a423b; font-weight: 400; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--brand);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--green);
  opacity: .55;
}
.eyebrow.is-light { color: rgba(255,255,255,.85); }
.eyebrow.is-light::before { background: rgba(255,255,255,.7); }
.eyebrow.no-rule::before { display: none; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--sage { background: var(--sage); }
.section--white { background: var(--bg-alt); }
.section--dark { background: var(--green-900); color: #eef1e8; }
.section--dark .muted { color: rgba(238,241,232,.66); }
.section--dark .lead { color: rgba(238,241,232,.82); }
.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; }
.sec-head { max-width: 720px; }
.sec-head.center { margin-inline: auto; }
.sec-head .h-xl, .sec-head .h-lg { margin-top: 1rem; }
.sec-head .lead { margin-top: 1.1rem; }

/* ---------- 5. Buttons ---------- */
.btn[hidden] { display: none; }
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  padding: .92em 1.6em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22,48,28,.28); }
.btn--ghost { background: transparent; color: var(--green); border-color: rgba(47,94,47,.32); }
.btn--ghost:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-more {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; color: var(--green);
  border-bottom: 1px solid rgba(47,94,47,.3);
  padding-bottom: 3px; transition: gap .3s var(--ease), border-color .3s;
}
.link-more:hover { gap: .9em; border-color: var(--green); }
.link-more svg { width: 16px; height: 16px; }

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247,246,241,0);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav.is-stuck, .nav.is-solid {
  background: rgba(249,248,244,.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line-2);
}
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 42px; width: 133px; max-width: none; flex: none; display: block; }
.brand__logo--white { display: none; }
.nav.on-dark:not(.is-stuck) .brand__logo--green { display: none; }
.nav.on-dark:not(.is-stuck) .brand__logo--white { display: block; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  font-size: .78rem; font-weight: 500; color: #2b332c; white-space: nowrap;
  padding: .5em .6em; border-radius: 100px; position: relative;
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--green); background: rgba(47,94,47,.07); }
.nav__links a.is-active { color: var(--green); }
.nav.on-dark:not(.is-stuck) .nav__links a { color: rgba(255,255,255,.86); }
.nav.on-dark:not(.is-stuck) .nav__links a:hover { color:#fff; background: rgba(255,255,255,.12); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav.on-dark:not(.is-stuck) .nav__cta.btn--ghost { color:#fff; border-color: rgba(255,255,255,.55); }
.nav.on-dark:not(.is-stuck) .nav__cta.btn--ghost:hover { background:#fff; color: var(--green-900); }

.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.5); position: relative; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--ink);
  transform: translate(-50%,-50%); transition: .3s var(--ease); border-radius: 2px;
}
.nav__burger span::before { transform: translate(-50%,-7px); }
.nav__burger span::after  { transform: translate(-50%, 7px); }
.nav.on-dark:not(.is-stuck) .nav__burger span,
.nav.on-dark:not(.is-stuck) .nav__burger span::before,
.nav.on-dark:not(.is-stuck) .nav__burger span::after { background: #fff; }

/* mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 199;
  background: var(--green-900); color: #fff;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s;
}
.nav-drawer.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-drawer { gap: 2px; }
.nav-drawer a { font-family: var(--serif); font-size: clamp(1.15rem, 5.2vw, 1.5rem); font-weight: 500; padding: .3em 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav-drawer .btn { margin-top: 22px; align-self: flex-start; width: auto; white-space: nowrap; padding: .85em 1.5em; line-height: 1.1; }
.nav-drawer__foot { margin-top: auto; color: rgba(255,255,255,.6); font-size: .9rem; }
.nav-drawer__foot a { font-family: var(--sans); font-size: .95rem; border: 0; padding: 0; color: #fff; }

/* ---------- 7. Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--green-900); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(15,32,18,.55) 0%, rgba(15,32,18,.05) 26%, rgba(15,32,18,.1) 55%, rgba(15,32,18,.82) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter) clamp(40px,7vh,84px); color: #fff; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__tagline { color: rgba(255,255,255,.9); max-width: 46ch; margin-top: 1.3rem; }
.hero .btn-row { margin-top: 2.1rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.75); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--brand); text-transform: uppercase; letter-spacing: .25em; font-size: .68rem; }
.hero__scroll .line { width: 1px; height: 38px; background: rgba(255,255,255,.6); animation: scrolldot 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrolldot { 0%{transform:scaleY(0);}40%{transform:scaleY(1);}60%{transform:scaleY(1);transform-origin:bottom;}100%{transform:scaleY(0);transform-origin:bottom;} }

/* stats bar */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats--5 { grid-template-columns: repeat(5,1fr); }
.stats--inverse { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.22); }
.stat { background: var(--bg-alt); padding: clamp(20px,3vw,34px); }
.stats--inverse .stat { background: transparent; }
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem,3.6vw,3rem); line-height: 1; color: var(--green); }
.stats--inverse .stat__num { color: #fff; font-size: 36px; }
.stat__num small { font-size: .5em; font-family: var(--sans); font-weight: 600; }
.stat__label { margin-top: .55rem; font-size: .9rem; color: var(--muted); }
.stats--inverse .stat__label { color: rgba(255,255,255,.7); }

/* hero floating stat card overlap */
.hero-stats-wrap { margin-top: -54px; position: relative; z-index: 5; }

/* ---------- 8. Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.split--media-right { direction: ltr; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sage-2); box-shadow: var(--shadow-sm); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--contain { background: #fff; padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.media-frame--contain img { object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sage-2); box-shadow: var(--shadow-sm); aspect-ratio: 3/2; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.045); }
.gallery figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; font-family: var(--brand); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 600; color: #fff; background: linear-gradient(180deg, transparent, rgba(15,32,18,.72)); pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(12,20,14,.92); padding: clamp(20px,4vw,64px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .8; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__prev { left: clamp(10px,2vw,32px); }
.lightbox__next { right: clamp(10px,2vw,32px); }
.gallery--feature figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 768px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery--feature figure:first-child { grid-column: span 2; grid-row: auto; } }
.ratio-43 { aspect-ratio: 4/3; }
.ratio-32 { aspect-ratio: 3/2; }
.ratio-169 { aspect-ratio: 16/9; }
.ratio-11 { aspect-ratio: 1/1; }

/* tag chips for feature lists */
.spec-list { display: grid; gap: 2px; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-weight: 600; text-align: right; }

/* ---------- 9. Feature cards (atuty) ---------- */
.cards-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cards-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
.feature { background: var(--bg-alt); padding: clamp(26px,2.6vw,38px); transition: background .35s var(--ease); }
.feature:hover { background: var(--sage-2); }
.feature__icon { width: 46px; height: 46px; color: var(--green); margin-bottom: 22px; }
.feature__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.feature h3 { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; }
.feature p { margin-top: .6rem; color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* loose card (gallery / link tiles) */
.tile-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sage-2); display: block; box-shadow: var(--shadow-sm); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile__cap { position: absolute; inset: auto 0 0 0; padding: 26px; background: linear-gradient(0deg, rgba(15,32,18,.78), transparent); color: #fff; }
.tile__cap h3 { font-family: var(--serif); font-size: 1.5rem; }
.tile__cap p { color: rgba(255,255,255,.82); font-size: .92rem; margin-top: 2px; }

/* ---------- 10. Page header (subpages) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(40px,6vw,80px)); padding-bottom: clamp(40px,6vw,72px); background: var(--green-900); color: #fff; position: relative; overflow: hidden; }
.page-hero--img .page-hero__bg { position: absolute; inset: 0; }
.page-hero--img .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero--img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,32,18,.5), rgba(15,32,18,.85)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem,5vw,4rem); margin-top: 1rem; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 56ch; margin-top: 1.1rem; }
.breadcrumb { display: flex; gap: .5em; align-items: center; font-size: .86rem; color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 12px; height: 12px; opacity: .6; }

/* ---------- 11. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 12. Listings (mieszkania / lokale) ---------- */
.list-layout { display: grid; grid-template-columns: 290px 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.list-layout > div:last-child { min-width: 0; }
.filters { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.filters h3 { font-family: var(--brand); text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; color: var(--muted); font-weight: 600; }
.filter-block { padding-block: 20px; border-bottom: 1px solid var(--line); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-label { font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .5em 1em; border: 1px solid var(--line); border-radius: 100px; font-size: .9rem; font-weight: 600; background: #fff; transition: .25s var(--ease); color: #3a423b; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.range-vals { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 10px; }
input[type="range"] { width: 100%; accent-color: var(--green); }
.dual-range { position: relative; height: 26px; }
.dual-range input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; }
.dual-range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.dual-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff; cursor: pointer; }
.dual-range .track { position: absolute; top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); background: var(--line); border-radius: 4px; }
.dual-range .track-fill { position: absolute; top: 50%; height: 3px; transform: translateY(-50%); background: var(--green); border-radius: 4px; }
.filter-reset { margin-top: 18px; width: 100%; justify-content: center; }

.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.list-count { font-size: .95rem; color: var(--muted); }
.list-count b { color: var(--ink); font-weight: 700; }
.view-toggle { display: flex; gap: 4px; background: var(--sage-2); border-radius: 100px; padding: 4px; }
.view-toggle button { width: 38px; height: 34px; border-radius: 100px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.is-on { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.view-toggle svg { width: 17px; height: 17px; }
.sort-select { border: 1px solid var(--line); border-radius: 100px; padding: .55em 1em; font: inherit; font-size: .9rem; background: #fff; color: var(--ink); }

/* unit cards grid */
.units { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.unit { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .4s var(--ease); }
.unit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(47,94,47,.3); }
.unit__plan { aspect-ratio: 4/3; background: #FFFFFF; position: relative; overflow: hidden; display:grid; place-items:center; }
.unit__plan img { width: 100%; height: 100%; object-fit: cover; }
.unit__floortag { position: absolute; top: 12px; left: 12px; background: #E0E4D9; backdrop-filter: blur(4px); border-radius: 100px; padding: .3em .85em; font-size: .76rem; font-weight: 700; color: var(--green-900); }
.unit__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; background: #E0E4D9; }
.unit__top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.unit__nr { font-family: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; white-space: nowrap; }
.unit__area { font-family: var(--serif); font-size: 1.95rem; font-weight: 500; line-height: 1; margin-top: 14px; }
.unit__area small { font-size: .9rem; font-family: var(--sans); color: var(--muted); font-weight: 500; }
.unit__meta { display: flex; gap: 18px; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.unit__meta b { color: var(--ink); font-weight: 700; }
.unit__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.unit__price { font-weight: 700; font-size: 1.02rem; }
.unit__price small { display:block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.unit__price-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.unit__price-line .unit__price { font-family: var(--serif); font-size: 1.2rem; color: var(--green-900); }
.price-info { width: 19px; height: 19px; flex: 0 0 auto; border-radius: 50%; border: 1.4px solid var(--muted);
  color: var(--muted); background: none; font: italic 700 .72rem/1 var(--serif); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: .15s var(--ease); }
.price-info:hover { border-color: var(--green); color: var(--green); }
#u-price-wrap .unit__price-line { margin-top: 14px; }
#u-price-wrap .unit__price { font-size: 1.7rem; }
#u-price-wrap .price-info { width: 24px; height: 24px; font-size: .82rem; }

.price-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center;
  background: rgba(20,26,20,.55); padding: 20px; }
.price-modal.is-open { display: flex; }
.price-modal__card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: clamp(24px,4vw,36px); width: min(420px, 100%); position: relative; }
.price-modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sage-2); color: var(--ink); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; }
.price-modal__close:hover { background: var(--sage); }
.price-modal__title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; padding-right: 30px; }
.price-modal__sub { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.price-modal__table { width: 100%; margin-top: 18px; border-collapse: collapse; }
.price-modal__table th { text-align: left; font-family: var(--brand); text-transform: uppercase; letter-spacing: .08em;
  font-size: .72rem; color: var(--muted); font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.price-modal__table td { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.price-modal__table tr:last-child td { border-bottom: 0; }

/* status badge */
.badge { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 700; padding: .35em .8em; border-radius: 100px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.free  { color: var(--st-free); background: var(--st-free-bg); }
.badge.res   { color: var(--st-res);  background: var(--st-res-bg); }
.badge.sold  { color: var(--st-sold); background: var(--st-sold-bg); }

/* table view */
.unit-table { width: 100%; border-collapse: collapse; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; table-layout: fixed; }
.table-scroll { max-width: 100%; border-radius: var(--radius); }
.unit-table th, .unit-table td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: .74rem; }
.unit-table td.num, .unit-table th.num { white-space: nowrap; }
.unit-table thead th { font-family: var(--brand); text-transform: uppercase; letter-spacing: .03em; font-size: .68rem; color: var(--muted); font-weight: 600; background: var(--sage-2); }
.unit-table tbody tr { transition: background .25s; cursor: pointer; }
.unit-table tbody tr:hover { background: var(--sage-2); }
.unit-table tbody tr:last-child td { border-bottom: 0; }
.unit-table td .u-nr { font-family: var(--brand); font-weight: 700; font-size: 1.02rem; letter-spacing: .03em; }
.unit-table td.num { font-variant-numeric: tabular-nums; }
.unit-table th.col-tight, .unit-table td.col-tight { width: 1%; white-space: nowrap; }
.unit-table td .badge { white-space: nowrap; font-size: .7rem; padding: .28em .55em; }
.unit-table td .price-info { margin-left: 4px; width: 14px; height: 14px; font-size: .6rem; }
.unit-table td.cena-cell { padding-left: 4px; padding-right: 4px; white-space: nowrap; }
.unit-table th:first-child, .unit-table td:first-child { padding-left: 12px; white-space: nowrap; }
.unit-table th:last-child, .unit-table td:last-child { padding-right: 12px; }
.t-area { font-weight: 700; }
.t-link { color: var(--green); font-weight: 600; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* category switch (mieszkania / apartamenty hotelowe) */
.cat-switch { display: inline-flex; gap: 6px; background: var(--sage-2); border: 1px solid var(--line); border-radius: 100px; padding: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.cat-switch button { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: .6em 1.5em; border-radius: 100px; font-weight: 700; font-size: .98rem; color: #3a423b; transition: .25s var(--ease); }
.cat-switch button small { font-family: var(--brand); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; font-weight: 600; color: var(--muted); }
.cat-switch button.is-on { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.cat-switch button.is-on small { color: rgba(255,255,255,.75); }
.units--4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1100px) { .units--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .units--4 { grid-template-columns: 1fr; } }

/* ---------- 13. Single unit page ---------- */
.unit-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px,4vw,56px); align-items: start; }
.plan-viewer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px,3vw,34px); box-shadow: var(--shadow-sm); }
.plan-viewer img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; margin-inline: auto; }
.plan-viewer--tight { padding: 0; overflow: hidden; }
.plan-viewer--tight .plan-tools { margin: 0 clamp(18px,3vw,34px); padding-bottom: clamp(16px,2.4vw,24px); }
.plan-viewer--tight img { border-radius: var(--radius); background: #fff; width: 100%; height: auto; max-height: none; display: block; }
.plan-viewer--tall img { max-height: 90vh; object-fit: contain; }
.plan-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.unit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.fact { background: #fff; padding: 18px 20px; }
.fact__k { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--brand); font-weight: 600; }
.fact__v { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-top: 4px; }
.fact--floor { padding: 0; position: relative; }
.fact--floor img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rooms-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.rooms-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.rooms-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rooms-table tr:last-child td { border-bottom: 0; font-size: 1.02rem; }
.rooms-table .total td { border-top: 2px solid var(--ink); font-weight: 700; }

/* ---------- 14. Location / POI ---------- */
.poi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.poi { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .35s var(--ease); }
.poi:hover { border-color: rgba(47,94,47,.32); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.poi__icon { color: var(--green); width: 30px; height: 30px; margin-bottom: 14px; }
.poi__icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.poi__dist { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1; }
.poi__name { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.map-embed { width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-illustration { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.map-illustration img { width: 100%; height: auto; }

/* ---------- 15. Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: #2b332c; }
.field label .req { color: var(--olive-700); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .98rem; padding: .85em 1em;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,94,47,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field.error input, .field.error textarea { border-color: #c0392b; }
.field .err-msg { color: #c0392b; font-size: .8rem; display: none; }
.field.error .err-msg { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.consent a { color: var(--green); text-decoration: underline; }
.form-success { background: var(--st-free-bg); color: var(--green-900); border: 1px solid rgba(47,125,58,.3); border-radius: var(--radius); padding: 18px 20px; display: none; align-items: center; gap: 12px; font-weight: 600; }
.form-success.show { display: flex; }
.form-error { display: none; background: #fbeceb; color: #8a2a20; border: 1px solid rgba(192,57,43,.3); border-radius: var(--radius); padding: 14px 18px; font-size: .9rem; }
.form-error.show { display: block; }
.form-error a { color: inherit; text-decoration: underline; }

.contact-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px,3vw,40px); box-shadow: var(--shadow-sm); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line__icon { color: var(--green); width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; }
.contact-line__icon svg { width: 100%; height: 100%; stroke-width: 1.6; }
.contact-line__k { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--brand); font-weight: 600; }
.contact-line__v { font-size: 1.08rem; font-weight: 600; margin-top: 2px; }
.contact-line__v a:hover { color: var(--green); }

/* ---------- 16. CTA band ---------- */
.cta-band { background: var(--green); color: #fff; border-radius: var(--radius); padding: clamp(34px,5vw,64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem,3vw,2.6rem); max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.82); margin-top: .6rem; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--green-900); color: rgba(238,241,232,.8); padding-top: clamp(56px,7vw,90px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand img { height: 88px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: rgba(238,241,232,.62); font-size: .95rem; max-width: 32ch; }
.footer h4 { font-family: var(--brand); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: rgba(255,255,255,.55); font-weight: 600; margin-bottom: 18px; }
.footer__col a, .footer__col li { display: block; padding: 6px 0; color: rgba(238,241,232,.8); font-size: .96rem; transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 26px; font-size: .85rem; color: rgba(238,241,232,.5); }
.footer__bottom a:hover { color: #fff; }
.footer__dev { display: flex; align-items: center; gap: 10px; }
.footer__dev img { height: 26px; filter: brightness(0) invert(1); opacity: .8; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid.cols-4 { grid-template-columns: repeat(2,1fr); }
  .poi-grid { grid-template-columns: repeat(3,1fr); }
  .units { grid-template-columns: repeat(2,1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .unit-hero { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 920px) {
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .split { grid-template-columns: 1fr; }
  .split .media-frame { order: -1; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stats--5 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .cards-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .poi-grid { grid-template-columns: repeat(2,1fr); }
  .tile-grid.cols-2 { grid-template-columns: 1fr; }
  .unit-facts { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --nav-h: 66px; }
  .brand__sub { display: none; }
  .units { grid-template-columns: 1fr; }
  .cards-grid.cols-3 { grid-template-columns: 1fr; }
  .cards-grid.cols-4 { grid-template-columns: 1fr; }
  .poi-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__dev { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .footer__dev img { height: 30px; }
  .unit-table thead { display: none; }
  .unit-table, .unit-table tbody, .unit-table tr, .unit-table td { display: block; width: 100%; }
  .unit-table tr { border-bottom: 1px solid var(--line); padding: 12px 4px; }
  .unit-table td { border: 0; padding: 4px 4px; display: flex; justify-content: space-between; gap: 12px; }
  .unit-table td::before { content: attr(data-label); color: var(--muted); font-family: var(--brand); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
}
