/* ============================================================
   GREEN PARK POTOCKIEGO — style.css
   Complete CSS: design system, layout, components, animations
   ============================================================ */

/* ─── CSS CUSTOM PROPERTIES ──────────────────────────────── */
:root {
  --font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --filters-font-family: var(--font-family);
  --max-width: 1280px;
  --side-padding: 170px;
  --section-padding: 120px;
  --nav-height: 70px;
  --nav-brand-logo-scale: 88;
  --nav-brand-primary-size: 24px;
  --nav-brand-accent-size: 12px;
  --nav-brand-sep-size: 12px;
}

/* ─── DARK THEME (default) ───────────────────────────────── */
[data-theme="dark"] {
  --green-primary: #284023;
  --gold-accent:   #CAB591;
  --dark-bg:       #1A2A17;
  --light-bg:      #F5F0E8;
  --white:         #FFFFFF;
  --text-body:     #333333;
  --text-muted:    #777777;
}

/* ─── LIGHT THEME ────────────────────────────────────────── */
[data-theme="light"] {
  --green-primary: #3A6032;
  --gold-accent:   #9A7B4F;
  --dark-bg:       #FFFFFF;
  --light-bg:      #F0EDE5;
  --white:         #1A2A17;
  --text-body:     #1A2A17;
  --text-muted:    #555555;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ─── FOCUS VISIBLE ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 3px;
}

/* ─── THEME TOGGLE ───────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid rgba(202,181,145,0.3);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  margin-right: 8px;
}
.theme-toggle:hover {
  background: rgba(202,181,145,0.15);
  border-color: var(--gold-accent);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 20px; height: 20px; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.display-heading {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: 48px; font-weight: 700; color: var(--green-primary); line-height: 1.15; }
h2 { font-size: 32px; font-weight: 600; color: var(--green-primary); line-height: 1.25; }
h3 { font-size: 20px; font-weight: 600; color: var(--green-primary); line-height: 1.35; }

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-accent);
  text-align: center;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-accent);
  opacity: 0.4;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  border: 2px solid var(--green-primary);
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(40, 64, 35, 0.25);
}

.btn-primary:hover {
  background: transparent;
  color: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 64, 35, 0.3);
}

.btn-gold-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold-accent);
  border: 2px solid var(--gold-accent);
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.05em;
}

.btn-gold-outline:hover {
  background: var(--gold-accent);
  color: var(--dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202, 181, 145, 0.3);
}

/* ─── REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal > *:nth-child(1) { transition-delay: 0s; }
.reveal > *:nth-child(2) { transition-delay: 0.1s; }
.reveal > *:nth-child(3) { transition-delay: 0.2s; }
.reveal > *:nth-child(4) { transition-delay: 0.3s; }
.reveal > *:nth-child(5) { transition-delay: 0.4s; }
.reveal > *:nth-child(6) { transition-delay: 0.5s; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 42, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(202, 181, 145, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(26, 42, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 100%;
  gap: 12px;
  flex-shrink: 0;
  min-height: 0;
  padding: 10px 0;
}

.nav-brand[data-brand-mode="image-only"] {
  justify-content: center;
  padding: 0;
}

.nav-brand-logo {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.nav-brand[data-brand-mode="image-only"] .nav-brand-logo {
  width: auto;
  height: calc(var(--nav-height) * var(--nav-brand-logo-scale) / 100);
  max-width: min(280px, 42vw);
  max-height: calc(var(--nav-height) * var(--nav-brand-logo-scale) / 100);
}

.nav-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.nav-brand-text .brand-primary {
  font-size: var(--nav-brand-primary-size);
  line-height: 1;
}

.nav-brand-text .brand-sep {
  font-size: var(--nav-brand-sep-size);
  color: var(--text-muted);
  line-height: 1;
}

.nav-brand-text .brand-accent {
  font-size: var(--nav-brand-accent-size);
  color: var(--gold-accent);
  line-height: 1;
}

.nav-brand-text[hidden] {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-link.active,
.nav-link:hover {
  color: var(--gold-accent);
}

.nav-cta-always {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 13px;
}

#mobile-menu .theme-toggle {
  margin-right: 0;
  margin-top: 8px;
  width: 48px;
  height: 48px;
}

#hamburger-btn {
  display: none;
  color: var(--white);
  background: none;
  border: none;
  padding: 8px;
}

#hamburger-btn svg { width: 28px; height: 28px; }

/* Mobile menu overlay */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

#mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--white);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1;
}
.mobile-menu-close:hover {
  color: var(--gold-accent);
}

#mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

#mobile-menu a:hover {
  color: var(--gold-accent);
}

.mobile-menu-cta {
  margin-top: 16px;
  font-size: 14px !important;
  padding: 12px 32px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. HERO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#hero {
  height: 100vh;
  min-height: 600px;
  /* Neutralne, ciemne tło marki jako baza pod slajdami hero.
     Bez hardcodowanego zdjęcia — dzięki temu nic „starego" nie miga,
     a slajd wczytuje się płynnie na ciemnym tle (loader trzyma do load'u). */
  background: #1A2A17 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(26, 42, 23, 0.3) 0%,
    rgba(26, 42, 23, 0.5) 40%,
    rgba(26, 42, 23, 0.75) 100%
  );
}

/* Hero slideshow (Ken Burns + crossfade) */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(var(--hero-kb-from, 1)) translateZ(0);
  transition: opacity var(--hero-fade, 1500ms) ease-in-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide.kb-in {
  animation: heroKenburns var(--hero-kb-duration, 5000ms) linear infinite alternate;
}
.hero-slide.kb-out {
  animation: heroKenburns var(--hero-kb-duration, 5000ms) linear infinite alternate-reverse;
}
@keyframes heroKenburns {
  from { transform: scale(var(--hero-kb-from, 1)) translateZ(0) rotate(0.001deg); }
  to   { transform: scale(var(--hero-kb-to, 1.1)) translateZ(0) rotate(0.001deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.kb-in,
  .hero-slide.kb-out { animation: none; transform: none; }
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--light-bg), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-content .section-label {
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: 0.25em;
}

.hero-content .display-heading {
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-content .hero-sub {
  color: var(--gold-accent);
  font-size: 20px;
  margin-bottom: 40px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. ABOUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#o-inwestycji {
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 20px;
  text-align: center;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--text-body);
  text-align: center;
}

.about-image-wrap {
  border-radius: 16px;
  overflow: hidden;
}

.about-image {
  width: 100%;
  max-height: 500px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.about-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.about-features li:hover {
  background: rgba(202, 181, 145, 0.08);
  transform: translateX(4px);
}

.about-features li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--gold-accent);
  fill: none;
  stroke-width: 2;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  text-align: center;
  background: var(--white);
  padding: 32px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  border-color: rgba(202, 181, 145, 0.3);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-accent);
  margin-top: 10px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. OFFER / MAP
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#oferta {
  background: var(--dark-bg);
  color: var(--white);
}

#oferta h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 32px;
}

.offer-plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.offer-plan-map {
  min-width: 0;
}

.filters-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: stretch;
  gap: 14px 16px;
  margin-bottom: 24px;
  width: 100%;
  margin-inline: auto;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  font-family: var(--filters-font-family, var(--font-family));
}

.offer-plan-layout .filters-bar {
  margin-bottom: 0;
}

/* Filtry mieszkań ukryte gdy klient kliknie w sekcję (step 2+) — widok skupia się
   na mapie segmentu. JS dodaje klasę `.is-section-view` w renderMap() na podstawie
   mapState.step. Powrót do step 1 ("Wróć do mapy osiedla") przywraca filtry. */
.offer-plan-layout.is-section-view .filters-bar {
  display: none;
}

.apt-list-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  width: 100%;
  margin-inline: auto;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-family: var(--filters-font-family, var(--font-family));
}

#offer-tab-plan[data-filters-placement="left"] .offer-plan-layout,
#offer-tab-plan[data-filters-placement="right"] .offer-plan-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

#offer-tab-plan[data-filters-placement="left"] .filters-bar,
#offer-tab-plan[data-filters-placement="right"] .filters-bar {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
  align-self: start;
}

#offer-tab-plan[data-filters-placement="right"] .filters-bar {
  order: 2;
}

#offer-tab-plan[data-filters-placement="right"] .offer-plan-map {
  order: 1;
}

#oferta .container[data-filters-placement="left"] .apt-list-filters {
  width: 100%;
  margin-inline: auto;
}

#oferta .container[data-filters-placement="right"] .apt-list-filters {
  width: 100%;
  margin-inline: auto;
}

#oferta .container[data-filters-placement="center"] .filters-bar,
#oferta .container[data-filters-placement="center"] .apt-list-filters {
  width: 100%;
  margin-inline: auto;
}

.filters-bar .filter-group {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-width: 100px;
  max-width: none;
}

.filters-bar .filter-group[data-filter-group="floor"],
.filters-bar .filter-group[data-filter-group="status"] {
  grid-column: span 1;
}

.filters-bar .filter-group[data-filter-group="size"],
.filters-bar .filter-group[data-filter-group="price"] {
  grid-column: span 2;
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(5, 12, 8, 0.18);
  border: 1px solid rgba(202,181,145,0.12);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  font-family: inherit;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.filter-group-title {
  font-weight: 700;
  color: var(--gold-accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.filter-group select,
.filter-group input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
}

.filter-group select option {
  background: var(--dark-bg);
  color: #fff;
}

.filter-choice-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-choice-wrap label {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.filter-group input[type="radio"],
.filter-group input[type="checkbox"] {
  accent-color: var(--gold-accent);
  width: 16px;
  height: 16px;
}

.range-stack {
  display: grid;
  gap: 10px;
}

.range-stack label {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
}

.range-stack span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.62);
}

.filter-group input[type="range"] {
  accent-color: var(--gold-accent);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(202,181,145,0.3);
  border-radius: 4px;
  outline: none;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-accent);
  cursor: pointer;
}

.filter-size-label {
  font-size: 13px;
  color: var(--gold-accent);
  min-width: 80px;
  font-weight: 600;
}

.filter-group-search {
  grid-column: 1 / -1;
}

/* Map container */
#map-container {
  min-height: 300px;
  position: relative;
}

/* SVG map step 1 */
.estate-svg {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: block;
}

.section-group {
  cursor: pointer;
  pointer-events: all;
}

.section-group rect.map-cell {
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.section-group rect.map-cell:hover {
  filter: brightness(1.35) drop-shadow(0 0 6px rgba(202,181,145,0.5));
}

.section-group:hover rect.map-cell:not(:hover) {
  opacity: 0.6;
}

.section-group:focus rect.map-cell {
  filter: brightness(1.25);
}

/* ─── MAP TOOLTIP ────────────────────────────────────────── */
.map-tooltip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  background: #1A2A17;
  border: 1px solid rgba(202,181,145,0.35);
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 210px;
  max-width: 520px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  font-family: var(--font-family);
}

.map-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.tt-title {
  color: #CAB591;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.tt-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #F5F0E8;
  line-height: 1.6;
}

.tt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tt-divider {
  height: 1px;
  background: rgba(202,181,145,0.18);
  margin: 7px 0;
}

.tt-price {
  color: #CAB591;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.tt-price-m2 {
  color: #CAB591;
  font-size: 12px;
  opacity: 0.85;
}

.tt-size {
  color: #F5F0E8;
  font-size: 12px;
  opacity: 0.8;
}

.map-counter {
  text-align: center;
  color: var(--gold-accent);
  font-size: 15px;
  margin-top: 16px;
  font-weight: 600;
}

.map-counter strong {
  color: var(--white);
  font-size: 1.1em;
}

.map-hint {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-top: 12px;
}

/* Map step 2 */
.map-step {
  position: relative;
}

/* Przycisk powrotu do planu osiedla / sekcji — wyraźna pigułka żeby klient nie zgubił
   się w widoku sekcji/segmentu. Złota ramka + delikatne tło, hover wypełnia złotem. */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 11px 22px;
  background: rgba(202, 181, 145, 0.10);
  border: 1.5px solid var(--gold-accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(202, 181, 145, 0.18);
}

.btn-back:hover,
.btn-back:focus-visible {
  background: var(--gold-accent);
  color: var(--dark-bg, #0e1f0c);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(202, 181, 145, 0.35);
  outline: none;
}

[data-theme="light"] .btn-back {
  color: var(--gold-deep, var(--gold-accent));
  background: rgba(202, 181, 145, 0.14);
  border-color: var(--gold-deep, var(--gold-accent));
}
[data-theme="light"] .btn-back:hover,
[data-theme="light"] .btn-back:focus-visible {
  background: var(--gold-deep, var(--gold-accent));
  color: #fff;
}

/* Podpowiedź "Plan jest interaktywny — kliknij..." nad mapą planu osiedla.
   Pokazywana TYLKO w step 1 (overview) — w step 2/3 (sekcja/mieszkanie) chowamy
   razem z filtrami przez `.is-section-view`. */
.oferta-click-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 22px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gold-accent);
  background: rgba(202, 181, 145, 0.08);
  border: 1px dashed rgba(202, 181, 145, 0.45);
  border-radius: 12px;
  text-align: center;
  line-height: 1.45;
}
.oferta-click-hint-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.oferta-click-hint.is-hidden {
  display: none;
}
[data-theme="light"] .oferta-click-hint {
  color: var(--gold-deep, var(--gold-accent));
  background: rgba(202, 181, 145, 0.14);
  border-color: rgba(202, 181, 145, 0.55);
}

.map-section-title {
  color: var(--white);
  text-align: center;
  margin-bottom: 20px;
}

.section-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
}

.section-detail-layout {
  display: grid;
  gap: 18px;
}

.section-grid-card,
.section-photo-card,
.seg-photos-gallery {
  padding: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}

.section-photo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-photo-header h4 {
  color: var(--gold-accent);
  margin-bottom: 4px;
}

.section-photo-header p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.section-photo-stage {
  aspect-ratio: var(--map2d-aspect-ratio, 16 / 9);
}

.section-photo-overlay {
  pointer-events: auto;
}

.section-photo-zone,
.section-photo-hotspot {
  cursor: pointer;
}

.section-photo-zone {
  opacity: var(--zone-opacity, 0.48);
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}

.section-photo-zone:hover,
.section-photo-zone.is-active {
  opacity: var(--zone-hover-opacity, 0.78);
  stroke-width: 3.5;
}

.section-photo-hotspot rect {
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.section-photo-hotspot text {
  pointer-events: none;
}

.section-photo-hotspot:hover rect,
.section-photo-hotspot.is-active rect {
  fill: rgba(8,15,12,0.92);
}

.section-photo-hotspot.is-active rect {
  stroke: #E1CCA6;
  stroke-width: 2;
}

.section-photo-hotspot.is-active text:last-of-type {
  fill: #E1CCA6;
}

.grid-labels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.floor-label {
  height: 70px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-accent);
  white-space: nowrap;
}

.grid-cells {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grid-row {
  display: flex;
  gap: 6px;
}

.grid-cell {
  width: 80px;
  height: 70px;
  border-radius: 6px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: var(--white);
  font-family: inherit;
}

.grid-cell:hover:not([disabled]) {
  border-color: var(--gold-accent);
  transform: scale(1.05);
}

.grid-cell.is-photo-focus:not([disabled]) {
  border-color: rgba(202,181,145,0.9);
  box-shadow: 0 0 0 3px rgba(202,181,145,0.18);
}

.grid-cell.is-selected:not([disabled]) {
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 4px rgba(202,181,145,0.22);
  transform: translateY(-1px);
}

.grid-cell[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
}

.grid-cell.cell-premium {
  width: 120px;
}

.cell-id {
  font-size: 11px;
  font-weight: 700;
}

.cell-size {
  font-size: 10px;
  opacity: 0.9;
}

/* Map step 3 — Side-by-side layout */
.step3-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step3-grid-col {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.step3-panel-col {
  flex-shrink: 0;
  width: 360px;
}

.estate-overview-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(202, 181, 145, 0.24);
  border-radius: 12px;
  background: rgba(245, 240, 232, 0.06);
}

.estate-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.estate-overview-header h4 {
  font-size: 15px;
  color: var(--gold-accent);
  margin-bottom: 2px;
}

.estate-overview-header p {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.82);
}

.estate-overview-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(202, 181, 145, 0.18);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estate-overview-map {
  min-height: 220px;
}

.estate-overview-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.76);
}

.estate-overview-pin-ring {
  transform-origin: center;
  animation: estatePinPulse 1.8s ease-out infinite;
}

@keyframes estatePinPulse {
  0% { transform: scale(0.82); opacity: 0.95; }
  70% { transform: scale(1.18); opacity: 0.2; }
  100% { transform: scale(1.18); opacity: 0; }
}

