/* ==========================================================================
   ROCK REAL ESTATES — SYSTEM WIZUALNY
   Paleta „kamień, len i brąz”: ciepły grafit jako rama strony, lniane i kamienne
   karty, stonowany brąz jako akcent oraz szałwiowa oliwka jako drugi ton.
   Typografia: Playfair Display (nagłówki) + Plus Jakarta Sans (tekst).
   Kolory zmieniaj tylko tutaj — reszta arkusza korzysta z tych zmiennych.
   ========================================================================== */

:root {
  /* Paleta bazowa */
  --c-ink: #1D1A17;          /* tło strony */
  --c-ink-deep: #161411;     /* nagłówek oferty, stopka */
  --c-ink-raised: #24201C;   /* ciemne karty */
  --c-ink-soft: #2E2924;
  --c-espresso: #342A21;     /* tekst na jasnych kartach */
  --c-linen: #EDE7DC;        /* jasne karty i tekst na ciemnym */
  --c-linen-soft: #F2EDE4;
  --c-stone: #E4D9CB;        /* karta tonalna 1 */
  --c-sage: #D3D8CA;         /* karta tonalna 2 */
  --c-sage-ink: #28302A;
  --c-sand: #DCCFBC;         /* przyciski, jasne akcenty */
  --c-travertine: #E7DBC4;   /* karta tonalna 3 */
  --c-bronze: #B98E5E;       /* akcent na ciemnym tle */
  --c-bronze-ink: #6F5334;   /* akcent na jasnym tle (kontrast AA) */
  --c-olive: #8E927F;

  --line-on-dark: rgba(237, 231, 220, 0.1);
  --line-on-light: rgba(43, 38, 33, 0.12);

  /* Aliasy używane w starszych regułach */
  --color-brand-void: var(--c-ink);
  --color-brand-void-deep: var(--c-ink-deep);
  --color-brand-espresso: var(--c-ink-raised);
  --color-brand-dark: #2B2621;
  --color-brand-cream: var(--c-linen);
  --color-brand-cashmere: var(--c-stone);
  --color-brand-sand: var(--c-sand);
  --color-brand-sage: var(--c-sage);
  --color-brand-champagne: var(--c-travertine);
  --color-brand-olive: var(--c-olive);
  --color-brand-gold: var(--c-bronze);

  --bg-main: var(--c-ink);
  --bg-surface: var(--c-ink-raised);
  --bg-surface-elevated: #2A2520;
  --bg-subtle: var(--c-ink-soft);
  --bg-card: var(--c-linen);
  --bg-dark-espresso: var(--c-ink-deep);

  --text-primary: var(--c-linen);
  --text-secondary: rgba(237, 231, 220, 0.78);
  --text-muted: rgba(237, 231, 220, 0.62);
  --text-inverse: var(--c-ink);

  --accent-gold: var(--c-bronze);
  --accent-gold-dark: var(--c-sand);
  --accent-gold-light: var(--c-travertine);
  --accent-gold-soft: rgba(185, 142, 94, 0.14);
  --accent-olive: var(--c-olive);
  --accent-olive-soft: rgba(142, 146, 127, 0.16);

  --border-subtle: var(--line-on-dark);
  --border-medium: rgba(220, 207, 188, 0.2);
  --border-hover: rgba(185, 142, 94, 0.5);

  --font-serif: 'Playfair Display', Georgia, "Times New Roman", serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-card: 24px;
  --radius-pill: 9999px;
  --radius-sm: 12px;

  --shadow-subtle: 0 10px 30px -6px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 18px 44px -10px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 24px 55px -12px rgba(0, 0, 0, 0.55);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Browser surfaces — selekcja tekstu, focus ring, scrollbar */
::selection {
  background-color: var(--c-linen);
  color: var(--c-ink);
}

:focus-visible {
  outline: 2px solid var(--c-bronze);
  outline-offset: 2px;
}

/* Reset i bazy */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  scrollbar-color: var(--c-olive) var(--c-ink-deep);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  caret-color: var(--accent-gold);
}

button {
  cursor: pointer;
}

/* Kontenery */
.container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.container-narrow {
  max-width: 920px;
}

/* Nagłówki */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  max-width: 680px;
  margin-bottom: 44px;
  line-height: 1.65;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   NAWIGACJA (FLOATING DARK GLASS PILL —
   ========================================================================== */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  padding: 0 12px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .site-header {
    top: 16px;
    padding: 0 24px;
  }
}

.nav-island {
  max-width: 1420px;
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 26px;
  background: rgba(24, 22, 19, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transition: all var(--transition-smooth);
}

.nav-island:hover {
  border-color: rgba(220, 207, 188, 0.24);
}

/* Logo */
.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 14px;
}

.brand-logo-top {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--c-linen);
  text-transform: uppercase;
}

.brand-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--c-sand);
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 600;
  opacity: 0.88;
}

/* Menu desktopowe */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }
}

@media (min-width: 1280px) {
  .desktop-nav {
    gap: 12px;
  }
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(237, 231, 220, 0.84);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap !important;
  line-height: 1.2;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--c-linen);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(220, 207, 188, 0.28);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 10px;
  background: #161615;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-smooth);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background var(--transition-fast);
  text-decoration: none;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dropdown-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-linen);
  white-space: nowrap;
}

.dropdown-desc {
  font-size: 0.72rem;
  color: rgba(237, 231, 220, 0.58);
  white-space: nowrap;
}

/* Przyciski w nagłówku — piaskowy pill rre (var(--c-sand)) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--c-ink);
  background: var(--c-sand);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  white-space: nowrap !important;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-header-phone:hover {
  background: #FFFFFF;
  color: var(--c-ink);
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .btn-header-phone {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--c-linen);
  transition: all var(--transition-smooth);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 20, 17, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  width: 90%;
  max-width: 380px;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--c-linen);
  font-weight: 500;
}

.mobile-nav-sublinks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
}

.mobile-nav-sublink {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 0.95rem;
  color: rgba(237, 231, 220, 0.72);
}

/* ==========================================================================
   PRZYCISKI (rre SAND & ESPRESSO PILLS)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 24px;
  background: var(--c-sand);
  color: var(--c-ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-smooth);
}

.btn-primary:hover {
  background: #FFFFFF;
  color: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.btn-circle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(29, 26, 23, 0.12);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-circle-icon {
  transform: translateX(3px) translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-linen);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(220, 207, 188, 0.25);
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(220, 207, 188, 0.16);
  border-color: var(--c-sand);
  color: #FFFFFF;
}

/* ==========================================================================
   HERO — ZDJĘCIE W RAMIE, TYTUŁ I RYNKI
   ========================================================================== */
.hero-section {
  padding: 20px 0 48px;
}

.hero-intro {
  padding: 4px 0 40px;
}

.hero-wide-container {
  max-width: 1460px;
  padding-left: 12px;
  padding-right: 12px;
}

@media (min-width: 768px) {
  .hero-wide-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: min(860px, calc(100svh - 104px));
  border-radius: 28px;
  overflow: hidden;
  background: var(--c-ink-deep);
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  gap: 32px;
  padding: 120px 22px 26px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

@media (min-width: 1024px) {
  .hero-stage {
    border-radius: 32px;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    gap: 56px;
    padding: 140px 56px 52px;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(22, 20, 17, 0.92) 0%, rgba(22, 20, 17, 0.55) 38%, rgba(22, 20, 17, 0.12) 70%, rgba(22, 20, 17, 0.35) 100%),
    linear-gradient(to right, rgba(22, 20, 17, 0.55) 0%, rgba(22, 20, 17, 0) 60%);
}

.hero-copy {
  max-width: 860px;
  color: var(--c-linen);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.55rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--c-linen);
  margin: 0;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* miejsce na polskie ogonki przy maskowaniu linii */
}

.hero-line > span {
  display: inline-block;
}

.hero-rule {
  display: block;
  width: min(240px, 42%);
  height: 1px;
  margin: 26px 0 28px;
  background: var(--c-bronze);
  transform-origin: left center;
}

