/* Nabrzeże: arkusz strony publicznej.
   Tokeny i zasady opisane w DESIGN.md. Skala pisma: 14 · 16 · 18 · 21 · 24 · 30 · 36 · 48 · 60 · 72. */

@font-face { font-family: "Bona Nova"; src: url("../fonts/bona-nova-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bona Nova"; src: url("../fonts/bona-nova-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bona Nova"; src: url("../fonts/bona-nova-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --demo-h: 54px;
  --baltyk: #0F3D45;
  --baltyk-2: #17525C;
  --gleboka: #0A2F35;
  --piana: #EEF3F1;
  --piana-2: #E2EAE7;
  --tynk: #FFFFFF;
  --bursztyn: #E3A84A;
  --bursztyn-2: #EDBC6A;
  --bursztyn-c: #9A6212;
  --atrament: #16282B;
  --mgla: #5B6B6B;
  --linia: #D6E0DC;
  --linia-2: #B9C7C2;
  --ok: #2B6A4C;
  --ok-tlo: #E3EFE8;
  --err: #A3322A;

  --font-display: "Bona Nova", "Iowan Old Style", Georgia, serif;
  --font-text: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --r-photo: 6px;
  --r-ui: 4px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--piana); color: var(--atrament);
  font: 400 16px/1.6 var(--font-text); font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.012em; text-wrap: balance; font-variant-numeric: lining-nums; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
ul, ol { padding: 0; }
dl, dd { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--baltyk); outline-offset: 3px; }
[hidden] { display: none !important; }

.icon { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--baltyk); color: #fff; padding: 10px 16px; border-radius: var(--r-ui); }
.skip:focus { top: 12px; }

/* ── Przyciski i linki ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ui); border: 1px solid transparent;
  font: 600 15px/1.1 var(--font-text); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--baltyk); color: #fff; }
.btn--primary:hover { background: var(--baltyk-2); }
.btn--amber { background: var(--bursztyn); color: var(--atrament); font-size: 16px; min-height: 54px; padding: 0 26px; }
.btn--amber:hover { background: var(--bursztyn-2); }
.btn--ghost { background: transparent; border-color: var(--linia-2); color: var(--atrament); }
.btn--ghost:hover { border-color: var(--atrament); }
.btn--light { background: var(--tynk); color: var(--atrament); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-strong { font-weight: 600; text-decoration: underline; text-decoration-color: var(--linia-2); }
.link-strong:hover { text-decoration-color: currentColor; }
.link-quiet { opacity: .9; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linia); background: var(--tynk); cursor: pointer; }
.icon-btn .icon { width: 20px; height: 20px; }
.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linia-2); background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s; }
.round-btn:hover { border-color: var(--atrament); background: var(--tynk); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn .icon { width: 20px; height: 20px; }

/* ── Nagłówek ──────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--piana); border-bottom: 1px solid var(--linia); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header); padding: 0 var(--gutter); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.brand__name { font: 400 29px/1 var(--font-display); color: var(--baltyk); letter-spacing: -.015em; margin: 0; }
.brand__tag { font-size: 12.5px; color: var(--mgla); margin-top: 5px; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--linia-2); }
.nav a[aria-current="page"] { border-bottom-color: var(--baltyk); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; padding-left: 26px !important; border-left: 1px solid var(--linia); border-bottom: 0 !important; }
.site-header__tools { display: flex; gap: 8px; }
.tool { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linia-2); background: transparent; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color .2s; }
.tool:hover, .tool[aria-current="page"] { border-color: var(--atrament); }
.tool .icon { width: 18px; height: 18px; }
.tool__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--baltyk); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.tool--menu { display: none; }

@media (max-width: 1279px) { .nav__phone { display: none !important; } }
@media (max-width: 1099px) {
  :root { --header: 64px; }
  .site-header__inner { gap: 16px; }
  .tool--menu { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--hb, var(--header)) 0 0 0; z-index: 59; background: var(--piana);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 16px var(--gutter) 32px;
    overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav a { font: 400 32px/1.2 var(--font-display); padding: 12px 0; border-bottom: 1px solid var(--linia); }
  .nav a[aria-current="page"] { color: var(--baltyk); border-bottom-color: var(--linia); }
  .nav__phone { display: inline-flex !important; font: 600 18px/1 var(--font-text) !important; border: 0 !important; padding: 24px 0 0 !important; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .brand__tag { display: none; }
  .brand__name { font-size: 26px; }
  .tool__label { display: none; }
  .tool { padding: 0 12px; }
}

/* ── Menu nad zdjęciem (strona główna) ─────────────────────────────── */
.site-header--over { position: sticky; top: 0; margin-bottom: calc(var(--header) * -1); transition: background-color .3s, border-color .3s, color .3s; }
.site-header--over:not(.is-solid) { background: transparent; border-bottom-color: transparent; color: #fff; }
.site-header--over:not(.is-solid) .brand__name { color: #fff; }
.site-header--over:not(.is-solid) .brand__tag { color: rgba(255, 255, 255, .78); }
.site-header--over:not(.is-solid) .nav a:hover { border-bottom-color: rgba(255, 255, 255, .55); }
.site-header--over:not(.is-solid) .nav a[aria-current="page"] { border-bottom-color: #fff; }
.site-header--over:not(.is-solid) .nav__phone { border-left-color: rgba(255, 255, 255, .3); }
.site-header--over:not(.is-solid) .tool { border-color: rgba(255, 255, 255, .5); }
.site-header--over:not(.is-solid) .tool:hover { border-color: #fff; }
.site-header--over:not(.is-solid) :focus-visible { outline-color: #fff; }
.site-header--over .brand__name, .site-header--over .brand__tag { transition: color .3s; }

/* ── Baner ─────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: max(620px, min(calc(100svh - 56px - var(--demo-h)), 940px)); overflow: hidden; background: var(--gleboka); color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 24, 28, .84) 0%, rgba(6, 24, 28, .6) 34%, rgba(6, 24, 28, .12) 68%, rgba(6, 24, 28, 0) 100%),
    linear-gradient(0deg, rgba(6, 24, 28, .72) 0%, rgba(6, 24, 28, 0) 42%),
    linear-gradient(180deg, rgba(6, 24, 28, .6) 0%, rgba(6, 24, 28, 0) 20%);
}
.hero__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header) + 56px) var(--gutter) 172px; }
.hero__title { font: 400 clamp(50px, 1.4rem + 5.6vw, 118px)/.98 var(--font-display); letter-spacing: -.026em; max-width: 9.6em; margin-bottom: 30px; }
.hero__lead { font-size: clamp(18px, 1rem + .35vw, 21px); line-height: 1.55; max-width: 33em; color: rgba(255, 255, 255, .9); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero :focus-visible { outline-color: #fff; }
.btn--light { background: #fff; color: var(--atrament); }
.btn--light:hover { background: var(--piana); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.hero .btn { min-height: 54px; padding: 0 28px; font-size: 16px; }
.hero__photo-note { position: absolute; right: var(--gutter); bottom: 140px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 320px; text-align: right; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .82); text-decoration: none; }
.hero__photo-note span:first-child { color: #fff; font-weight: 500; }
.hero__photo-note:hover span:first-child { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: hero-settle 1.8s var(--ease) both; }
  .hero__inner > * { animation: hero-rise .9s var(--ease) both; }
  .hero__inner > :nth-child(2) { animation-delay: .12s; }
  .hero__inner > :nth-child(3) { animation-delay: .22s; }
  @keyframes hero-settle { from { transform: scale(1.12); } to { transform: scale(1.06); } }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
}
@media (max-width: 899px) {
  .hero { min-height: min(92svh, 760px); }
  .hero__inner { padding-bottom: 110px; }
  .hero__photo-note { display: none; }
  .hero__shade { background: linear-gradient(0deg, rgba(6, 24, 28, .88) 0%, rgba(6, 24, 28, .55) 45%, rgba(6, 24, 28, .35) 100%); }
}

/* ── Wyszukiwarka pod banerem ──────────────────────────────────────── */
.finder-wrap { position: relative; z-index: 5; max-width: var(--max); margin: -112px auto 0; padding: 0 var(--gutter); }
.finder { background: var(--tynk); border-radius: 8px; box-shadow: 0 20px 50px rgba(6, 24, 28, .18), 0 2px 6px rgba(6, 24, 28, .08); }
.finder__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding: 14px 16px 2px; }
.finder__tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--piana); }
.finder__tabs label { cursor: pointer; }
.finder__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.finder__tabs span { display: block; padding: 8px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--mgla); transition: background-color .2s, color .2s; }
.finder__tabs input:checked + span { background: var(--baltyk); color: #fff; }
.finder__tabs input:focus-visible + span { outline: 2px solid var(--baltyk); outline-offset: 2px; }
.finder__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--mgla); text-decoration: none; padding: 8px 4px; }
.finder__more:hover { color: var(--atrament); text-decoration: underline; }
.finder__row { display: grid; grid-template-columns: minmax(0, 1.75fr) repeat(3, minmax(0, 1fr)) auto; padding: 8px; }
.finder__cell { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 12px 18px; border-radius: 6px; transition: background-color .15s; }
.finder__cell + .finder__cell::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--linia); }
.finder__cell:hover { background: var(--piana); }
.finder__cell:focus-within { background: var(--piana); outline: 2px solid var(--baltyk); outline-offset: -2px; }
.finder__cell:hover::before, .finder__cell:hover + .finder__cell::before,
.finder__cell:focus-within::before, .finder__cell:focus-within + .finder__cell::before { opacity: 0; }
.finder__cell label { font-size: 13px; font-weight: 600; color: var(--mgla); cursor: pointer; }
.finder__control { display: flex; align-items: center; gap: 8px; }
.finder__control .icon { color: var(--baltyk); width: 18px; height: 18px; }
.finder__cell input[type="search"], .finder__cell select {
  width: 100%; min-height: 0; padding: 2px 0; border: 0; border-radius: 0; background-color: transparent;
  font: 500 17px/1.4 var(--font-text); color: var(--atrament); box-shadow: none; outline: none;
}
.finder__cell input[type="search"]::-webkit-search-cancel-button { display: none; }
.finder__cell select {
  appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B6B' 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 center / 16px;
}
.finder__cell .suggest { min-width: 300px; }
.finder__submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 214px; margin-left: 8px; padding: 0 26px;
  border: 0; border-radius: 6px; background: var(--baltyk); color: #fff; font: 600 16px var(--font-text);
  font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s;
}
.finder__submit:hover { background: var(--baltyk-2); }
.finder__submit .icon { width: 19px; height: 19px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 22px 2px 0; }
.quick__label { margin: 0; font-size: 14.5px; color: var(--mgla); }
.quick ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--linia-2); border-radius: 999px; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: border-color .15s, background-color .15s; }
.quick a span { font-size: 12.5px; color: var(--mgla); font-variant-numeric: tabular-nums; }
.quick a:hover { border-color: var(--atrament); background: var(--tynk); }
@media (max-width: 1099px) {
  .finder__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
  .finder__cell--where { grid-column: 1 / -1; }
  .finder__cell { border: 1px solid var(--linia-2); padding: 10px 14px; }
  .finder__cell + .finder__cell::before { display: none; }
  .finder__submit { grid-column: 1 / -1; margin: 4px 0 0; min-height: 56px; }
}
@media (max-width: 899px) { .finder-wrap { margin-top: -64px; } }
@media (max-width: 560px) {
  .finder__row { grid-template-columns: 1fr 1fr; }
  .finder__cell:nth-child(4) { grid-column: 1 / -1; }
  .finder__head { padding: 12px 12px 0; }
  .finder__more { font-size: 14px; }
  .quick__label { width: 100%; }
}