.apartment-panel {
  width: 100%;
  max-height: none;
  overflow: visible;
  background: rgba(12,18,14,0.96);
  border: 1px solid rgba(202,181,145,0.32);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.apartment-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.apartment-panel-below {
  margin-top: 18px;
}

.panel-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--gold-accent);
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-top: 4px;
}

.apt-id-badge {
  background: var(--gold-accent);
  color: var(--dark-bg);
  font-weight: 700;
  font-size: 16px;
  padding: 4px 12px;
  border-radius: 4px;
}

.apt-type-chip {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.chip-standard { background: rgba(76,175,80,0.2); color: #4CAF50; }
.chip-premium  { background: rgba(202,181,145,0.2); color: var(--gold-accent); }

.apt-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.status-available { background: rgba(76,175,80,0.15); color: #4CAF50; }
.status-reserved  { background: rgba(255,152,0,0.15); color: #FF9800; }
.status-sold      { background: rgba(239,83,80,0.15); color: #EF5350; }

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apartment-summary-row {
  flex-wrap: wrap;
  gap: 10px;
}

.apartment-summary-row span {
  color: rgba(255,255,255,0.45);
}

/* Oznaczenia atutów (ogródek/balkon…) w wierszu podsumowania — utrzymaj złoty tekst,
   bo reguła `.apartment-summary-row span` wygrałaby specyficznością nad `.feature-badge`. */
.apartment-summary-row .feature-badge {
  color: var(--gold-accent);
}

/* ── Rozkład pomieszczeń w panelu mieszkania (klient front) ───────────── */
.apt-rooms-wrap {
  margin: 14px 0 6px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(202,181,145,0.18);
  border-radius: 8px;
}
.apt-rooms-title {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold, #CAB591);
  margin-bottom: 8px;
  font-weight: 600;
}
.apt-rooms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--white);
}
.apt-rooms-table th {
  font-weight: 500;
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(202,181,145,0.25);
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.apt-rooms-table td {
  padding: 5px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.apt-rooms-table tbody tr:last-child td {
  border-bottom: none;
}
.apt-rooms-table .apt-rooms-nr {
  width: 28px;
  color: rgba(255,255,255,0.45);
  font-variant-numeric: tabular-nums;
}
.apt-rooms-table .apt-rooms-name {
  text-align: left;
}
.apt-rooms-table .apt-rooms-m2 {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 80px;
}
.apt-rooms-table tfoot td {
  padding-top: 8px;
  border-top: 1px solid rgba(202,181,145,0.35);
  font-weight: 600;
  color: var(--gold, #CAB591);
}
.apt-rooms-table .apt-rooms-total-label {
  text-align: right;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
}
[data-theme="light"] .apt-rooms-wrap {
  background: rgba(26,42,23,0.03);
  border-color: rgba(26,42,23,0.12);
}
[data-theme="light"] .apt-rooms-table {
  color: rgba(26,42,23,0.85);
}
[data-theme="light"] .apt-rooms-table th {
  color: rgba(26,42,23,0.55);
  border-bottom-color: rgba(26,42,23,0.15);
}
[data-theme="light"] .apt-rooms-table .apt-rooms-nr,
[data-theme="light"] .apt-rooms-table .apt-rooms-total-label {
  color: rgba(26,42,23,0.5);
}
[data-theme="light"] .apt-rooms-table td {
  border-bottom-color: rgba(26,42,23,0.06);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--white);
}

.detail-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.detail-price {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: -0.005em;
  line-height: 1.05;
}

.features-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-badge {
  background: rgba(202,181,145,0.12);
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(202,181,145,0.3);
}

.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.panel-actions .btn-primary,
.panel-actions .btn-gold-outline {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  font-size: 13px;
  text-align: center;
}

/* Layout 50/50: Zarezerwuj zajmuje pełną wysokość lewej połowy,
   prawa połowa zawiera ułożone pionowo "Generuj kartę mieszkania" + "Historia cen". */
.panel-actions.panel-actions-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}
.panel-actions.panel-actions-split .panel-action-reserve {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 14px 16px;
}
.panel-actions.panel-actions-split .panel-action-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-actions.panel-actions-split .panel-action-secondary > * {
  flex: 1 1 auto;
}
.panel-actions.panel-actions-split .panel-action-secondary .btn-gold-outline {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
}
.panel-actions.panel-actions-split .panel-action-secondary .btn-toggle-history.is-open {
  background: rgba(202, 181, 145, 0.18);
  border-color: var(--gold-accent);
}

/* Historia cen — wiersze (bez tabeli, bez wykresu) */
.apt-price-history-host {
  margin-top: 14px;
}
.apt-price-history-host-collapsed[hidden] {
  display: none;
}
.apt-price-history-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(202, 181, 145, 0.22);
}
.apt-price-history-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(202, 181, 145, 0.16);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.apt-price-history-date {
  color: var(--gold-accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 88px;
}
.apt-price-history-sep {
  color: rgba(255, 255, 255, 0.35);
}
.apt-price-history-price {
  font-weight: 500;
}
.apt-price-history-prev {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin-left: 4px;
}
.apt-price-history-empty {
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}
[data-theme="light"] .apt-price-history-row {
  color: rgba(0, 0, 0, 0.78);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .apt-price-history-rows {
  border-top-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .apt-price-history-prev,
[data-theme="light"] .apt-price-history-sep,
[data-theme="light"] .apt-price-history-empty {
  color: rgba(0, 0, 0, 0.5);
}

/* Sekcja "Wszystkie mieszkania" (stała, pod planem) */
.all-apartments-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(202, 181, 145, 0.18);
}
.all-apartments-header {
  margin-bottom: 18px;
  text-align: center;
}
.all-apartments-heading {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: 0.02em;
}
.all-apartments-subheading {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .all-apartments-subheading {
  color: rgba(0, 0, 0, 0.55);
}

/* Mobile: 50/50 collapses to stacked column */
@media (max-width: 640px) {
  .panel-actions.panel-actions-split {
    grid-template-columns: 1fr;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. LOCATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#lokalizacja {
  background: var(--light-bg);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.location-text h2 {
  margin-bottom: 24px;
}

.advantage-list {
  list-style: none;
  margin-bottom: 32px;
}

.advantage-list li {
  padding: 8px 0;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.advantage-list li::before {
  content: '•';
  color: var(--gold-accent);
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

#leaflet-map {
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(202, 181, 145, 0.15);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. GALLERY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#galeria {
  background: var(--dark-bg);
}

#galeria h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 40px;
}

.gallery-grid {
  columns: 3;
  column-gap: 12px;
}

.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.4s ease;
}

.gallery-grid figure:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.gallery-grid figure img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,42,23,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-grid figure:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: var(--gold-accent);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.gallery-grid figure:hover .gallery-caption {
  transform: translateY(0);
}

/* ─── LIGHTBOX ─────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 42, 23, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--gold-accent);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold-accent);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-prev svg, .lb-next svg {
  width: 40px;
  height: 40px;
}

/* ─── TYPE SHOWCASE ──────────────────────────────────────────── */
.type-showcase-sub {
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 15px;
}

.type-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.type-tile {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid rgba(202,181,145,0.1);
}
.type-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.1);
  border-color: rgba(202,181,145,0.3);
}

.type-tile-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-primary), var(--dark-bg));
}
.type-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.type-tile:hover .type-tile-thumb img {
  transform: scale(1.05);
}
.type-tile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.type-tile-placeholder span {
  font-size: 48px;
  font-weight: 800;
  color: rgba(202,181,145,0.3);
  letter-spacing: 2px;
}
.type-tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(26,42,23,0.85);
  color: var(--gold-accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.type-tile-info {
  padding: 16px;
}
.type-tile-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.type-tile-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.type-tile-price {
  color: var(--gold-accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.type-tile-avail {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.avail-dot.green { background: #4CAF50; }
.avail-dot.red { background: #EF5350; }

.type-tile-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.type-feat-tag {
  background: rgba(202,181,145,0.15);
  color: var(--gold-accent);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ─── TYPE DETAIL OVERLAY ──────────────────────────────────── */
.type-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.type-detail-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.type-detail-modal {
  background: var(--dark-bg);
  border-radius: 16px;
  max-width: 960px;
  width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(202,181,145,0.2);
}

.type-detail-modal,
.type-detail-modal * {
  color: inherit;
}
.type-detail-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--gold-accent);
  font-size: 30px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}

.type-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.type-detail-left {
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.type-detail-left h4 {
  color: var(--gold-accent);
  font-size: 14px;
  margin: 16px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.type-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.type-detail-gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.type-detail-gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.type-detail-no-images {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.type-detail-right {
  padding: 28px;
}
.type-detail-right h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
}
.type-detail-desc {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.type-detail-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}
.type-stat {
  text-align: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  min-width: 80px;
}
.type-stat-val {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-accent);
}
.type-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.type-detail-price {
  color: var(--gold-accent);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.type-detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.type-badge {
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.type-detail-rooms table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.type-detail-rooms h4,
.type-detail-features h4 {
  color: var(--gold-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.type-detail-rooms td {
  padding: 6px 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.type-detail-rooms td:last-child {
  text-align: right;
  color: var(--gold-accent);
  font-weight: 600;
}
.type-feat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.type-detail-cta {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 10px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. CONTACT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#kontakt {
  background: var(--green-primary);
}

.contact-wrap {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrap.has-both-agents {
  max-width: 1600px;
}

.contact-layout {
  display: grid;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.contact-layout[data-agent-layout="left"],
.contact-layout[data-agent-layout="right"] {
  max-width: 1120px;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.contact-layout[data-agent-layout="right"] #agent-card-container {
  order: 2;
}

.contact-layout[data-agent-layout="right"] .contact-form-panel {
  order: 1;
}

/* Both-sides layout: agent left | form | agent right */
.contact-layout[data-agent-layout="both"] {
  --agent-slot-width: 420px;
  max-width: 1600px;
  grid-template-columns: var(--agent-slot-width, 420px) minmax(320px, 1fr) var(--agent-slot-width, 420px);
}

.contact-layout[data-agent-layout="both"] .agent-card-slot-left {
  order: 1;
}

.contact-layout[data-agent-layout="both"] .contact-form-panel {
  order: 2;
}

.contact-layout[data-agent-layout="both"] .agent-card-slot-right {
  order: 3;
}

/* Hide slots that are not active */
.agent-card-slot:empty {
  display: none;
}

.contact-layout:not([data-agent-layout="both"]) .agent-card-slot-left,
.contact-layout:not([data-agent-layout="both"]) .agent-card-slot-right {
  display: none;
}

.contact-layout[data-agent-layout="both"] #agent-card-container {
  display: none;
}

.contact-layout .agent-card-slot .agent-card {
  margin: 0;
}

/* Force side-slot cards to fit narrow columns */
.contact-layout .agent-card-slot {
  min-width: 0;
  overflow: hidden;
}

.contact-layout .agent-card-slot .agent-card .agent-card-person {
  grid-template-columns: 1fr;
}

.contact-layout .agent-card-slot .agent-card .agent-card-media {
  max-width: 220px;
  margin: 0 auto;
}

.contact-layout .agent-card-slot .agent-card .agent-card-detail-grid {
  grid-template-columns: 1fr;
}

.contact-layout .agent-card-slot .agent-card .agent-card-copy h3 {
  font-size: clamp(22px, 3vw, 30px);
}

.contact-layout .agent-card-slot .agent-card .agent-card-brand {
  flex-wrap: wrap;
}

.contact-layout .agent-card-slot .agent-card .agent-card-website {
  white-space: normal;
  word-break: break-all;
}

.contact-layout .agent-card-slot .agent-card .agent-card-bio {
  max-width: 100%;
  overflow-wrap: break-word;
}

.contact-layout:not(.has-agent) {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.contact-layout #agent-card-container:empty {
  display: none;
}

.contact-layout #agent-card-container .agent-card {
  margin: 0;
}

.contact-form-panel {
  width: 100%;
}

.contact-wrap h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.contact-sub {
  color: var(--gold-accent);
  margin-bottom: 36px;
  font-size: 16px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(202, 181, 145, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.form-group input[readonly] {
  opacity: 0.7;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.form-check input {
  accent-color: var(--gold-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.form-check span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.consent-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 18px;
}

.consent-legal-prefix {
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.03em;
}

.consent-legal-helper {
  margin: -8px 0 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
}

.legal-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255,255,255,0.64);
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  transition: color 0.25s ease, transform 0.25s ease;
}

.legal-link-button:hover {
  color: var(--gold-accent);
  transform: translateX(2px);
}

.legal-link-button.is-inline {
  width: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(202, 181, 145, 0.14);
  color: var(--gold-accent);
  font-size: 12px;
  line-height: 1;
}

.legal-link-button.is-inline:hover {
  transform: none;
  background: rgba(202, 181, 145, 0.22);
}

.btn-submit {
  width: 100%;
  background: var(--gold-accent);
  color: var(--dark-bg);
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 15px rgba(202, 181, 145, 0.3);
}

.btn-submit:hover {
  background: #D9C8A5;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(202, 181, 145, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field-error {
  display: block;
  color: #EF5350;
  font-size: 12px;
  margin-top: 4px;
}

.form-banner {
  padding: 0;
  margin-top: 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease, margin-top 0.3s ease;
}

.form-banner.success {
  max-height: 100px;
  padding: 14px 20px;
  margin-top: 16px;
  background: rgba(76,175,80,0.15);
  color: #4CAF50;
}

.form-banner.error {
  max-height: 100px;
  padding: 14px 20px;
  margin-top: 16px;
  background: rgba(239,83,80,0.15);
  color: #EF5350;
}

.contact-info {
  margin-top: 36px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 2;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(202, 181, 145, 0.25);
  padding: 70px 0 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold-accent);
  border-radius: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--gold-accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 2;
  display: block;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold-accent);
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand svg {
  width: 30px;
  height: 38px;
}

.footer-brand-name,
.footer-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.footer-brand-text .brand-primary {
  color: var(--white);
  font-size: 18px;
  line-height: 1;
}

.footer-brand-text .brand-sep {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
}

.footer-brand-text .brand-accent {
  color: var(--gold-accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1;
}

/* Ikona logo w stopce jest ciemnozielona (Logo.png) — na ciemnym tle stopki
   wybielamy ją, żeby była widoczna i spójna z logotypem hero. */
.footer-brand-logo {
  filter: brightness(0) invert(1);
}

/* Stopka: tylko logo (bez napisu) — powiększone do 220px max. */
.footer-brand-logo-only {
  justify-content: flex-start;
  align-items: center;
}
.footer-brand-logo-only .footer-brand-logo {
  max-width: 220px !important;
  width: 100%;
  height: auto;
}

.footer-tagline {
  color: var(--gold-accent);
  font-size: 13px;
  font-style: italic;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--gold-accent);
  border-top: 1px solid rgba(202,181,145,0.15);
  padding-top: 24px;
}

.footer-credit-link {
  color: var(--gold-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}
.footer-credit-link:hover {
  opacity: 0.75;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── PROGRESSIVE NAVBAR COLLAPSE ────────────────────────── */
/* Step 1: Hide Kontakt first */
@media (max-width: 1200px) {
  .nav-item-hide-1 { display: none; }
  .nav-links { gap: 24px; }
}

/* Step 2: Hide Typy mieszkań */
@media (max-width: 1050px) {
  .nav-item-hide-2 { display: none; }
}

/* Step 3: Hide Lokalizacja, show hamburger */
@media (max-width: 900px) {
  .nav-item-hide-3 { display: none; }
  #hamburger-btn { display: block; }
  .nav-links { gap: 20px; }
}

@media (max-width: 1024px) {
  :root {
    --side-padding: 40px !important;
    --section-padding: 80px;
  }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
  .type-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .display-heading { font-size: 52px; }
  h1 { font-size: 36px; }

  .legal-modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .legal-modal-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(202, 181, 145, 0.12);
    padding: 30px 24px 20px;
  }

  .legal-modal-content {
    padding: 26px 24px 30px;
  }

  .legal-modal-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .legal-modal-tab {
    width: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --side-padding: 20px !important;
    --section-padding: 56px;
  }

  .display-heading { font-size: 36px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  /* ── Navbar mobile ───────────────────────────── */
  #navbar {
    padding: 0 16px;
    height: 60px;
  }
  .nav-links li:not(.nav-item-always) { display: none; }
  #hamburger-btn { display: block; }
  .nav-cta-always {
    font-size: 11px;
    padding: 7px 14px;
  }

  .nav-brand {
    gap: 8px;
    max-width: 65vw;
  }
  .nav-brand-text .brand-primary { font-size: 18px; }
  .nav-brand-text .brand-accent { font-size: 10px; }
  .nav-brand-text .brand-sep { font-size: 10px; }

  /* Mobile menu */
  #mobile-menu a {
    font-size: 20px;
    gap: 24px;
  }

  /* ── Hero ─────────────────────────────────────── */
  #hero {
    min-height: 100svh;
    min-height: 500px;
  }
  .hero-content {
    padding: 0 16px;
  }
  .hero-content .section-label {
    font-size: 11px;
    letter-spacing: 0.15em;
  }
  .hero-content .hero-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-gold-outline {
    width: 100%;
    padding: 14px 20px;
    font-size: 13px;
  }
  .scroll-arrow { bottom: 24px; }

  /* ── Section labels ──────────────────────────── */
  .section-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    gap: 12px;
  }
  .section-label::before,
  .section-label::after {
    width: 28px;
  }

  /* ── About ───────────────────────────────────── */
  .about-text h2,
  .about-text p {
    text-align: left;
  }
  .about-features {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .about-features li {
    font-size: 14px;
    padding: 10px 12px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 20px 12px;
  }
  .stat-number { font-size: 32px; }
  .stat-label { font-size: 11px; }

  /* ── Offer section ───────────────────────────── */
  #oferta { padding-bottom: 32px; }
  #lokalizacja { padding-top: 32px; }
  .offer-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .offer-tab-btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }

  /* Filters */
  .filters-bar,
  .apt-list-filters { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
  .filters-bar .filter-group[data-filter-group="size"],
  .filters-bar .filter-group[data-filter-group="price"] {
    grid-column: span 1;
  }
  .filter-group-search { grid-column: 1 / -1; }
  .filter-group {
    padding: 10px;
  }
  .filter-group select,
  .filter-group input[type="text"] {
    padding: 8px 10px;
    font-size: 13px;
  }
  .filter-group-title {
    font-size: 11px;
  }
  .filter-choice-wrap {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .filter-choice-wrap label {
    padding: 5px 8px;
    font-size: 12px;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Status in own full-width row */
  .filters-bar .filter-group[data-filter-group="status"] {
    grid-column: 1 / -1;
  }
  .filters-bar .filter-group[data-filter-group="status"] .filter-choice-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .filters-bar .filter-group[data-filter-group="status"] .filter-choice-wrap label {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Map grid */
  .grid-cell { width: 56px; height: 52px; }
  .grid-cell.cell-premium { width: 84px; }
  .cell-id { font-size: 10px; }
  .cell-size { font-size: 9px; }
  .section-grid {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  /* Apartment panel */
  .apartment-panel {
    max-height: none;
    border-radius: 14px;
    padding: 18px;
  }
  .detail-price { font-size: 26px; }
  .panel-actions {
    flex-direction: column;
  }
  .panel-actions .btn-primary,
  .panel-actions .btn-gold-outline {
    min-width: 0;
    width: 100%;
  }

  .step3-layout {
    flex-direction: column;
  }
  .step3-panel-col {
    width: 100%;
  }

  /* Price history — mobile */
  .price-history-layout { gap: 16px; }
  .price-history-filters { grid-template-columns: 1fr 1fr; }
  .price-history-chart-wrap { height: 220px; }

  /* ── Location ────────────────────────────────── */
  .location-grid {
    gap: 32px;
  }
  .advantage-list li {
    font-size: 14px;
    padding: 6px 0;
  }
  #leaflet-map {
    height: 300px;
  }

  /* ── Gallery / Type showcase ─────────────────── */
  .gallery-grid { columns: 1; }
  .type-showcase-grid { grid-template-columns: 1fr; }
  .type-showcase-sub { font-size: 14px; margin-bottom: 24px; }
  .type-tile-images {
    grid-template-columns: 1fr;
    height: auto;
  }
  .type-detail-content {
    grid-template-columns: 1fr;
  }
  .type-detail-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 20px;
  }
  .type-detail-right {
    padding: 20px;
  }
  .type-detail-stats {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ── Contact ─────────────────────────────────── */
  .contact-sub { font-size: 14px; margin-bottom: 24px; }
  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 16px; /* prevent iOS zoom */
  }
  .btn-submit {
    padding: 14px;
    font-size: 15px;
  }

  /* Agent card */
  .agent-card-brand {
    flex-direction: column;
    align-items: stretch;
  }
  .agent-card-person,
  .agent-card-detail-grid {
    grid-template-columns: 1fr;
  }
  .agent-card-count-2 .agent-card-people {
    grid-template-columns: 1fr;
  }
  .agent-card-media,
  .agent-card-person .agent-card-media {
    max-width: 200px;
    margin: 0 auto;
  }
  .agent-card-copy h3 {
    font-size: clamp(24px, 5vw, 32px);
  }
  .agent-card-bio { font-size: 14px; }
  .agent-card-shell { padding: 18px; }

  /* ── Footer ──────────────────────────────────── */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 48px 0 32px; }
  .footer-bottom { font-size: 12px; }

  /* ── Consent / Legal ─────────────────────────── */
  .consent-legal-links {
    gap: 6px;
  }

  .legal-modal-overlay {
    padding: 8px;
    align-items: flex-start;
  }

  .legal-modal {
    border-radius: 16px;
    height: auto;
    min-height: min(90vh, 920px);
  }

  .legal-modal-sidebar {
    padding: 24px 18px 16px;
  }

  .legal-modal-sidebar h2 {
    font-size: 24px;
  }

  .legal-modal-content {
    padding: 20px 18px 24px;
  }

  .legal-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  /* ── Diary ───────────────────────────────────── */
  .diary-grid {
    grid-template-columns: 1fr;
  }
  .diary-modal {
    padding: 20px;
    width: 95vw;
  }

  /* ── Buttons ─────────────────────────────────── */
  .btn-primary,
  .btn-gold-outline {
    padding: 12px 24px;
    font-size: 13px;
  }

  /* ── Map tooltip ─────────────────────────────── */
  .map-tooltip {
    max-width: calc(100vw - 32px);
    min-width: 180px;
  }

  /* ── Estate overview ─────────────────────────── */
  .estate-overview-map {
    min-height: 180px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — SMALL MOBILE (≤480px)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
  :root {
    --side-padding: 20px !important;
    --section-padding: 40px;
  }

  .display-heading { font-size: 28px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }

  /* Nav brand compact */
  #navbar { height: 56px; }
  .nav-brand { max-width: 55vw; gap: 6px; }
  .nav-brand-text .brand-primary { font-size: 16px; }
  .nav-brand[data-brand-mode="image-only"] .nav-brand-logo {
    max-width: min(200px, 40vw);
  }

  /* Hero */
  .hero-content .hero-sub { font-size: 14px; }
  .hero-buttons { max-width: 280px; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-gold-outline {
    padding: 12px 16px;
    font-size: 12px;
  }

  /* About features */
  .about-features li {
    font-size: 13px;
    padding: 8px 10px;
    gap: 10px;
  }
  .about-features li svg { width: 18px; height: 18px; }

  /* Stats */
  .stat-card { padding: 16px 10px; border-radius: 10px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 10px; letter-spacing: 0.08em; }

  /* Apartment detail */
  .apt-detail-grid { grid-template-columns: 1fr; }
  .detail-price { font-size: 22px; }

  /* Filters compact */
  .filters-bar,
  .apt-list-filters {
    padding: 10px;
    border-radius: 12px;
  }
  .filter-group {
    padding: 10px;
    border-radius: 12px;
  }
  .filter-group-title { font-size: 11px; }

  /* Map cells even smaller */
  .grid-cell { width: 48px; height: 44px; }
  .grid-cell.cell-premium { width: 72px; }
  .cell-id { font-size: 9px; }
  .cell-size { font-size: 8px; }

  /* Location */
  #leaflet-map { height: 250px; }
  .advantage-list li { font-size: 13px; }

  /* Type tiles compact */
  .type-tile-thumb { height: 160px; }
  .type-tile-info { padding: 12px; }
  .type-tile-name { font-size: 16px; }
  .type-tile-meta { font-size: 12px; }

  /* Type detail */
  .type-detail-modal { width: 96vw; }
  .type-detail-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  /* Agent card compact */
  .agent-card { border-radius: 18px; }
  .agent-card-shell { padding: 14px; gap: 16px; }
  .agent-card-media { max-width: 160px; }
  .agent-card-copy h3 { font-size: clamp(20px, 5vw, 28px); }
  .agent-card-title { font-size: 12px; }
  .agent-card-line { padding: 10px 12px; }

  /* Contact */
  .contact-sub { font-size: 13px; margin-bottom: 20px; }
  .contact-layout:not(.has-agent) { max-width: 100%; }
  .contact-layout,
  .contact-layout[data-agent-layout="left"],
  .contact-layout[data-agent-layout="right"],
  .contact-layout[data-agent-layout="both"] {
    grid-template-columns: 1fr;
  }
  .agent-card { margin-top: 16px; margin-bottom: 12px; }
  .agent-card-shell { padding: 14px; gap: 12px; }
  .agent-card-media { max-width: 140px; }
  .agent-card-detail-grid { gap: 8px; }
  .agent-card-line { padding: 8px 10px; border-radius: 10px; }
  .agent-card-line--email .agent-card-line-value { font-size: 12px; }

  /* Footer */
  footer { padding: 36px 0 24px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
  .footer-col p,
  .footer-col a { font-size: 13px; }

  /* Legal modal very compact */
  .legal-modal { border-radius: 12px; }
  .legal-modal-sidebar { padding: 18px 14px 12px; }
  .legal-modal-content { padding: 16px 14px 20px; }
  .legal-modal-sidebar h2 { font-size: 22px; }
  .legal-modal-tab { padding: 10px 12px; font-size: 13px; }

  /* Diary */
  .diary-modal { padding: 16px; }
  .diary-card-img { height: 160px; }
  .diary-card-body { padding: 12px; }

  /* Lightbox */
  #lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   9. OFFER TABS (3-tab system)
   ═══════════════════════════════════════════════════════════ */
.offer-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(202, 181, 145, 0.2);
}
.offer-tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  position: relative;
  bottom: -2px;
}
.offer-tab-btn:hover { color: rgba(255,255,255,0.8); }
.offer-tab-btn.active {
  color: var(--gold-accent);
  border-bottom-color: var(--gold-accent);
}
.offer-tab-panel { display: none; }
.offer-tab-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   10. PRICE HISTORY (zakładka "Historia cen")
   ═══════════════════════════════════════════════════════════ */
.price-history-container {
  border-radius: 12px;
  background: var(--dark-bg);
  min-height: 500px;
  padding: 20px;
  color: #fff;
}
.price-history-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.price-history-global h3,
.price-history-per-apt h3,
.price-history-recent h3 {
  color: var(--gold-accent);
  font-size: 18px;
  margin-bottom: 12px;
}
.price-history-chart-wrap {
  position: relative;
  height: 320px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 12px;
}
.price-history-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: rgba(255,255,255,0.04);
  padding: 14px;
  border-radius: 8px;
}
.price-history-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.price-history-filters select,
.ph-apt-select select {
  background: rgba(26, 42, 23, 0.7);
  color: #fff;
  border: 1px solid rgba(202, 181, 145, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}
.ph-apt-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.price-history-table-wrap {
  overflow-x: auto;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.price-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-history-table thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(202, 181, 145, 0.3);
  color: var(--gold-accent);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-history-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.price-history-table tbody tr:hover {
  background: rgba(202, 181, 145, 0.06);
}

/* Mini-wykres w modalu mieszkania */
.apt-modal-price-chart-wrap {
  position: relative;
  height: 160px;
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════
   11. APARTMENT LIST TABLE
   ═══════════════════════════════════════════════════════════ */
.apt-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.apt-list-table thead th {
  text-align: left;
  padding: 12px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-accent);
  border-bottom: 2px solid rgba(202, 181, 145, 0.3);
}
.apt-list-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
  cursor: pointer;
}
.apt-list-table tbody tr:hover {
  background: rgba(202, 181, 145, 0.05);
}
.apt-list-table td {
  padding: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

/* Apartment list cards (mobile) */
.apt-list-cards { display: none; }

@media (max-width: 768px) {
  .apt-list-table { display: none; }
  .apt-list-cards { display: grid; gap: 12px; }
  .apt-list-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px;
  }
  .apt-list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  .apt-list-card-id { font-weight: 700; color: var(--gold-accent); }
  .apt-list-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
  }
}

/* List filters */
.apt-list-filters {
  margin-bottom: 16px;
}

.apt-list-empty {
  margin-top: 18px;
  padding: 36px 24px;
  border-radius: 18px;
  border: 1px dashed rgba(202,181,145,0.35);
  background: rgba(255,255,255,0.03);
  text-align: center;
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.72);
}

.apt-list-empty strong {
  font-size: 18px;
  color: #fff;
}

/* Clickable rows in apartment list */
.apt-list-row-clickable { cursor: pointer; transition: background 0.15s; }
.apt-list-row-clickable:hover { background: rgba(202, 181, 145, 0.08); }
.apt-list-card { cursor: pointer; transition: border-color 0.15s; }
.apt-list-card:hover { border-color: var(--gold-accent); }

/* Apartment detail view */
.apt-detail-view { max-width: 640px; margin: 0 auto; }
.apt-detail-back {
  background: none; border: none; color: var(--gold-accent); cursor: pointer;
  font-family: var(--font-family); font-size: 14px; padding: 0; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 4px;
}
.apt-detail-back:hover { text-decoration: underline; }
.apt-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.apt-detail-header h3 { margin: 0; color: #fff; font-size: 22px; }
.apt-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
.apt-detail-item {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 14px;
}
.apt-detail-label { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.apt-detail-value { font-size: 16px; font-weight: 600; color: #fff; }
.apt-detail-price { color: var(--gold-accent); }
.apt-detail-features, .apt-detail-extras, .apt-detail-parking {
  margin-bottom: 20px;
}
.apt-detail-features h4, .apt-detail-extras h4, .apt-detail-parking h4 {
  color: var(--gold-accent); font-size: 14px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.apt-detail-features ul, .apt-detail-extras ul, .apt-detail-parking ul {
  list-style: none; padding: 0; margin: 0;
}
.apt-detail-features li, .apt-detail-extras li, .apt-detail-parking li {
  padding: 6px 0; color: rgba(255,255,255,0.8); font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.apt-detail-reserve { margin-top: 20px; width: 100%; padding: 14px; font-size: 15px; }

@media (max-width: 480px) {
  .apt-detail-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   12. CONSTRUCTION DIARY
   ═══════════════════════════════════════════════════════════ */
#dziennik {
  padding: 80px 0;
  background: var(--light-bg);
}
.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.diary-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}
.diary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  border-color: rgba(202, 181, 145, 0.25);
}
.diary-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.diary-card-body { padding: 16px; }
.diary-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 6px;
}
.diary-card-body p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.diary-date-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 8px;
}
.diary-no-photo {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--green-primary), var(--dark-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  font-size: 40px;
}

/* Diary modal */
.diary-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.diary-modal-overlay.active { opacity: 1; visibility: visible; }
.diary-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}
.diary-modal h2 {
  color: var(--green-primary);
  margin-bottom: 4px;
}
.diary-modal-date {
  color: #888;
  font-size: 14px;
  margin-bottom: 16px;
}
.diary-modal-body {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}
.diary-modal-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.diary-modal-photos img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}
.diary-modal-photos img:hover { transform: scale(1.03); }
.diary-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 8, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1400;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
}

.legal-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal {
  position: relative;
  width: min(1120px, 100%);
  height: min(88vh, 920px);
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 26, 19, 0.98), rgba(9, 18, 14, 0.98));
  border: 1px solid rgba(202, 181, 145, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  margin: auto;
}

.legal-modal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.legal-modal-sidebar {
  padding: 36px 28px;
  border-right: 1px solid rgba(202, 181, 145, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 65%);
  min-height: 0;
}

.legal-modal-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-modal-sidebar h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.legal-modal-intro {
  color: rgba(245, 240, 232, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.legal-modal-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.legal-modal-tab {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(202, 181, 145, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  color: rgba(245, 240, 232, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.legal-modal-tab:hover,
.legal-modal-tab.active {
  border-color: rgba(202, 181, 145, 0.34);
  background: rgba(202, 181, 145, 0.12);
  color: var(--white);
  transform: translateX(3px);
}

.legal-modal-content {
  padding: 36px 36px 42px;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.legal-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.legal-doc-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(202, 181, 145, 0.12);
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.legal-modal-content h3 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.legal-doc-subtitle {
  margin-top: 10px;
  color: rgba(245, 240, 232, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.legal-doc-intro {
  margin-top: 22px;
  color: rgba(245, 240, 232, 0.82);
  font-size: 15px;
  line-height: 1.9;
}

.legal-doc-intro p,
.legal-section-body p {
  margin-bottom: 14px;
}

.legal-doc-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-doc-highlight {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
}

.legal-doc-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.legal-section-card {
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(202, 181, 145, 0.1);
}

.legal-section-card h4 {
  margin-bottom: 10px;
  color: var(--gold-accent);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.legal-section-body {
  color: rgba(245, 240, 232, 0.82);
  font-size: 15px;
  line-height: 1.9;
}

.legal-doc-contact {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(202, 181, 145, 0.09);
  color: rgba(245, 240, 232, 0.86);
  font-size: 14px;
  line-height: 1.75;
}

.legal-doc-contact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-doc-contact a {
  color: var(--white);
}

.legal-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(202, 181, 145, 0.22);
  background: rgba(255,255,255,0.04);
  color: var(--gold-accent);
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

.legal-modal-close:hover {
  background: rgba(202, 181, 145, 0.14);
}

/* ═══════════════════════════════════════════════════════════
   13. AGENT CARD (public)
   ═══════════════════════════════════════════════════════════ */
.agent-card {
  --agent-card-bg: #143122;
  --agent-card-surface: #0f2419;
  --agent-card-accent: #d8bd8b;
  --agent-card-text: #f7f3ea;
  --agent-card-muted: #ced4c8;
  --agent-card-border: #9d8b63;
  --agent-card-overlay: #07120d;
  --agent-card-overlay-opacity: 0.52;
  --agent-card-heading-font: 'Playfair Display', serif;
  --agent-card-body-font: 'DM Sans', sans-serif;
  --agent-card-logo-width: 132px;
  --agent-card-photo-radius: 28px;
  --agent-card-bg-image: none;
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--agent-card-bg);
  color: var(--agent-card-text);
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
  font-family: var(--agent-card-body-font);
}

.agent-card-backdrop,
.agent-card-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.agent-card-backdrop {
  background-image: var(--agent-card-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.62;
}

.agent-card-overlay-layer {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 55%), var(--agent-card-overlay);
  opacity: var(--agent-card-overlay-opacity);
}

.agent-card-shell {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: clamp(22px, 4vw, 32px);
  display: grid;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 58%), var(--agent-card-surface);
  text-align: left;
}

.agent-card-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.agent-card-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.agent-card-logo {
  width: min(100%, var(--agent-card-logo-width));
  max-width: var(--agent-card-logo-width);
  max-height: 70px;
  object-fit: contain;
}

.agent-card-logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agent-card-heading-font);
  font-size: 22px;
  color: var(--agent-card-accent);
  flex-shrink: 0;
}

.agent-card-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agent-card-accent);
}

.agent-card-company {
  font-family: var(--agent-card-heading-font);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
  color: var(--agent-card-text);
}

.agent-card-website {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--agent-card-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.agent-card-website:hover {
  background: rgba(255,255,255,0.08);
}

.agent-card-people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.agent-card-count-2 .agent-card-people {
  grid-template-columns: 1fr 1fr;
}

.agent-card-person {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 20px;
  align-items: start;
}

.agent-card-count-1 .agent-card-person {
  grid-template-columns: minmax(180px, 220px) 1fr;
  align-items: center;
}

.agent-card-layout-stacked .agent-card-person {
  grid-template-columns: 1fr;
}

.agent-card-layout-stacked .agent-card-person .agent-card-media {
  max-width: 220px;
}

.agent-card-count-2.agent-card-layout-stacked .agent-card-person .agent-card-media {
  max-width: 180px;
}

.agent-card-shared-details {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

.agent-card-media {
  width: 100%;
}

.agent-card-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  border-radius: 0;
  box-shadow: none;
}

.agent-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agent-card-heading-font);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--agent-card-accent);
}

.agent-card-copy h3 {
  margin: 0;
  font-family: var(--agent-card-heading-font);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  color: var(--agent-card-text);
}

.agent-card-count-2 .agent-card-copy h3 {
  font-size: clamp(22px, 3vw, 30px);
}

.agent-card-title {
  margin-top: 8px;
  color: var(--agent-card-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-card-count-2 .agent-card-title {
  font-size: 13px;
}

.agent-card-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.agent-card-count-2 .agent-card-person .agent-card-detail-grid {
  grid-template-columns: 1fr;
}

.agent-card-line {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  min-width: 0;
  overflow: hidden;
}

.agent-card-line-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--agent-card-muted);
}

.agent-card-line-value {
  color: var(--agent-card-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-card-line a.agent-card-line-value:hover {
  color: var(--agent-card-accent);
}

.agent-card-bio {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--agent-card-muted);
  line-height: 1.75;
  font-size: 15px;
}

/* ── Compact agent cards on medium screens (1025–1400px) ── */
@media (max-width: 1400px) {
  .contact-wrap.has-both-agents {
    max-width: 100%;
  }

  /* Switch to 2-column: agents side-by-side on top, form below */
  .contact-layout[data-agent-layout="both"] {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot-left { order: 1; }
  .contact-layout[data-agent-layout="both"] .agent-card-slot-right { order: 2; }
  .contact-layout[data-agent-layout="both"] .contact-form-panel {
    order: 3;
    grid-column: 1 / -1;
  }

  /* Hide heavy parts — keep name, title, phone, photo */
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-brand,
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-bio,
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-shared-details,
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-website {
    display: none;
  }

  /* Card shell — more breathing room */
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-shell {
    padding: 22px;
    gap: 18px;
  }

  /* Vertical layout: photo on top, info below */
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-person {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-copy {
    display: block;
  }

  /* Larger photo — centered */
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-media {
    max-width: 140px;
    margin: 0 auto;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-photo,
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-photo-placeholder {
    aspect-ratio: 1;
    border-radius: 50%;
  }

  /* Bigger name */
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-copy h3 {
    font-size: clamp(22px, 2.5vw, 30px);
  }

  /* Title */
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-title {
    font-size: 13px;
    margin-top: 4px;
  }

  /* Detail grid — inline "label: value" rows, no boxes */
  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-detail-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 14px;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-line-label {
    font-size: 13px;
    letter-spacing: 0.06em;
    opacity: 0.7;
    flex-shrink: 0;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-line-label::after {
    content: ':';
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card-line-value {
    font-size: 15px;
    font-weight: 600;
    white-space: normal;
    word-break: break-all;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot .agent-card {
    border-radius: 22px;
  }

  /* Left/right single-agent layouts also go stacked */
  .contact-layout[data-agent-layout="left"],
  .contact-layout[data-agent-layout="right"] {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  .contact-layout,
  .contact-layout[data-agent-layout="left"],
  .contact-layout[data-agent-layout="right"],
  .contact-layout[data-agent-layout="both"] {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot {
    margin-top: 0;
  }

  .contact-layout[data-agent-layout="right"] #agent-card-container,
  .contact-layout[data-agent-layout="right"] .contact-form-panel {
    order: initial;
  }

  .contact-layout[data-agent-layout="both"] .agent-card-slot-left { order: 1; }
  .contact-layout[data-agent-layout="both"] .contact-form-panel { order: 3; }
  .contact-layout[data-agent-layout="both"] .agent-card-slot-right { order: 2; }

  .offer-tabs { overflow-x: auto; }
  .offer-tab-btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
  .price-history-chart-wrap { height: 220px; }
  .price-history-filters { grid-template-columns: 1fr 1fr; }
  .type-showcase-grid {
    grid-template-columns: 1fr;
  }
  .type-tile-images {
    grid-template-columns: 1fr;
    height: auto;
  }
  .type-detail-content {
    grid-template-columns: 1fr;
  }
  .agent-card-brand {
    flex-direction: column;
    align-items: stretch;
  }
  .agent-card-person,
  .agent-card-detail-grid {
    grid-template-columns: 1fr;
  }
  .agent-card-count-2 .agent-card-people {
    grid-template-columns: 1fr;
  }
  .agent-card-media,
  .agent-card-person .agent-card-media {
    max-width: 220px;
    margin: 0 auto;
  }
  .agent-card-copy {
    text-align: left;
  }
  #kontakt .container {
    padding-inline: var(--side-padding, 16px);
  }
  .contact-layout {
    width: 100%;
    margin-inline: 0;
  }
  .contact-layout #agent-card-container .agent-card,
  .contact-layout .agent-card-slot .agent-card {
    margin-top: 0;
  }
}

@media (max-width: 1200px) {
  .filters-bar {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  #offer-tab-plan[data-filters-placement="left"] .offer-plan-layout,
  #offer-tab-plan[data-filters-placement="right"] .offer-plan-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }

  .filters-bar .filter-group[data-filter-group="size"],
  .filters-bar .filter-group[data-filter-group="price"] {
    grid-column: span 2;
  }

  .section-photo-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .offer-plan-layout,
  #offer-tab-plan[data-filters-placement="left"] .offer-plan-layout,
  #offer-tab-plan[data-filters-placement="right"] .offer-plan-layout {
    grid-template-columns: 1fr;
  }

  .filters-bar {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    gap: 10px;
  }

  #offer-tab-plan[data-filters-placement="right"] .filters-bar,
  #offer-tab-plan[data-filters-placement="right"] .offer-plan-map {
    order: initial;
  }

  #oferta .container[data-filters-placement] .filters-bar,
  #oferta .container[data-filters-placement] .apt-list-filters {
    width: 100%;
    margin-inline: auto;
  }

  .filters-bar .filter-group[data-filter-group="size"],
  .filters-bar .filter-group[data-filter-group="price"] {
    grid-column: span 1;
  }

  .filters-bar .filter-group[data-filter-group="status"] {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════════════════════════════════════
   14. LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] #navbar {
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(58,96,50,0.1);
}
[data-theme="light"] .nav-brand-text,
[data-theme="light"] .nav-link { color: var(--green-primary); }
[data-theme="light"] .nav-brand-logo { filter: none; }
[data-theme="light"] #mobile-menu { background: #F5F0E8; }
[data-theme="light"] #mobile-menu a { color: var(--green-primary); }
[data-theme="light"] #hero::before {
  background: linear-gradient(
    180deg,
    rgba(26, 42, 23, 0.2) 0%,
    rgba(26, 42, 23, 0.35) 40%,
    rgba(26, 42, 23, 0.55) 100%
  );
}
[data-theme="light"] #hero::after {
  background: linear-gradient(to top, var(--light-bg), transparent);
}
[data-theme="light"] .hero-content .display-heading {
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .hero-content .hero-sub {
  color: var(--gold-accent);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .hero-content .section-label {
  color: var(--gold-accent);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .hero-content .section-label::before,
[data-theme="light"] .hero-content .section-label::after {
  background: var(--gold-accent);
}
[data-theme="light"] #oferta { background: #F5F0E8; }
[data-theme="light"] #oferta h2 { color: var(--green-primary); }
[data-theme="light"] .map-counter {
  color: #6f5730;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(58,96,50,0.12);
  border-radius: 999px;
  padding: 10px 16px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 28px rgba(58,96,50,0.08);
}
[data-theme="light"] .map-counter strong { color: var(--green-primary); }
[data-theme="light"] .map-section-title { color: var(--green-primary); }
[data-theme="light"] .grid-cell { color: #fff; }
[data-theme="light"] .offer-tab-btn { color: rgba(58,96,50,0.5); }
[data-theme="light"] .offer-tab-btn.active { color: var(--gold-accent); }
[data-theme="light"] #galeria { background: var(--green-primary); }
[data-theme="light"] #galeria h2 { color: #fff; }
[data-theme="light"] #galeria .section-label { color: var(--gold-accent); }
[data-theme="light"] #galeria .section-label::before,
[data-theme="light"] #galeria .section-label::after { background: var(--gold-accent); }
[data-theme="light"] #kontakt { background: var(--green-primary); }
[data-theme="light"] #kontakt .contact-wrap h2 { color: #FFFFFF; }
[data-theme="light"] #kontakt .contact-sub { color: var(--gold-accent); }
[data-theme="light"] #kontakt .form-group label { color: rgba(255,255,255,0.7); }
[data-theme="light"] #kontakt .form-group input,
[data-theme="light"] #kontakt .form-group textarea {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.3);
}
[data-theme="light"] #kontakt .form-group input::placeholder,
[data-theme="light"] #kontakt .form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
[data-theme="light"] #kontakt .form-check span { color: rgba(255,255,255,0.7); }
[data-theme="light"] #kontakt .consent-legal-prefix { color: rgba(255,255,255,0.62); }
[data-theme="light"] #kontakt .consent-legal-helper { color: rgba(255,255,255,0.55); }
[data-theme="light"] #kontakt .legal-link-button.is-inline { color: #1A2A17; background: rgba(255,255,255,0.92); }
[data-theme="light"] #kontakt .legal-link-button.is-inline:hover { background: #FFFFFF; }
[data-theme="light"] #kontakt .contact-info { color: rgba(255,255,255,0.8); }
[data-theme="light"] #kontakt .btn-submit {
  background: var(--gold-accent);
  color: #1A2A17;
}
[data-theme="light"] footer { background: #1A2A17; }
[data-theme="light"] .footer-bottom { color: var(--gold-accent); }
[data-theme="light"] .legal-modal { background: linear-gradient(180deg, rgba(17, 35, 26, 0.98), rgba(13, 26, 19, 0.98)); }
[data-theme="light"] .filters-bar { background: rgba(58,96,50,0.06); border-color: rgba(58,96,50,0.12); }
[data-theme="light"] .apt-list-filters { background: rgba(58,96,50,0.08); border-color: rgba(58,96,50,0.12); }
[data-theme="light"] .filters-bar .filter-group { background: none; border-color: transparent; }
[data-theme="light"] .apt-list-filters .filter-group { background: rgba(255,255,255,0.72); border-color: rgba(58,96,50,0.12); }
[data-theme="light"] .filter-group,
[data-theme="light"] .filter-group label { color: var(--green-primary); }
[data-theme="light"] .filter-group select,
[data-theme="light"] .filter-group input[type="text"] { background: rgba(58,96,50,0.06); color: var(--text-body); border-color: rgba(58,96,50,0.2); }
[data-theme="light"] .filter-choice-wrap label { background: rgba(58,96,50,0.04); border-color: rgba(58,96,50,0.12); }
[data-theme="light"] .apt-list-table td { color: var(--text-body); }
[data-theme="light"] .apt-list-empty { background: rgba(58,96,50,0.04); color: rgba(26,42,23,0.68); border-color: rgba(58,96,50,0.24); }
[data-theme="light"] .apt-list-empty strong { color: var(--green-primary); }
[data-theme="light"] #dziennik { background: #fff; }
[data-theme="light"] .apartment-panel { background: #F5F0E8; border-color: var(--gold-accent); }
[data-theme="light"] .apartment-panel .detail-row { color: var(--text-body); }
[data-theme="light"] .apartment-panel .apartment-summary-row span { color: rgba(26,42,23,0.35); }
[data-theme="light"] .panel-close { color: var(--gold-accent); }
[data-theme="light"] .section-grid-card,
[data-theme="light"] .section-photo-card,
[data-theme="light"] .seg-photos-gallery { background: rgba(255,255,255,0.82); border-color: rgba(58,96,50,0.14); }
[data-theme="light"] .section-photo-header p { color: rgba(26,42,23,0.66); }
[data-theme="light"] .type-tile { background: rgba(255,255,255,0.9); border-color: rgba(58,96,50,0.14); }
[data-theme="light"] .type-tile:hover { background: #FFFFFF; }
[data-theme="light"] .type-tile-name { color: var(--green-primary); }
[data-theme="light"] .type-tile-meta { color: rgba(26,42,23,0.68); }
[data-theme="light"] .type-tile-price { color: #7a6036; }
[data-theme="light"] .type-tile-avail { color: rgba(26,42,23,0.68); }
[data-theme="light"] .type-feat-tag { background: rgba(202,181,145,0.24); color: #6f5730; }
[data-theme="light"] .type-detail-modal {
  background: linear-gradient(180deg, #FFFFFF, #F6F1E7);
  border-color: rgba(58,96,50,0.14);
}
[data-theme="light"] .type-detail-left { border-right-color: rgba(58,96,50,0.12); }
[data-theme="light"] .type-detail-right h2,
[data-theme="light"] .type-detail-no-images,
[data-theme="light"] .type-tile-badge {
  color: var(--green-primary);
}
[data-theme="light"] .type-detail-desc,
[data-theme="light"] .type-stat-label,
[data-theme="light"] .type-badge,
[data-theme="light"] .type-detail-rooms td:first-child,
[data-theme="light"] .type-detail-rooms td {
  color: rgba(26,42,23,0.72);
}
[data-theme="light"] .type-stat {
  background: rgba(58,96,50,0.06);
  border: 1px solid rgba(58,96,50,0.08);
}
[data-theme="light"] .type-stat-val,
[data-theme="light"] .type-detail-price,
[data-theme="light"] .type-detail-rooms td:last-child,
[data-theme="light"] .type-detail-left h4,
[data-theme="light"] .type-detail-rooms h4,
[data-theme="light"] .type-detail-features h4,
[data-theme="light"] .type-detail-close {
  color: #7a6036;
}
[data-theme="light"] .type-badge {
  background: rgba(58,96,50,0.06);
  border: 1px solid rgba(58,96,50,0.08);
}
[data-theme="light"] .type-detail-gallery img:hover { box-shadow: 0 8px 24px rgba(58,96,50,0.18); }
[data-theme="light"] .type-detail-cta.btn-primary {
  color: #FFFFFF;
}
[data-theme="light"] .type-detail-cta.btn-primary:hover {
  color: var(--green-primary);
}

[data-theme="light"] .stat-card {
  background: rgba(255,255,255,0.95);
  border-color: rgba(58,96,50,0.12);
  box-shadow: 0 12px 32px rgba(58,96,50,0.08);
}
[data-theme="light"] .stat-number { color: #24411d; }
[data-theme="light"] .stat-label { color: #7a6036; }

[data-theme="light"] .legal-modal {
  background: linear-gradient(180deg, #FFFFFF, #F6F1E7);
  border-color: rgba(58,96,50,0.14);
}
[data-theme="light"] .legal-modal-sidebar {
  border-right-color: rgba(58,96,50,0.12);
  background: linear-gradient(180deg, rgba(58,96,50,0.04), rgba(255,255,255,0));
}
[data-theme="light"] .legal-modal-sidebar h2,
[data-theme="light"] .legal-modal-content h3,
[data-theme="light"] .legal-section-card h4,
[data-theme="light"] .legal-doc-contact a {
  color: var(--green-primary);
}
[data-theme="light"] .legal-modal-intro,
[data-theme="light"] .legal-doc-subtitle,
[data-theme="light"] .legal-doc-intro,
[data-theme="light"] .legal-section-body,
[data-theme="light"] .legal-doc-contact {
  color: rgba(26,42,23,0.74);
}
[data-theme="light"] .legal-modal-tab {
  background: rgba(58,96,50,0.05);
  border-color: rgba(58,96,50,0.12);
  color: rgba(26,42,23,0.72);
}
[data-theme="light"] .legal-modal-tab:hover,
[data-theme="light"] .legal-modal-tab.active {
  background: rgba(154,123,79,0.14);
  border-color: rgba(154,123,79,0.36);
  color: var(--green-primary);
}
[data-theme="light"] .legal-doc-meta-chip,
[data-theme="light"] .legal-doc-contact strong {
  color: #7a6036;
}
[data-theme="light"] .legal-doc-highlight,
[data-theme="light"] .legal-section-card,
[data-theme="light"] .legal-doc-contact {
  background: rgba(58,96,50,0.05);
  border-color: rgba(58,96,50,0.08);
}
[data-theme="light"] .legal-modal-close {
  background: rgba(58,96,50,0.05);
  border-color: rgba(58,96,50,0.12);
  color: #7a6036;
}

/* Light theme: ensure offer section text stays readable */
[data-theme="light"] #oferta .offer-tab-btn { color: rgba(26,42,23,0.5); }
[data-theme="light"] #oferta .offer-tab-btn.active { color: var(--gold-accent); }
[data-theme="light"] #oferta .filter-group,
[data-theme="light"] #oferta .filter-group label { color: var(--text-body); }
[data-theme="light"] #oferta .filter-group select,
[data-theme="light"] #oferta .filter-group input[type="text"] { color: var(--text-body); }
[data-theme="light"] #oferta .filter-group-title { color: var(--gold-accent); }
[data-theme="light"] .apt-list-table thead th { color: var(--gold-accent); }

/* Light theme: btn-primary on light bg needs correct text */
[data-theme="light"] .btn-primary {
  color: #FFFFFF;
  border-color: var(--green-primary);
}
[data-theme="light"] .btn-primary:hover {
  color: var(--green-primary);
  background: transparent;
}

/* Light theme: hero buttons override (on dark overlay) */
[data-theme="light"] .hero-buttons .btn-primary {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  color: #1A2A17;
}
[data-theme="light"] .hero-buttons .btn-primary:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}
[data-theme="light"] .hero-buttons .btn-gold-outline {
  color: #FFFFFF;
  border-color: #FFFFFF;
}
[data-theme="light"] .hero-buttons .btn-gold-outline:hover {
  background: #FFFFFF;
  color: var(--green-primary);
}

/* ═══════════════════════════════════════════════════════════
   15. SEGMENT PHOTOS GALLERY
   ═══════════════════════════════════════════════════════════ */
.seg-photos-gallery {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(202,181,145,0.2);
}
.seg-photos-group { margin-bottom: 16px; }
.seg-photos-group h4 {
  color: var(--gold-accent);
  font-size: 14px;
  margin-bottom: 8px;
}
.seg-photos-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.seg-photo-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(202,181,145,0.2);
}
.seg-photo-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════════════════════
   2D Zone Map (Plan osiedla with admin zones)
   ═══════════════════════════════════════════════════════════ */
.map2d-zone-wrap {
  position: relative;
  aspect-ratio: var(--map2d-aspect-ratio, 21 / 4);
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
  /* Single-color placeholder dopóki obraz się ładuje — user explicit prosił o jeden
     kolor (nie poprzednią mapę jako "smart" placeholder). */
  background-color: #18261d;
  background-image: none;
}

/* Mobile vertical rotation for wide maps (transform set via JS) */
.map2d-zone-wrap.map2d-mobile-vertical {
  transition: none;
}

/* Hide compass when map is rotated+scaled (would be distorted) */
.map2d-zone-wrap.map2d-mobile-vertical .map-compass {
  display: none;
}

.map2d-zone-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(202, 181, 145, 0.08), rgba(202, 181, 145, 0) 42%),
    linear-gradient(180deg, rgba(26, 42, 23, 0.18), rgba(26, 42, 23, 0.38));
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.map2d-zone-wrap.is-ready::before {
  opacity: 0;
}

.map2d-zone-wrap img,
.map2d-aerial {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  /* Placeholder fade-in: obraz startuje niewidoczny — pod spodem przebija solidny
     placeholder #18261d z .map2d-zone-wrap + gradient z ::before. Po załadowaniu
     (JS dodaje .is-ready) obraz wjeżdża płynnym fade'em. */
  opacity: 0;
  transition: opacity 0.35s ease;
}

.map2d-zone-wrap.is-ready img,
.map2d-zone-wrap.is-ready .map2d-aerial {
  opacity: 1;
}

/* Animowany shimmer dla placeholderu — żeby klient widział że COŚ się dzieje
   nawet przy bardzo wolnym internecie (nie zastanawiał się czy strona zawisła). */
.map2d-zone-wrap:not(.is-ready)::before {
  background:
    linear-gradient(120deg,
      rgba(202, 181, 145, 0.06) 0%,
      rgba(202, 181, 145, 0.16) 50%,
      rgba(202, 181, 145, 0.06) 100%),
    linear-gradient(180deg, rgba(26, 42, 23, 0.22), rgba(26, 42, 23, 0.42));
  background-size: 200% 100%, 100% 100%;
  animation: map2dShimmer 1.8s ease-in-out infinite;
}

@keyframes map2dShimmer {
  0%   { background-position: 100% 0, 0 0; }
  100% { background-position: -100% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .map2d-zone-wrap:not(.is-ready)::before { animation: none; }
}

.map2d-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.16s ease;
}

/* ─── COMPASS INDICATOR ──────────────────────────────────── */
.map-compass {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 48px;
  height: 48px;
  pointer-events: none;
  transform: rotate(var(--compass-angle, 0deg));
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  opacity: 0.92;
  transition: opacity 0.2s;
}

.map-compass .compass-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .map-compass {
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
  }
}

.map2d-zone {
  transition: opacity 0.3s, stroke-width 0.2s;
}
.map2d-zone-shade {
  transition: fill-opacity 0.24s ease, stroke-opacity 0.24s ease, stroke 0.24s ease, filter 0.24s ease;
  filter: saturate(0.82) contrast(0.98);
}
.map2d-shade-zone-group.is-hovered .map2d-zone-shade {
  stroke: rgba(245, 240, 232, 0.92);
  filter: saturate(0.96) contrast(1.04);
}
.map2d-shade-label {
  filter: drop-shadow(0 10px 22px rgba(8, 12, 10, 0.18));
}
.map2d-shade-label-chip {
  fill: rgba(108, 115, 123, 0.2);
  stroke: rgba(245, 240, 232, 0.18);
  stroke-width: 1;
  transition: fill 0.24s ease, stroke 0.24s ease, opacity 0.24s ease;
}
.map2d-shade-label-text {
  fill: rgba(245, 240, 232, 0.82);
  font-weight: 700;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: rgba(34, 38, 42, 0.22);
  stroke-width: 1.4px;
  stroke-linejoin: round;
  transition: fill 0.24s ease, stroke 0.24s ease;
}
.map2d-shade-zone-group.is-hovered .map2d-shade-label-chip {
  fill: rgba(54, 61, 67, 0.58);
  stroke: rgba(255, 255, 255, 0.32);
}
.map2d-shade-zone-group.is-hovered .map2d-shade-label-text {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(16, 20, 24, 0.68);
}
.map-zone-status-layer {
  transition: opacity 0.2s ease;
}
.map-zone-status-pill,
.map2d-zone-label-badge,
.map2d-shade-label {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3));
}
.map2d-zone-label-badge {
  transition: opacity 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.map2d-zone-label-badge.is-hovered {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}
.map-zone-status-pill text {
  letter-spacing: 0.01em;
  paint-order: stroke;
  stroke: rgba(26, 42, 23, 0.72);
  stroke-width: 1.6px;
  stroke-linejoin: round;
}
.map-zone-status-pill .status-pill-header {
  font-weight: 800;
}
.map-zone-status-pill .status-pill-line {
  font-weight: 700;
}
.map-zone-status-pill .status-pill-icon {
  stroke-width: 1.1px;
}

@media (max-width: 768px) {
  .map2d-shade-label-chip {
    fill: rgba(50, 57, 63, 0.56);
    stroke: rgba(255, 255, 255, 0.28);
  }

  .map2d-shade-label-text {
    fill: rgba(255, 255, 255, 0.92);
    stroke: rgba(16, 20, 24, 0.78);
  }
}

/* ═══════════════════════════════════════════════════════════
   LOADING SCREEN (Styles moved to index.html <head>)
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   NAV CONFIG BADGE
   ═══════════════════════════════════════════════════════════ */
.nav-config-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-accent);
  color: var(--dark-bg);
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  margin-left: 6px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   PDF CONFIGURATOR MODAL
   ═══════════════════════════════════════════════════════════ */
.pdf-config-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pdf-config-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pdf-config-modal {
  background: #ffffff;
  border: 1px solid rgba(202, 181, 145, 0.2);
  border-radius: 20px;
  max-width: 850px;
  width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  animation: pdfModalIn 0.4s ease;
}

@keyframes pdfModalIn {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.pdf-config-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f1f1;
  border: 1px solid #e0e0e0;
  color: #1a2a17;
  font-size: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.pdf-config-close:hover {
  background: rgba(239, 83, 80, 0.3);
  transform: scale(1.1);
}

.pdf-config-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
}

@media (max-width: 768px) {
  .pdf-config-layout {
    grid-template-columns: 1fr;
  }
}

.pdf-config-options {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .pdf-config-options {
    border-right: none;
    border-bottom: 1px solid rgba(202, 181, 145, 0.12);
  }
}

.pdf-config-options h2 {
  color: #1a2a17;
  font-size: 24px;
  margin-bottom: 8px;
}

.pdf-config-subtitle {
  color: #666;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.pdf-config-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-config-checkboxes label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
}

.pdf-config-checkboxes label:hover {
  background: rgba(202, 181, 145, 0.1);
  border-color: rgba(202, 181, 145, 0.25);
}

.pdf-config-checkboxes label input[type="checkbox"] {
  accent-color: var(--gold-accent);
  width: 18px;
  height: 18px;
}

.pdf-config-checkboxes label .pdf-opt-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.pdf-config-actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

.pdf-config-actions .btn-primary {
  flex: 1;
  padding: 14px 24px;
  font-size: 15px;
}

.pdf-config-preview {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 0 20px 20px 0;
}

.pdf-config-preview h3 {
  color: rgba(0, 0, 0, 0.4);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  padding: 16px 20px;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0 20px 0 0;
}

.pdf-preview-container {
  flex: 1;
  background: transparent;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 300px;
  overflow-y: auto;
  padding: 30px 40px;
}

.pdf-preview-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pdf-preview-section:last-child {
  border-bottom: none;
}

.pdf-preview-header {
  text-align: center;
  margin-bottom: 20px;
}

.pdf-preview-config-id {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pdf-preview-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a2a17;
  margin: 6px 0;
}

.pdf-preview-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a2a17;
  margin-bottom: 6px;
}

.pdf-preview-text {
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.5;
}

.pdf-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pdf-preview-grid-item {
  font-size: 13px;
  color: #4a4a4a;
}

.pdf-preview-grid-item strong {
  color: #1a1a1a;
}

/* ═══════════════════════════════════════════════════════════
   CONFIGURATIONS DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.configs-dropdown {
  position: fixed;
  top: var(--nav-height);
  right: 20px;
  width: 420px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #1a2a17, #0f1c0d);
  border: 1px solid rgba(202, 181, 145, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: configsDropIn 0.3s ease;
}

@keyframes configsDropIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.configs-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(202, 181, 145, 0.12);
}

.configs-dropdown-header h3 {
  color: #fff;
  font-size: 16px;
  margin: 0;
}

.configs-dropdown-close {
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.configs-dropdown-close:hover {
  color: #fff;
}

.configs-dropdown-list {
  padding: 12px;
}

.config-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}

.config-card:hover {
  background: rgba(202, 181, 145, 0.08);
  border-color: rgba(202, 181, 145, 0.2);
}

.config-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.config-card-id {
  font-size: 11px;
  color: var(--gold-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: monospace;
}

.config-card-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.config-card-apt {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.config-card-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.config-card-option-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(202, 181, 145, 0.12);
  color: var(--gold-accent);
  font-weight: 600;
}

.config-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.config-card-actions button {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.config-card-btn-pdf {
  background: var(--green-primary);
  color: #fff;
  border: 1px solid var(--green-primary);
}

.config-card-btn-pdf:hover {
  background: var(--gold-accent);
  color: var(--dark-bg);
  border-color: var(--gold-accent);
}

.config-card-btn-delete {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-card-btn-delete:hover {
  background: rgba(239, 83, 80, 0.2);
  color: #ef5350;
  border-color: #ef5350;
}

/* Google Maps iframe wrapper */
#google-map-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Footer brand logo */
.footer-brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ============================================================
   ░█▀▄░█▀▀░█▀▀░▀█▀░█▀▀░█▀█░░░█▀▄░█▀▀░█▀▀░█▀▄░█▀▀░█▀▀░█░█
   ░█░█░█▀▀░▀▀█░░█░░█░█░█░█░░░█▀▄░█▀▀░█▀▀░█▀▄░█▀▀░▀▀█░█▀█
   ░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░░░▀░▀░▀▀▀░▀░░░▀░▀░▀▀▀░▀▀▀░▀░▀
   Editorial luxury refresh — 2026-04
   ============================================================ */

:root {
  --max-width: 1320px;
  --side-padding: clamp(24px, 6vw, 96px);
  --section-padding: clamp(80px, 9vw, 140px);
  --nav-height: 76px;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-pill: 999px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,28,13,.05), 0 4px 12px rgba(15,28,13,.05);
  --shadow-md: 0 12px 36px rgba(15,28,13,.10), 0 4px 10px rgba(15,28,13,.05);
  --shadow-lg: 0 32px 80px rgba(15,28,13,.18), 0 8px 24px rgba(15,28,13,.08);
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
}

[data-theme="dark"] {
  --green-primary: #1F3A1B;
  --green-deep: #0F1F0E;
  --green-soft: #2C4828;
  --gold-accent: #C8AB78;
  --gold-soft: #E5D4B0;
  --gold-deep: #9C8255;
  --dark-bg: #131F12;
  --light-bg: #F4EFE5;
  --cream: #FBF8F1;
  --paper: #F8F3E8;
  --white: #FFFFFF;
  --text-body: #2A332A;
  --text-muted: #6B746B;
  --hairline-dark: rgba(202, 181, 145, 0.14);
  --hairline-light: rgba(31, 58, 27, 0.12);
}

[data-theme="light"] {
  --green-primary: #2A4624;
  --green-deep: #1A2A17;
  --green-soft: #3A5C30;
  --gold-accent: #9C7B47;
  --gold-soft: #C8AB78;
  --gold-deep: #6E5430;
  --dark-bg: #FBF8F1;
  --light-bg: #F0EBDE;
  --cream: #FBF8F1;
  --paper: #F4EFE5;
  --white: #1A2A17;
  --text-body: #1A2A17;
  --text-muted: #5A6155;
  --hairline-dark: rgba(31, 58, 27, 0.18);
  --hairline-light: rgba(31, 58, 27, 0.14);
}

/* ─── Refined base ──────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--gold-accent); color: var(--dark-bg); }

/* Scrollbar polish */
html { scrollbar-color: var(--gold-accent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--gold-accent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); background-clip: padding-box; border: 2px solid transparent; }

/* ─── Typography refresh ────────────────────────────────── */
.display-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2, section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

p { line-height: 1.7; }

/* ─── Section labels (eyebrow) ──────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold-accent);
  margin-bottom: 22px;
  padding: 0;
  text-align: center;
  justify-content: center;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
  width: 100%;
}

section { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary,
.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out-quart), box-shadow .35s var(--ease-out-quart), background .35s var(--ease-out-quart), color .35s var(--ease-out-quart), border-color .35s var(--ease-out-quart);
  isolation: isolate;
}

.btn-primary {
  background: var(--gold-accent);
  color: var(--green-deep);
  border: 1.5px solid var(--gold-accent);
  box-shadow: 0 8px 24px rgba(200, 171, 120, 0.28), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-110%);
  transition: transform .9s var(--ease-out-expo);
  z-index: -1;
}

.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(200, 171, 120, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover::before { transform: translateX(110%); }

.btn-gold-outline {
  background: transparent;
  color: var(--gold-accent);
  border: 1.5px solid var(--gold-accent);
  box-shadow: none;
}

.btn-gold-outline:hover {
  background: var(--gold-accent);
  color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200, 171, 120, 0.3);
}

#hero .btn-primary {
  background: var(--white);
  color: var(--green-deep);
  border-color: var(--white);
}
#hero .btn-primary:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  color: var(--green-deep);
}

/* ─── Navigation ────────────────────────────────────────── */
#navbar {
  background: rgba(15, 31, 14, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(202, 181, 145, 0.08);
  padding: 0 var(--side-padding);
  height: var(--nav-height);
  transition: background .4s var(--ease-out-quart), border-color .4s var(--ease-out-quart);
}

#navbar.scrolled {
  background: rgba(15, 31, 14, 0.92);
  border-bottom-color: rgba(202, 181, 145, 0.14);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
}

.nav-link:hover, .nav-link.active { color: var(--gold-accent); }

.nav-cta-always {
  padding: 11px 22px !important;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  border-width: 1.5px !important;
}

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  height: auto;
  position: relative;
  overflow: hidden;
}

#hero::before {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(15,31,14,0.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15,31,14,0.45) 0%, rgba(15,31,14,0.55) 50%, rgba(15,31,14,0.92) 100%);
}

#hero::after {
  height: 180px;
  background: linear-gradient(to top, var(--light-bg) 0%, rgba(244, 239, 229, 0.6) 50%, transparent);
}

.hero-content {
  max-width: 920px;
  padding: 0 24px;
}

.hero-content .section-label {
  color: var(--gold-soft);
  margin-bottom: 28px;
  letter-spacing: 0.4em;
  font-size: 12px;
}
.hero-content .section-label::before,
.hero-content .section-label::after {
  background: var(--gold-soft);
  opacity: 0.6;
  width: 36px;
}

.hero-content .display-heading {
  color: var(--white);
  font-style: normal;
  font-weight: 500;
  margin-bottom: 22px;
  text-shadow: 0 4px 50px rgba(0,0,0,0.35);
}

.hero-content .display-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

.hero-content .hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 22px);
  color: rgba(255,255,255,0.88);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 14px rgba(0,0,0,0.3);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons { gap: 14px; }

.scroll-arrow {
  bottom: 56px;
  opacity: 0.85;
  transition: opacity .3s;
}
.scroll-arrow:hover { opacity: 1; }
.scroll-arrow svg { width: 26px; height: 26px; }

/* ─── About section ─────────────────────────────────────── */
#o-inwestycji {
  background:
    radial-gradient(circle at 90% 10%, rgba(200, 171, 120, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(31, 58, 27, 0.06) 0%, transparent 40%),
    var(--light-bg);
  position: relative;
}

.about-grid {
  grid-template-columns: 1.45fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text .section-label,
.about-text h2 { text-align: left; justify-content: flex-start; }
.about-text .section-label::before { display: none; }

.about-text h2 {
  text-align: left;
  margin-bottom: 24px;
  color: var(--green-primary);
  max-width: 18ch;
}

.about-text > p {
  text-align: left;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 56ch;
}

.about-features {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
  border-top: 1px solid var(--hairline-light);
  padding-top: 12px;
}

.about-features li {
  font-size: 14px;
  padding: 14px 12px;
  color: var(--text-body);
  border-bottom: 1px solid var(--hairline-light);
  border-radius: 0;
  align-items: center;
}

.about-features li:hover {
  background: rgba(200, 171, 120, 0.08);
  transform: none;
  padding-left: 16px;
}

.about-features li svg {
  width: 20px;
  height: 20px;
  margin-top: 0;
  color: var(--gold-accent);
  stroke: currentColor;
}

/* ─── Stats grid ────────────────────────────────────────── */
.stats-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--cream);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  padding: 36px 24px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease-out-quart), box-shadow .5s var(--ease-out-quart), border-color .5s var(--ease-out-quart);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
  transform: scaleX(0.3);
  transform-origin: center;
  transition: transform .6s var(--ease-out-quart);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 171, 120, 0.4);
  box-shadow: var(--shadow-md);
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 64px);
  color: var(--green-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  margin-top: 14px;
  font-weight: 600;
}

/* ─── Offer section ─────────────────────────────────────── */
#oferta {
  background: var(--green-deep);
  position: relative;
}

#oferta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200, 171, 120, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(200, 171, 120, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

#oferta > .container { position: relative; z-index: 1; }

#oferta .section-label,
#oferta h2 { text-align: center; }
#oferta h2 { color: var(--white); margin-bottom: 48px; }

.offer-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  margin: 0 auto 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
}

.offer-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, color .3s;
}

.offer-tab-btn:hover { color: var(--white); }

.offer-tab-btn.active {
  background: var(--gold-accent);
  color: var(--green-deep);
  box-shadow: 0 4px 18px rgba(200, 171, 120, 0.35);
}

.filters-bar,
.apt-list-filters {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.filter-group {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color .25s, background .25s;
}
.filter-group:hover { border-color: rgba(200, 171, 120, 0.18); background: rgba(255,255,255,0.04); }

.filter-group-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-accent);
}

.filter-group select,
.filter-group input[type="text"] {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 13px;
  transition: border-color .25s, background .25s;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
  border-color: var(--gold-accent);
  background: rgba(255,255,255,0.06);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 171, 120, 0.18);
}

/* ─── Type showcase ─────────────────────────────────────── */
#galeria {
  background: var(--light-bg);
}

#galeria .section-label,
#galeria h2 { text-align: center; }
#galeria h2 { color: var(--green-primary); margin-bottom: 16px; }

.type-showcase-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 16px;
  line-height: 1.7;
}

.type-showcase-grid { gap: 28px; }

.type-tile {
  background: var(--cream);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out-quart), box-shadow .5s var(--ease-out-quart), border-color .5s var(--ease-out-quart);
}

.type-tile:hover {
  background: var(--cream);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 171, 120, 0.4);
}

.type-tile-thumb {
  height: 240px;
  background: linear-gradient(135deg, var(--green-soft), var(--green-deep));
}

.type-tile-thumb img { transition: transform .8s var(--ease-out-quart); }
.type-tile:hover .type-tile-thumb img { transform: scale(1.08); }

.type-tile-badge {
  background: rgba(15, 31, 14, 0.9);
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 171, 120, 0.25);
}

.type-tile-info { padding: 24px 24px 26px; }

.type-tile-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--green-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.type-tile-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.type-tile-price {
  color: var(--gold-deep);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.type-tile-avail {
  font-size: 12px;
  color: var(--text-body);
  margin-bottom: 14px;
  font-weight: 500;
}

.type-feat-tag {
  background: rgba(200, 171, 120, 0.12);
  color: var(--gold-deep);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ─── Location section ──────────────────────────────────── */
#lokalizacja {
  background: var(--cream);
}

.location-grid { gap: 72px; align-items: center; }

.location-text .section-label,
.location-text h2 { text-align: left; justify-content: flex-start; }
.location-text .section-label::before { display: none; }
.location-text h2 { text-align: left; margin-bottom: 28px; max-width: 14ch; }

.advantage-list { list-style: none; padding: 0; margin: 0 0 36px; }
.advantage-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  font-size: 16px;
  color: var(--text-body);
  border-bottom: 1px solid var(--hairline-light);
}
.advantage-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 1px;
  background: var(--gold-accent);
}
.advantage-list li:last-child { border-bottom: 1px solid var(--hairline-light); }