.hero-lead {
  max-width: 58ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  color: rgba(237, 231, 220, 0.84);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-byline {
  margin: 26px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: rgba(237, 231, 220, 0.66);
}

.hero-markets {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(237, 231, 220, 0.18);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-markets {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-market + .hero-market {
    border-top: none;
    border-left: 1px solid rgba(237, 231, 220, 0.14);
    padding-left: 16px;
  }
}

.hero-market {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 4px 14px 0;
  color: var(--c-linen);
  text-decoration: none;
  transition: color var(--transition-fast), padding var(--transition-smooth);
}

.hero-market + .hero-market {
  border-top: 1px solid rgba(237, 231, 220, 0.14);
}

.hero-market-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.2;
}

.hero-market-meta {
  font-size: 0.84rem;
  color: rgba(237, 231, 220, 0.7);
}

.hero-market:hover,
.hero-market:focus-visible {
  color: var(--c-sand);
  padding-left: 6px;
}

/* Przyciski na ciemnym zdjęciu */
.btn-primary.btn-on-dark {
  background: var(--c-linen);
  color: var(--c-ink);
}

.btn-primary.btn-on-dark:hover {
  background: var(--c-sand);
}

.btn-primary.btn-on-dark .btn-circle-icon {
  background: var(--c-ink);
  color: var(--c-linen);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(237, 231, 220, 0.42);
  color: var(--c-linen);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-ghost-light:hover {
  background: rgba(237, 231, 220, 0.1);
  border-color: var(--c-linen);
}

/* ==========================================================================
   HERO — ANIMACJA WEJŚCIA
   1. Zdjęcie odsłania się z mniejszej ramy i „osiada”, potem bardzo wolno dryfuje.
   2. Tytuł wchodzi słowo po słowie: z rozmycia, od dołu maski linii.
   3. Rysuje się brązowa linia, pojawia się opis, przyciski i rynki.
   4. Przy przewijaniu zdjęcie przesuwa się wolniej niż treść (głębia).
   Bez JS strona jest od razu w pełni widoczna. Przy „ograniczonym ruchu”
   zostaje samo przenikanie i wyostrzenie — bez ruchu i powiększeń.
   ========================================================================== */
@keyframes rre-frame-reveal {
  from { clip-path: inset(10% 8% 10% 8% round 32px); }
  to   { clip-path: inset(0 0 0 0 round 0); }
}

@keyframes rre-photo-settle {
  from { transform: scale(1.18); filter: saturate(0.5) brightness(0.7); }
  to   { transform: scale(1.04); filter: none; }
}

@keyframes rre-photo-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes rre-word-up {
  from { transform: translate3d(0, 110%, 0) rotate(2deg); filter: blur(10px); opacity: 0; }
  60%  { filter: blur(0); opacity: 1; }
  to   { transform: none; filter: blur(0); opacity: 1; }
}

@keyframes rre-rule-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes rre-fade-up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes rre-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rre-shade-in {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

@keyframes rre-sharpen {
  from { opacity: 0; filter: blur(10px); }
  to   { opacity: 1; filter: blur(0); }
}

.hero-word {
  display: inline-block;
  white-space: pre;
}

.hero-media {
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  will-change: transform;
}

.hero-copy,
.hero-markets {
  opacity: var(--hero-fade, 1);
}

.js-intro [data-hero-intro] .hero-media {
  animation: rre-frame-reveal 1.6s cubic-bezier(0.77, 0, 0.18, 1) both;
}

.js-intro [data-hero-intro] .hero-media-img {
  animation:
    rre-photo-settle 2.4s cubic-bezier(0.16, 1, 0.3, 1) both,
    rre-photo-drift 22s 2.4s ease-in-out infinite alternate;
}

.js-intro [data-hero-intro] .hero-shade {
  animation: rre-shade-in 1.6s ease-out both;
}

/* Gdy JS podzieli tytuł na słowa, animujemy słowa; w innym wypadku całe linie */
.js-intro [data-hero-intro] .hero-line > span:not(.is-split) {
  animation: rre-word-up 1.1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js-intro [data-hero-intro] .hero-word {
  animation: rre-word-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.75s + var(--i, 0) * 75ms);
}

.js-intro [data-hero-intro] .hero-rule {
  animation: rre-rule-draw 1.1s 1.35s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.js-intro [data-hero-intro] .hero-lead,
.js-intro [data-hero-intro] .hero-actions,
.js-intro [data-hero-intro] .hero-byline,
.js-intro [data-hero-intro] .hero-market {
  animation: rre-fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js-intro [data-hero-intro] .hero-lead { animation-delay: 1.5s; }
.js-intro [data-hero-intro] .hero-actions { animation-delay: 1.62s; }
.js-intro [data-hero-intro] .hero-byline { animation-delay: 1.74s; }
.js-intro [data-hero-intro] .hero-market:nth-child(1) { animation-delay: 1.8s; }
.js-intro [data-hero-intro] .hero-market:nth-child(2) { animation-delay: 1.9s; }
.js-intro [data-hero-intro] .hero-market:nth-child(3) { animation-delay: 2s; }

.js-intro .site-header {
  animation: rre-fade-in 1s 0.4s ease-out both;
}

/* Karty obszarów: zdjęcie odsłania się tym samym ruchem ramy, gdy wjeżdża na ekran */
.js-reveal .showcase-media {
  clip-path: inset(8% 8% 8% 8% round 24px);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}

.js-reveal .showcase-media img {
  transform: scale(1.12);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .showcase-card.is-inview .showcase-media {
  clip-path: inset(0 0 0 0 round 24px);
}

.js-reveal .showcase-card.is-inview .showcase-media img {
  transform: scale(1);
}

.js-reveal .showcase-content > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .showcase-card.is-inview .showcase-content > * {
  opacity: 1;
  transform: none;
}

.js-reveal .showcase-card.is-inview .showcase-content > *:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .showcase-card.is-inview .showcase-content > *:nth-child(3) { transition-delay: 0.16s; }
.js-reveal .showcase-card.is-inview .showcase-content > *:nth-child(4) { transition-delay: 0.24s; }
.js-reveal .showcase-card.is-inview .showcase-content > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .js-intro [data-hero-intro] .hero-media,
  .js-intro [data-hero-intro] .hero-media-img,
  .js-intro [data-hero-intro] .hero-rule {
    animation: none !important;
  }
  .js-intro [data-hero-intro] .hero-media-img {
    animation: rre-fade-in 1.4s ease-out both !important;
  }
  .js-intro [data-hero-intro] .hero-word,
  .js-intro [data-hero-intro] .hero-line > span:not(.is-split) {
    animation-name: rre-sharpen !important;
  }
  .js-intro [data-hero-intro] .hero-lead,
  .js-intro [data-hero-intro] .hero-actions,
  .js-intro [data-hero-intro] .hero-byline,
  .js-intro [data-hero-intro] .hero-market {
    animation-name: rre-fade-in !important;
    animation-duration: 0.6s !important;
  }
  /* Bez ruchu: treść pojawia się od razu, krótkim przenikaniem (bez długiej sekwencji) */
  .js-intro [data-hero-intro] .hero-lead { animation-delay: 0.25s !important; }
  .js-intro [data-hero-intro] .hero-actions { animation-delay: 0.3s !important; }
  .js-intro [data-hero-intro] .hero-byline { animation-delay: 0.35s !important; }
  .js-intro [data-hero-intro] .hero-market { animation-delay: 0.4s !important; }
  .hero-media { transform: none !important; }
  .js-reveal .showcase-media {
    clip-path: none !important;
    transform: none !important;
  }
  /* Bez automatycznego przybliżenia przy wjeździe; przybliżenie po najechaniu (niżej) zostaje */
  .js-reveal .showcase-media img {
    transform: none;
  }
}

/* ==========================================================================
   TRZY GŁÓWNE OBSZARY DZIAŁALNOŚCI — POZIOME KARTY SHOWCASE rre
   (var(--c-stone) Cashmere, var(--c-sage) Sage, var(--c-travertine) Sand)
   ========================================================================== */
.pillars-section {
  padding: 64px 0;
  background-color: var(--bg-main);
}

.section-intro {
  margin-bottom: 44px;
}

.showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.showcase-card {
  border-radius: 32px;
  padding: 24px 22px 28px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (min-width: 960px) {
  .showcase-card {
    padding: 28px 36px 36px;
  }
}

.showcase-card.tone-cashmere {
  --card-ink: var(--c-espresso);
  --card-muted: rgba(52, 42, 33, 0.72);
  --card-rule: rgba(52, 42, 33, 0.14);
  background: var(--c-stone);
  color: var(--c-espresso);
}

.showcase-card.tone-sage {
  --card-ink: var(--c-sage-ink);
  --card-muted: rgba(40, 48, 42, 0.74);
  --card-rule: rgba(40, 48, 42, 0.15);
  background: var(--c-sage);
  color: var(--c-sage-ink);
}

.showcase-card.tone-sand {
  --card-ink: #3E3422;
  --card-muted: rgba(62, 52, 34, 0.74);
  --card-rule: rgba(62, 52, 34, 0.15);
  background: var(--c-travertine);
  color: #3E3422;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 960px) {
  .showcase-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
  }

  .showcase-card.is-reversed .showcase-grid {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .showcase-card.is-reversed .showcase-media {
    order: 2;
  }

  .showcase-card.is-reversed .showcase-content {
    order: 1;
  }
}

.showcase-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--c-ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
}

.showcase-card:hover .showcase-media img {
  transform: scale(1.03);
}

.showcase-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.showcase-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--card-ink);
  margin-bottom: 14px;
}

.showcase-desc {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--card-muted);
  margin-bottom: 22px;
}

.showcase-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  width: 100%;
  padding: 18px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--card-rule);
  border-bottom: 1px solid var(--card-rule);
}