/* ── Sekcje ────────────────────────────────────────────────────────── */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(34px, 1.3rem + 1.9vw, 54px); flex: 0 1 auto; }
.section-head p { flex: 1 1 360px; max-width: 54ch; color: var(--mgla); margin: 0; font-size: 17px; }

.coast { padding: clamp(64px, 8vw, 120px) 0 clamp(56px, 7vw, 104px); }
.coast .section-head { max-width: var(--max); margin: 0 auto 40px; padding: 0 var(--gutter); }
.coast__nav { display: flex; gap: 8px; }
.coast__list {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  list-style: none; margin: 0; padding: 0 var(--edge) 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 23vw, 330px); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.coast__list::-webkit-scrollbar { display: none; }
.place { position: relative; scroll-snap-align: start; padding-top: 30px; }
/* Linia z punktami: dzielnice ułożone wzdłuż brzegu. */
.place::before { content: ""; position: absolute; top: 7px; left: 0; right: -28px; height: 1px; background: var(--linia-2); }
.place:last-child::before { right: 0; }
.place::after { content: ""; position: absolute; top: 3px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--baltyk); }
.place__link { display: block; text-decoration: none; }
.place__link img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-photo); background: var(--piana-2); transition: filter .4s; }
.place__link:hover img { filter: brightness(1.06) saturate(1.06); }
.place__name { display: block; font: 400 27px/1.15 var(--font-display); margin-top: 16px; }
.place__link:hover .place__name { text-decoration: underline; text-decoration-thickness: 1px; }
.place__blurb { color: var(--mgla); font-size: 15px; line-height: 1.5; margin: 8px 0 12px; }
.place__stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-variant-numeric: tabular-nums; margin: 0; }
.place__stats span:first-child { font-weight: 600; }