#google-map-wrap {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline-light);
}

/* ─── Contact section ───────────────────────────────────── */
#kontakt {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(200, 171, 120, 0.08) 0%, transparent 50%),
    var(--green-deep);
  color: var(--white);
  position: relative;
}

#kontakt h2 { color: var(--white); }
.contact-sub {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 56px;
}

.contact-form-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  backdrop-filter: blur(8px);
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--white);
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-accent);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(200, 171, 120, 0.16);
}

.btn-submit {
  background: var(--gold-accent);
  color: var(--green-deep);
  border-radius: var(--radius-pill);
  padding: 17px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 1.5px solid var(--gold-accent);
  box-shadow: 0 10px 30px rgba(200, 171, 120, 0.32), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: all .35s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(200, 171, 120, 0.42), inset 0 1px 0 rgba(255,255,255,0.22);
}

.contact-info {
  margin-top: 48px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 2;
}

/* ─── Diary section ─────────────────────────────────────── */
#dziennik {
  background: var(--light-bg);
}

#dziennik .section-label,
#dziennik h2 { text-align: center; }
#dziennik h2 { color: var(--green-primary); margin-bottom: 48px; }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--green-deep);
  border-top: 1px solid var(--hairline-dark);
  padding: 88px 0 36px;
  position: relative;
}