.showcase-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--card-ink);
}

.showcase-feat svg {
  flex-shrink: 0;
  opacity: 0.78;
}

.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--card-ink);
  color: var(--card-ink);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: all var(--transition-fast);
}

.showcase-cta:hover {
  background: var(--card-ink);
  color: var(--c-linen);
}

/* Siatka 3-kolumnowa na podstronach tematycznych */
.markets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .markets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.market-card {
  --text-primary: var(--c-espresso);
  --text-secondary: rgba(52, 42, 33, 0.82);
  --text-muted: rgba(52, 42, 33, 0.62);
  --accent-gold: var(--c-bronze-ink);
  --accent-gold-dark: var(--c-espresso);
  background: var(--c-stone);
  color: var(--c-espresso);
  border: 1px solid rgba(52, 42, 33, 0.10);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
}

.markets-grid .market-card:nth-child(2) {
  --text-primary: var(--c-sage-ink);
  --text-secondary: rgba(40, 48, 42, 0.82);
  --text-muted: rgba(40, 48, 42, 0.62);
  --accent-gold: #2D4734;
  --accent-gold-dark: var(--c-sage-ink);
  background: var(--c-sage);
  color: var(--c-sage-ink);
}

.markets-grid .market-card:nth-child(3) {
  --text-primary: #3E3422;
  --text-secondary: rgba(62, 52, 34, 0.82);
  --text-muted: rgba(62, 52, 34, 0.62);
  --accent-gold: #6B5626;
  --accent-gold-dark: #3E3422;
  background: var(--c-travertine);
  color: #3E3422;
}

.market-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.market-card-img {
  height: 220px;
  overflow: hidden;
  margin: 14px 14px 0;
  border-radius: 20px;
}

.market-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
}

.market-card:hover .market-card-img img {
  transform: scale(1.05);
}

.market-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.market-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.market-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.market-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.market-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(43, 38, 33, 0.25);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: auto;
  align-self: flex-start;
  transition: all var(--transition-fast);
}

.market-link:hover {
  background: #2B2621;
  border-color: #2B2621;
  color: var(--c-linen-soft);
}

/* ==========================================================================
   WYBRANE NIERUCHOMOŚCI (FEATURED PORTFOLIO)
   ========================================================================== */
.listings-section {
  padding: 90px 0;
}

.section-header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.featured-properties-grid,
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .featured-properties-grid,
  .properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .featured-properties-grid,
  .properties-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Karta nieruchomości — harmonijna, architektoniczna struktura w tonacji rre Cashmere/Cream */
.property-card {
  --text-primary: #2B2621;
  --text-secondary: rgba(43, 38, 33, 0.80);
  --text-muted: rgba(43, 38, 33, 0.74);
  --bg-surface: var(--c-linen);
  --bg-surface-elevated: #E2DBD1;
  --bg-subtle: #DAD1C5;
  --border-subtle: rgba(43, 38, 33, 0.11);
  --border-medium: rgba(43, 38, 33, 0.22);
  --accent-gold: #86673F;
  --accent-gold-dark: #2B2621;
  background: var(--c-linen);
  color: #2B2621;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
  height: 100%;
  min-width: 0;
}

.property-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 207, 188, 0.35);
  box-shadow: var(--shadow-hover);
}

.property-thumb-box {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #25211C;
  margin: 12px 12px 0;
  border-radius: 18px;
}

.property-thumb-box[data-gallery] {
  cursor: zoom-in;
}

.property-thumb-box:focus-visible {
  outline-offset: 3px;
}

.property-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
}

.property-card:hover .property-thumb-box img {
  transform: scale(1.04);
}

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: rgba(237, 231, 220, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(43, 38, 33, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2B2621;
}

.property-type-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  background: #2B2621;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-linen);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.property-gallery-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 11px;
  background: rgba(24, 22, 19, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--c-linen);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.property-gallery-badge:hover {
  background: var(--c-bronze);
  color: var(--c-ink);
  border-color: var(--c-bronze);
}

.property-card-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-location svg {
  color: #86673F;
  flex-shrink: 0;
}

.property-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.35;
  color: #2B2621;
  margin-bottom: 8px;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #6C4F2E;
  margin-bottom: 16px;
  min-height: 1.5em;
  display: flex;
  align-items: center;
}

/* Ujednolicony panel specyfikacji */
.property-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: #E0D6C8;
  border: 1px solid rgba(43, 38, 33, 0.09);
  border-radius: 14px;
  margin-bottom: 18px;
  min-height: 56px;
  align-items: center;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.spec-label {
  font-size: 0.66rem;
  color: rgba(43, 38, 33, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-value {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2B2621;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

/* Zbalansowane przyciski w siatce 50/50 */
.property-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.property-card-actions .btn-primary,
.property-card-actions .btn-secondary,
.property-card-actions a,
.property-card-actions button {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.property-card-actions .btn-primary {
  background: #2B2621;
  color: var(--c-linen);
  border: 1px solid #2B2621;
  box-shadow: none;
}

.property-card-actions .btn-primary:hover {
  background: var(--c-ink);
  color: #FFFFFF;
}

.property-card-actions .btn-primary .btn-circle-icon {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-linen);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
}

.property-card-actions .btn-secondary {
  background: rgba(43, 38, 33, 0.05);
  border: 1.5px solid rgba(43, 38, 33, 0.22);
  color: #2B2621;
}

.property-card-actions .btn-secondary:hover {
  background: #2B2621;
  border-color: #2B2621;
  color: var(--c-linen);
}

/* ==========================================================================
   PROFIL BROKERA (ROBERT URJASZ — LICENCJA 18354)
   ========================================================================== */
.about-broker-section {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.broker-editorial-layout,
.broker-grid {
  --text-primary: var(--c-espresso);
  --text-secondary: rgba(52, 42, 33, 0.82);
  --text-muted: rgba(52, 42, 33, 0.62);
  --border-subtle: rgba(52, 42, 33, 0.14);
  --accent-gold: #7A5B36;
  --accent-gold-dark: #2B2621;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: flex-start;
  background: var(--c-stone);
  color: var(--c-espresso);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow: var(--shadow-medium);
}

@media (min-width: 900px) {
  .broker-editorial-layout,
  .broker-grid {
    grid-template-columns: 340px 1fr;
    gap: 48px;
    padding: 48px;
    align-items: flex-start;
  }
}

.broker-photo-box {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: #25211C;
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
}

.broker-photo-box img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 899px) {
  .broker-editorial-layout,
  .broker-grid {
    padding: 24px 18px;
    gap: 24px;
  }
  .broker-photo-box {
    max-width: 280px;
    margin: 0 auto;
  }
  .broker-photo-box img {
    max-height: 380px;
  }
}

.broker-info h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 6px;
  color: var(--c-espresso);
}

.broker-tagline {
  color: var(--c-bronze-ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.broker-bio {
  color: rgba(52, 42, 33, 0.84);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 16px;
}

.broker-direct-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(52, 42, 33, 0.14);
  border-bottom: 1px solid rgba(52, 42, 33, 0.14);
}

.broker-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-espresso);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.broker-contact-link svg {
  color: var(--c-bronze-ink);
}

.broker-contact-link:hover {
  color: #000000;
}

.broker-editorial-layout .btn-primary,
.broker-grid .btn-primary {
  background: #2B2621;
  color: var(--c-linen);
  border-color: #2B2621;
}

.broker-editorial-layout .btn-primary .btn-circle-icon,
.broker-grid .btn-primary .btn-circle-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-linen);
}