.showcase { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 128px); }
.showcase__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
.card--large { grid-column: span 2; grid-row: span 2; }
.card--large .card__media { flex: 1; aspect-ratio: auto; min-height: 340px; }
.card--large .card__title { font-size: clamp(24px, 1rem + 1vw, 30px); }
.card--large .price__value { font-size: 22px; }
@media (max-width: 999px) {
  .showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--large .card__media { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
}
@media (max-width: 640px) {
  .showcase__grid { grid-template-columns: 1fr; }
  .card--large { grid-column: auto; grid-row: auto; }
}

/* ── Karta oferty ──────────────────────────────────────────────────── */
.card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.card__media { position: relative; overflow: hidden; border-radius: var(--r-photo); background: var(--piana-2); aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__noimg { display: grid; place-items: center; height: 100%; color: var(--mgla); font-size: 14px; }
.tag { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 3px; background: var(--piana); color: var(--atrament); font-size: 13px; font-weight: 600; line-height: 1.2; }
.tag--reserved { background: var(--bursztyn); }
.fav {
  position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94);
  cursor: pointer; transition: transform .2s var(--ease);
}
.fav .icon { width: 20px; height: 20px; transition: fill .2s, stroke .2s; }
.fav:hover { transform: scale(1.06); }
.fav[aria-pressed="true"] .icon, [data-fav][aria-pressed="true"] .icon { fill: var(--bursztyn); stroke: var(--bursztyn-c); }
.card__body { display: flex; flex-direction: column; gap: 3px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; font-variant-numeric: tabular-nums lining-nums; }
.price__value { font-size: 20px; font-weight: 600; letter-spacing: -.005em; }
.price__value small { font-size: 14px; font-weight: 500; color: var(--mgla); }
.price__m2 { font-size: 14px; color: var(--mgla); }
.card__title { font: 400 22px/1.22 var(--font-display); margin: 4px 0 0; font-variant-numeric: lining-nums; }
.card__title a { text-decoration: none; }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 1px; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__loc { color: var(--mgla); font-size: 15px; margin: 0; }
.card__near { margin: 6px 0 0; font-size: 14px; color: var(--baltyk); font-weight: 500; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.facts li { padding: 0 12px; border-left: 1px solid var(--linia-2); line-height: 1.25; }
.facts li:first-child { padding-left: 0; border-left: 0; }

.card--row { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 22px; align-items: start; }
.card--row .fav { right: auto; left: calc(44% - 56px); }
.card--row .card__body { padding-top: 2px; }
.card--row .card__title { font-size: 21px; }
.card.is-hot .card__media { outline: 3px solid var(--bursztyn); outline-offset: 2px; }
@media (max-width: 560px) {
  .card--row { grid-template-columns: 1fr; gap: 14px; }
  .card--row .fav { left: auto; right: 12px; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
@media (max-width: 999px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ── Zakładki z ofertami ───────────────────────────────────────────── */
.offers { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 112px) var(--gutter) clamp(64px, 7vw, 104px); }
.offers__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.offers__head h2 { font-size: clamp(34px, 1.3rem + 1.9vw, 54px); }
.tablist { display: flex; gap: 28px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] { display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 0 11px; border: 0; border-bottom: 2px solid transparent; background: none; font: 500 16px var(--font-text); color: var(--mgla); white-space: nowrap; cursor: pointer; transition: color .15s, border-color .15s; }
.tablist [role="tab"] span { font-size: 13px; font-variant-numeric: tabular-nums; }
.tablist [role="tab"]:hover { color: var(--atrament); }
.tablist [role="tab"][aria-selected="true"] { color: var(--atrament); border-bottom-color: var(--baltyk); }
.offers__all { margin: 44px 0 0; }

/* ── Wycena orientacyjna i proces sprzedaży ────────────────────────── */
.valuation { background: var(--tynk); padding: clamp(64px, 8vw, 120px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px clamp(48px, 7vw, 112px); align-items: start; }
.valuation__intro h2 { font-size: clamp(34px, 1.3rem + 1.9vw, 54px); margin-bottom: 18px; }
.valuation__intro > p { font-size: 18px; color: var(--mgla); max-width: 44ch; margin-bottom: 28px; }
.estimator { background: var(--piana); border-radius: 8px; padding: 24px; }
.estimator__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); gap: 0 12px; }
.estimator__result { margin: 4px 0 18px; padding-top: 16px; border-top: 1px solid var(--linia-2); }
.estimator__value { font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
.estimator__note { font-size: 14.5px; color: var(--mgla); margin: 0; max-width: 52ch; }
.valuation__steps h3 { font-size: clamp(26px, 1rem + 1vw, 32px); margin: 8px 0 32px; }
@media (max-width: 899px) { .valuation { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .estimator__fields { grid-template-columns: 1fr 1fr; } .estimator__fields .field:last-child { grid-column: 1 / -1; } }

/* ── Biuro ─────────────────────────────────────────────────────────── */
.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--piana-2); }
.office__photo { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.office__text { align-self: center; max-width: 640px; padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px); }
.office h2 { font-size: clamp(34px, 1.3rem + 1.9vw, 52px); margin-bottom: 16px; }
.office__text > p:first-of-type { font-size: 18px; color: var(--mgla); max-width: 42ch; }
.office__facts { margin: 28px 0; }
.office__facts > div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--linia-2); }
.office__facts dt { color: var(--mgla); }
.office__facts dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.office__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (max-width: 899px) { .office { grid-template-columns: 1fr; } .office__photo { min-height: 0; aspect-ratio: 4 / 3; } }

.process { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; counter-reset: step; }
.process li { counter-increment: step; }
.process li::before { content: counter(step); display: block; font: 400 52px/1 var(--font-display); color: var(--bursztyn-c); margin-bottom: 12px; font-variant-numeric: oldstyle-nums; }
.process h3 { font-size: 24px; margin-bottom: 8px; }
.process p { color: var(--mgla); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; gap: 32px; } }

/* ── Zespół ────────────────────────────────────────────────────────── */
.team-strip { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter); }
.people { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.person__link { display: block; text-decoration: none; }
.person img, .agent-card img, .agent-hero img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--r-photo); filter: grayscale(1) contrast(1.04); background: var(--piana-2); }
.person__name { display: block; font: 400 21px/1.2 var(--font-display); margin-top: 12px; }
.person__link:hover .person__name { text-decoration: underline; text-decoration-thickness: 1px; }
.person__role { color: var(--mgla); font-size: 14px; line-height: 1.45; margin-top: 4px; }
@media (max-width: 999px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }

.team-grid { list-style: none; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 128px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.agent-card h2 { font-size: 30px; margin: 20px 0 4px; }
.agent-card h2 a { text-decoration: none; }
.agent-card h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.agent-card__role { color: var(--baltyk); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.agent-card p { font-size: 15.5px; }
.agent-card__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-weight: 600; }
.agent-card__links a { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 999px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.agent-hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter); display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: end; }
.agent-hero h1 { font-size: clamp(42px, 1.5rem + 2.6vw, 72px); margin: 8px 0 8px; }
.agent-hero__role { color: var(--baltyk); font-weight: 600; font-size: 17px; }
.agent-hero__bio { font-size: 19px; line-height: 1.6; max-width: 56ch; }
.agent-hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) { .agent-hero { grid-template-columns: 1fr; gap: 28px; } .agent-hero img { max-width: 320px; } }

/* ── Strony tekstowe ───────────────────────────────────────────────── */
.page-intro { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(40px, 5vw, 64px); }
.page-intro h1 { font-size: clamp(42px, 1.5rem + 3vw, 76px); max-width: 16ch; margin-bottom: 24px; }
.page-intro__lead { font-size: clamp(18px, 1rem + .35vw, 21px); line-height: 1.55; color: var(--mgla); max-width: 58ch; }
.page-intro--narrow { max-width: 860px; }
.page-intro--narrow h1 { margin-bottom: 32px; }
.page-intro--split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; }
@media (max-width: 899px) { .page-intro--split { grid-template-columns: 1fr; } }
.terms { background: var(--tynk); border-radius: var(--r-photo); padding: 8px 28px; }
.terms > div { padding: 18px 0; border-bottom: 1px solid var(--linia); }
.terms > div:last-child { border-bottom: 0; }
.terms dt { font-size: 14px; color: var(--mgla); margin-bottom: 4px; }
.terms dd { font-weight: 600; font-size: 17px; line-height: 1.4; }

.prose { font-size: 18px; line-height: 1.7; max-width: 66ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 30px; margin: 1.4em 0 .5em; }
.prose a { color: var(--baltyk); }