footer::before {
  width: 0; height: 0; background: none;
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline-dark);
}

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--gold-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.9;
  transition: color .3s;
}

.footer-col a:hover { color: var(--gold-accent); }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--gold-soft);
  letter-spacing: 0.01em;
}

.footer-brand-text .brand-primary { font-size: 20px; }
.footer-brand-text .brand-accent { font-size: 10px; letter-spacing: 0.22em; }

.footer-bottom {
  border-top: none;
  padding-top: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ─── Mobile menu polish ────────────────────────────────── */
#mobile-menu {
  background: rgba(15, 31, 14, 0.98);
  backdrop-filter: blur(20px);
}

#mobile-menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color .3s, transform .3s;
}

#mobile-menu a:hover {
  color: var(--gold-accent);
  transform: translateX(4px);
}

#mobile-menu .mobile-menu-cta {
  font-family: var(--font-body);
  font-size: 12px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─── Reveal animation refinement ───────────────────────── */
.reveal {
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart);
}

/* ─── Light theme adjustments ───────────────────────────── */
[data-theme="light"] body { background: var(--cream); color: var(--text-body); }
[data-theme="light"] #navbar {
  background: rgba(251, 248, 241, 0.85);
  border-bottom-color: rgba(31, 58, 27, 0.1);
}
[data-theme="light"] #navbar.scrolled { background: rgba(251, 248, 241, 0.98); }
[data-theme="light"] .nav-link { color: var(--green-primary); }
[data-theme="light"] .nav-brand-logo { filter: none; }
[data-theme="light"] .nav-brand-text .brand-primary { color: var(--green-primary); }