.broker-editorial-layout .btn-secondary,
.broker-grid .btn-secondary {
  border-color: rgba(43, 38, 33, 0.28);
  color: #2B2621;
}

.broker-editorial-layout .btn-secondary:hover,
.broker-grid .btn-secondary:hover {
  background: #2B2621;
  color: var(--c-linen);
}

/* ==========================================================================
   BANNER CTA / ZAPROSZENIE DO KONTAKTU
   ========================================================================== */
.cta-banner-section {
  padding: 80px 0;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   FORMULARZE I MODALE
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #F4EFE8;
  border: 1px solid rgba(43, 38, 33, 0.22);
  border-radius: var(--radius-sm);
  color: #2B2621;
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: #86673F;
  box-shadow: 0 0 0 3px rgba(185, 142, 94, 0.2);
}

/* Modale */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 14, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  --text-primary: #2B2621;
  --text-secondary: rgba(43, 38, 33, 0.80);
  --text-muted: rgba(43, 38, 33, 0.58);
  --border-subtle: rgba(43, 38, 33, 0.14);
  background: var(--c-linen);
  color: #2B2621;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 36px 30px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-card .btn-primary {
  background: #2B2621;
  color: var(--c-linen);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(43, 38, 33, 0.08);
  border: 1px solid rgba(43, 38, 33, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2B2621;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--c-linen);
  background: #2B2621;
}

/* Lightbox dla galerii */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 13, 12, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  user-select: none;
}

.lightbox-overlay.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3100;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  padding: 0;
}

.lightbox-arrow:hover {
  background: var(--c-sand);
  border-color: var(--c-sand);
  color: var(--c-ink);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-arrow.lightbox-prev {
  left: 28px;
}

.lightbox-arrow.lightbox-next {
  right: 28px;
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(24, 22, 19, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--c-linen);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  z-index: 3100;
  pointer-events: none;
}

@media (max-width: 768px) {
  .lightbox-arrow {
    width: 44px;
    height: 44px;
    background: rgba(24, 22, 19, 0.85);
  }
  .lightbox-arrow.lightbox-prev {
    left: 12px;
  }
  .lightbox-arrow.lightbox-next {
    right: 12px;
  }
  .lightbox-counter {
    bottom: 16px;
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}

/* ==========================================================================
   STOPKA (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: var(--c-ink-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-col h5,
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-sand);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(237, 231, 220, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--c-sand);
}

/* Prestiżowe ikony społecznościowe i kontaktowe w stopce */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-linen);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-btn:hover {
  border-color: var(--c-sand);
  color: var(--c-ink);
  background: var(--c-sand);
  transform: translateY(-2px);
}

.footer-social-btn.facebook:hover {
  border-color: var(--c-bronze);
  color: #FFFFFF;
  background: var(--c-bronze);
}

.footer-social-btn.whatsapp:hover {
  border-color: var(--c-bronze);
  color: #FFFFFF;
  background: var(--c-bronze);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-sand) !important;
  font-weight: 500;
}

.footer-social-link:hover {
  color: #FFFFFF !important;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: rgba(237, 231, 220, 0.52);
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(237, 231, 220, 0.62);
}

.footer-bottom a:hover {
  color: var(--c-linen);
}

/* Kompatybilność z kartami na podstronach — jasna tonacja rre Cashmere */
.card-bezel-outer,
.warszawa-booking-banner {
  --text-primary: #2B2621;
  --text-secondary: rgba(43, 38, 33, 0.80);
  --text-muted: rgba(43, 38, 33, 0.60);
  --bg-surface: var(--c-linen);
  --bg-surface-elevated: #E0D6C8;
  --border-subtle: rgba(43, 38, 33, 0.12);
  --border-medium: rgba(43, 38, 33, 0.22);
  --accent-gold: #86673F;
  --accent-gold-light: #7A5B36;
  --accent-gold-dark: #2B2621;
  background: var(--c-linen);
  color: #2B2621;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.card-bezel-outer .btn-primary,
.warszawa-booking-banner .btn-primary {
  background: #2B2621;
  color: var(--c-linen);
  border-color: #2B2621;
}

.card-bezel-outer .btn-primary .btn-circle-icon,
.warszawa-booking-banner .btn-primary .btn-circle-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-linen);
}

.card-bezel-outer .btn-secondary,
.warszawa-booking-banner .btn-secondary {
  border-color: rgba(43, 38, 33, 0.25);
  color: #2B2621;
}

.card-bezel-outer .btn-secondary:hover,
.warszawa-booking-banner .btn-secondary:hover {
  background: #2B2621;
  color: var(--c-linen);
}

.card-bezel-outer:hover {
  border-color: rgba(220, 207, 188, 0.35);
  box-shadow: var(--shadow-hover);
}

.card-bezel-inner {
  padding: 28px;
}

.warszawa-booking-banner {
  padding: 28px 32px;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ==========================================================================
   WIDOK POJEDYNCZEJ OFERTY (oferta-szczegoly.html / single-nieruchomosc.php)
   ========================================================================== */
.single-property-header {
  padding: 28px 0 32px;
  background-color: var(--c-ink-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
  width: 100%;
}

.property-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(237, 231, 220, 0.56);
  margin-bottom: 14px;
}

.property-breadcrumbs a {
  color: rgba(237, 231, 220, 0.78);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.property-breadcrumbs a:hover {
  color: var(--c-sand);
}

.property-breadcrumbs .active-crumb {
  color: var(--c-sand);
  font-weight: 600;
}

.single-header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.single-header-main {
  flex: 1 1 500px;
  min-width: 0;
}

.single-header-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.single-property-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-linen);
  margin-bottom: 8px;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.single-property-location {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(237, 231, 220, 0.80);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.single-property-location:hover {
  color: var(--c-sand);
}

.single-header-price-box {
  text-align: right;
  flex-shrink: 0;
  padding-top: 4px;
}

.single-header-price-box .price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(237, 231, 220, 0.56);
  display: block;
  margin-bottom: 2px;
}

.single-property-price {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: var(--c-sand);
  white-space: nowrap;
}

/* Siatka układu szczegółów */
.single-property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 80px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .single-property-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 380px);
    gap: 40px;
    align-items: start;
  }
}

.single-property-main-col,
.single-property-side-col {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Moduł galerii w szczegółach */
.single-gallery-container {
  margin-bottom: 36px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.single-gallery-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: #13110F;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-medium);
  cursor: pointer;
}

.single-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-gallery-main:hover img {
  transform: scale(1.02);
}

.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(24, 22, 19, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--c-linen);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  padding-bottom: 4px;
}

.gallery-nav-arrow:hover {
  background: var(--c-sand);
  color: var(--c-ink);
  border-color: var(--c-sand);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-arrow.prev { left: 16px; }
.gallery-nav-arrow.next { right: 16px; }

.gallery-counter-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(24, 22, 19, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--c-linen);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 10;
}

.btn-gallery-zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(24, 22, 19, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: var(--c-linen);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-gallery-zoom:hover {
  background: var(--c-sand);
  color: var(--c-ink);
  border-color: var(--c-sand);
}

.gallery-thumbs-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 10px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--c-bronze) var(--c-ink-deep);
  -webkit-overflow-scrolling: touch;
}

.gallery-thumbs-row::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs-row::-webkit-scrollbar-track {
  background: var(--c-ink-deep);
  border-radius: 3px;
}

.gallery-thumbs-row::-webkit-scrollbar-thumb {
  background: var(--c-bronze);
  border-radius: 3px;
}

.gallery-thumb-item {
  width: 78px;
  height: 54px;
  flex: 0 0 78px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: all 0.2s ease;
  background: var(--c-ink-deep);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--c-sand);
  box-shadow: 0 0 0 2px rgba(220, 207, 188, 0.35);
}

/* Opis nieruchomości */
.property-description-section {
  margin-top: 36px;
  background: var(--c-linen);
  color: #2B2621;
  padding: 32px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

@media (max-width: 640px) {
  .property-description-section {
    padding: 22px 18px;
  }
}

.property-section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: inherit;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(140, 128, 114, 0.22);
}

.property-description-body {
  color: rgba(43, 38, 33, 0.85);
  line-height: 1.8;
  font-size: 1.02rem;
}