.sell-steps { background: var(--tynk); padding: clamp(56px, 7vw, 104px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.sell-steps h2 { font-size: clamp(32px, 1.2rem + 1.6vw, 48px); margin-bottom: 40px; }
.sell-steps .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .sell-steps .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sell-steps .process { grid-template-columns: 1fr; } }

.about { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 96px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about h1 { font-size: clamp(40px, 1.5rem + 2.6vw, 68px); margin-bottom: 24px; }
.about .page-intro__lead { margin-bottom: 32px; }
.about__photo { margin: 0; position: sticky; top: calc(var(--header) + 24px); }
.about__photo img { border-radius: var(--r-photo); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__photo figcaption { font-size: 13px; color: var(--mgla); margin-top: 10px; }
.principles { background: var(--tynk); padding: clamp(56px, 7vw, 104px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.principles h2 { font-size: clamp(32px, 1.2rem + 1.6vw, 48px); margin-bottom: 40px; }
.principles dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.principles dt { font: 400 26px/1.2 var(--font-display); margin-bottom: 10px; }
.principles dd { color: var(--mgla); }
@media (max-width: 899px) { .about { grid-template-columns: 1fr; } .about__photo { position: static; } .principles dl { grid-template-columns: 1fr; } }

.credits { list-style: none; margin: 24px 0 32px; display: grid; gap: 16px; }
.credits li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; background: var(--tynk); border-radius: var(--r-photo); padding: 12px; }
.credits img { border-radius: 3px; aspect-ratio: 3 / 2; object-fit: cover; }
.credits p { margin: 0; font-size: 15px; }
.credits p:first-child { font-weight: 600; margin-bottom: 4px; }
@media (max-width: 520px) { .credits li { grid-template-columns: 1fr; } }

.error-page { max-width: 760px; margin: 0 auto; padding: clamp(64px, 10vw, 140px) var(--gutter); }
.error-page__code { font: 400 clamp(96px, 14vw, 180px)/.9 var(--font-display); color: var(--bursztyn-c); margin-bottom: 24px; font-variant-numeric: oldstyle-nums; }
.error-page h1 { font-size: clamp(36px, 1.4rem + 2vw, 56px); margin-bottom: 16px; }
.error-page p { font-size: 18px; color: var(--mgla); }
.error-page__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Formularze ────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-size: 14.5px; font-weight: 600; }
.field legend { margin-bottom: 10px; }
.field__opt { font-weight: 400; color: var(--mgla); }
.field__hint { font-size: 14px; color: var(--mgla); margin: -2px 0 2px; }
.field__error { color: var(--err); font-size: 14px; margin: 2px 0 0; font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"],
input[type="date"], input[type="password"], textarea, .select select {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--linia-2); border-radius: var(--r-ui);
  background: var(--tynk); font: 400 16px/1.4 var(--font-text); color: var(--atrament);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:hover, textarea:hover, .select select:hover { border-color: var(--mgla); }
input:focus, textarea:focus, .select select:focus { outline: none; border-color: var(--baltyk); box-shadow: 0 0 0 3px rgba(15, 61, 69, .16); }
::placeholder { color: #7E8C8B; opacity: 1; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--err); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; }
.select--inline select { min-height: 44px; width: auto; font-size: 15px; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400 !important; cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--baltyk); flex: none; }
.field--check { margin-bottom: 14px; }
.field--check .check span { color: var(--atrament); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }
.form__group { margin-bottom: 12px; }
.form__group > legend { font: 400 24px/1.2 var(--font-display); margin-bottom: 18px; }
.form__group > legend + .form__note { margin: -10px 0 16px; color: var(--mgla); font-size: 15px; }

.form-section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px 80px; }
.form-section__intro h2 { font-size: clamp(32px, 1.2rem + 1.6vw, 48px); margin-bottom: 16px; }
.form-section__intro p { font-size: 18px; color: var(--mgla); max-width: 44ch; }
.form-section__alt { font-size: 16px !important; color: var(--atrament) !important; }
.form-section__alt a { font-weight: 600; }
.form-section .form, .form-section .sent { background: var(--tynk); border-radius: var(--r-photo); padding: clamp(24px, 3vw, 40px); }
.form-section--plain { display: block; padding: 0; }
.form-section--plain h2 { font-size: 32px; margin-bottom: 20px; }
@media (max-width: 899px) { .form-section { grid-template-columns: 1fr; } }

.sent { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-photo); background: var(--ok-tlo); color: var(--ok); font-weight: 500; }
.sent .icon { width: 24px; height: 24px; flex: none; stroke-width: 2.25; }
.sent--large { font-size: 18px; }
.sent:focus { outline: none; }

.flash { max-width: var(--max); margin: 16px auto 0; padding: 12px 18px; border-radius: var(--r-ui); background: var(--tynk); border-left: 4px solid var(--baltyk); }
.flash--error { border-left-color: var(--err); }

/* ── Lista ofert z mapą ────────────────────────────────────────────── */
.page-listings .site-footer { display: none; }
.listings { display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(0, .92fr); align-items: start; min-height: calc(100vh - var(--header)); }
.filters { position: sticky; top: var(--header); height: calc(100vh - var(--header)); overflow-y: auto; padding: 24px 24px 48px var(--gutter); border-right: 1px solid var(--linia); background: var(--piana); scrollbar-width: thin; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filters__head h2 { font-size: 28px; }
.filters__close { display: none; }
.filters__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 8px; }
.filters__actions .link-quiet { font-size: 15px; }
.js .filters__actions .btn { display: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--piana-2); border-radius: 999px; margin-bottom: 22px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 9px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s; }
.segmented input:checked + span { background: var(--baltyk); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--baltyk); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linia-2); background: var(--tynk); font-size: 14.5px; font-weight: 500; transition: border-color .15s, background-color .15s, color .15s; }
.pills--tight .pill span { min-width: 48px; justify-content: center; }
.pill:hover span { border-color: var(--atrament); }
.pill input:checked + span { background: var(--baltyk); border-color: var(--baltyk); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--baltyk); outline-offset: 2px; }
.checks { display: grid; gap: 10px; }
.districts .checks { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.range legend { grid-column: 1 / -1; }
.field--search { position: relative; }
.search-input { position: relative; }
.search-input .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mgla); }
.search-input input { padding-left: 42px; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: 4px 0 0; background: var(--tynk); border: 1px solid var(--linia-2); border-radius: var(--r-ui); box-shadow: 0 10px 28px rgba(10, 47, 53, .14); overflow: hidden; }
.suggest li { padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; }
.suggest li strong { font-weight: 600; }
.suggest li span { font-size: 13.5px; color: var(--mgla); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--piana); }