[data-theme="light"] #o-inwestycji { background: var(--paper); }
[data-theme="light"] .stat-card { background: var(--white); border-color: rgba(31, 58, 27, 0.08); }

[data-theme="light"] #oferta { background: var(--green-deep); color: var(--white); }
[data-theme="light"] #oferta h2 { color: var(--white); }

[data-theme="light"] #kontakt { background: var(--green-deep); color: var(--white); }
[data-theme="light"] #kontakt h2 { color: var(--white); }

[data-theme="light"] footer { background: var(--green-deep); }
[data-theme="light"] .footer-bottom { color: rgba(255,255,255,0.4); }

/* ─── Responsive refinement ─────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .location-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .display-heading { font-size: clamp(40px, 11vw, 64px); }
  h2, section h2 { font-size: clamp(30px, 7vw, 42px); }
  .hero-content .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-gold-outline { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 28px 16px 24px; }
  .stat-number { font-size: 40px; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; margin-bottom: 36px; }
  .contact-form-panel { padding: 28px 22px; }
  .offer-tabs { width: 100%; flex-direction: column; gap: 6px; border-radius: var(--radius-md); }
  .offer-tab-btn { width: 100%; }
}

@media (max-width: 480px) {
  .display-heading { font-size: 44px; line-height: 1.05; }
  h2, section h2 { font-size: 30px; }
  .section-label { font-size: 10px; letter-spacing: 0.28em; }
  .btn-primary, .btn-gold-outline { padding: 14px 26px; font-size: 11px; letter-spacing: 0.16em; }
  .nav-links li.nav-item-always { display: none; }
  .nav-cta-always { display: none !important; }
}

/* ═══ "WKRÓTCE" SECTION OVERLAY ═══════════════════════════════ */
.coming-soon-section { position: relative; isolation: isolate; }
.coming-soon-section > *:not(.coming-soon-overlay) {
  filter: grayscale(100%) blur(3px);
  opacity: 0.18;
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
}
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  padding: 40px 20px;
}
.coming-soon-overlay-inner {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600;
  color: #CAB591;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0,0,0,0.6);
  background: rgba(10, 14, 20, 0.5);
  padding: 16px 32px;
  border: 1px solid rgba(202,181,145,0.4);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 90%;
}
.coming-soon-overlay-inner small {
  display: block;
  font-family: 'DM Sans', 'Montserrat', sans-serif;
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   I18N — LANGUAGE SWITCHER (PL / EN / UK)
   ════════════════════════════════════════════════════════════
   Trzy mini-flagi w navbarze (po prawej obok CTA) + powtórzone w
   mobile menu. Aktywna flaga: pełna opacity + złoty border.
   Nieaktywne: opacity 0.55, hover → 1.0.
*/
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 12px 0 0;
}
.lang-switcher .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.lang-switcher .lang-btn:hover { opacity: 1; }
.lang-switcher .lang-btn:focus-visible {
  outline: 2px solid #CAB591;
  outline-offset: 2px;
}
.lang-switcher .lang-btn.is-active {
  opacity: 1;
  border-color: #CAB591;
}
.lang-switcher .flag-icon {
  width: 22px;
  height: 14px;
  display: block;
  border-radius: 1.5px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.lang-switcher-mobile {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 16px;
}
.lang-switcher-mobile .lang-btn { padding: 8px; }
.lang-switcher-mobile .flag-icon {
  width: 32px;
  height: 20px;
}

/* ════════════════════════════════════════════════════════════
   SEKCJA "WYCENA NIERUCHOMOŚCI"
   ════════════════════════════════════════════════════════════ */
#wycena {
  background: var(--paper);
}