.property-desc-p,
.property-description-body > p {
  margin-bottom: 16px;
}

.property-bullets-title,
.property-description-body > h3,
.property-description-body > h4 {
  margin: 20px 0 8px;
  color: #2B2621;
  font-size: 1.05rem;
}

.property-bullets-list,
.property-description-body > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-bullets-list li,
.property-description-body > ul > li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
}

.property-bullets-list li::before,
.property-description-body > ul > li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #86673F;
  font-size: 1.3rem;
  line-height: 1;
  top: 1px;
}

/* Treść wpisana w edytorze WordPress (listy numerowane, nagłówki, linki) */
.property-description-body > ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.property-description-body > ol > li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.property-description-body > h3,
.property-description-body > h4 {
  font-family: inherit;
  font-weight: 600;
}

.property-description-body a {
  color: #86673F;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.property-description-body > :last-child {
  margin-bottom: 0;
}

/* Cechy i atuty */
.property-features-section {
  margin-top: 32px;
  background: var(--c-stone);
  color: var(--c-espresso);
  padding: 28px 32px;
  border-radius: 26px;
}

@media (max-width: 640px) {
  .property-features-section {
    padding: 22px 18px;
  }
}

.features-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-linen);
  border: 1px solid rgba(43, 38, 33, 0.12);
  color: #2B2621;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.feature-tag-check {
  color: #86673F;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Sidebar szczegółów */
.property-sticky-sidebar {
  position: sticky;
  top: 96px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.property-sticky-sidebar .card-bezel-inner {
  padding: 24px;
  box-sizing: border-box;
}

.sidebar-block-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(43, 38, 33, 0.12);
  color: #2B2621;
}

.specs-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
}

.matrix-item {
  padding: 12px 14px;
  background: #E0D6C8;
  border-radius: 12px;
  border: 1px solid rgba(43, 38, 33, 0.10);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.matrix-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 38, 33, 0.58);
  font-weight: 700;
}

.matrix-val {
  font-size: 1.02rem;
  font-weight: 700;
  color: #2B2621;
}

.sidebar-broker-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(43, 38, 33, 0.12);
}

.broker-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.broker-sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #86673F;
  flex-shrink: 0;
  display: block;
}

.broker-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2B2621;
  margin-bottom: 2px;
}

.broker-badge {
  font-size: 0.76rem;
  color: var(--c-bronze-ink);
  font-weight: 600;
}

.broker-contacts-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.broker-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
  word-break: break-all;
}

.broker-contact-item.phone { color: #2B2621; }
.broker-contact-item.whatsapp { color: #2B2621; }
.broker-contact-item.email { color: rgba(43, 38, 33, 0.78); }
.broker-contact-item.facebook { color: rgba(43, 38, 33, 0.78); }
.broker-contact-item:hover { color: #86673F !important; }

/* Tabular numerals dla cen,
metraży i współrzędnych */
.property-price,
.single-property-price,
.spec-value,
.matrix-val,
.highlight-stat-value {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   SEKCJA 2 W WIDOKU OFERTY: NAJWAŻNIEJSZE INFORMACJE (KEY HIGHLIGHTS)
   ========================================================================== */
.property-key-highlights {
  display: flex;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--c-linen);
  border-radius: 22px;
  box-shadow: var(--shadow-subtle);
  margin: 0 0 36px;
}

.highlight-stat-item {
  flex: 1 1 128px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  min-width: 0;
  border-left: 1px solid var(--line-on-light);
}

.highlight-stat-item:first-child {
  border-left: none;
}

@media (max-width: 639px) {
  .highlight-stat-item {
    flex-basis: 42%;
    border-left: none;
    border-top: 1px solid var(--line-on-light);
  }
  .highlight-stat-item:nth-child(-n+2) {
    border-top: none;
  }
}

.highlight-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 38, 33, 0.74);
  font-weight: 700;
}

.highlight-stat-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #2B2621;
  line-height: 1.3;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.highlight-stat-value.highlight-price {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--c-bronze-ink);
  font-size: 1.05rem;
}

/* ==========================================================================
   SEKCJA 4–5 W WIDOKU OFERTY: LOKALIZACJA + MAPA TEJ JEDNEJ NIERUCHOMOŚCI
   Ciemna karta z ciemną mapą, pinezka (dokładny adres) albo okrąg okolicy.
   ========================================================================== */
.offer-location {
  margin-top: 36px;
  padding: 30px 30px 26px;
  border-radius: 26px;
  background: var(--c-ink-raised);
  border: 1px solid var(--line-on-dark);
  color: var(--c-linen);
  scroll-margin-top: 110px;
}

@media (max-width: 640px) {
  .offer-location {
    padding: 22px 16px 18px;
    border-radius: 22px;
  }
}

.offer-location .property-section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.offer-location-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-linen);
}

.offer-location-address svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--c-bronze);
}

.offer-location-desc {
  margin: 12px 0 0;
  max-width: 68ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(237, 231, 220, 0.74);
}

.property-map-frame {
  margin: 22px 0 0;
}

.property-map {
  position: relative;
  height: clamp(300px, 42vw, 440px);
  border-radius: 18px;
  overflow: hidden;
  background: #191714;
  border: 1px solid var(--line-on-dark);
  z-index: 0;
}

/* Ciepły odcień ciemnego podkładu, żeby mapa nie była „zimno-szara” */
.property-map .leaflet-tile-pane {
  filter: sepia(0.28) saturate(0.85) brightness(1.08) contrast(0.96);
}

/* Jasne kafelki OpenStreetMap odwrócone do ciemnej wersji */
.property-map .rre-tiles-dark {
  filter: invert(1) hue-rotate(180deg) brightness(0.82) contrast(0.92) saturate(0.3);
}

.property-map.leaflet-container {
  font-family: var(--font-sans);
  background: #191714;
}

.property-map .leaflet-control-zoom {
  border: none;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0 0 14px;
}

.property-map.leaflet-container .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  line-height: 36px;
  background: rgba(33, 30, 26, 0.92);
  color: var(--c-linen);
  border-bottom: 1px solid var(--line-on-dark);
  font-weight: 400;
}

.property-map.leaflet-container .leaflet-control-zoom a:hover {
  background: var(--c-ink);
  color: var(--c-sand);
}

.property-map .leaflet-control-zoom a:last-child {
  border-bottom: none;
}

.property-map.leaflet-container .leaflet-control-attribution {
  background: transparent;
  color: rgba(237, 231, 220, 0.45);
  font-size: 9px;
  line-height: 1.6;
  padding: 0 8px 2px;
}

.property-map.leaflet-container .leaflet-control-attribution a {
  color: inherit;
  text-decoration: none;
}

.property-map.leaflet-container .leaflet-control-attribution a:hover {
  color: rgba(237, 231, 220, 0.7);
}

.rre-map-pin {
  background: none;
  border: none;
}

.rre-map-pin svg {
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}

.rre-map-pin-body {
  fill: var(--c-bronze);
  stroke: var(--c-linen);
  stroke-width: 1.5;
}

.rre-map-pin-dot {
  fill: var(--c-ink);
}

.rre-map-area {
  fill: var(--c-bronze);
  fill-opacity: 0.16;
  stroke: var(--c-bronze);
  stroke-width: 1.5;
  stroke-opacity: 0.9;
  stroke-dasharray: 5 6;
}

.property-map.is-empty {
  display: grid;
  place-items: center;
  height: auto;
  min-height: 140px;
  padding: 24px;
}

.property-map-empty {
  margin: 0;
  max-width: 44ch;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(237, 231, 220, 0.74);
}

.property-map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 14px;
}

.property-map-note {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(237, 231, 220, 0.66);
  max-width: 52ch;
}

.property-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(237, 231, 220, 0.22);
  color: var(--c-linen);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-map-link:hover,
.btn-map-link:focus-visible {
  background: var(--c-linen);
  border-color: var(--c-linen);
  color: var(--c-ink);
}

@media (max-width: 640px) {
  .property-map-actions,
  .btn-map-link {
    width: 100%;
  }
  .btn-map-link {
    justify-content: center;
  }
}

/* ==========================================================================
   SEKCJA 6 W WIDOKU OFERTY: KONTAKT LUB CTA BEZPOŚREDNIO POD MAPĄ
   ========================================================================== */
.property-bottom-cta-section {
  margin-top: 32px;
}