.results { padding: 28px clamp(20px, 2.4vw, 36px) 72px; min-width: 0; }
.results__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 16px; }
.results__head h1 { font-size: clamp(30px, 1rem + 1.4vw, 42px); max-width: 20ch; }
.results__count { color: var(--mgla); margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.results__tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn--filters, .btn--map { display: none; min-height: 44px; padding: 0 16px; }
.badge-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--baltyk); color: #fff; font-size: 12.5px; }
.when-map { display: none; }
[data-view="map"] .when-map { display: inline-flex; gap: .55em; align-items: center; }
[data-view="map"] .when-list { display: none; }
.when-list { display: inline-flex; gap: .55em; align-items: center; }
.chips { min-height: 0; margin-bottom: 20px; }
.chips__list { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linia-2); background: var(--tynk); font-size: 14px; text-decoration: none; }
.chip .icon { width: 14px; height: 14px; }
.chip:hover { border-color: var(--atrament); }
.chip--clear { border-color: transparent; background: none; text-decoration: underline; }
.result-list { display: flex; flex-direction: column; gap: 28px; }
.results.is-loading [data-results] { opacity: .45; transition: opacity .2s; }
.map-pane { position: sticky; top: var(--header); height: calc(100vh - var(--header)); }
.map { width: 100%; height: 100%; background: #DCE5E2; }
.drawer-scrim { position: fixed; inset: 0; z-index: 69; background: rgba(10, 47, 53, .4); }

.empty { background: var(--tynk); border-radius: var(--r-photo); padding: clamp(28px, 4vw, 48px); max-width: 640px; }
.empty h2 { font-size: 30px; margin-bottom: 12px; }
.empty p { color: var(--mgla); }
.empty__ideas { list-style: none; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 600; }

.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pager ol { list-style: none; display: flex; gap: 4px; margin: 0; }
.pager a, .pager span[aria-current] { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: var(--r-ui); text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 500; }
.pager a:hover { background: var(--piana-2); }
.pager span[aria-current] { background: var(--baltyk); color: #fff; }
.pager li[aria-hidden] { display: inline-grid; place-items: center; width: 24px; }
.pager__step { display: inline-flex !important; gap: 6px; padding: 0 14px !important; border: 1px solid var(--linia-2); }

@media (max-width: 1279px) {
  .listings { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(400px, 92vw); height: 100%;
    padding: 20px 24px 40px; border-right: 0; box-shadow: 0 0 40px rgba(10, 47, 53, .25);
    transform: translateX(-102%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .filters__close { display: inline-grid; }
  .js .filters__actions .btn { display: inline-flex; width: 100%; }
  .btn--filters { display: inline-flex; }
}
@media (max-width: 999px) {
  .listings { display: block; }
  .map-pane { display: none; }
  [data-view="map"] .map-pane { display: block; position: fixed; inset: var(--hb, var(--header)) 0 0 0; z-index: 40; height: auto; }
  .btn--map { display: inline-flex; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; background: var(--atrament); color: #fff; border-color: var(--atrament); box-shadow: 0 6px 20px rgba(10, 47, 53, .3); border-radius: 999px; }
  .btn--map:hover { border-color: var(--atrament); }
  .results { padding-bottom: 104px; }
}

/* Pinezki z ceną na mapie */
.pin-wrap { background: none; border: 0; }
.pin {
  position: absolute; transform: translate(-50%, calc(-100% - 6px)); white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; background: var(--tynk); color: var(--atrament);
  font: 600 13px/1 var(--font-text); font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(10, 47, 53, .3), 0 0 0 1px rgba(10, 47, 53, .1); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); box-shadow: 1px 1px 1px rgba(10, 47, 53, .15); z-index: -1; }
.pin.is-active, .pin:hover { background: var(--baltyk); color: #fff; z-index: 1000; }
.pin--dot { padding: 0; width: 20px; height: 20px; background: var(--baltyk); border: 4px solid var(--tynk); transform: translate(-50%, -50%); }
.pin--dot::after { display: none; }
.map-pop img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.map-pop div { padding: 10px 14px 12px; }
.map-pop strong { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.map-pop a { display: block; font: 400 17px/1.25 var(--font-display); color: var(--atrament); text-decoration: none; margin: 2px 0; }
.map-pop a:hover { text-decoration: underline; }
.map-pop span { font-size: 13px; color: var(--mgla); }

/* ── Szczegóły oferty ──────────────────────────────────────────────── */
.property { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.property__head { padding: 24px 0 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; font-size: 14.5px; color: var(--mgla); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--linia-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.property__titlebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.property__titlebar h1 { font-size: clamp(36px, 1.3rem + 2.4vw, 62px); max-width: 20ch; }
.property__address { display: flex; align-items: center; gap: 8px; color: var(--mgla); margin: 12px 0 0; font-size: 16.5px; }
.property__actions { display: flex; gap: 8px; }
.property__actions .btn { min-height: 44px; padding: 0 16px; }
.status-note { display: inline-block; background: var(--bursztyn); color: var(--atrament); padding: 6px 12px; border-radius: 3px; font-size: 14.5px; font-weight: 600; margin-bottom: 16px; }

.gallery { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: min(66vh, 640px); min-height: 360px; border-radius: var(--r-photo); overflow: hidden; }
.gallery__item { position: relative; padding: 0; border: 0; background: var(--piana-2); cursor: zoom-in; overflow: hidden; min-height: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.025); }
.gallery__item--main { grid-row: 1 / 3; }
.gallery__item:focus-visible { outline: 3px solid var(--bursztyn); outline-offset: -3px; }
.gallery__all { position: absolute; right: 16px; bottom: 16px; min-height: 44px; box-shadow: 0 2px 10px rgba(10, 47, 53, .2); }
.gallery--n1 { grid-template-columns: 1fr; }
.gallery--n2 { grid-template-columns: 2fr 1fr; }
.gallery--n2 .gallery__item:nth-child(2) { grid-row: 1 / 3; }
.gallery--n3 { grid-template-columns: 2fr 1fr; }
.gallery--n4 .gallery__item:nth-child(4) { grid-column: 2 / 4; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr !important; grid-template-rows: auto; height: auto; min-height: 0; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .gallery__item { display: none; }
  .gallery__item--main { display: block; aspect-ratio: 4 / 3; grid-row: auto; }
}

.property__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); gap: 40px clamp(40px, 5vw, 80px); margin-top: 40px; align-items: start; }
.property__main > section { margin-top: 56px; }
.property__main h2 { font-size: 34px; margin-bottom: 20px; }
.property__main h3 { font-size: 24px; margin: 32px 0 14px; }
.keyfacts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--linia); border: 1px solid var(--linia); border-radius: var(--r-photo); overflow: hidden; margin-bottom: 40px; }
.keyfacts > div { flex: 1 1 auto; background: var(--tynk); padding: 16px 18px; }
.keyfacts dt { font-size: 13.5px; color: var(--mgla); margin-bottom: 4px; }
.keyfacts dd { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.005em; line-height: 1.25; }
.keyfacts dd small { font-size: 14px; font-weight: 500; color: var(--mgla); }
.property__lead { font: 400 clamp(22px, 1rem + .7vw, 27px)/1.4 var(--font-display); max-width: 36ch; margin-bottom: 28px; color: var(--baltyk); }
.spec > div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--linia); }
.spec dt { color: var(--mgla); }
.spec dd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.spec--loose > div { padding: 16px 0; }
.features { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.features li { display: flex; align-items: center; gap: 10px; }
.features .icon { color: var(--baltyk); stroke-width: 2.25; }
.near { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.near > div { background: var(--tynk); border-radius: var(--r-photo); padding: 16px 18px; }
.near dt { font-size: 13.5px; color: var(--mgla); margin-bottom: 4px; }
.near dd { display: flex; flex-direction: column; gap: 2px; }
.near strong { font-size: 19px; font-weight: 600; }
.near span { font-size: 14.5px; color: var(--mgla); }
.near__note { color: var(--mgla); font-size: 14.5px; }
@media (max-width: 560px) { .near { grid-template-columns: 1fr; } }
.map-label { background: none; border: 0; }
.map-label span { position: absolute; transform: translate(-50%, calc(-100% - 8px)); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--baltyk); color: #fff; font: 600 12.5px/1.2 var(--font-text); box-shadow: 0 1px 3px rgba(10, 47, 53, .3); }
.map-label span::before { content: ""; position: absolute; left: 50%; bottom: -10px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--baltyk); border: 2px solid #fff; }
.map--detail { height: 380px; border-radius: var(--r-photo); overflow: hidden; margin-top: 16px; }
.calc { background: var(--tynk); border-radius: var(--r-photo); padding: clamp(24px, 3vw, 36px); }
.property__main .calc h2 { margin-bottom: 8px; }
.calc__note { color: var(--mgla); font-size: 15px; margin-bottom: 24px; }
.calc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.calc__grid .field { margin-bottom: 8px; }
.calc__grid input { font-variant-numeric: tabular-nums; }
.calc__out { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--linia); }
.calc__out dt { font-size: 13.5px; color: var(--mgla); }
.calc__out dd { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__main dd { font-size: 30px; color: var(--baltyk); letter-spacing: -.01em; }
@media (max-width: 760px) { .calc__grid { grid-template-columns: 1fr 1fr; } .calc__out { grid-template-columns: 1fr 1fr; } .calc__main { grid-column: 1 / -1; } .features { grid-template-columns: 1fr; } }

.property__aside { position: sticky; top: calc(var(--header) + 24px); }
.contact-card { background: var(--tynk); border-radius: var(--r-photo); padding: 28px; border: 1px solid var(--linia); }
.contact-card__price { font-size: 30px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-bottom: 20px; }
.contact-card__price small { font-size: 16px; font-weight: 500; color: var(--mgla); }
.contact-card__h { font-size: 24px; margin: 28px 0 16px; padding-top: 24px; border-top: 1px solid var(--linia); }
.contact-card .sent { margin-top: 24px; }
.agent-mini { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.agent-mini img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r-ui); filter: grayscale(1); }
.agent-mini__name { font: 400 21px/1.2 var(--font-display); margin: 0 0 2px; }
.agent-mini__name a { text-decoration: none; }
.agent-mini__name a:hover { text-decoration: underline; }
.agent-mini__role { font-size: 14px; color: var(--mgla); margin: 0; line-height: 1.4; }
.form--compact .field { margin-bottom: 14px; }
.form--compact textarea { min-height: 96px; }
@media (max-width: 999px) {
  .property__layout { grid-template-columns: 1fr; }
  .property__aside { position: static; }
}
.similar { margin-top: clamp(72px, 9vw, 120px); }
.similar h2 { font-size: clamp(30px, 1.1rem + 1.4vw, 44px); margin-bottom: 32px; }
.agent-hero + .similar { max-width: var(--max); margin: 24px auto 0; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }

/* Galeria pełnoekranowa */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9, 24, 27, .97); color: #fff; }
.lightbox::backdrop { background: rgba(9, 24, 27, .8); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 12px 24px; }
.lightbox__count { margin: 0; font-variant-numeric: tabular-nums; opacity: .85; }
.icon-btn--light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox__stage { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 0 72px 24px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; }
.lightbox__stage figcaption { padding-top: 12px; font-size: 15px; opacity: .8; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .18); }
.lightbox__nav .icon { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox :focus-visible { outline-color: var(--bursztyn); }
@media (max-width: 640px) { .lightbox__stage { padding: 0 8px 80px; } .lightbox__nav { top: auto; bottom: 16px; transform: none; } .lightbox__nav--prev { left: calc(50% - 64px); } .lightbox__nav--next { right: calc(50% - 64px); } }

/* ── Kontakt ───────────────────────────────────────────────────────── */
.contact-layout { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 80px; align-items: start; }
.contact-info .spec { margin-bottom: 28px; }
.contact-info .spec dd a { font-weight: 600; }
.map--contact { height: 340px; border-radius: var(--r-photo); overflow: hidden; }
.contact-layout .form-section .form, .contact-layout .sent { background: var(--tynk); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-photo); }
@media (max-width: 899px) { .contact-layout { grid-template-columns: 1fr; } }

.fav-page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }

/* ── Stopka ────────────────────────────────────────────────────────── */
.site-footer { background: var(--gleboka); color: var(--piana); }
.site-footer :focus-visible { outline-color: var(--bursztyn); }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 48px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand__name { color: var(--piana); font-size: 34px; margin-bottom: 18px; }
.site-footer p { color: #C9D6D3; }
.site-footer ul { list-style: none; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--piana); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__h { font-weight: 600; color: var(--piana) !important; margin-bottom: 16px; }
.site-footer__big { font: 400 28px/1.2 var(--font-display); }
.hours { margin-top: 20px; display: grid; gap: 4px; font-size: 15px; color: #C9D6D3; }
.hours div { display: flex; gap: 12px; }
.hours dt { min-width: 150px; }
.site-footer__legal { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; border-top: 1px solid rgba(238, 243, 241, .14); font-size: 14px; }
.site-footer__legal p { margin: 0; color: #A9BBB7; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__legal a { color: #C9D6D3; }
@media (max-width: 899px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Mapa 3D na stronie głównej ────────────────────────────────────── */
.map3d { padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 8vw, 112px); }
.map3d__intro { max-width: var(--max); margin: 0 auto 32px; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 56px; }
.map3d__intro h2 { font-size: clamp(36px, 1.3rem + 2.4vw, 64px); max-width: 10em; }
.map3d__intro p { flex: 1 1 380px; max-width: 56ch; margin: 0; color: var(--mgla); font-size: 17px; }
.map3d__frame { position: relative; height: min(860px, 90vh); min-height: 600px; overflow: hidden; background: #DCE6E3; isolation: isolate; }
.map3d__map { position: absolute !important; inset: 0; z-index: 0; isolation: isolate; }

/* Pływający panel z filtrami i listą */
.map3d__panel { position: absolute; z-index: 5; top: 24px; bottom: 24px; left: max(24px, calc((100vw - var(--max)) / 2 + var(--gutter) - 24px)); width: 360px; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: rgba(255, 255, 255, .95); box-shadow: 0 24px 60px rgba(6, 24, 28, .2), 0 2px 8px rgba(6, 24, 28, .08); backdrop-filter: blur(14px) saturate(1.2); }
.map3d__filters { display: grid; gap: 12px; padding: 18px 18px 12px; }
.m3-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--piana); }
.m3-seg label { cursor: pointer; }
.m3-seg input { position: absolute; opacity: 0; pointer-events: none; }
.m3-seg span { display: block; padding: 8px 10px; border-radius: 999px; text-align: center; font-weight: 600; font-size: 14.5px; color: var(--mgla); transition: background-color .2s, color .2s; }
.m3-seg input:checked + span { background: var(--baltyk); color: #fff; }
.m3-seg input:focus-visible + span { outline: 2px solid var(--baltyk); outline-offset: 2px; }
.m3-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m3-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--mgla); }
.m3-field select { min-height: 40px; padding: 7px 30px 7px 10px; border: 1px solid var(--linia-2); border-radius: 8px; background: var(--tynk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B6B' 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 8px center / 15px; appearance: none; -webkit-appearance: none; font: 500 14.5px var(--font-text); color: var(--atrament); cursor: pointer; }
.map3d__count { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 18px 12px; border-bottom: 1px solid var(--linia); }
.map3d__count p { margin: 0; font-size: 14px; color: var(--mgla); }
.m3-link { flex: none; padding: 0; border: 0; background: none; font: 600 14px var(--font-text); color: var(--baltyk); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.map3d__list { list-style: none; flex: 1; min-height: 0; margin: 0; padding: 6px; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.m3-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; transition: background-color .15s; }
.m3-item img { width: 76px; height: 57px; object-fit: cover; border-radius: 6px; }
.m3-item:hover, .m3-item.is-hot { background: var(--piana); }
.m3-item.is-active { background: #E2ECEA; box-shadow: inset 3px 0 0 var(--baltyk); }
.m3-item__text { display: flex; flex-direction: column; min-width: 0; }
.m3-item__price { font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.m3-item__title { font: 400 16px/1.25 var(--font-display); font-variant-numeric: lining-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m3-item__near { font-size: 13px; color: var(--baltyk); }

/* Przyciski miast i wycieczki */
.map3d__cities { position: absolute; z-index: 6; top: 24px; left: calc(max(24px, calc((100vw - var(--max)) / 2 + var(--gutter) - 24px)) + 376px); right: 96px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.map3d__cities button, .map3d__controls button { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: rgba(255, 255, 255, .96); color: var(--atrament); box-shadow: 0 2px 10px rgba(6, 24, 28, .16); cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.map3d__cities button { min-height: 42px; padding: 0 16px; border-radius: 999px; font: 600 14.5px var(--font-text); }
.map3d__cities button:hover, .map3d__controls button:hover { transform: translateY(-1px); }
.m3-tour { background: var(--baltyk) !important; color: #fff !important; }
.m3-tour .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.m3-tour .icon--stop, .m3-tour[aria-pressed="true"] .icon--play { display: none; }
.m3-tour[aria-pressed="true"] .icon--stop { display: block; }

/* Pionowy pasek sterowania */
.map3d__controls { position: absolute; z-index: 6; top: 24px; right: 24px; display: flex; flex-direction: column; gap: 6px; }
.map3d__controls button { width: 46px; height: 46px; border-radius: 14px; }
.map3d__controls button .icon { width: 20px; height: 20px; }
.map3d__controls button[aria-pressed="true"] { background: var(--baltyk); color: #fff; }
.map3d__controls [data-m3-needle] { display: grid; place-items: center; transition: transform .1s linear; }
.map3d__controls [data-m3-needle] .icon { color: #C2410C; }
.map3d__sep { height: 6px; }
.map3d__controls .icon--sun { display: none; }
.map3d__controls [data-m3-night][aria-pressed="true"] .icon--sun { display: block; }
.map3d__controls [data-m3-night][aria-pressed="true"] .icon--moon { display: none; }

/* Legenda ceny za m² */
.map3d__legend { position: absolute; z-index: 5; left: calc(max(24px, calc((100vw - var(--max)) / 2 + var(--gutter) - 24px)) + 376px); bottom: 28px; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(6, 24, 28, .14); font-size: 12.5px; color: var(--mgla); }
.map3d__legend-title { font-weight: 600; color: var(--atrament); }
.map3d__legend-scale { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.map3d__legend-bar { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #F3D9A4, #E3A84A 50%, #B4680F); }

/* Pinezki, etykiety, podgląd */
.m3-pin { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.m3-pin span { display: block; padding: 6px 11px; border-radius: 999px; background: var(--tynk); color: var(--atrament); font: 600 13px/1 var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 2px 8px rgba(6, 24, 28, .3); transition: background-color .15s, color .15s, transform .25s var(--ease); }
.m3-pin span::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: inherit; transform: rotate(45deg); z-index: -1; }
.m3-pin.is-hot span, .m3-pin:hover span { background: var(--bursztyn); transform: translateY(-3px); }
.m3-pin.is-active { z-index: 5; }
.m3-has-sel .m3-pin:not(.is-active):not(:hover) { opacity: .4; transition: opacity .3s; }
.m3-pin.is-active span { background: var(--baltyk); color: #fff; transform: translateY(-4px) scale(1.08); }
.m3-pin.is-active::before { content: ""; position: absolute; left: 50%; bottom: -10px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: rgba(15, 61, 69, .45); animation: m3-pulse 1.8s ease-out infinite; }
.m3-far .m3-pin:not(.is-active):not(.is-hot):not(:hover) span, .m3-far.map .m3-pin:not(.is-active):not(:hover) span { width: 14px; height: 14px; padding: 0; font-size: 0; background: var(--baltyk); border: 3px solid #fff; }
.m3-far .m3-pin:not(.is-active):not(.is-hot):not(:hover) span::after, .m3-far.map .m3-pin:not(.is-active):not(:hover) span::after { display: none; }
.m3-label { display: block; padding: 5px 11px; border-radius: 999px; background: var(--baltyk); color: #fff; font: 600 12.5px/1.2 var(--font-text); white-space: nowrap; box-shadow: 0 2px 8px rgba(6, 24, 28, .35); animation: m3-pop .45s var(--ease) both; }
.m3-label--beach { background: #2E7D86; }
.m3-label--walk { background: var(--bursztyn); color: var(--atrament); animation-delay: .3s; }
.m3-preview { position: absolute; z-index: 7; width: 220px; transform: translate(-50%, calc(-100% - 48px)); overflow: hidden; border-radius: 12px; background: var(--tynk); box-shadow: 0 16px 40px rgba(6, 24, 28, .28); pointer-events: none; animation: m3-pop .25s var(--ease) both; }
.m3-preview img { width: 100%; height: 124px; object-fit: cover; }
.m3-preview span { display: block; padding: 0 12px; }
.m3-preview__price { padding-top: 10px !important; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.m3-preview__title { font: 400 16px/1.25 var(--font-display); font-variant-numeric: lining-nums; }
.m3-preview__near { padding-bottom: 10px !important; font-size: 12.5px; color: var(--baltyk); }

/* Karta wybranej oferty */
.m3-card { position: absolute; z-index: 6; right: 88px; bottom: 28px; width: 330px; overflow: hidden; border-radius: 16px; background: var(--tynk); box-shadow: 0 24px 60px rgba(6, 24, 28, .3); animation: m3-card .45s var(--ease) both; }
.m3-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.m3-card__body { padding: 16px 18px 18px; }
.m3-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 2px; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.m3-card__price span { font-size: 13px; font-weight: 500; color: var(--mgla); }
.m3-card h3 { font-size: 21px; margin: 0 0 2px; }
.m3-card h3 a { text-decoration: none; }
.m3-card h3 a:hover { text-decoration: underline; }
.m3-card__loc { margin: 0 0 10px; font-size: 14px; color: var(--mgla); }
.m3-card__near { list-style: none; margin: 0 0 14px; display: grid; gap: 3px; font-size: 14px; }
.m3-card__near strong { color: var(--baltyk); }
.m3-card__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(6, 24, 28, .2); }

/* Podpis wycieczki */
.m3-caption { position: absolute; z-index: 6; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 28px; border-radius: 16px; background: rgba(15, 61, 69, .92); color: #fff; text-align: center; box-shadow: 0 20px 50px rgba(6, 24, 28, .3); pointer-events: none; }
.m3-caption strong { font: 400 clamp(30px, 1rem + 1.6vw, 44px)/1.1 var(--font-display); }
.m3-caption span { font-size: 15px; color: #CFE0DD; font-variant-numeric: tabular-nums; }
.m3-caption.is-in { animation: m3-caption .7s var(--ease) both; }

/* Wczytywanie i brak WebGL */
.map3d__loading, .map3d__fallback { position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--mgla); }
.map3d__loading { background: linear-gradient(110deg, #DCE6E3 30%, #E9F0EE 45%, #DCE6E3 60%) 0 0 / 300% 100%; animation: m3-shimmer 1.6s linear infinite; transition: opacity .6s; }
.map3d__loading span { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-weight: 500; }
.map3d__loading.is-done { opacity: 0; }
.map3d__fallback { background: #DCE6E3; }
.map3d .maplibregl-ctrl-attrib { font-size: 11px; }
.map3d .maplibregl-ctrl-bottom-right { right: 190px; }

/* Wieczór: panel i podpisy zostają jasne, mapa ciemnieje */
.is-night .map3d__frame { background: #14272C; }
.is-night .map3d__legend { background: rgba(20, 39, 44, .9); color: #A9C0BC; }
.is-night .map3d__legend-title { color: #EEF3F1; }

@keyframes m3-card { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes m3-pop { from { opacity: 0; transform: translateY(8px) scale(.92); } }
@keyframes m3-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes m3-caption { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes m3-shimmer { to { background-position: -150% 0; } }

@media (max-width: 1199px) {
  .map3d__cities, .map3d__legend { left: 400px; }
  .m3-card { right: 84px; width: 300px; }
}
@media (max-width: 999px) {
  .map3d__frame { height: auto; min-height: 0; display: grid; grid-template-rows: min(72vh, 620px) auto; overflow: visible; }
  .map3d__map { position: relative !important; inset: auto; grid-row: 1; }
  .map3d__panel { position: static; grid-row: 2; width: auto; border-radius: 0; box-shadow: none; backdrop-filter: none; background: var(--tynk); }
  .map3d__list { max-height: 420px; }
  .map3d__cities { left: 12px; right: 70px; top: 12px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .map3d__cities button { min-height: 38px; padding: 0 13px; font-size: 13.5px; white-space: nowrap; }
  .map3d__controls { top: 12px; right: 12px; }
  .map3d__controls button { width: 42px; height: 42px; border-radius: 12px; }
  .map3d__legend { display: none; }
  .m3-card { left: 10px; right: 10px; bottom: auto; top: calc(min(72vh, 620px) - 12px); transform: translateY(-100%); width: auto; display: grid; grid-template-columns: 112px minmax(0, 1fr); animation: none; }
  .m3-card img { height: 100%; aspect-ratio: auto; }
  .m3-card__body { padding: 10px 44px 12px 12px; }
  .m3-card h3 { font-size: 17px; }
  .m3-card__price { font-size: 16px; }
  .m3-card__loc, .m3-card__near { font-size: 13px; margin-bottom: 8px; }
  .m3-card .btn { min-height: 38px; font-size: 14px; }
  .m3-caption { bottom: auto; top: 64px; padding: 12px 18px; max-width: calc(100% - 24px); }
  .m3-preview { display: none; }
  .map3d .maplibregl-ctrl-bottom-right { right: 0; }
}
@media (max-width: 560px) { .m3-card__near li + li { display: none; } }

/* ── Animacje ──────────────────────────────────────────────────────────
   Jeden zaplanowany moment na wejściu (baner), reszta odpowiada na przewijanie
   i działania. Przy prefers-reduced-motion wszystko jest statyczne (reguła wyżej). */

/* Przejścia między stronami: zdjęcie z karty oferty przechodzi w galerię. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }
::view-transition-group(offer-photo) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(offer-photo), ::view-transition-new(offer-photo) { height: 100%; object-fit: cover; }
.site-header:not(.site-header--over) { view-transition-name: site-header; }
.gallery__item--main img { view-transition-name: offer-photo; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Nagłówek banera: słowa wysuwają się spod maski jedno po drugim. */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title.is-split { animation: none; }
  .js .hero__title.is-split .w > span { animation: word-up 1s var(--ease) both; animation-delay: calc(.15s + var(--i) * .07s); }
  .js .hero__inner > .hero__lead { animation-delay: .55s; }
  .js .hero__inner > .hero__actions { animation-delay: .7s; }
  .js .finder-wrap { animation: hero-rise 1s .85s var(--ease) both; }
  .hero__bg { animation: hero-settle 1.8s var(--ease) both; }
  @keyframes word-up { from { transform: translateY(105%); } }
}

/* Pojawianie się przy przewijaniu (tylko z JavaScriptem i bez ograniczenia ruchu). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Zdjęcia doładowywane w trakcie przewijania pojawiają się płynnie zamiast „wskakiwać”. */
.js img.fade { opacity: 0; transition: opacity .6s ease; }
.js img.fade.is-loaded { opacity: 1; }

/* Zakładki: przesuwany wskaźnik i płynne wejście panelu. */
.tablist { position: relative; }
.tablist__ink { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--baltyk); border-radius: 2px; transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; }
.tablist.has-ink [role="tab"][aria-selected="true"] { border-bottom-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .offers__panel.is-entering .card { animation: hero-rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
}

/* Serduszko: krótkie „puknięcie” po zapisaniu, licznik w nagłówku podskakuje. */
@media (prefers-reduced-motion: no-preference) {
  [data-fav].is-popping .icon { animation: heart-pop .5s var(--ease); }
  .tool__count.is-bumping { animation: bump .45s var(--ease); }
  @keyframes heart-pop { 30% { transform: scale(1.35); } 60% { transform: scale(.92); } }
  @keyframes bump { 40% { transform: scale(1.3); } }
}

/* Przycisk po wciśnięciu lekko się zapada. */
.btn:active, .finder__submit:active, .round-btn:active { transform: scale(.98); }

/* Galeria pełnoekranowa: wejście i zmiana zdjęcia. */
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in .35s var(--ease); }
  .lightbox[open]::backdrop { animation: lb-fade .35s ease; }
  .lightbox__stage img.is-changing { animation: lb-swap .4s var(--ease); }
  @keyframes lb-in { from { opacity: 0; } }
  @keyframes lb-fade { from { opacity: 0; } }
  @keyframes lb-swap { from { opacity: .2; transform: scale(.985); } }
}

/* Pas dzielnic można przeciągać myszą. */
.coast__list.is-draggable { cursor: grab; }
.coast__list.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.coast__list.is-dragging a { pointer-events: none; }

/* Liczby, które się zmieniają (licznik wyników, wycena), lekko pulsują. */
@media (prefers-reduced-motion: no-preference) {
  .is-ticking { animation: tick .35s var(--ease); }
  @keyframes tick { 40% { opacity: .55; transform: translateY(2px); } }
}

/* ── Schowek: porównanie ───────────────────────────────────────────── */
.view-switch { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 28px; border-radius: 999px; background: var(--piana-2); }
.view-switch button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 15px; color: var(--mgla); cursor: pointer; }
.view-switch button .icon { width: 17px; height: 17px; }
.view-switch button[aria-pressed="true"] { background: var(--tynk); color: var(--atrament); box-shadow: 0 1px 3px rgba(10, 47, 53, .12); }
.compare-wrap { position: relative; overflow-x: auto; background: var(--tynk); border-radius: var(--r-photo); border: 1px solid var(--linia); }
.compare-wrap:focus-visible { outline-offset: 2px; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--linia); text-align: left; vertical-align: top; font-size: 15px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { width: 190px; color: var(--mgla); font-weight: 500; position: sticky; left: 0; background: var(--tynk); }
.compare thead th { min-width: 200px; padding-top: 18px; font-weight: 400; }
.compare__offer { display: flex; flex-direction: column; gap: 10px; text-decoration: none; font: 400 19px/1.25 var(--font-display); font-variant-numeric: lining-nums; }
.compare__offer img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.compare__offer:hover span { text-decoration: underline; }
.compare__loc { display: block; margin-top: 4px; font-size: 14px; color: var(--mgla); }
.compare .best { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--bursztyn); color: var(--atrament); font-size: 12px; font-weight: 600; white-space: nowrap; }
.compare .icon--yes { color: var(--ok); stroke-width: 2.4; }
.compare .no { color: #8A9897; }
.compare .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.compare-note { margin-top: 14px; font-size: 14px; color: var(--mgla); }

/* ── Ostatnio oglądane pod wyszukiwarką ────────────────────────────── */
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 22px 2px 0; }
.recent ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.recent__item { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--linia-2); border-radius: 8px; background: var(--tynk); text-decoration: none; max-width: 300px; transition: border-color .15s, transform .2s var(--ease); }
.recent__item:hover { border-color: var(--atrament); transform: translateY(-1px); }
.recent__item img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; }
.recent__item > span { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.recent__item strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.recent__item > span > span { color: var(--mgla); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent + .quick { padding-top: 12px; }

/* ── Pasek kontaktu na telefonie ───────────────────────────────────── */
.mobile-cta { display: none; }
@media (max-width: 999px) {
  .page-property main { padding-bottom: 84px; }
  .mobile-cta { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--tynk); border-top: 1px solid var(--linia); box-shadow: 0 -6px 20px rgba(10, 47, 53, .08); transition: transform .3s var(--ease); }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .mobile-cta p { display: flex; flex-direction: column; flex: 1; min-width: 0; margin: 0; line-height: 1.25; }
  .mobile-cta strong { font-size: 17px; font-variant-numeric: tabular-nums; }
  .mobile-cta p span { font-size: 13px; color: var(--mgla); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-cta .btn { min-height: 46px; padding: 0 16px; }
}

/* ── Wydruk karty oferty ───────────────────────────────────────────── */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .skip, .property__actions, .gallery__all, .crumbs, .location .map, .calc, .similar,
  .mobile-cta, .lightbox, .contact-card form, .contact-card .sent, .fav, .flash { display: none !important; }
  .print-only { display: block; }
  .print-head { border-bottom: 1px solid #999; padding-bottom: 8px; margin-bottom: 14px; font-size: 9.5pt; }
  .print-head p { margin: 0; }
  .property { padding: 0; max-width: none; }
  .property__titlebar h1 { font-size: 26pt; }
  .gallery { height: 230px; grid-template-columns: 2fr 1fr 1fr !important; grid-template-rows: 1fr !important; break-inside: avoid; }
  .gallery__item--main { grid-row: auto !important; }
  .gallery__item:nth-child(n+4) { display: none; }
  .property__layout { display: block; margin-top: 16px; }
  .property__aside { position: static; margin-top: 16px; break-inside: avoid; }
  .contact-card { border: 1px solid #999; }
  .property__main > section { margin-top: 18px; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; }
}

/* ── Mapy wektorowe na podstronach ─────────────────────────────────── */
.vm-dot { position: relative; display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--baltyk); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(6, 24, 28, .4); }
.vm-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--baltyk); animation: m3-pulse 2.2s ease-out infinite; }
.map--off { display: grid; place-items: center; padding: 24px; text-align: center; }
.map--off::after { content: "Mapa wymaga przeglądarki z obsługą WebGL."; color: var(--mgla); font-size: 14.5px; }
.maplibregl-popup-content { padding: 0 !important; overflow: hidden; border-radius: 12px !important; box-shadow: 0 16px 40px rgba(6, 24, 28, .25) !important; font-family: var(--font-text); }
.maplibregl-popup-close-button { top: 8px !important; right: 8px !important; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .95) !important; font-size: 20px; line-height: 1; z-index: 1; }
.maplibregl-popup-tip { display: none; }
.map-pop { width: 240px; }
.map .maplibregl-ctrl-group, .map3d .maplibregl-ctrl-group { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(6, 24, 28, .18); }

/* ── Powiadomienia o nowych ofertach ───────────────────────────────── */
.notify { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 56px; padding: 28px; border-radius: 14px; background: var(--baltyk); color: var(--piana); }
.notify h2 { font-size: clamp(24px, 1rem + .8vw, 30px); margin-bottom: 8px; color: #fff; }
.notify p { color: #C9D9D6; max-width: 56ch; margin: 0; }
.notify__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.notify__form input[type="email"] { border-color: transparent; }
.notify__form .btn--primary { background: var(--bursztyn); color: var(--atrament); min-height: 48px; }
.notify__form .btn--primary:hover { background: var(--bursztyn-2); }
.notify__consent { grid-column: 1 / -1; color: #C9D9D6; font-size: 14px !important; }
.notify__consent input { accent-color: var(--bursztyn); }
.notify :focus-visible { outline-color: var(--bursztyn); }
@media (max-width: 560px) { .notify { padding: 22px; } .notify__form { grid-template-columns: 1fr; } }
.flash--ok { border-left-color: var(--ok); background: var(--ok-tlo); color: var(--ok); }

/* ── Pasek wersji demonstracyjnej ──────────────────────────────────── */
.demo-bar { position: relative; z-index: 61; margin-bottom: -1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: var(--demo-h); padding: 7px 16px; background: linear-gradient(90deg, #08262B, var(--gleboka) 30%, var(--gleboka) 70%, #08262B); color: #fff; text-align: center; }
.demo-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--bursztyn) 20%, var(--bursztyn-2) 50%, var(--bursztyn) 80%, transparent); opacity: .9; }
.demo-bar p { margin: 0; }
.demo-bar__title { display: flex; align-items: center; gap: 12px; font: 400 18px/1.15 var(--font-display); letter-spacing: .015em; }
.demo-bar__mark { width: 6px; height: 6px; background: var(--bursztyn); transform: rotate(45deg); }
.demo-bar__author { font-size: 12.5px; line-height: 1.3; color: #A9C3C0; letter-spacing: .04em; }
@media (prefers-reduced-motion: no-preference) {
  .demo-bar__title { animation: demo-in .9s var(--ease) both; }
  .demo-bar__author { animation: demo-in .9s .15s var(--ease) both; }
  @keyframes demo-in { from { opacity: 0; transform: translateY(-6px); } }
}
@media (max-width: 520px) { .demo-bar__title { font-size: 16.5px; gap: 10px; } }
@media print { .demo-bar { display: none !important; } }