.valuation-shell {
  overflow: hidden;
  background: var(--green-deep);
  border: 1px solid rgba(202, 181, 145, 0.32);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.valuation-start {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
}

.valuation-start[hidden],
.valuation-address-stage[hidden],
.valuation-frame-stage[hidden] {
  display: none;
}

.valuation-progress {
  margin: 0 0 22px;
  color: var(--gold-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.valuation-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  color: rgba(255, 255, 255, 0.76);
}

.valuation-copy h2 {
  max-width: 12ch;
  margin-bottom: 24px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.valuation-copy > p:not(.valuation-partner) {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
}

.valuation-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.valuation-partner::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: '';
}

.valuation-form {
  padding: 48px;
  background: var(--cream);
  color: var(--green-deep);
}

.valuation-form > .valuation-progress {
  color: #65705f;
}

.valuation-form fieldset {
  border: 0;
}

.valuation-form legend,
.valuation-field > label {
  display: block;
  margin-bottom: 12px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.valuation-choices {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.valuation-choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .25s var(--ease-out-quart), background .25s var(--ease-out-quart), transform .25s var(--ease-out-quart);
}

.valuation-choice:hover,
.valuation-choice:focus-within {
  border-color: rgba(156, 130, 85, .72);
  background: #fff;
  transform: translateY(-1px);
}

.valuation-choice:has(input:checked) {
  border-color: var(--gold-deep);
  background: rgba(202, 181, 145, .18);
}

.valuation-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--green-primary);
}

.valuation-choice strong,
.valuation-choice small {
  display: block;
}

.valuation-choice strong {
  color: var(--green-deep);
  font-size: 15px;
  line-height: 1.4;
}

.valuation-choice small {
  margin-top: 3px;
  color: #5e685b;
  font-size: 13px;
  line-height: 1.45;
}

.valuation-field {
  margin-bottom: 24px;
}

.valuation-field select,
.valuation-field input[type="text"],
.valuation-field input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--green-deep);
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-sm);
  font: 500 15px/1 var(--font-body);
  caret-color: var(--gold-deep);
}