.property-bottom-cta-card {
  --text-primary: var(--c-espresso);
  --text-secondary: rgba(52, 42, 33, 0.82);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background: var(--c-stone);
  color: var(--c-espresso);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow-subtle);
}

.property-bottom-cta-card .btn-primary {
  background: #2B2621;
  color: var(--c-linen);
  border-color: #2B2621;
}

.property-bottom-cta-card .btn-primary .btn-circle-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-linen);
}

.property-bottom-cta-card .btn-secondary {
  border-color: rgba(43, 38, 33, 0.25);
  color: #2B2621;
}

.property-bottom-cta-card .btn-secondary:hover {
  background: #2B2621;
  color: var(--c-linen);
}

@media (max-width: 640px) {
  .property-bottom-cta-card {
    padding: 22px 18px;
  }
}

.bottom-cta-text {
  flex: 1 1 340px;
  min-width: 0;
}

.bottom-cta-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: var(--c-espresso);
  margin-bottom: 8px;
}

.bottom-cta-text p {
  color: rgba(52, 42, 33, 0.82);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

.bottom-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .bottom-cta-actions {
    width: 100%;
  }
  .bottom-cta-actions .btn-primary,
  .bottom-cta-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   DOPRACOWANIA: KARTY OBSZARÓW, WIDOK OFERTY, STANY
   ========================================================================== */
/* Podtytuł pod nagłówkiem karty (tekst klienta) — bez etykiety nad tytułem */
.showcase-sub {
  margin: -4px 0 16px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--card-muted);
  text-wrap: pretty;
}

.showcase-cta-icon {
  display: inline-flex;
}

.loading-note {
  color: var(--text-secondary);
  font-size: 1rem;
}

.property-badge.is-static,
.property-type-tag.is-static {
  position: static;
}

.location-jump-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-bronze);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.single-property-location:hover .location-jump-link {
  color: var(--c-sand);
}

/* Najważniejsze informacje jako lista definicji */
.property-key-highlights {
  margin: 0;
}

.property-key-highlights dd {
  margin: 0;
}

.features-tags-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-thumb-item {
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.gallery-nav-arrow svg {
  display: block;
}

.btn-gallery-zoom svg,
.btn-secondary svg,
.btn-primary svg {
  flex-shrink: 0;
}

/* Kolumna boczna: karta opiekuna */
.property-sticky-sidebar .sidebar-broker-box {
  margin-top: 0;
  padding: 24px;
  border-top: none;
  border-radius: 24px;
  background: var(--c-linen);
  color: #2B2621;
  box-shadow: var(--shadow-subtle);
}

.property-sticky-sidebar .broker-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 2px;
  color: #2B2621;
}

.property-sticky-sidebar .broker-badge {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(43, 38, 33, 0.72);
}

.property-sticky-sidebar .broker-contact-item {
  color: #2B2621;
}

.property-sticky-sidebar .broker-contact-item svg {
  color: var(--c-bronze-ink);
}

.btn-primary.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.property-sticky-sidebar .btn-primary {
  background: var(--c-ink);
  color: var(--c-linen);
}

.property-sticky-sidebar .btn-primary:hover {
  background: var(--c-espresso);
  color: var(--c-linen);
}

.bottom-cta-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 8px;
}

.broker-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.broker-point {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(43, 38, 33, 0.05);
  border: 1px solid var(--line-on-light);
}

.broker-point-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-bronze-ink);
}

.broker-point-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(43, 38, 33, 0.8);
}

.warszawa-booking-banner {
  margin-top: 48px;
}

.form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(185, 142, 94, 0.14);
  border: 1px solid rgba(185, 142, 94, 0.45);
  color: var(--c-travertine);
}

.form-status.is-error {
  background: rgba(190, 90, 70, 0.14);
  border-color: rgba(190, 90, 70, 0.5);
  color: #F0C9BE;
}

/* ==========================================================================
   WSPÓLNE ELEMENTY: DOSTĘPNOŚĆ, MODALE, STOPKA
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 5000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--c-linen);
  color: var(--c-ink);
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 8px;
  padding-right: 40px;
}

.modal-lead {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 420px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.mobile-nav-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.footer-heading {
  margin-top: 0;
}

.footer-about {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 16px 0 20px;
  max-width: 36ch;
}

.footer-person {
  color: var(--text-primary);
  font-weight: 700;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.properties-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border-radius: 22px;
  border: 1px dashed var(--border-medium);
  text-align: center;
  color: var(--text-secondary);
}

.properties-empty p {
  margin: 0 0 16px;
}

/* ==========================================================================
   WEJŚCIE PODSTRON I SIATEK OFERT (ten sam język ruchu co hero, spokojniej)
   ========================================================================== */
@keyframes rre-page-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

main > section:first-child:not(.hero-intro) .section-title,
main > section:first-child:not(.hero-intro) h1,
.single-property-title {
  animation: rre-page-in 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

main > section:first-child:not(.hero-intro) .section-subtitle,
.single-property-location,
.single-header-price-box {
  animation: rre-page-in 1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.properties-grid > .property-card,
.featured-properties-grid > .property-card {
  animation: rre-page-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.properties-grid > .property-card:nth-child(1) { animation-delay: 0.15s; }
.properties-grid > .property-card:nth-child(2) { animation-delay: 0.23s; }
.properties-grid > .property-card:nth-child(3) { animation-delay: 0.31s; }
.properties-grid > .property-card:nth-child(4) { animation-delay: 0.39s; }
.properties-grid > .property-card:nth-child(5) { animation-delay: 0.47s; }
.properties-grid > .property-card:nth-child(6) { animation-delay: 0.55s; }
.properties-grid > .property-card:nth-child(n+7) { animation-delay: 0.6s; }

/* Zdjęcia kart: delikatne przybliżenie przy najechaniu */
.property-thumb-box img {
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-thumb-box img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  main > section:first-child .section-title,
  main > section:first-child h1,
  main > section:first-child .section-subtitle,
  .single-property-title,
  .single-property-location,
  .single-header-price-box,
  .properties-grid > .property-card,
  .featured-properties-grid > .property-card {
    animation-name: rre-fade-in !important;
  }
  .property-card:hover .property-thumb-box img {
    transform: none;
  }
}

/* ==========================================================================
   PODSTRONY: WSTĘP, TEKSTY KLIENTA, CTA, KONTAKT, POLITYKA
   ========================================================================== */
.page-intro {
  padding: 36px 0 28px;
}

@media (min-width: 1024px) {
  .page-intro {
    padding: 56px 0 36px;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.crumbs a {
  color: var(--text-secondary);
}

.crumbs a:hover {
  color: var(--c-sand);
}

.crumbs [aria-current] {
  color: var(--c-sand);
  font-weight: 600;
}

.page-intro .section-title {
  margin-bottom: 16px;
}

.page-lead {
  max-width: 68ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.page-points {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 70ch;
}

.page-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
}

.page-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--c-bronze);
}

.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}

.page-facts > div {
  flex: 1 1 200px;
  padding: 16px 20px 16px 0;
}

.page-facts > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line-on-dark);
}

.page-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.page-facts dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--c-linen);
}

@media (max-width: 639px) {
  .page-facts > div + div {
    border-left: none;
    border-top: 1px solid var(--line-on-dark);
    padding-left: 0;
  }
}

.listings-section--flush {
  padding-top: 8px;
}

/* Kafle kategorii (Oferta Hiszpania) */
.hub-section {
  padding: 12px 0 56px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  color: #2B2621;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hub-card.tone-cashmere { background: var(--c-stone); }
.hub-card.tone-sage { background: var(--c-sage); color: var(--c-sage-ink); }
.hub-card.tone-sand { background: var(--c-travertine); }

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.hub-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 10px 10px 0;
  border-radius: 18px;
}

.hub-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card:hover .hub-card-media img {
  transform: scale(1.05);
}

.hub-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
}

.hub-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.2;
}

.hub-card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.82;
}

.hub-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Bloki tekstu klienta */
.prose-section {
  padding: 40px 0 64px;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .prose-grid {
    grid-template-columns: 1fr 1fr;
  }
  .prose-block--wide {
    grid-column: 1 / -1;
  }
}

.prose-block {
  padding: 30px 32px;
  border-radius: 24px;
  background: var(--c-ink-raised);
  border: 1px solid var(--line-on-dark);
}

@media (max-width: 640px) {
  .prose-block {
    padding: 22px 18px;
  }
}