.valuation-field select {
  padding-right: 44px;
  cursor: pointer;
}

.valuation-field input[type="search"] {
  width: 100%;
  min-height: 54px;
  padding: 0 50px 0 16px;
  color: var(--green-deep);
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-sm);
  font: 500 15px/1.3 var(--font-body);
  caret-color: var(--gold-deep);
}

.valuation-field select:focus,
.valuation-field input[type="text"]:focus,
.valuation-field input[type="number"]:focus,
.valuation-field input[type="search"]:focus {
  border-color: var(--gold-deep);
  outline: 2px solid rgba(156, 130, 85, .18);
  outline-offset: 2px;
}

.valuation-field input::placeholder {
  color: #697365;
  opacity: 1;
}

.valuation-address-stage {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(440px, 1.28fr);
}

.valuation-address-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 48px;
  color: rgba(255, 255, 255, .78);
  background: var(--green-deep);
}

.valuation-address-summary h3 {
  margin-bottom: 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.valuation-address-summary > p:not(.valuation-progress) {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.65;
}

.valuation-address-summary dl {
  margin: 34px 0 28px;
  border-top: 1px solid rgba(202, 181, 145, .32);
}

.valuation-address-summary dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(202, 181, 145, .22);
}

.valuation-address-summary dt {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.valuation-address-summary dd {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.valuation-step-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--gold-accent);
  border-bottom: 1px solid rgba(202, 181, 145, .5);
  font-size: 12px;
  font-weight: 700;
}

.valuation-step-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform .25s var(--ease-out-quart);
}

.valuation-step-back:hover svg {
  transform: translateX(-3px);
}

.valuation-address-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 550px;
}

.valuation-address-form > h3 {
  margin-bottom: 12px;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.valuation-address-description {
  max-width: 58ch;
  margin-bottom: 32px;
  color: #566152;
  font-size: 15px;
  line-height: 1.65;
}

.valuation-location-grid {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(280px, 1.45fr);
  gap: 16px;
}

.valuation-address-field {
  margin-bottom: 20px;
}

.valuation-autocomplete {
  position: relative;
}

.valuation-search-indicator {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(40, 64, 35, .18);
  border-top-color: var(--green-primary);
  border-radius: 50%;
  opacity: 0;
}

.valuation-search-indicator.is-active {
  animation: valuation-spin .75s linear infinite;
  opacity: 1;
}

.valuation-address-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 8;
  overflow-y: auto;
  max-height: 286px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(156, 130, 85, .42);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(25, 42, 23, .16);
}

.valuation-address-results[hidden] {
  display: none;
}

.valuation-address-results button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  color: var(--green-deep);
  border-radius: 6px;
  text-align: left;
}

.valuation-address-results button:hover,
.valuation-address-results button:focus {
  background: rgba(202, 181, 145, .2);
  outline: none;
}

.valuation-address-results strong,
.valuation-address-results small {
  display: block;
}

.valuation-address-results strong {
  font-size: 14px;
  line-height: 1.4;
}

.valuation-address-results small {
  margin-top: 2px;
  color: #5e685b;
  font-size: 12px;
  line-height: 1.4;
}

.valuation-address-status {
  min-height: 19px;
  margin-top: 8px;
  color: #5e685b;
  font-size: 12px;
  line-height: 1.5;
}

.valuation-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 58px;
  padding: 15px 20px;
  color: #fff;
  background: var(--green-primary);
  border: 1px solid var(--green-primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  transition: background .3s var(--ease-out-quart), transform .3s var(--ease-out-quart), box-shadow .3s var(--ease-out-quart);
}

.valuation-submit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform .3s var(--ease-out-quart);
}

.valuation-submit:hover {
  background: var(--green-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.valuation-submit:hover svg {
  transform: translateX(4px);
}

.valuation-submit:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.valuation-note,
.valuation-attribution {
  margin-top: 14px;
  color: #5e685b;
  font-size: 12px;
  line-height: 1.55;
}

.valuation-noscript {
  margin-top: 12px;
  padding: 12px 14px;
  color: var(--green-deep);
  background: rgba(202, 181, 145, .2);
  border: 1px solid rgba(156, 130, 85, .38);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.55;
}

.valuation-direct-link {
  align-self: flex-start;
  margin-top: 8px;
  color: var(--green-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-underline-offset: 4px;
}

.valuation-direct-link:hover {
  color: var(--gold-deep);
}

.valuation-error {
  min-height: 20px;
  margin-top: 8px;
  color: #9b2c2c;
  font-size: 13px;
  font-weight: 600;
}

.valuation-frame-stage {
  padding: 42px 34px;
  background: #ece8de;
}

.valuation-frame-card {
  overflow: hidden;
  width: min(100%, 980px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(202, 181, 145, .42);
  border-radius: var(--radius-xl);
  box-shadow: 0 22px 55px rgba(25, 42, 23, .16);
}

.valuation-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 32px;
  background: var(--green-deep);
}

.valuation-frame-header .valuation-progress {
  margin-bottom: 8px;
}

.valuation-frame-header h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.valuation-frame-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 22px;
}

.valuation-frame-external {
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(202, 181, 145, .62);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.valuation-frame-external:hover {
  color: var(--green-deep);
  background: var(--gold-accent);
}

.valuation-back {
  flex: 0 0 auto;
  padding: 10px 0;
  color: var(--gold-accent);
  border-bottom: 1px solid var(--gold-accent);
  font-size: 13px;
  font-weight: 700;
}

.valuation-back:hover {
  color: #fff;
}

.valuation-frame-wrap {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: #fff;
}

.valuation-frame-wrap iframe {
  display: block;
  width: 100%;
  max-width: 900px;
  height: 760px;
  margin: 0 auto;
  background: #fff;
  border: 0;
  transition: opacity .3s ease;
}

.valuation-frame-wrap[aria-busy="true"] iframe {
  opacity: 0;
}

.valuation-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green-primary);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.valuation-loader span {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(40, 64, 35, .2);
  border-top-color: var(--green-primary);
  border-radius: 50%;
  animation: valuation-spin .75s linear infinite;
}

.valuation-frame-wrap[aria-busy="false"] .valuation-loader {
  display: none;
}

.valuation-attribution {
  margin: 0;
  padding: 14px 24px;
  background: #f5f1e8;
  text-align: center;
}

@keyframes valuation-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .valuation-start,
  .valuation-address-stage {
    grid-template-columns: 1fr;
  }

  .valuation-copy {
    padding: 48px 40px;
  }

  .valuation-copy h2 {
    max-width: 16ch;
  }

  .valuation-address-summary {
    padding: 42px 40px;
  }

  .valuation-address-form {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .valuation-shell {
    border-radius: var(--radius-lg);
  }

  .valuation-copy,
  .valuation-form,
  .valuation-address-summary {
    padding: 36px 22px;
  }

  .valuation-copy h2 {
    font-size: 38px;
  }

  .valuation-field select,
  .valuation-field input[type="text"],
  .valuation-field input[type="number"],
  .valuation-field input[type="search"] {
    font-size: 16px;
  }

  .valuation-frame-stage {
    padding: 24px 10px;
  }

  .valuation-frame-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  .valuation-frame-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .valuation-frame-card {
    border-radius: var(--radius-md);
  }

  .valuation-address-summary dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .valuation-address-summary dd {
    text-align: left;
  }

  .valuation-location-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .valuation-choice,
  .valuation-submit,
  .valuation-submit svg,
  .valuation-step-back svg,
  .valuation-frame-wrap iframe {
    transition: none;
  }

  .valuation-loader span,
  .valuation-search-indicator.is-active {
    animation-duration: 1.5s;
  }
}

/* ══════════════════════════════════════════════════════════
   SEKCJA "PROCES ZAKUPU"
   ══════════════════════════════════════════════════════════ */
#proces-zakupu {
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 171, 120, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 95% 100%, rgba(31, 58, 27, 0.05) 0%, transparent 45%),
    var(--light-bg);
}
#proces-zakupu .section-label,
#proces-zakupu h2 { text-align: center; }
#proces-zakupu h2 { margin-bottom: 16px; }

.process-intro {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

/* Dwie kolumny na desktopie; auto-fit zwija do jednej gdy brakuje miejsca
   (~poniżej 860px) — bez osobnego media query. */
.process-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
}

.process-step {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  padding: 30px 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out-quart), box-shadow .5s var(--ease-out-quart), border-color .5s var(--ease-out-quart);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-accent), transparent 65%);
  opacity: 0;
  transition: opacity .5s var(--ease-out-quart);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 171, 120, 0.45);
}

.process-step:hover::before { opacity: 1; }

/* Duża ozdobna cyfra etapu w tle karty */
.process-step-ghost {
  position: absolute;
  top: -14px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 128px;
  line-height: 1;
  font-weight: 600;
  color: var(--gold-accent);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.process-step-body {
  position: relative; /* nad ghost-cyfrą */
}

.process-step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.process-step-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold-accent);
}

.process-step-body h3 { margin-bottom: 10px; }
.process-step-body p { margin: 0 0 10px; line-height: 1.65; }
.process-step-body p:last-child { margin-bottom: 0; }
.process-step-body p strong { color: var(--green-primary); }
.process-step-body ul { margin: 0 0 10px; padding-left: 22px; }
.process-step-body li { padding: 2px 0; line-height: 1.6; }
.process-step-body li::marker { color: var(--gold-accent); }

.process-note {
  max-width: 760px;
  margin: 52px auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.6;
  color: var(--green-primary);
}

@media (max-width: 640px) {
  .process-intro { margin-bottom: 40px; }
  .process-step { padding: 24px 20px 22px; }
  .process-step-ghost { font-size: 96px; top: -10px; right: 12px; }
  .process-note { margin-top: 36px; }
}

/* Ciaśniejszy navbar poniżej 1500px — menu urosło o "Proces zakupu",
   a warianty EN/UK mają dłuższe etykiety. Poniżej 1200px linki i tak
   zaczynają się chować (nav-item-hide-*). */
@media (max-width: 1500px) {
  .nav-links { gap: 22px; }
  .nav-link { letter-spacing: 0.10em; }
}

/* ════════════════════════════════════════════════════════════
   SEKCJA "O NAS"
   ════════════════════════════════════════════════════════════ */
#o-nas { padding: 120px 0; }
#o-nas h3 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 48px 0 24px;
}

/* Blok dewelopera — flexbox zamiast grida, zeby nie psulo sie gdy brak logo */
.onas-developer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .onas-developer { gap: 24px; }
}
.onas-developer-logo {
  flex: 0 0 auto;
  width: clamp(180px, 25vw, 280px);
  display: flex;

  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(202,181,145,0.08);
  border-radius: 12px;
}
.onas-developer-logo img {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.onas-developer-text {
  flex: 1 1 320px;
}
.onas-developer-text p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  margin: 0 0 24px;
}

/* Dane firmy */
.onas-company-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(66px, auto);
  column-gap: 28px;
  margin: 0;
  padding: 12px 22px;
  background: rgba(202,181,145,0.05);
  border: 1px solid rgba(202,181,145,0.24);
  border-radius: 10px;
}
@media (max-width: 540px) {
  .onas-company-data { grid-template-columns: 1fr; }
}
.onas-company-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(202,181,145,0.14);
}
.onas-company-row dt {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}
.onas-company-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  word-break: break-word;
}
.onas-company-row dd a {
  color: inherit;
  text-decoration-color: rgba(154, 123, 79, 0.45);
  text-underline-offset: 3px;
}
.onas-company-row dd a:hover { color: var(--gold-deep); }

/* Realizacje */
.onas-realizations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.onas-realization-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
[data-theme="dark"] .onas-realization-card { background: #1a2520; }
.onas-realization-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.onas-realization-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(202,181,145,0.1);
}
.onas-realization-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.onas-realization-body { padding: 18px 20px 22px; }
.onas-realization-body h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 6px;
}
.onas-realization-meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #CAB591;
  margin: 0 0 10px;
}
.onas-realization-desc {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Zespół */
.onas-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.onas-team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}
[data-theme="dark"] .onas-team-card { background: #1a2520; }
.onas-team-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: rgba(202,181,145,0.15);
}
.onas-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.onas-team-photo-placeholder {
  background: linear-gradient(135deg, rgba(202,181,145,0.2), rgba(202,181,145,0.05));
}
.onas-team-body { padding: 18px 16px 22px; }
.onas-team-body h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px;
}
.onas-team-role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CAB591;
  margin: 0 0 12px;
}
.onas-team-contact {
  font-size: 13px;
  margin: 4px 0;
}
.onas-team-contact a {
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}
.onas-team-contact a:hover { color: #CAB591; }
[data-theme="dark"] .onas-team-contact a { color: rgba(247,243,234,0.75); }

/* Prospekt — wyróżniony blok */
.onas-prospekt {
  margin-top: 48px;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(202,181,145,0.12), rgba(202,181,145,0.04));
  border: 1px solid rgba(202,181,145,0.3);
  border-radius: 14px;
}
.onas-prospekt-content {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 768px) {
  .onas-prospekt-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .onas-prospekt-actions { justify-content: center; }
}
.onas-prospekt-icon {
  width: 56px;
  height: 56px;
  color: #CAB591;
}
.onas-prospekt-text h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.onas-prospekt-text p {
  margin: 0;
  font-size: 14px;
  color: #666;
}
[data-theme="dark"] .onas-prospekt-text p { color: rgba(247,243,234,0.7); }
.onas-prospekt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* MODAL prospektu — iframe PDF na pełnym ekranie */
.prospekt-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.prospekt-modal.is-open { display: flex; }
body.prospekt-modal-open { overflow: hidden; }
.prospekt-modal-content {
  position: relative;
  width: 95vw;
  height: 92vh;
  max-width: 1200px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.prospekt-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.prospekt-modal-close:hover { background: rgba(0,0,0,0.9); }
.prospekt-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Ujawnianie cen wymagane art. 19a (gated; widoczne tylko gdy flaga ON) ── */
.apt-legal-disclosure:empty { display: none; }
.legal-disclosure {
  margin: 14px 0 6px;
  padding: 14px 16px;
  border: 1px solid rgba(202, 181, 145, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}
.legal-disclosure .ld-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 0; gap: 12px;
}
.legal-disclosure .ld-row span { color: rgba(255,255,255,0.65); }
.legal-disclosure .ld-section { margin-top: 10px; }
.legal-disclosure .ld-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: #CAB591; margin-bottom: 4px;
}
.legal-disclosure ul { list-style: none; margin: 0; padding: 0; }
.legal-disclosure li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-disclosure .ld-history li span { color: rgba(255,255,255,0.6); }
.legal-disclosure .ld-m2 { color: rgba(255,255,255,0.45); font-size: 12px; }
.legal-disclosure .ld-vat {
  margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.55); font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   ▓▓▓ REDESIGN WAVE 2 — 2026-06-21 ▓▓▓
   Tabela mieszkań, karta detalu, mikro-akcenty editorial.
   Wszystko poniżej nadpisuje wcześniejsze deklaracje (cel: konwersja
   listy mieszkań + spójność z "editorial luxury refresh").
   ════════════════════════════════════════════════════════════ */

/* ─── Apartment list table — premium restyle ─────────────── */
/* Tabela ma 9 kolumn i przy węższych ekranach desktopowych (poniżej ~1060 px) nie mieści
   się w treści strony. Wcześniej rozpychała CAŁĄ stronę i pojawiał się poziomy pasek
   przewijania na <html>. Teraz przewija się we własnym kontenerze — strona zostaje
   nieruchoma, a tabela pozostaje w pełni dostępna. */
#apt-list-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.apt-list-table {
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-top: 28px;
  width: 100%;
  min-width: 940px;
}
/* Karty mobilne żyją w tym samym kontenerze i nie mogą dziedziczyć min-width tabeli.
   Próg MUSI być ten sam, przy którym tabela znika (768 px). Wcześniej stało tu 900 px,
   więc w oknie 768–900 px tabela była jeszcze widoczna, a jej kontener przewijania już
   wyłączony — i strona dostawała poziomy pasek. */