.prose-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--c-linen);
  text-wrap: balance;
}

.prose-block p {
  margin: 0 0 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 72ch;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.prose-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.prose-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--c-bronze);
}

/* W cenie (wynajem) */
.included-section {
  padding: 48px 0 16px;
}

.included-title {
  margin-bottom: 20px;
}

.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.included-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--c-ink-raised);
  border: 1px solid var(--line-on-dark);
  color: var(--c-linen);
  font-weight: 600;
}

.included-list svg {
  color: var(--c-bronze);
  flex-shrink: 0;
}

/* Zaproszenie do kontaktu na końcu podstron */
.page-cta {
  padding: 72px 0 88px;
  border-top: 1px solid var(--line-on-dark);
  margin-top: 40px;
}

.page-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 12px;
  text-wrap: balance;
}

.page-cta-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto 28px;
  max-width: 56ch;
}

.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.broker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-broker-section--page {
  padding-top: 8px;
}

/* Kontakt */
.contact-section {
  padding: 8px 0 72px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--c-ink-raised);
  border: 1px solid var(--line-on-dark);
}

.contact-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(185, 142, 94, 0.16);
  color: var(--c-bronze);
}

.contact-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item-body a {
  color: var(--c-linen);
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-item-body a:hover {
  color: var(--c-sand);
}

.contact-form-card {
  padding: 32px;
  border-radius: 26px;
  background: var(--c-linen);
  color: #2B2621;
  box-shadow: var(--shadow-subtle);
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: 24px 18px;
  }
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: #2B2621;
  margin: 0 0 20px;
}

.contact-form-card .form-label {
  color: rgba(43, 38, 33, 0.8);
}

.contact-form-card .form-control {
  background: #fff;
  color: #2B2621;
  border: 1px solid rgba(43, 38, 33, 0.16);
}

.contact-form-card .form-control:focus {
  border-color: var(--c-bronze-ink);
}

.contact-form-card .btn-primary {
  background: var(--c-ink);
  color: var(--c-linen);
}

.contact-form-card .form-status {
  color: #2B2621;
}

.form-consent {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(43, 38, 33, 0.7);
  margin: 4px 0 16px;
}

.form-consent a {
  color: var(--c-bronze-ink);
  text-decoration: underline;
}

/* Polityka prywatności */
.legal-section {
  padding: 0 0 80px;
}

.legal-text {
  padding: 36px 38px;
  border-radius: 24px;
  background: var(--c-ink-raised);
  border: 1px solid var(--line-on-dark);
  color: var(--text-secondary);
  line-height: 1.8;
}

@media (max-width: 640px) {
  .legal-text {
    padding: 22px 18px;
  }
}

.legal-text h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-linen);
  margin: 28px 0 10px;
}

.legal-text h2:first-of-type {
  margin-top: 20px;
}

.legal-text p,
.legal-text ul {
  margin: 0 0 12px;
}

.legal-text ul {
  padding-left: 20px;
}

.legal-text a {
  color: var(--c-sand);
  text-decoration: underline;
}

/* Treść dopisana w edytorze WordPress */
.page-editor-content {
  margin-top: 40px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 72ch;
}

.page-editor-content h2,
.page-editor-content h3 {
  font-family: var(--font-serif);
  color: var(--c-linen);
  font-weight: 500;
  margin: 28px 0 10px;
}

.page-editor-content a {
  color: var(--c-sand);
  text-decoration: underline;
}

.modal-lead a {
  color: var(--c-sand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Wygodniejsze pola dotyku na telefonie (WCAG 2.5.8) */
@media (max-width: 767px) {
  .crumbs a,
  .property-breadcrumbs a,
  .footer-bottom a,
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
  .broker-contact-link,
  .broker-contact-item,
  .contact-item-body a {
    min-height: 40px;
  }
}

/* Tekst tylko dla czytników ekranu */
.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;
}

.section-header-flex .section-title { margin-bottom: 10px; }
.section-header-flex .section-subtitle { margin-bottom: 0; }

/* ==========================================================================
   TELEFON: poprawki czytelności (karty obszarów, nagłówek oferty)
   ========================================================================== */
/* Adres w nagłówku oferty: ikona obok tekstu (nie w osobnej linii), link „Zobacz na mapie” pod adresem */
.single-property-location {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 8px;
  row-gap: 4px;
}

.single-property-location > svg {
  margin-top: 0.2em;
}

.single-property-location .location-jump-link {
  grid-column: 2;
}

@media (max-width: 640px) {
  /* Karty „Zarządzanie najmem / Oferta Hiszpania / Apartamenty”: więcej miejsca na treść */
  .showcase-stack {
    gap: 20px;
  }

  .showcase-card {
    padding: 14px 14px 22px;
    border-radius: 24px;
  }

  .showcase-media {
    border-radius: 16px;
  }

  .showcase-grid {
    gap: 22px;
  }

  .showcase-content {
    padding: 0 6px;
  }

  /* Lista cech w jednej kolumnie — bez łamania słów co 1–2 wyrazy */
  .showcase-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .showcase-feat {
    font-size: 0.92rem;
    align-items: flex-start;
  }

  .showcase-feat svg {
    margin-top: 0.2em;
  }

  /* Stawka / cena pod tytułem oferty — do lewej, jak reszta nagłówka */
  .single-header-price-box {
    text-align: left;
  }
}

/* Lokalizacja na karcie oferty: długie nazwy przechodzą do 2. linii zamiast ucinania w pół słowa */
.property-location {
  align-items: flex-start;
  white-space: normal;
}

.property-location svg {
  margin-top: 1px;
}

.property-location span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  /* Karty ofert jedna pod drugą: bez rezerwowania miejsca na 2 linie tytułu (wyrównanie potrzebne tylko w rzędzie) */
  .property-title,
  .property-price,
  .property-specs {
    min-height: 0;
  }
}

/* ==========================================================================
   HERO (STRONA GŁÓWNA) — WIZYTÓWKA: WIĘKSZA TYPOGRAFIA I PŁYNNE WEJŚCIE PO KOLEI
   Kolejność: zdjęcie → tytuł linia po linii → brązowa linia → opis → przyciski
   → podpis → rynki (Warszawa, Hiszpania, Cypr).
   Przy „ograniczonym ruchu” (ustawienie systemu) ta sama kolejność, ale samo
   przenikanie z wyostrzeniem — bez przesuwania i powiększeń.
   ========================================================================== */
.hero-title {
  font-size: clamp(2.2rem, 10.2vw, 3rem);
  line-height: 1.02;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: clamp(3rem, 6.6vw, 4.6rem);
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    max-width: 980px;
  }

  .hero-title {
    font-size: clamp(3.6rem, 5.2vw, 6.4rem);
    letter-spacing: -0.025em;
  }

  .hero-rule {
    margin: 30px 0 30px;
  }

  .hero-lead {
    font-size: clamp(1.05rem, 0.45rem + 0.75vw, 1.3rem);
    max-width: 54ch;
  }
}

@media (min-width: 1280px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1fr) 360px;
    padding: 150px 72px 60px;
  }

  .hero-market-name {
    font-size: 1.5rem;
  }

  .hero-market-meta {
    font-size: 0.9rem;
  }
}

/* --- Wejście (w stylu płynnych, długich wjazdów): duży dystans, miękkie wyhamowanie --- */
@keyframes rre-hero-rise {
  from { opacity: 0; transform: translate3d(0, 70px, 0); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes rre-hero-up {
  from { opacity: 0; transform: translate3d(0, 56px, 0); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes rre-hero-from-right {
  from { opacity: 0; transform: translate3d(90px, 0, 0); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes rre-hero-photo {
  from { opacity: 0.35; transform: scale(1.16); filter: saturate(0.6) brightness(0.65); }
  to   { opacity: 1; transform: scale(1.04); filter: none; }
}

/* Linie tytułu nie są przycinane maską — wjeżdżają swobodnie z dołu */
.hero-line {
  overflow: visible;
}

.js-intro [data-hero-intro] .hero-media {
  animation: rre-fade-in 1.2s ease-out both;
}

.js-intro [data-hero-intro] .hero-media-img {
  animation:
    rre-hero-photo 2.8s cubic-bezier(0.19, 1, 0.22, 1) both,
    rre-photo-drift 24s 2.8s ease-in-out infinite alternate;
}

.js-intro [data-hero-intro] .hero-line > span:not(.is-split),
.js-intro [data-hero-intro] .hero-word {
  animation: rre-hero-rise 1.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* Linie tytułu jedna po drugiej (z góry na dół) */
.js-intro [data-hero-intro] .hero-line:nth-child(1) > span:not(.is-split),
.js-intro [data-hero-intro] .hero-line:nth-child(1) .hero-word { animation-delay: 0.25s; }
.js-intro [data-hero-intro] .hero-line:nth-child(2) > span:not(.is-split),
.js-intro [data-hero-intro] .hero-line:nth-child(2) .hero-word { animation-delay: 0.42s; }
.js-intro [data-hero-intro] .hero-line:nth-child(3) > span:not(.is-split),
.js-intro [data-hero-intro] .hero-line:nth-child(3) .hero-word { animation-delay: 0.59s; }
.js-intro [data-hero-intro] .hero-line:nth-child(n+4) > span:not(.is-split),
.js-intro [data-hero-intro] .hero-line:nth-child(n+4) .hero-word { animation-delay: 0.76s; }

.js-intro [data-hero-intro] .hero-rule {
  animation: rre-rule-draw 1.5s 0.95s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.js-intro [data-hero-intro] .hero-lead,
.js-intro [data-hero-intro] .hero-actions,
.js-intro [data-hero-intro] .hero-byline {
  animation: rre-hero-up 1.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.js-intro [data-hero-intro] .hero-lead { animation-delay: 0.9s; }
.js-intro [data-hero-intro] .hero-actions { animation-delay: 1.08s; }
.js-intro [data-hero-intro] .hero-byline { animation-delay: 1.26s; }

.js-intro [data-hero-intro] .hero-market {
  animation: rre-hero-from-right 1.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.js-intro [data-hero-intro] .hero-market:nth-child(1) { animation-delay: 1.0s; }
.js-intro [data-hero-intro] .hero-market:nth-child(2) { animation-delay: 1.16s; }
.js-intro [data-hero-intro] .hero-market:nth-child(3) { animation-delay: 1.32s; }

/* Telefon: rynki są pod tekstem — wjeżdżają od dołu, nie z boku */
@media (max-width: 1023px) {
  .js-intro [data-hero-intro] .hero-market {
    animation-name: rre-hero-up;
  }
}

.js-intro .site-header {
  animation: rre-header-in 1.4s 0.1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes rre-header-in {
  from { opacity: 0; transform: translate3d(0, -24px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Wejście jest krótkim, jednorazowym ruchem i zostaje także przy „ograniczonym ruchu”.
   Wyłączamy tylko ciągłe efekty: dryf zdjęcia i głębię przy przewijaniu. */
@media (prefers-reduced-motion: reduce) {
  .js-intro [data-hero-intro] .hero-media-img {
    animation: rre-hero-photo 2.8s cubic-bezier(0.19, 1, 0.22, 1) both !important;
  }

  .js-intro [data-hero-intro] .hero-line > span:not(.is-split),
  .js-intro [data-hero-intro] .hero-word {
    animation-name: rre-hero-rise !important;
  }

  .js-intro [data-hero-intro] .hero-rule {
    animation: rre-rule-draw 1.5s 0.95s cubic-bezier(0.65, 0, 0.35, 1) both !important;
  }

  .js-intro [data-hero-intro] .hero-lead,
  .js-intro [data-hero-intro] .hero-actions,
  .js-intro [data-hero-intro] .hero-byline {
    animation-name: rre-hero-up !important;
    animation-duration: 1.6s !important;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1) !important;
  }

  .js-intro [data-hero-intro] .hero-lead { animation-delay: 0.9s !important; }
  .js-intro [data-hero-intro] .hero-actions { animation-delay: 1.08s !important; }
  .js-intro [data-hero-intro] .hero-byline { animation-delay: 1.26s !important; }

  .js-intro [data-hero-intro] .hero-market {
    animation-name: rre-hero-from-right !important;
    animation-duration: 1.6s !important;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1) !important;
  }

  .js-intro [data-hero-intro] .hero-market:nth-child(1) { animation-delay: 1.0s !important; }
  .js-intro [data-hero-intro] .hero-market:nth-child(2) { animation-delay: 1.16s !important; }
  .js-intro [data-hero-intro] .hero-market:nth-child(3) { animation-delay: 1.32s !important; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1023px) {
  .js-intro [data-hero-intro] .hero-market {
    animation-name: rre-hero-up !important;
  }
}

/* --- Wjazd sekcji przy przewijaniu (karty ofert, nagłówki, bloki treści) --- */
.js-reveal .rre-reveal {
  opacity: 0;
  transform: translate3d(0, 64px, 0);
  transition:
    opacity 1.3s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.3s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js-reveal .rre-reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* Karty ofert wjeżdżają przy przewijaniu zamiast wszystkie naraz przy wczytaniu */
.js-reveal .properties-grid > .property-card.rre-reveal,
.js-reveal .featured-properties-grid > .property-card.rre-reveal {
  animation: none;
}

/* --- Telefon: równe przyciski, zwarty układ, nic się nie rozjeżdża --- */
@media (max-width: 639px) {
  .hero-stage {
    padding: 96px 18px 22px;
    gap: 26px;
    border-radius: 24px;
  }

  .hero-rule {
    margin: 20px 0 20px;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions > a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-byline {
    margin-top: 18px;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .hero-market {
    padding: 12px 0;
  }

  .hero-market-name {
    font-size: 1.15rem;
  }

  .hero-market-meta {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   PREMIUM: SUBTELNE EFEKTY PO NAJECHANIU I DOTKNIĘCIU
   Zdjęcia przybliżają się bardzo powoli (2 s, miękkie wyhamowanie), karty lekko
   się unoszą. Efekty uruchamia użytkownik (najechanie), więc działają też
   przy „ograniczonym ruchu”. Na telefonie: delikatne wciśnięcie pod palcem.
   ========================================================================== */
.property-thumb-box img,
.showcase-media img,
.market-card-img img,
.hub-card-media img {
  transition: transform 2s cubic-bezier(0, 0, 0.2, 1);
}

.single-gallery-main img {
  transition: transform 2.2s cubic-bezier(0, 0, 0.2, 1);
}

/* Uniesienie kart przez osobną właściwość „translate”, żeby nie gryzło się z wjazdem przy przewijaniu */
.property-card,
.hub-card,
.market-card {
  transition:
    translate 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.8s ease;
}

.js-reveal .rre-reveal.property-card {
  transition:
    opacity 1.3s cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0s),
    transform 1.3s cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0s),
    translate 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.8s ease;
}

.btn-circle-icon svg {
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

@media (hover: hover) and (pointer: fine) {
  .property-card:hover {
    transform: none;
    translate: 0 -6px;
  }

  .hub-card:hover,
  .market-card:hover {
    translate: 0 -6px;
  }

  .property-card:hover .property-thumb-box img,
  .hub-card:hover .hub-card-media img,
  .market-card:hover .market-card-img img {
    transform: scale(1.06);
  }

  .showcase-card:hover .showcase-media img,
  .js-reveal .showcase-card.is-inview:hover .showcase-media img {
    transform: scale(1.05);
  }

  .single-gallery-main:hover img {
    transform: scale(1.03);
  }

  a:hover .btn-circle-icon svg,
  button:hover .btn-circle-icon svg {
    transform: translate(2px, -2px);
  }
}

/* Telefon i tablet: krótkie „wciśnięcie” pod palcem */
@media (hover: none) {
  .btn-primary,
  .btn-secondary,
  .btn-ghost-light,
  .showcase-cta {
    transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1), background 0.3s ease, color 0.3s ease;
  }

  .btn-primary:active,
  .btn-secondary:active,
  .btn-ghost-light:active,
  .showcase-cta:active {
    transform: scale(0.97);
  }

  .property-card:active,
  .hub-card:active {
    translate: 0 2px;
  }
}

/* Nagłówek: pełne menu dopiero od 1280 px (niżej nie mieści się z przyciskiem telefonu) — niżej menu „hamburger” */
@media (min-width: 1024px) and (max-width: 1279px) {
  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .desktop-nav {
    gap: 2px;
  }
}

/* Karty obszarów: to samo powolne przybliżenie co przy kartach ofert (2 s) */
.js-reveal .showcase-media img {
  transition: transform 2s cubic-bezier(0, 0, 0.2, 1);
}