@media (max-width: 768px) {
  #apt-list-container { overflow-x: visible; }
  .apt-list-table { min-width: 0; }
}
.apt-list-table thead th {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-accent);
  padding: 10px 16px 14px;
  border-bottom: 1px solid rgba(202, 181, 145, 0.18);
  background: transparent;
  text-align: left;
}
.apt-list-table tbody tr {
  background: rgba(255, 255, 255, 0.028);
  transition: background .35s var(--ease-out-quart),
              transform .35s var(--ease-out-quart),
              box-shadow .35s var(--ease-out-quart);
  cursor: pointer;
}
.apt-list-table tbody tr td {
  padding: 18px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  border: none;
  background: inherit;
  vertical-align: middle;
}
.apt-list-table tbody tr td:first-child {
  border-radius: 14px 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.005em;
}
.apt-list-table tbody tr td:first-child strong { font-weight: 500; }
.apt-list-table tbody tr td:last-child {
  border-radius: 0 14px 14px 0;
  padding-right: 18px;
}
.apt-list-table tbody tr:hover {
  background: rgba(200, 171, 120, 0.10);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 31, 14, 0.4),
              inset 0 0 0 1px rgba(200, 171, 120, 0.22);
}
.apt-list-table tbody tr:hover td:first-child { color: var(--gold-soft); }

/* Cena w tabeli mieszkań — czytelna, prosta, spójna z resztą wartości w wierszu
   (DM Sans, tabularne cyfry żeby kolumna pięknie się wyrównywała). Złoty kolor
   zostaje jako lekki akcent przyciągający wzrok, ale czcionka jest sans-serif. */
.apt-list-table .apt-list-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-soft);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.apt-list-base-price { white-space: nowrap; }
.apt-list-table .apt-list-price-m2 {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.apt-list-table .apt-list-area,
.apt-list-table .apt-list-rooms {
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}

/* Sold row — wycisz cenę. Selektor musiał pójść za zmianą markupu: status to teraz
   wspólny `.apt-status.status-sold`, a nie dawne `.apt-list-status.sold`. */
.apt-list-table tbody tr:has(.apt-status.status-sold) .apt-list-base-price {
  color: rgba(255, 255, 255, 0.32);
  text-decoration: line-through;
  text-decoration-color: rgba(200, 171, 120, 0.4);
}
.apt-list-table tbody tr:has(.apt-status.status-sold) td:first-child {
  color: rgba(255, 255, 255, 0.55);
}

/* Wariant listy usunięty — status renderuje teraz wspólny `.apt-status`,
   ten sam co w panelu szczegółów. Jeden komponent, jeden wygląd. */

/* Apartment count footer — editorial line */
/* Celowo klasa, nie `p:last-of-type`. Selektor pozycyjny stylowal „ostatni akapit”,
   wiec po dodaniu stopki z data obowiazywania ceny styl przeskoczyl na nia, a licznik
   go stracil. Klasa trzyma sie tresci, nie kolejnosci. */
#apt-list-container > .apt-list-count {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 36px;
  text-align: center;
  position: relative;
  padding-top: 26px;
}
#apt-list-container > .apt-list-count::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 1px;
  background: rgba(202, 181, 145, 0.35);
}

/* ─── Apartment list mobile cards ───────────────────────── */
@media (max-width: 768px) {
  .apt-list-cards { gap: 14px; margin-top: 24px; }
  .apt-list-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 20px 20px;
    transition: border-color .3s, transform .3s, box-shadow .3s;
  }
  .apt-list-card:hover {
    border-color: rgba(200, 171, 120, 0.32);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 31, 14, 0.4);
  }
  .apt-list-card-header { margin-bottom: 12px; }
  .apt-list-card-id {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.005em;
  }
  .apt-list-card-details {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.78);
  }
  .apt-list-card .btn-primary {
    background: var(--gold-accent);
    color: var(--green-deep);
    border-color: var(--gold-accent);
    letter-spacing: 0.16em;
    font-weight: 700;
  }
}

/* ─── Apartment detail view (full restyle) ──────────────── */
.apt-detail-view {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 44px 40px 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.apt-detail-back {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .25s, transform .25s;
}
.apt-detail-back:hover {
  color: var(--gold-soft);
  transform: translateX(-3px);
  text-decoration: none;
}
.apt-detail-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(202, 181, 145, 0.18);
  align-items: flex-end;
  gap: 16px;
}
.apt-detail-header h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
}
.apt-detail-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.apt-detail-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px 16px;
  transition: border-color .3s, background .3s;
}
.apt-detail-item:hover {
  border-color: rgba(200, 171, 120, 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.apt-detail-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.apt-detail-value {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.005em;
}
.apt-detail-value.apt-detail-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--gold-soft);
  letter-spacing: 0;
}
.apt-detail-features h4,
.apt-detail-extras h4,
.apt-detail-parking h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin: 28px 0 16px;
}
.apt-detail-features ul,
.apt-detail-extras ul,
.apt-detail-parking ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.apt-detail-features li,
.apt-detail-extras li,
.apt-detail-parking li {
  position: relative;
  padding: 11px 0 11px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14.5px;
  line-height: 1.5;
}
.apt-detail-features li::before,
.apt-detail-extras li::before,
.apt-detail-parking li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 1px;
  background: var(--gold-accent);
}
.apt-detail-features li:last-child,
.apt-detail-extras li:last-child,
.apt-detail-parking li:last-child { border-bottom: none; }

.apt-detail-reserve {
  margin-top: 32px !important;
  font-family: var(--font-body);
  font-size: 12px !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ─── Filters bar — wzmocniony kontrast na ciemnym tle ──── */
.filters-bar,
.apt-list-filters {
  background:
    linear-gradient(180deg, rgba(200, 171, 120, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(200, 171, 120, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

/* ─── Section labels — wariant bez kresek (subtelna alternatywa) ── */
.section-label.no-rules::before,
.section-label.no-rules::after { display: none; }

/* Hero label: pojedyncza kreska po lewej zamiast dwóch po bokach */
.hero-content .section-label {
  gap: 18px;
}
.hero-content .section-label::after { display: none; }
.hero-content .section-label::before {
  width: 44px;
  opacity: 0.7;
}

/* ─── Subtle scroll arrow refinement ────────────────────── */
.scroll-arrow svg {
  filter: drop-shadow(0 0 14px rgba(200, 171, 120, 0.4));
}

/* (Hero CTA white→gold deliberately NOT overridden — pozostawiamy decyzję
   z editorial luxury refresh na linii 5318 gdzie `#hero .btn-primary` jest
   biały na ciemnym tle slideshow. Zmiana wymagałaby konsensu po preview.) */

/* ─── Osobne miejsca postojowe w pełnej liście ──────────── */
/* Wiersz MP ma wygladac jak wiersz mieszkania — to rownorzedna pozycja w tej samej
   tabeli, a nie osobny komponent. Wczesniej roznil sie tlem, 2 px zlotym paskiem,
   wcieciem 36 px, mniejszym i zlotym numerem: razem czytalo sie to jak wstawka z innej
   strony. Zostaje jeden cichy sygnal — 1 px zlota krawedz — zeby dalo sie objac wzrokiem,
   ktore MP nalezy do ktorego mieszkania. Reszta jest wspolna z wierszem lokalu. */
.parking-list-row {
  height: 82px;
  box-shadow: inset 1px 0 0 rgba(202, 181, 145, 0.28);
}
.parking-list-row td {
  color: rgba(255, 255, 255, 0.76);
}
.parking-list-row td:first-child {
  padding-left: 16px;
}
/* Numer MP: ten sam stopien i ten sam kolor co numer mieszkania. */
.parking-list-row td:first-child strong {
  font-size: inherit;
  letter-spacing: 0;
  white-space: nowrap;
}
/* Kolumny, ktore MP nie dotycza, dostaja znak „nie dotyczy" — pusta komorka sprawiala,
   ze wiersz wygladal na uszkodzony. Znak jest przygaszony, zeby nie robil szumu. */
.parking-list-row td.is-na {
  color: rgba(255, 255, 255, 0.22);
}

.parking-list-row .parking-entity-label { display: none; }
.parking-entity-label {
  display: inline;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.parking-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}
/* Obie akcje MP muszą mieć IDENTYCZNĄ wysokość. Wcześniej „WYBIERZ MP” łamało się
   na dwie linie (brak nowrap przy szerokości 68 px) i rosło do 38 px obok 32 px
   przycisku PDF — to była główna przyczyna wrażenia rozjechanego wiersza. */
.parking-select-btn,
.parking-pdf-link,
.parking-selection-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid rgba(202, 181, 145, 0.48);
  border-radius: 5px;
  padding: 0 10px;
  background: transparent;
  color: var(--gold-accent);
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
/* Wybór MP to akcja główna tej pary — dostaje delikatne wypełnienie, ale zostaje
   wyraźnie cichszy od pełnozłotego „WYBIERZ” przy mieszkaniu, bo jest podrzędny. */
.parking-select-btn {
  background: rgba(202, 181, 145, 0.10);
}
.parking-select-btn:hover,
.parking-pdf-link:hover,
.parking-selection-clear:hover {
  background: rgba(202, 181, 145, 0.12);
  border-color: var(--gold-accent);
  text-decoration: none;
}
.parking-select-btn.is-selected {
  background: var(--gold-accent);
  color: var(--green-deep);
  border-color: var(--gold-accent);
}
.parking-select-btn:disabled {
  cursor: not-allowed;
  opacity: .35;
}
.parking-list-row.is-selected,
.parking-list-card.is-selected {
  box-shadow: inset 1px 0 0 var(--gold-accent), 0 0 0 1px rgba(202, 181, 145, 0.32);
}
.parking-list-row.is-map-target,
.parking-list-card.is-map-target {
  animation: parking-map-target 1.8s ease;
}
@keyframes parking-map-target {
  0%, 100% { background-color: rgba(202, 181, 145, 0.055); }
  35% { background-color: rgba(202, 181, 145, 0.25); }
}
/* Ta sama hierarchia co w tabeli: karta MP jest wcięta i wyciszona względem karty
   mieszkania, a nie podświetlona na złoto. Wcięcie z lewej + złota krawędź czytają się
   jako „należy do karty powyżej”. */
.parking-list-card {
  margin: 0 0 0 18px;
  border: 1px solid rgba(202, 181, 145, 0.16);
  border-left: 2px solid rgba(202, 181, 145, 0.55);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.16);
}
.parking-list-card-content { flex: 1; min-width: 0; }
.parking-list-card .parking-entity-label { display: block; margin: 4px 0 10px; }
.parking-list-card-price {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-accent);
  font-size: 18px;
}
/* art. 19a ust. 1 — data obowiązywania ceny MP, pod kwotą w tabeli i na karcie mobilnej. */
.parking-price-from {
  display: inline;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
/* art. 19a ust. 2 — wcześniejsze ceny MP, zwinięte żeby nie zaśmiecać listy. */
.parking-price-history {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.parking-price-history > summary {
  cursor: pointer;
  color: var(--gold-accent);
  list-style: none;
}
.parking-price-history > summary::-webkit-details-marker { display: none; }
.parking-price-history > summary::after { content: " ▾"; }
.parking-price-history[open] > summary::after { content: " ▴"; }
.parking-price-history ul {
  margin: 4px 0 0;
  padding-left: 14px;
  list-style: none;
}
.apt-list-count {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
/* Data obowiązywania ceny MP (art. 19a ust. 1) — jedna cicha linia pod listą zamiast
   powtarzania jej przy każdym z 24 wierszy. Ma być czytelna, nie ma krzyczeć. */
.apt-list-price-note {
  margin-top: 6px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
}
.parking-list-card .parking-card-actions { justify-content: flex-start; }
.parking-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 8px;
  border: 1px solid rgba(202, 181, 145, 0.28);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(202, 181, 145, 0.08);
}
.parking-selection-bar > div:first-child { display: grid; gap: 4px; }
.parking-selection-bar strong { color: var(--gold-accent); }
.parking-selection-bar span { color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.parking-selection-actions { display: flex; gap: 10px; align-items: center; }
.parking-load-error {
  margin: 20px 0;
  border: 1px solid rgba(217, 146, 88, 0.58);
  border-radius: 8px;
  padding: 12px 15px;
  background: rgba(217, 146, 88, 0.12);
  color: #ffd3ad;
}
@media (max-width: 768px) {
  .parking-selection-bar { align-items: stretch; flex-direction: column; }
  .parking-selection-actions { display: grid; grid-template-columns: 1fr; }
  .parking-list-card .parking-price-from { display: block; margin: 3px 0 10px; }
  .parking-list-card .parking-entity-label { white-space: normal; }
  .parking-card-actions { align-items: stretch; flex-direction: column; }
  .parking-select-btn, .parking-pdf-link { width: 100%; }
}

/* ─── Light theme adjustments dla nowych komponentów ────── */
[data-theme="light"] .apt-list-table tbody tr {
  background: rgba(31, 58, 27, 0.04);
}
[data-theme="light"] .apt-list-table tbody tr:hover {
  background: rgba(200, 171, 120, 0.14);
  box-shadow: 0 14px 30px rgba(15, 31, 14, 0.12),
              inset 0 0 0 1px rgba(200, 171, 120, 0.32);
}
[data-theme="light"] .apt-list-table tbody tr td { color: var(--text-body); }
[data-theme="light"] .apt-list-table tbody tr td:first-child { color: var(--green-primary); }
[data-theme="light"] .apt-list-table .apt-list-price { color: var(--gold-deep); }
[data-theme="light"] .parking-list-row { background: rgba(154, 123, 79, 0.08) !important; }
[data-theme="light"] .parking-list-row td,
[data-theme="light"] .parking-list-card-content p,
[data-theme="light"] .parking-selection-bar span { color: rgba(26, 42, 23, 0.72); }
[data-theme="light"] .parking-entity-label { color: rgba(26, 42, 23, 0.48); }
[data-theme="light"] .parking-list-card,
[data-theme="light"] .parking-selection-bar { background: rgba(154, 123, 79, 0.08); }
[data-theme="light"] .apt-detail-view {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(31, 58, 27, 0.12);
}
[data-theme="light"] .apt-detail-header h3 { color: var(--green-primary); }
[data-theme="light"] .apt-detail-value { color: var(--green-primary); }
[data-theme="light"] .apt-detail-value.apt-detail-price { color: var(--gold-deep); }
[data-theme="light"] .apt-detail-features li,
[data-theme="light"] .apt-detail-extras li,
[data-theme="light"] .apt-detail-parking li { color: var(--text-body); border-bottom-color: rgba(31, 58, 27, 0.08); }

/* ─── Mobile finetune ───────────────────────────────────── */
@media (max-width: 768px) {
  .apt-detail-view { padding: 32px 22px 28px; }
  .apt-detail-grid { grid-template-columns: 1fr; }
  .apt-detail-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ─── Prefers-reduced-motion respect ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .apt-list-table tbody tr,
  .apt-detail-item,
  .apt-list-card { transition: none !important; transform: none !important; }
}

/* ════════════════════════════════════════════════════════════
   BANER COOKIES
   Pasek na dole ekranu, do pierwszego kliknięcia "OK" (wybór
   trzymany w localStorage — patrz initCookieBanner w app.js).
   Świadomie nie zasłania całej strony: to baner informacyjny,
   nie bramka zgody.
   ════════════════════════════════════════════════════════════ */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  /* Nad treścią, ale POD każdym overlayem na stronie: diary 1000, legal 1400,
     type-detail 1500, prospekt/PDF 10000. Inaczej baner leżałby na dokumencie,
     który sam otwiera. Baner jest przy dole, navbar przy górze — nie kolidują. */
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 22px;
  background: rgba(26, 42, 23, 0.97);
  border: 1px solid rgba(202, 181, 145, 0.28);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  animation: cookie-bar-in 0.35s ease-out;
}

.cookie-bar[hidden] { display: none; }

@keyframes cookie-bar-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-bar-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-bar-link {
  background: none;
  border: none;
  padding: 6px 2px;
  font-family: inherit;
  font-size: 13px;
  color: var(--gold-accent);
  cursor: pointer;
  border-bottom: 1px solid rgba(202, 181, 145, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cookie-bar-link:hover { color: #e0d2b8; border-bottom-color: #e0d2b8; }

.cookie-bar-accept {
  background: var(--gold-accent);
  color: #1A2A17;
  border: 1px solid var(--gold-accent);
  padding: 11px 26px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.cookie-bar-accept:hover { background: #d8c6a8; border-color: #d8c6a8; }

.cookie-bar-link:focus-visible,
.cookie-bar-accept:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px 18px;
    gap: 14px;
  }
  .cookie-bar-actions { width: 100%; justify-content: space-between; }
  .cookie-bar-accept { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar { animation: none; }
}
