/*
Theme Name: CitySound Real Estate
Theme URI: https://citysound.pl
Author: CitySound
Author URI: https://citysound.pl
Description: Premium motyw dla CitySound Real Estate - człowiek w centrum, dom w sercu.
Version: 3.79
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: citysound
Tags: real-estate, custom-logo, custom-menu, featured-images, theme-options

CitySound Real Estate Theme
Copyright 2024 CitySound

CHANGELOG:
  3.20 — Zdjęcia zespołu: JS window.onload wymusza object-position:top po
         załadowaniu wszystkich skryptów (wtyczka nadpisywała CSS); cofnięte
         zmiany aspect-ratio 3/4 i height:420px z 3.19 — kwadrat zostaje.
  3.19 — (wycofane) aspect-ratio 3/4, height 420px — nadpisywane przez serwer.
  2.3 — BUGFIXY: logo dual upload (białe/kolorowe) w Customizer → Wygląd → Logo;
        naprawa wp_nav_menu (menu teraz się podstawia poprawnie); hero stats białe
        cyfry (bez gradient); usługi na homepage — krótki opis z excerpta, nie body.
        Mobilne menu przepisane od zera.
  2.2 — Port z React: animacje (fadeInUp, scaleIn, shimmer), card-property hover,
        card-team hover, testimonial-card, skill-tag hover, status-badge poprawka,
        glass-dark, shadow-premium, value-card nowy styl (dark hover), agent-avatar,
        contact-icon, listing widok listowy, header dropdown Usługi, scrollbar,
        nav-link underline, bento-grid, stat-number gradient, page-enter transition.
  2.1 — Sekcja procesu obsługi klienta (step-by-step), formularze usług z routingiem
        do agenta, single-usluga przepisany, nowe ikony SVG, animacje scroll.
  2.0 — Filtry nieruchomości (homepage + listing), nowe statusy (na-sprzedaz /
        do-najmu / wynajete / sprzedane), ukrywanie ceny, galeria z wirtualnym spacerem,
        formularz "Umów prezentację" z routingiem, pole typu oferty, video YouTube,
        naprawa stopki.
  1.0 — Wersja bazowa (Emergent): CPT, Customizer, front-page, header, footer.
*/

/* ===== CSS VARIABLES ===== */
:root {
  --cs-red: #B80F0A;
  --cs-red-hover: #9a0d08;
  --cs-black: #000000;
  --cs-graphite: #1F1F1F;
  --cs-charcoal: #4A4A4A;
  --cs-concrete: #D9D9D9;
  --cs-warm-gray: #F2F2F2;
  --cs-white: #FFFFFF;
  --cs-emerald: #0F3D2E;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--cs-white);
  color: var(--cs-graphite);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
}

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding { padding: 7rem 0; }
}

.text-gradient {
  background: linear-gradient(135deg, var(--cs-red) 0%, var(--cs-black) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-emerald {
  color: var(--cs-emerald);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  color: white;
  background-color: var(--cs-red);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(251, 6, 3, 0.3);
}

.btn-primary:hover {
  background-color: var(--cs-red-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  color: white;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.2);
}

/* ===== HEADER ===== */
/* ===== HEADER — v2.7 clean rewrite ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
}

/* Scrolled state — white bg */
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* Inner pages — always white */
.site-header.page-header-visible {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* Header layout */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

/* ===== LOGO ===== */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0; /* prevents extra space under img */
}

/* Both logo imgs — constrained height, no overflow */
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Logo switching — white default, color on scroll/inner pages.
   Inline style="display:none" on .site-logo-color in HTML ensures
   no flash of wrong logo before CSS loads. */
.site-logo-white { display: block !important; }
.site-logo-color  { display: none  !important; }

.site-header.scrolled .site-logo-white,
.site-header.page-header-visible .site-logo-white { display: none  !important; }
.site-header.scrolled .site-logo-color,
.site-header.page-header-visible .site-logo-color  { display: block !important; }

/* Text fallback when no image uploaded */
.site-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.site-logo-white.site-logo-text { color: white; }
.site-logo-color.site-logo-text  { color: var(--cs-graphite); }

/* ===== NAVIGATION ===== */
.main-navigation {
  display: none;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
  color: white; /* dziedziczy na wszystkie dzieci — nav-link i dropdown-toggle */
}
@media (min-width: 1024px) {
  .main-navigation { display: flex; }
}

/* nav-link — single definition, all states */
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.9375rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cs-red);
  transition: width 0.25s ease;
}
.nav-link:hover           { color: var(--cs-red); }
.nav-link:hover::after    { width: 100%; }
.nav-link.active::after   { width: 100%; }
.nav-link.current-menu-item::after { width: 100%; }

/* On white header — switch to dark text */
.site-header.scrolled .nav-link,
.site-header.scrolled .header-dropdown-toggle,
.site-header.page-header-visible .nav-link,
.site-header.page-header-visible .header-dropdown-toggle {
  color: var(--cs-graphite);
  text-shadow: none;
}
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .header-dropdown-toggle:hover,
.site-header.page-header-visible .nav-link:hover,
.site-header.page-header-visible .header-dropdown-toggle:hover { color: var(--cs-red); }

/* WP Menu — li elements get nav-link treatment */
.main-navigation > li {
  list-style: none;
}
.main-navigation > li > a {
  position: relative;
  font-weight: 500;
  font-size: 0.9375rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.main-navigation > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cs-red);
  transition: width 0.25s ease;
}
.main-navigation > li > a:hover   { color: var(--cs-red); }
.main-navigation > li > a:hover::after { width: 100%; }
.main-navigation > li.current-menu-item > a::after,
.main-navigation > li.current_page_item > a::after { width: 100%; }
.site-header.scrolled .main-navigation > li > a,
.site-header.page-header-visible .main-navigation > li > a {
  color: var(--cs-graphite);
  text-shadow: none;
}
.site-header.scrolled .main-navigation > li > a:hover,
.site-header.page-header-visible .main-navigation > li > a:hover { color: var(--cs-red); }

/* ===== HEADER CTA BUTTON ===== */
.header-cta {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}
.header-cta svg { width: 1rem; height: 1rem; }

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.mobile-menu-toggle svg { width: 1.5rem; height: 1.5rem; }
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.1); }
.site-header.scrolled .mobile-menu-toggle,
.site-header.page-header-visible .mobile-menu-toggle { color: var(--cs-graphite); }
.site-header.scrolled .mobile-menu-toggle:hover,
.site-header.page-header-visible .mobile-menu-toggle:hover { background: var(--cs-warm-gray); }
@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0a0a0a;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-title .highlight {
  color: var(--cs-red);
}

.hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 42rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.25rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 56rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
  }
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .stat-number { font-size: 3rem; }
}

.stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  color: var(--cs-red);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}

.section-subtitle {
  color: var(--cs-charcoal);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 4/3;
}

@media (min-width: 768px) {
  .service-card {
    aspect-ratio: 16/10;
  }
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
  transition: background 0.3s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

.service-card-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .service-card-content { padding: 2rem; }
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .service-card-title { font-size: 1.875rem; }
}


.service-card-desc {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  max-width: 28rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.service-card:hover .service-card-link {
  color: var(--cs-red);
}

.service-card-link svg {
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-link svg {
  transform: translateX(0.5rem);
}

/* Contact CTA Card */
.service-card-cta {
  background: var(--cs-graphite);
  transition: background 0.3s ease;
}

.service-card-cta:hover {
  background: var(--cs-red);
}

.service-card-cta .service-card-content {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cta-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

/* ===== PROPERTIES SECTION ===== */
.properties-section {
  background: var(--cs-warm-gray);
}

.section-header-flex {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header-flex {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  color: var(--cs-red);
  font-weight: 500;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .view-all-link { margin-top: 0; }
}

.view-all-link:hover {
  text-decoration: underline;
}

.view-all-link svg {
  margin-left: 0.5rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.property-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08);
  transition: all 0.5s ease;
}

.property-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
  transform: translateY(-6px);
}

.property-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.property-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .property-image-wrapper img {
  transform: scale(1.08);
}

/* status CSS removed — see final block */

.property-content {
  padding: 1.5rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cs-emerald);
  margin-bottom: 0.5rem;
}

.property-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--cs-charcoal);
}

.property-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.property-card:hover .property-title {
  color: var(--cs-red);
}

.property-location {
  color: var(--cs-charcoal);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.property-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--cs-charcoal);
}

.property-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cs-concrete);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  aspect-ratio: 4/5;
  border-radius: 1.5rem;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stat-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--cs-graphite);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  max-width: 200px;
  display: none;
}

@media (min-width: 1024px) {
  .about-stat-card { display: block; }
}

.about-stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.about-stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.about-content .section-label {
  text-align: left;
  margin-bottom: 0.75rem;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.about-text {
  color: var(--cs-charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-text.lead {
  font-size: 1.125rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.value-card {
  background: #F8F8F8;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.value-card:hover {
  background: var(--cs-graphite);
}

.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.5rem;
  border-radius: 0.75rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.3s ease;
}

.value-card:hover .value-icon {
  background: var(--cs-red);
}

.value-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cs-red);
  transition: color 0.3s ease;
}

.value-card:hover .value-icon svg {
  color: white;
}

.value-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cs-graphite);
  transition: color 0.3s ease;
}

.value-card:hover .value-name {
  color: white;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cs-red);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.about-link:hover {
  gap: 1rem;
}

/* ===== TEAM SECTION ===== */
.team-section {
  background: var(--cs-warm-gray);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.team-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.team-card-image {
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--cs-warm-gray);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

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

.team-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.team-card:hover .team-card-name {
  color: var(--cs-red);
}

.team-card-role {
  color: var(--cs-charcoal);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.375rem 0.875rem;
  background: var(--cs-warm-gray);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cs-graphite);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--cs-red);
  color: white;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  background: white;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.review-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.12);
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-star {
  color: var(--cs-red);
  fill: var(--cs-red);
  width: 1.25rem;
  height: 1.25rem;
}

.review-text {
  color: var(--cs-charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cs-warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--cs-red);
}

.review-author-name {
  font-weight: 600;
  color: var(--cs-graphite);
}

.review-date {
  font-size: 0.875rem;
  color: var(--cs-charcoal);
}

/* ===== CONTACT CTA SECTION ===== */
.contact-cta-section {
  background: var(--cs-graphite);
}

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contact-cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .contact-cta-content h2 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .contact-cta-content h2 { font-size: 3rem; }
}

.contact-cta-content h2 span {
  color: var(--cs-red);
}

.contact-cta-content p {
  color: rgba(255,255,255,0.6);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-info-list {
  list-style: none;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cs-red);
}

.contact-info-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-info-value {
  color: white;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.contact-info-value a:hover {
  color: var(--cs-red);
}

/* Contact Form */
.contact-form-wrapper {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2rem;
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-input:focus {
  outline: none;
  border-color: var(--cs-red);
}

.form-input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-input-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

textarea.form-input {
  resize: none;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--cs-graphite);
  color: white;
}

.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

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

.footer-brand img {
  height: 3.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: var(--cs-red);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cs-red);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cs-red);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item span,
.footer-contact-item a {
  color: rgba(255,255,255,0.6);
}

.footer-contact-item a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ===== PAGE TEMPLATES ===== */
.page-header {
  background: var(--cs-graphite);
  padding: 8rem 0 4rem;
}

.page-header .section-label {
  color: var(--cs-red);
  text-align: left;
}

.page-header .section-title {
  color: white;
  text-align: left;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.125rem;
  max-width: 48rem;
}

/* ===== OPIEKUN OFERTY (Property Guardian) ===== */
.opiekun-link:hover .opiekun-name {
  color: var(--cs-red);
}

.opiekun-contact a:hover {
  background: var(--cs-concrete);
}


/* ============================================================
   CITYSOUND v2 — FILTRY, STATUSY, GALERIA, FORMULARZ
   ============================================================ */

/* ----- STATUSY nieruchomości ----- */
/* status CSS removed — see final block */
.property-price--hidden {
  color: var(--cs-charcoal) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

/* ----- FILTRY — homepage ----- */
.properties-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--cs-concrete);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--cs-red);
  color: var(--cs-red);
}
.filter-btn.active {
  background: var(--cs-red);
  border-color: var(--cs-red);
  color: white;
}

/* ----- FILTRY — listing ----- */
.listing-section { background: var(--cs-warm-gray); }

.listing-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.listing-filters__tabs {
  display: flex;
  gap: 0.375rem;
}
.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid var(--cs-concrete);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-tab:hover  { border-color: var(--cs-red); color: var(--cs-red); }
.filter-tab.active { background: var(--cs-red); border-color: var(--cs-red); color: white; }

.listing-filters__controls {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-control { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-label   { font-size: 0.75rem; font-weight: 600; color: var(--cs-charcoal); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-price-range { display: flex; align-items: center; gap: 0.5rem; }
.filter-input {
  width: 140px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--cs-concrete);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--cs-graphite);
  transition: border-color 0.2s ease;
}
.filter-input:focus  { outline: none; border-color: var(--cs-red); }
.filter-currency { font-size: 0.875rem; color: var(--cs-charcoal); }
.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--cs-concrete);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--cs-graphite);
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.filter-select:focus { outline: none; border-color: var(--cs-red); }

.listing-count {
  font-size: 0.875rem;
  color: var(--cs-charcoal);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.listing-empty {
  padding: 4rem 0;
  text-align: center;
}
.listing-empty__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--cs-charcoal);
}
.listing-empty__inner svg { width: 2.5rem; height: 2.5rem; opacity: 0.4; }

/* Property card placeholder image */
.property-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cs-concrete);
}

/* Property location pin */
.property-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--cs-charcoal);
  margin-bottom: 0.75rem;
}
.property-location svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ----- GALERIA (single nieruchomość) ----- */
.property-gallery-section {
  background: var(--cs-graphite);
  padding: 0 0 2rem;
}
.property-gallery { display: flex; flex-direction: column; gap: 0.75rem; position: relative; }

.gallery-main {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
  cursor: pointer;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.gallery-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
}
.gallery-nav:hover { background: rgba(0,0,0,0.8); }
.gallery-nav--prev { left: 1rem; }
.gallery-nav--next { right: 1rem; }
.gallery-nav svg { width: 1.5rem; height: 1.5rem; }

/* .gallery-tour-badge — zastąpiony przez .gallery-action-btn w v3.9 */
.gallery-tour-badge { display: none; }

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--cs-charcoal);
  transition: border-color 0.2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--cs-red); }
.gallery-thumb:hover   { border-color: rgba(184, 15, 10,0.5); }

.gallery-thumb--tour {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: var(--cs-red);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  border: 2.5px solid var(--cs-red);
  transition: background 0.2s ease;
}
.gallery-thumb--tour svg { width: 1.125rem; height: 1.125rem; }
.gallery-thumb--tour:hover { background: #c0002a; border-color: #c0002a; }

/* ----- DETAIL LAYOUT (single) ----- */
.property-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .property-detail-layout { grid-template-columns: 1fr; }
}
.property-detail-main { display: flex; flex-direction: column; gap: 1.5rem; }
.property-detail-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
}
.property-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.property-detail-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.property-detail-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--cs-charcoal);
  font-size: 0.9375rem;
}
.property-detail-location svg { width: 1rem; height: 1rem; color: var(--cs-red); }
.property-detail-price-block { text-align: right; }
.property-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cs-emerald);
  line-height: 1.2;
}
.property-detail-price--hidden { color: var(--cs-charcoal) !important; font-size: 1rem !important; }
.property-detail-price-type { font-size: 0.875rem; color: var(--cs-charcoal); }
.property-detail-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.property-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  min-width: 80px;
}

.property-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: var(--cs-warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-red);
  margin-bottom: 0.125rem;
  flex-shrink: 0;
}
.property-stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.property-stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--cs-graphite);
  line-height: 1.1;
}

.property-stat-label {
  font-size: 0.8125rem;
  color: var(--cs-charcoal);
  line-height: 1.2;
}
.property-section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }
.property-description {
  color: var(--cs-charcoal);
  line-height: 1.8;
}
.property-description p {
  margin-bottom: 1.25rem;
}
.property-description p:last-child {
  margin-bottom: 0;
}
.property-description h2,
.property-description h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cs-graphite);
  margin: 1.5rem 0 0.5rem;
}
.property-description ul,
.property-description ol {
  margin: 0.75rem 0 1rem 1.5rem;
}
.property-description li {
  margin-bottom: 0.375rem;
}
.property-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.property-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--cs-warm-gray);
  border-radius: 0.75rem;
  font-size: 0.875rem;
}
.property-feature-item svg { width: 1.125rem; height: 1.125rem; color: var(--cs-emerald); flex-shrink: 0; }
.property-video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
}
.property-video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ----- SIDEBAR (single) ----- */
.property-detail-sidebar { position: relative; }
.property-sidebar-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { padding: 1.5rem; }
.sidebar-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-charcoal);
  margin-bottom: 1rem;
}
.opiekun-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: background 0.2s ease;
}
.opiekun-card:hover { background: var(--cs-warm-gray); }
.opiekun-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cs-concrete);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cs-red);
}
.opiekun-name { font-weight: 700; font-size: 1rem; color: var(--cs-graphite); transition: color 0.2s ease; }
.opiekun-card:hover .opiekun-name { color: var(--cs-red); }
.opiekun-role { font-size: 0.8125rem; color: var(--cs-charcoal); }
.opiekun-contacts { display: flex; flex-direction: column; gap: 0.5rem; }
.opiekun-contact-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--cs-warm-gray);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--cs-graphite);
  text-decoration: none;
  transition: background 0.2s ease;
}
.opiekun-contact-btn:hover { background: var(--cs-concrete); }
.opiekun-contact-btn svg { width: 1.125rem; height: 1.125rem; color: var(--cs-red); flex-shrink: 0; }

/* ----- FORMULARZ PREZENTACJI ----- */
.presentation-form-card { border-top: 3px solid var(--cs-red); }
.sidebar-form-hint { font-size: 0.8125rem; color: var(--cs-charcoal); margin-bottom: 1.25rem; line-height: 1.5; }
.presentation-form { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--cs-graphite); }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cs-concrete);
  border-radius: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--cs-graphite);
  background: white;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: var(--cs-red); }

.form-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: background 0.15s ease;
}
.checkbox-label:hover { background: var(--cs-warm-gray); }
.checkbox-label input { accent-color: var(--cs-red); width: 1rem; height: 1rem; cursor: pointer; }

.form-radio-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.radio-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--cs-concrete);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}
.radio-block:hover { border-color: var(--cs-red); background: rgba(184, 15, 10,0.04); }
.radio-block input[type="radio"] { accent-color: var(--cs-red); cursor: pointer; }
.radio-block:has(input:checked) { border-color: var(--cs-red); background: rgba(184, 15, 10,0.06); font-weight: 600; }

.form-success {
  text-align: center;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.form-success svg { width: 2.5rem; height: 2.5rem; color: var(--cs-emerald); }
.form-success h3 { font-size: 1.25rem; }
.form-success p  { color: var(--cs-charcoal); font-size: 0.9rem; }
.form-error-msg  { background: #fff0f3; border: 1.5px solid #ffcdd6; color: #c0002a; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 600; }

/* Breadcrumb na stronie nieruchomości */
.property-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.property-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.property-breadcrumb a:hover { color: white; }
.property-breadcrumb span { color: rgba(255,255,255,0.4); }
.property-breadcrumb span:last-child { color: white; }

/* Responsive listing filters */
@media (max-width: 768px) {
  .listing-filters { flex-direction: column; align-items: flex-start; }
  .listing-filters__controls { width: 100%; }
  .filter-input { width: 100%; }
}

/* Footer logo fallback text */
.footer-logo-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}


/* ============================================================
   SEKCJA PROCESU OBSŁUGI KLIENTA
   ============================================================ */
.process-section { background: var(--cs-graphite); color: white; }
.process-section .section-label  { color: var(--cs-red); }
.process-section .section-title  { color: white; }
.process-section .section-subtitle { color: rgba(255,255,255,0.65); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 3rem 0;
  position: relative;
}

/* Linia łącząca kroki */
.process-steps::before {
  display: none;
}

.process-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.process-step.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Staggered delay */
.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.4s; }
.process-step:nth-child(5) { transition-delay: 0.5s; }

.process-step-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(184, 15, 10,0.15);
  border: 2px solid rgba(184, 15, 10,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.process-step:hover .process-step-icon {
  background: rgba(184, 15, 10,0.3);
  border-color: var(--cs-red);
}
.process-step-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--cs-red);
}

/* Numer kroku jako pseudo-element na ikonie */
.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 3.25rem;
  top: 1.5rem;
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--cs-red);
  background: var(--cs-graphite);
  padding: 0 3px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.process-step-content { padding-top: 0.75rem; }

.process-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.625rem;
}

.process-step-desc {
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.process-step-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.process-step-highlight svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--cs-red);
  flex-shrink: 0;
}

/* CTA pod procesem */
.process-cta {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2.5rem;
}
.process-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.process-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}
.process-cta-desc { color: rgba(255,255,255,0.65); }

@media (max-width: 640px) {
  .process-steps::before { display: none; }
  .process-step { grid-template-columns: 1fr; gap: 1rem; }
  .process-step-icon { width: 3.5rem; height: 3.5rem; }
  .process-step-icon svg { width: 1.375rem; height: 1.375rem; }
  .process-step::before { display: none; }
  .process-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SERVICE HERO + DETAIL LAYOUT
   ============================================================ */
.service-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 4rem;
}
.service-hero__bg {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.service-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 100%);
}
.service-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
}
.service-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  max-width: 640px;
}
.service-hero__excerpt {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.service-hero__cta { display: inline-flex; align-items: center; gap: 0.5rem; }

.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .service-detail-layout { grid-template-columns: 1fr; }
}

.service-detail-main {}
.service-content {
  font-size: 1.0625rem;
  color: var(--cs-charcoal);
  line-height: 1.85;
}
.service-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--cs-graphite); }
.service-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; color: var(--cs-graphite); }
.service-content p  { margin-bottom: 1rem; }
.service-content ul,
.service-content ol { margin: 1rem 0 1rem 1.5rem; }
.service-content li { margin-bottom: 0.5rem; }

.service-detail-sidebar {}
.service-sidebar-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }

.service-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--cs-warm-gray);
  border-radius: 0.625rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--cs-graphite);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.service-sidebar-link:hover { background: var(--cs-concrete); color: var(--cs-red); }
.service-sidebar-link svg { width: 1.125rem; height: 1.125rem; color: var(--cs-charcoal); flex-shrink: 0; }


/* ============================================================
   v2.2 — PORT Z REACT: brakujące style, animacje, komponenty
   ============================================================ */

/* ----- ZMIENNE — uzupełnienie ----- */
:root {
  --cs-red-hover: #9a0d08;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ----- TYPOGRAFIA — nagłówki letter-spacing jak w React ----- */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--cs-warm-gray); }
::-webkit-scrollbar-thumb { background: var(--cs-concrete); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cs-charcoal); }

/* ----- ANIMACJE (z React App.css + index.css) ----- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.animate-fade-in-up  { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in     { animation: fadeIn 0.6s ease-out forwards; }
.animate-scale-in    { animation: scaleIn 0.5s ease-out forwards; }
.animate-delay-100   { animation-delay: 100ms; }
.animate-delay-200   { animation-delay: 200ms; }
.animate-delay-300   { animation-delay: 300ms; }
.animate-delay-400   { animation-delay: 400ms; }
.animate-delay-500   { animation-delay: 500ms; }

/* page enter */
.page-enter         { opacity: 0; transform: translateY(20px); }
.page-enter-active  { opacity: 1; transform: translateY(0); transition: all 0.4s ease; }

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----- SKELETON LOADING ----- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ----- GLASS EFFECTS ----- */
.glass-effect {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
}
.glass-dark {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(31,31,31,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2rem;
}

/* ----- SHADOW PREMIUM ----- */
.shadow-premium       { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1); }
.shadow-premium-hover { box-shadow: 0 20px 50px -12px rgba(0,0,0,0.15); }

/* ----- BTN PRIMARY — poprawka hover z React ----- */
.btn-primary:hover {
  background-color: var(--cs-red-hover);
  transform: translateY(-2px);
}

/* ----- CARD PROPERTY — pełny port z React ----- */
.card-property,
.property-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-property:hover,
.property-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
  transform: translateY(-6px);
}

/* Property image zoom */
.property-image-wrapper img {
  transition: transform 0.6s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-image-wrapper:hover img { transform: scale(1.08); }

/* Property overlay */
.property-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.property-image-wrapper:hover .property-overlay { opacity: 1; }

/* status-badge — removed, see final block */

/* ----- CARD TEAM — port z React ----- */
.card-team,
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: white;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-team:hover,
.team-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.team-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 1;
  background: var(--cs-warm-gray);
}
.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.team-card-image:hover img { transform: scale(1.05); }

/* ----- SKILL TAG — hover czerwony ----- */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--cs-warm-gray);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cs-graphite);
  transition: background 0.2s ease, color 0.2s ease;
}
.skill-tag:hover { background: var(--cs-red); color: white; }

/* ----- TESTIMONIAL CARD — port z React ----- */
.testimonial-card,
.review-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.12);
}

/* ----- STAT NUMBER GRADIENT (about section) ----- */
.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: white;
}

/* Gradient tylko w sekcji about, NIE w hero */
.about-stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

/* ----- VALUE CARD — nowy styl dark hover z React ----- */
.value-card {
  background: var(--cs-warm-gray);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: default;
}
.value-card:hover { background: var(--cs-graphite); }
.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.5rem;
  border-radius: 0.75rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.value-icon svg { width: 1.25rem; height: 1.25rem; color: var(--cs-red); transition: color 0.3s ease; }
.value-card:hover .value-icon { background: var(--cs-red); }
.value-card:hover .value-icon svg { color: white; }
.value-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cs-graphite);
  transition: color 0.3s ease;
  display: block;
}
.value-card:hover .value-name { color: white; }

/* ----- AGENT AVATAR ----- */
.agent-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
  object-fit: cover;
  object-position: top;
}
@media (max-width: 768px) {
  .agent-avatar { width: 150px; height: 150px; }
}

/* Agent profile header */
.agent-profile-header {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--cs-graphite) 0%, #000 100%);
}

/* ----- CONTACT ICON (contact page) ----- */
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cs-warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-red);
  flex-shrink: 0;
}

/* nav-link underline — moved to header block v2.7 */

/* ----- HEADER DROPDOWN USŁUGI ----- */
.header-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Toggle button — inherits nav-link styles, adds chevron */
.header-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s ease;
  color: white; /* domyślnie białe jak nav-link, zamieniane przez scrolled reguły */
  line-height: inherit;
  white-space: nowrap;
}
/* Chevron SVG */
.header-dropdown-toggle svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.header-dropdown:hover .header-dropdown-toggle svg,
.header-dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown panel */
.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;              /* wyrównany do lewej krawędzi triggera */
  min-width: 210px;
  background: white;
  border-radius: 0.875rem;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 0.375rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 500;
}
.header-dropdown:hover .header-dropdown-menu,
.header-dropdown:focus-within .header-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Pozycje dropdown */
.header-dropdown-menu a {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  color: var(--cs-graphite);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}
.header-dropdown-menu a:hover {
  background: var(--cs-warm-gray);
  color: var(--cs-red);
}

/* Mały trójkąt wskazujący na trigger */
.header-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 1.5rem;
  width: 10px;
  height: 10px;
  background: white;
  border-left: 1px solid rgba(0,0,0,0.07);
  border-top: 1px solid rgba(0,0,0,0.07);
  transform: rotate(45deg);
}

/* ----- LISTING — widok listowy ----- */
.property-card.list-view {
  display: flex;
  flex-direction: row;
}
.property-card.list-view .property-image-wrapper {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: 200px;
}
.property-card.list-view .property-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* View mode toggle */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--cs-warm-gray);
  border-radius: 0.75rem;
  padding: 0.25rem;
}
.view-toggle-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--cs-charcoal);
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-toggle-btn svg { width: 1.25rem; height: 1.25rem; }
.view-toggle-btn.active { background: white; color: var(--cs-graphite); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

/* ----- TEAM PAGE — join CTA ----- */
.team-join-cta {
  background: var(--cs-graphite);
  border-radius: 1.5rem;
  padding: 4rem 3rem;
  text-align: center;
}
.team-join-cta h2 { color: white; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.team-join-cta p  { color: rgba(255,255,255,0.6); max-width: 40rem; margin: 0 auto 2rem; }

/* ----- BENTO GRID (services) ----- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px)  { .bento-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .bento-grid { grid-template-columns: repeat(4, 1fr); } }
.bento-card-large { grid-column: span 2; }
@media (min-width: 768px) { .bento-card-large { grid-column: span 2; grid-row: span 2; } }

/* ----- PRICE EMERALD ----- */
.price-emerald { color: var(--cs-emerald); }

/* ----- HERO VIDEO background fix ----- */
.youtube-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 177.77vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31,31,31,0.5) 0%,
    rgba(31,31,31,0.7) 50%,
    rgba(31,31,31,0.85) 100%
  );
}

/* ----- MAP PLACEHOLDER ----- */
.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--cs-warm-gray);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ----- SECTION PADDING ----- */
.section-padding { padding: 5rem 0; }
@media (min-width: 768px)  { .section-padding { padding: 7rem 0; } }
@media (min-width: 1024px) { .section-padding { padding: 8rem 0; } }

/* ----- AGENT PROFILE PAGE ----- */
.agent-profile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .agent-profile-inner { flex-direction: row; text-align: left; }
}
.agent-profile-name  { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: white; margin-bottom: 0.5rem; }
.agent-profile-role  { color: rgba(255,255,255,0.6); font-size: 1.125rem; margin-bottom: 1rem; }
.agent-profile-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
@media (min-width: 768px) { .agent-profile-skills { justify-content: flex-start; } }
.agent-skill-badge {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}
.agent-spec-tag {
  padding: 0.75rem 1.5rem;
  background: var(--cs-warm-gray);
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: default;
  transition: background 0.2s ease, color 0.2s ease;
}
.agent-spec-tag:hover { background: var(--cs-red); color: white; }

.agent-properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.agent-property-item { text-decoration: none; color: inherit; display: block; }
.agent-property-item:hover img { transform: scale(1.05); }
.agent-property-item:hover p:last-child { color: var(--cs-red); }

.agent-contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--cs-warm-gray);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--cs-graphite);
  transition: background 0.2s ease;
}
.agent-contact-row:hover { background: var(--cs-concrete); }
.agent-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(184, 15, 10,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-contact-icon svg { width: 1.125rem; height: 1.125rem; color: var(--cs-red); }


/* ============================================================
   v2.3 — logo rules moved to header block v2.7 (no duplicates)
   ============================================================ */



/* ----- HERO STATS — białe cyfry (nie gradient) ----- */
.hero-stats .stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.hero-stats .stat-label {
  color: rgba(255,255,255,0.65);
  font-size: 0.8125rem;
}

/* ----- MOBILE MENU — pełny redesign ----- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: white;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cs-concrete);
  flex-shrink: 0;
}
.mobile-menu-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--cs-graphite);
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}
.mobile-menu-close:hover { background: var(--cs-warm-gray); }

.mobile-menu-nav {
  flex: 1;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 500;
  color: var(--cs-graphite);
  text-decoration: none;
  border-radius: 0.625rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active { background: rgba(184, 15, 10,0.07); color: var(--cs-red); }
.mobile-nav-link--sub {
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--cs-charcoal);
}
.mobile-nav-group-label {
  display: block;
  padding: 0.875rem 1rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-charcoal);
}
.mobile-menu-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--cs-concrete);
  flex-shrink: 0;
}


/* ============================================================
   v2.4 — STRONA KONTAKTU, FORMULARZ PEŁNY, POPRAWKI
   ============================================================ */

/* ----- CONTACT PAGE GRID ----- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .contact-page-grid { grid-template-columns: 1fr; }
}

/* ----- CONTACT INFO ITEMS ----- */
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: var(--cs-warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cs-red);
}
.contact-info-icon svg { width: 1.125rem; height: 1.125rem; }
.contact-info-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.contact-info-value { color: var(--cs-graphite); line-height: 1.6; }
.contact-info-link {
  color: var(--cs-graphite);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-info-link:hover { color: var(--cs-red); }

/* ----- CONTACT FORM CARD ----- */
.contact-form-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.08);
}

/* ----- FORMULARZ — layout 2 kolumny ----- */
.contact-full-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }

/* Select jako form-input */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Zgoda RODO */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cs-warm-gray);
  border-radius: 0.75rem;
}

/* ----- MAP PLACEHOLDER — pełna wysokość ----- */
.map-placeholder {
  width: 100%;
  height: 360px;
  background: var(--cs-warm-gray);
  border-radius: 1.5rem;
  overflow: hidden;
}
.map-placeholder iframe { display: block; }

/* ----- CONTACT CTA SECTION (front-page) — dark background fix ----- */
.contact-cta-section { background: var(--cs-graphite); }
.contact-cta-section h2 { color: white; }
.contact-cta-section h2 span { color: var(--cs-red); }
.contact-cta-section p  { color: rgba(255,255,255,0.65); }
.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 1024px) { .contact-cta-grid { grid-template-columns: 1fr; } }

/* Contact info w front-page CTA (ciemne tło) */
.contact-cta-section .contact-info-item {}
.contact-cta-section .contact-info-icon {
  background: rgba(255,255,255,0.1);
  color: var(--cs-red);
}
.contact-cta-section .contact-info-label { color: rgba(255,255,255,0.5); }
.contact-cta-section .contact-info-value,
.contact-cta-section .contact-info-link  { color: white; }
.contact-cta-section .contact-info-link:hover { color: var(--cs-red); }

/* Formularz na ciemnym tle (front-page) */
.contact-form-wrapper {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.contact-form-wrapper h3 { color: white; font-size: 1.5rem; margin-bottom:1.5rem; }
.contact-form-wrapper .form-input {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: white;
}
.contact-form-wrapper .form-input::placeholder { color: rgba(255,255,255,0.4); }
.contact-form-wrapper .form-input:focus { border-color: var(--cs-red); background: rgba(255,255,255,0.15); }
.form-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .form-input-row { grid-template-columns: 1fr; } }


/* ============================================================
   v2.4 — LISTING PAGE, SEARCH, LIST VIEW, NAV FIXES, FOOTER
   ============================================================ */

/* ----- LISTING PAGE HEADER (ciemne tło jak React) ----- */
.listing-page-header {
  background: var(--cs-graphite);
  padding: 7rem 0 3.5rem;
}
.listing-page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.listing-page-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.125rem;
  max-width: 42rem;
  line-height: 1.7;
}

/* ----- FILTERS BAR — sticky pod headerem ----- */
.listing-filters-bar {
  background: white;
  border-bottom: 1px solid var(--cs-concrete);
  position: sticky;
  top: 80px;
  z-index: 40;
}
.listing-filters-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.875rem 0;
}

/* Search field */
.listing-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}
.listing-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cs-charcoal);
  pointer-events: none;
  display: flex;
}
.listing-search-icon svg { width: 1.125rem; height: 1.125rem; }
.listing-search-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem 0 2.75rem;
  border: 1.5px solid var(--cs-concrete);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--cs-graphite);
  background: var(--cs-warm-gray);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.listing-search-input:focus {
  outline: none;
  border-color: var(--cs-red);
  background: white;
}

/* ----- LIST VIEW — widok listowy ----- */
.listing-list-view { display: flex; flex-direction: column; gap: 1rem; }
.listing-list-view .properties-grid {
  grid-template-columns: 1fr !important;
}
.listing-list-view .property-card {
  display: flex !important;
  flex-direction: row !important;
  border-radius: 1rem;
  min-height: 180px;
}
.listing-list-view .property-card .property-image-wrapper {
  width: 260px !important;
  min-width: 260px !important;
  flex-shrink: 0 !important;
  aspect-ratio: unset !important;
  height: auto !important;
  min-height: 180px !important;
  border-radius: 1rem 0 0 1rem !important;
}
.listing-list-view .property-card .property-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  inset: 0 !important;
}
.listing-list-view .property-card .property-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 1.25rem 1.5rem !important;
  min-width: 0 !important;
}
.listing-list-view .property-card .property-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-list-view .property-card .property-list-desc {
  display: block !important;
  color: var(--cs-charcoal);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .listing-list-view .property-card {
    flex-direction: column !important;
  }
  .listing-list-view .property-card .property-image-wrapper {
    width: 100% !important;
    min-width: unset !important;
    height: 200px !important;
    border-radius: 1rem 1rem 0 0 !important;
  }
}
/* Grid view — ukryj list-only elementy */
.property-card .property-list-desc { display: none; }
.properties-grid .property-card .property-list-desc { display: none; }

@media (max-width: 640px) {
  .listing-list-view .property-card { flex-direction: column; }
  .listing-list-view .property-card .property-image-wrapper { width: 100%; height: 200px; border-radius: 1rem 1rem 0 0; }
}

/* page-header-visible rules — moved to header block v2.7 */

/* ----- HEADER CTA — mniejszy jak w React (px-4 py-2) ----- */
.header-cta.btn-primary {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  border-radius: 9999px;
}
.header-cta.btn-primary svg { width: 1rem; height: 1rem; }

/* ----- ABOUT SECTION — floating stat card ----- */
.about-stat-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--cs-graphite);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
  max-width: 180px;
  display: none; /* ukryty na mobile */
}
@media (min-width: 1024px) { .about-stat-card { display: block; } }
.about-stat-number { font-size: 3rem; font-weight: 700; color: white; line-height: 1; margin-bottom: 0.375rem; }
.about-stat-label  { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.4; }

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-image-wrapper { position: relative; }
.about-image {
  aspect-ratio: 4/5;
  border-radius: 1.5rem;
  overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Values grid — 3 kolumny na mobile, 5 na desktop */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(5, 1fr); } }

/* About link */
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cs-red);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}
.about-link:hover { gap: 0.875rem; }
.about-link svg { width: 1.25rem; height: 1.25rem; }

/* ----- FOOTER — bottom bar z linkami ----- */
.footer-bottom-links a:hover { color: white; transition: color 0.2s ease; }

/* ----- HERO — gradient overlay poprawka do identycznego z React ----- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  );
}

/* ----- PROPERTIES GRID responsive ----- */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .properties-grid { grid-template-columns: repeat(3, 1fr); } }


/* ============================================================
   v2.6 — SERVICES 2x2 GRID, TEAM CARDS, REVEAL, SCROLL-FIXES
   ============================================================ */

/* ----- SERVICES — grid 2×2 jak w React ----- */
.services-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .services-grid-2x2 { grid-template-columns: repeat(2, 1fr); }
}

/* Bottom row (5. usługa + CTA) */
.services-grid-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .services-grid-bottom { grid-template-columns: repeat(2, 1fr); }
}

/* Service card — aspect ratio */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  display: block;
  text-decoration: none;
}
.services-grid-2x2 .service-card  { aspect-ratio: 4/3; }
.services-grid-bottom .service-card { aspect-ratio: 4/3; }
@media (min-width: 768px) {
  .services-grid-2x2 .service-card  { aspect-ratio: 16/10; }
  .services-grid-bottom .service-card { aspect-ratio: 16/10; }
}

/* Fallback bg gdy brak zdjęcia */
.service-card-bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cs-graphite) 0%, #111 100%);
}

/* Image zoom on hover */
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-card:hover img { transform: scale(1.1); }

/* Overlay — ciemniejszy na hover */
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
  transition: background 0.3s ease;
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}

/* Content */
.service-card-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 768px) { .service-card-content { padding: 2rem; } }

.service-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.375rem;
  transition: color 0.3s ease;
  line-height: 1.25;
}
@media (min-width: 768px) { .service-card-title { font-size: 1.75rem; } }

.service-card-desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}
.service-card-link svg { width: 1.25rem; height: 1.25rem; transition: transform 0.3s ease; }
.service-card:hover .service-card-link { color: var(--cs-red); }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

/* CTA card (ciemne tło, hover czerwone) */
.service-card-cta {
  background: var(--cs-graphite);
  transition: background 0.3s ease;
}
.service-card-cta:hover { background: var(--cs-red); }
.service-card-cta .service-card-content { justify-content: center; }
.cta-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}
.service-card-cta:hover .cta-icon { background: rgba(255,255,255,0.2); }
.cta-icon svg { width: 2rem; height: 2rem; color: white; }

/* ----- TEAM CARDS — dopinki ----- */
.team-card-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
  color: var(--cs-graphite);
}
.card-team:hover .team-card-name { color: var(--cs-red); }

.team-card-role {
  color: var(--cs-charcoal);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.team-card-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--cs-red);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s ease;
}
.card-team:hover .team-card-profile-link { gap: 0.5rem; }
.team-card-profile-link svg { width: 1rem; height: 1rem; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* Section footer CTA (button centered) */
.section-footer-cta {
  text-align: center;
  margin-top: 3rem;
}
.section-footer-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ----- REVEAL ON SCROLL — universal ----- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger dla kart w gridzie */
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.15s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.25s; }

/* ----- PAGE.PHP — generic pages (Polityka prywatności itp.) ----- */
.generic-page-content {
  max-width: 52rem;
  margin: 0 auto;
  background: white;
  border-radius: 1.5rem;
  padding: 3rem;
}
.generic-page-content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.generic-page-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.generic-page-content p  { color: var(--cs-charcoal); line-height: 1.8; margin-bottom: 1rem; }
.generic-page-content ul,
.generic-page-content ol { margin: 0.75rem 0 1rem 1.5rem; color: var(--cs-charcoal); }
.generic-page-content li { margin-bottom: 0.5rem; line-height: 1.7; }


/* ============================================================
   v3.1 — FORM LABELS, AVATAR TOP, EMAIL AGENT
   ============================================================ */

/* Etykiety formularzy — ciemne, czytelne na białym tle */
.usluga-form-label,
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-graphite) !important;  /* !important — zapobiega dziedziczeniu białego z dark sekcji */
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* Formularz w sidebarze usługi — zawsze na białej karcie */
.presentation-form-card .form-label,
.presentation-form-card .usluga-form-label,
.sidebar-card .form-label,
.sidebar-card .usluga-form-label {
  color: var(--cs-graphite) !important;
}

/* form-label w formularzach contact page */
.contact-full-form .form-label,
.contact-form-card .form-label {
  color: var(--cs-graphite) !important;
}



/* Opiekun-contact-btn — mail (identyczny styl jak phone) */
.opiekun-contact-btn + .opiekun-contact-btn {
  /* już jest ok — reguła istnieje, upewniamy się że email-icon też jest czerwony */
}

/* Placeholder — ciemnoszary, czytelny */
.form-input::placeholder {
  color: var(--cs-charcoal);
  opacity: 0.7;
}
.form-input:focus::placeholder {
  opacity: 0.4;
}


/* ============================================================
   HEADER CONTACT POPUP (desktop) / tel link (mobile)
   ============================================================ */

/* Wrapper pozycjonujący popup względem przycisku */
.header-contact-popup-wrap {
  position: relative;
  display: none;
}
@media (min-width: 768px) {
  .header-contact-popup-wrap { display: flex; align-items: center; }
}

/* Mobile: tel: link */
.header-cta--mobile {
  display: none !important;
}

/* Desktop: popup trigger */
.header-cta--desktop {
  display: inline-flex;
}

/* Popup panel */
.header-contact-popup {
  position: absolute;
  top: calc(100% + 0.875rem);
  right: 0;
  min-width: 290px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 16px 48px -8px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.header-contact-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Trójkąt przy przycisku */
.header-contact-popup::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 1.5rem;
  width: 10px;
  height: 10px;
  background: white;
  border-left: 1px solid rgba(0,0,0,0.07);
  border-top: 1px solid rgba(0,0,0,0.07);
  transform: rotate(45deg);
}

/* Label nagłówkowy */
.header-contact-popup__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-charcoal);
  margin-bottom: 0.625rem;
  padding: 0 0.25rem;
}

/* Wiersz kontaktowy */
.header-contact-popup__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  text-decoration: none;
  color: var(--cs-graphite);
  font-size: 0.9375rem;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 0.25rem;
}
.header-contact-popup__row:last-child { margin-bottom: 0; }
a.header-contact-popup__row:hover {
  background: var(--cs-warm-gray);
  color: var(--cs-red);
}
.header-contact-popup__row--hours {
  align-items: flex-start;
  color: var(--cs-charcoal);
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: default;
}

/* Ikona w wierszu */
.header-contact-popup__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--cs-warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cs-red);
  transition: background 0.15s ease;
}
a.header-contact-popup__row:hover .header-contact-popup__icon {
  background: rgba(184, 15, 10,0.1);
}
.header-contact-popup__icon svg { width: 1rem; height: 1rem; }


/* ============================================================
   USLUGA — STEP-BY-STEP
   ============================================================ */

.usluga-steps {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cs-concrete);
}

.usluga-steps__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cs-graphite);
  margin-bottom: 2rem;
}

.usluga-steps__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Pojedynczy krok */
.usluga-step {
  display: grid;
  grid-template-columns: 3.5rem 2px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 1.25rem;
  padding-bottom: 2rem;
}
/* Ostatni krok — bez padding-bottom */
.usluga-step:last-child {
  padding-bottom: 0;
}

/* Numer kroku — kółko */
.usluga-step__num {
  grid-column: 1;
  grid-row: 1;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--cs-graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.usluga-step__num span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

/* Czerwony akcent — kółko krok 1 */
.usluga-step:first-child .usluga-step__num {
  background: var(--cs-red);
}
/* Pozostałe — grafitowe z czerwonym obramowaniem */
.usluga-step:not(:first-child) .usluga-step__num {
  background: white;
  border: 2px solid var(--cs-graphite);
}
.usluga-step:not(:first-child) .usluga-step__num span {
  color: var(--cs-graphite);
}

/* Linia łącząca kroki (pionowa) */
.usluga-step__connector {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 2px;
  background: linear-gradient(to bottom, var(--cs-concrete) 0%, transparent 100%);
  margin: 3.5rem auto 0; /* zaczyna się pod kółkiem */
  align-self: stretch;
}

/* Treść kroku */
.usluga-step__body {
  grid-column: 3;
  grid-row: 1 / 3;
  padding-top: 0.6rem; /* wyrównanie do środka kółka */
  padding-bottom: 1rem;
}

.usluga-step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cs-graphite);
  margin-bottom: 0.375rem;
  line-height: 1.35;
}

.usluga-step__desc {
  font-size: 0.9375rem;
  color: var(--cs-charcoal);
  line-height: 1.65;
  margin: 0;
}

/* Responsive — mobile: ukryj linię, uproszcz grid */
@media (max-width: 640px) {
  .usluga-step {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto;
    gap: 0 1rem;
  }
  .usluga-step__num {
    width: 3rem;
    height: 3rem;
  }
  .usluga-step__num span { font-size: 1.125rem; }
  .usluga-step__connector { display: none; }
  .usluga-step__body {
    grid-column: 2;
    grid-row: 1;
  }
}

/* CTA card — napisy zostają białe na hoverze (override ogólnego czerwonego) */
.services-grid-bottom .service-card-cta:hover .service-card-title,
.services-grid-bottom .service-card-cta:hover .service-card-desc,
.services-grid-bottom .service-card-cta:hover .service-card-link,
.service-card-cta:hover .service-card-title,
.service-card-cta:hover .service-card-desc,
.service-card-cta:hover .service-card-link,
.service-card-cta:hover .service-card-link svg {
  color: white !important;
  fill: none;
}


/* ============================================================
   INNE USŁUGI — lewa kolumna (pod step-by-step)
   ============================================================ */
.usluga-other-services {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cs-concrete);
}

.usluga-other-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.usluga-other-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--cs-warm-gray);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.usluga-other-card:hover {
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Miniatura */
.usluga-other-card__img {
  width: 96px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.usluga-other-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.usluga-other-card:hover .usluga-other-card__img img {
  transform: scale(1.06);
}
.usluga-other-card__img--fallback {
  background: linear-gradient(135deg, var(--cs-graphite) 0%, #333 100%);
}

/* Treść */
.usluga-other-card__body {
  flex: 1;
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.usluga-other-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cs-graphite);
  transition: color 0.2s ease;
  line-height: 1.3;
}
.usluga-other-card:hover .usluga-other-card__title { color: var(--cs-red); }

.usluga-other-card__desc {
  font-size: 0.8125rem;
  color: var(--cs-charcoal);
  line-height: 1.4;
}
.usluga-other-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-red);
  margin-top: 0.25rem;
}
.usluga-other-card__link svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
}
.usluga-other-card:hover .usluga-other-card__link svg { transform: translateX(3px); }


/* ============================================================
   FORMULARZ KONTAKTOWY — mniejszy gap między polami
   ============================================================ */
.presentation-form {
  gap: 0.5rem;
}

.contact-full-form {
  gap: 0.75rem; /* było 1.25rem */
}

/* Textarea w sidebarze — trochę mniejsza */
.presentation-form-card textarea.form-input {
  rows: 2;
}





/* ============================================================
   USLUGA — 4 IKONY WYRÓŻNIKÓW
   ============================================================ */
.usluga-icons-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--cs-concrete);
  border-bottom: 1px solid var(--cs-concrete);
}
@media (min-width: 480px) {
  .usluga-icons-row { grid-template-columns: repeat(4, 1fr); }
}

.usluga-icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.625rem;
  padding: 1.25rem 0.75rem;
  background: var(--cs-warm-gray);
  border-radius: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.usluga-icon-tile:hover {
  background: var(--cs-graphite);
  transform: translateY(-2px);
}
.usluga-icon-tile__emoji {
  font-size: 2rem;
  line-height: 1;
  display: block;
}
.usluga-icon-tile__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-graphite);
  line-height: 1.3;
  transition: color 0.2s ease;
}
.usluga-icon-tile:hover .usluga-icon-tile__label { color: white; }


/* ============================================================
   INNE USŁUGI — lista ze strzałką (styl ze screena)
   ============================================================ */
.usluga-other-services {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cs-concrete);
}
.usluga-other-services__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cs-charcoal);
  margin-bottom: 0.75rem;
}





/* ============================================================
   INNE USŁUGI — kafelki poziomo ze zdjęciem
   ============================================================ */
.usluga-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cs-concrete);
}

.usluga-related__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cs-graphite);
  margin-bottom: 1rem;
}

.usluga-related__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
}
@media (max-width: 900px) {
  .usluga-related__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .usluga-related__grid { grid-template-columns: repeat(2, 1fr); }
}

.usluga-related-card {
  display: block;
  text-decoration: none;
  border-radius: 0.875rem;
  overflow: hidden;
  position: relative;
}

.usluga-related-card__img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cs-graphite);
  border-radius: 0.875rem;
}
.usluga-related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.usluga-related-card:hover .usluga-related-card__img img {
  transform: scale(1.07);
}
.usluga-related-card__fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cs-graphite) 0%, #111 100%);
}
.usluga-related-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  transition: background 0.3s ease;
}
.usluga-related-card:hover .usluga-related-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
}

.usluga-related-card__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.625rem 0.625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  z-index: 2;
}


/* ============================================================
   FORMULARZE SIDEBAR — NOWY STYL (v3.5 screen match)
   Dotyczy: single-usluga, single-nieruchomosc, single-zespol
   ============================================================ */

/* Kontener formularza w sidebarze */
.presentation-form-card {
  border-top: none !important;
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem;
}

/* Kontakty agenta — styl jak na screenie (duże, szare, zaokrąglone) */
.opiekun-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 0.25rem;
}
.opiekun-contact-btn {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1rem 1.125rem !important;
  background: var(--cs-warm-gray) !important;
  border-radius: 1rem !important;
  font-size: 0.9375rem !important;
  color: var(--cs-graphite) !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  font-weight: 400 !important;
}
.opiekun-contact-btn:hover { background: #e8e8e8 !important; }

/* Ikona w czerwonym kółku jak na screenie */
.opiekun-contact-btn .opiekun-contact-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(184, 15, 10, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.opiekun-contact-btn .opiekun-contact-icon-wrap svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--cs-red);
}

/* Tekst w kontakcie — 2 linie jak na screenie */
.opiekun-contact-btn .opiekun-contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.opiekun-contact-btn .opiekun-contact-text-label {
  font-size: 0.75rem;
  color: var(--cs-charcoal);
  font-weight: 400;
}
.opiekun-contact-btn .opiekun-contact-text-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cs-graphite);
}

/* Pola formularza — szare tło, brak ramki, duże zaokrąglenie */
.presentation-form .form-group {
  margin-bottom: 0 !important;
}
.presentation-form .form-input,
.sidebar-card .form-input {
  width: 100% !important;
  padding: 0.875rem 1.125rem !important;
  background: var(--cs-warm-gray) !important;
  border: none !important;
  border-radius: 0.875rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  color: var(--cs-graphite) !important;
  transition: background 0.15s ease !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
}
.presentation-form .form-input:focus,
.sidebar-card .form-input:focus {
  outline: none !important;
  background: #ebebeb !important;
  border: none !important;
  box-shadow: none !important;
}
.presentation-form .form-input::placeholder,
.sidebar-card .form-input::placeholder {
  color: var(--cs-charcoal) !important;
  opacity: 0.75 !important;
}
textarea.form-input {
  resize: none !important;
  min-height: 90px !important;
}

/* Gap między polami */
.presentation-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

/* Przycisk submit — czarny jak na screenie */
.presentation-form .btn-primary {
  background-color: var(--cs-graphite) !important;
  border-radius: 0.875rem !important;
  padding: 1rem !important;
  margin-top: 0.25rem !important;
  font-size: 1rem !important;
  justify-content: center !important;
  width: 100% !important;
}
.presentation-form .btn-primary:hover {
  background-color: #111 !important;
  transform: none !important;
}


/* ============================================================
   SERVICE CARD HOVER — FINALNA DEFINICJA (nie zmieniać!)
   ============================================================ */

/* Wszystkie karty usług: tytuł czerwony na hover */
.service-card:hover .service-card-title {
  color: var(--cs-red);
}
.service-card:hover .service-card-link {
  color: var(--cs-red);
}

/* CTA card WYJĄTEK — napisy ZAWSZE białe, hover zmienia tylko tło */
.service-card-cta .service-card-title,
.service-card-cta .service-card-desc,
.service-card-cta .service-card-link {
  color: white !important;
}
.service-card-cta:hover .service-card-title,
.service-card-cta:hover .service-card-desc,
.service-card-cta:hover .service-card-link {
  color: white !important;
}


/* ============================================================
   ZDJĘCIA AGENTÓW — OBJECT-POSITION: TOP (JEDYNA DEFINICJA)
   Pokrywa: strona główna, karty zespołu, sidebar nieruchomości,
   profil agenta, archiwum zespołu, listing usługi
   ============================================================ */

/* Team card — strona główna i archiwum */
.team-card-image img,
.card-team .team-card-image img {
  object-fit: cover !important;
  object-position: top !important;
}

/* Mini avatar opiekuna w sidebarze */
.opiekun-avatar img,
.opiekun-avatar .cs-agent-avatar-img {
  object-fit: cover !important;
  object-position: top !important;
  width: 100% !important;
  height: 100% !important;
}
.opiekun-avatar {
  position: relative;
  overflow: hidden;
}

/* Duże zdjęcie na stronie profilu agenta */
img.agent-avatar {
  object-fit: cover !important;
  object-position: top !important;
}

/* Klasa z citysound_agent_avatar() helper */
.cs-agent-avatar-img {
  object-fit: cover !important;
  object-position: top !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* WP thumbnail — globalne zabezpieczenie dla wszystkich zdjęć agentów */
.team-card img.wp-post-image,
.opiekun-avatar img.wp-post-image,
.agent-profile-inner img.wp-post-image {
  object-fit: cover !important;
  object-position: top !important;
}


/* status CSS removed — see final block */


/* ============================================================
   GALERIA — PRZYCISKI SPACERU I YOUTUBE
   ============================================================ */

/* Wrapper przycisków — lewy dolny róg nad zdjęciem */
.gallery-action-btns {
  position: absolute;
  /* Pozycja względem .property-gallery (nie gallery-main z overflow:hidden) */
  /* Dolna krawędź głównego zdjęcia — nad miniatury */
  bottom: calc(var(--thumbs-height, 5.5rem) + 1.25rem);
  left: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 30;
  pointer-events: auto;
}

/* Bazowy styl przycisku */
.gallery-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gallery-action-btn:hover { transform: scale(1.04); opacity: 0.92; }
.gallery-action-btn svg { flex-shrink: 0; }

/* Spacer — czerwony */
.gallery-action-btn--tour {
  background: var(--cs-red);
  color: white;
}

/* YouTube — czarny */
.gallery-action-btn--video {
  background: rgba(0,0,0,0.75);
  color: white;
}
.gallery-action-btn--video:hover { background: rgba(0,0,0,0.9); }

/* Miniatury spaceru i YouTube */
.gallery-thumb--tour,
.gallery-thumb--video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery-thumb--tour {
  background: var(--cs-red);
  color: white;
}
.gallery-thumb--video {
  background: #1a1a1a;
  color: white;
}
.gallery-thumb--tour:hover,
.gallery-thumb--video:hover { opacity: 0.85; }


/* status CSS removed — see final block */


/* ============================================================
   STATUSY NIERUCHOMOŚCI — LIQUID GLASS (v3.9 final)
   Styl: półprzezroczyste tło, blur, zaokrąglone pill
   ============================================================ */

.property-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
  /* Liquid glass */
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border: 1px solid transparent;
}

/* ── NA SPRZEDAŻ — złoty (jak na screenie) ── */
.property-status.status-sale,
.property-status.available {
  background: rgba(202, 155, 30, 0.22) !important;
  color: #a07010 !important;
  border-color: rgba(202, 155, 30, 0.4) !important;
}

/* ── DO WYNAJĘCIA — zielony ── */
.property-status.status-rent {
  background: rgba(22, 163, 74, 0.18) !important;
  color: #166534 !important;
  border-color: rgba(22, 163, 74, 0.35) !important;
}

/* ── WYNAJĘTE — szary ── */
.property-status.status-rented,
.property-status.sold {
  background: rgba(100, 116, 139, 0.18) !important;
  color: #475569 !important;
  border-color: rgba(100, 116, 139, 0.3) !important;
}

/* Na ciemnym tle (karty ze zdjęciem) — jaśniejszy tekst */
.property-card .property-status.status-sale,
.bento-card .property-status.status-sale {
  background: rgba(202, 155, 30, 0.30) !important;
  color: #fde68a !important;
  border-color: rgba(202, 155, 30, 0.5) !important;
}
.property-card .property-status.status-rent,
.bento-card .property-status.status-rent {
  background: rgba(22, 163, 74, 0.28) !important;
  color: #bbf7d0 !important;
  border-color: rgba(22, 163, 74, 0.45) !important;
}
.property-card .property-status.status-rented,
.bento-card .property-status.status-rented {
  background: rgba(0, 0, 0, 0.38) !important;
  color: rgba(255,255,255,0.75) !important;
  border-color: rgba(255,255,255,0.18) !important;
}


/* ============================================================
   STATUSY NIERUCHOMOŚCI — JEDYNA DEFINICJA (liquid glass)
   ============================================================ */

.property-status,
.status-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.3rem 0.9rem !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
  backdrop-filter: blur(10px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.5) !important;
  border: 1px solid transparent !important;
  text-transform: none !important;
}

/* Na sprzedaż — złoty */
.property-status.status-sale,
.property-status.available,
.status-badge.available {
  background: rgba(202, 155, 30, 0.22) !important;
  color: #92600a !important;
  border-color: rgba(202, 155, 30, 0.45) !important;
}

/* Do wynajęcia — zielony */
.property-status.status-rent {
  background: rgba(22, 163, 74, 0.18) !important;
  color: #14532d !important;
  border-color: rgba(22, 163, 74, 0.38) !important;
}

/* Wynajęte — szary */
.property-status.status-rented,
.property-status.sold,
.status-badge.sold {
  background: rgba(100, 116, 139, 0.18) !important;
  color: #475569 !important;
  border-color: rgba(100, 116, 139, 0.32) !important;
}

/* Na ciemnym tle (karty ze zdjęciem) */
.property-card .property-status.status-sale {
  background: rgba(202, 155, 30, 0.32) !important;
  color: #fde68a !important;
  border-color: rgba(202, 155, 30, 0.55) !important;
}
.property-card .property-status.status-rent {
  background: rgba(22, 163, 74, 0.28) !important;
  color: #bbf7d0 !important;
  border-color: rgba(22, 163, 74, 0.5) !important;
}
.property-card .property-status.status-rented {
  background: rgba(0,0,0,0.4) !important;
  color: rgba(255,255,255,0.75) !important;
  border-color: rgba(255,255,255,0.2) !important;
}


/* ============================================================
   STATUSY — FINAL OVERRIDE (dopasowane do rzeczywistego HTML)
   .property-image-wrapper > .property-status
   ============================================================ */

.property-image-wrapper .property-status.status-sale {
  background: rgba(202, 155, 30, 0.32) !important;
  color: #fde68a !important;
  border-color: rgba(202, 155, 30, 0.55) !important;
}
.property-image-wrapper .property-status.status-rent {
  background: rgba(22, 163, 74, 0.28) !important;
  color: #bbf7d0 !important;
  border-color: rgba(22, 163, 74, 0.5) !important;
}
.property-image-wrapper .property-status.status-rented {
  background: rgba(0,0,0,0.4) !important;
  color: rgba(255,255,255,0.8) !important;
  border-color: rgba(255,255,255,0.2) !important;
}


/* ============================================================
   STATUSY — ABSOLUTNA POZYCJA WEWNĄTRZ WRAPPERA
   .property-image-wrapper ma overflow:hidden więc label musi
   być position:absolute i mieścić się w granicach wrappera
   ============================================================ */

.property-image-wrapper .property-status {
  position: absolute !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  z-index: 10 !important;
  /* Liquid glass — działa bo jest na tle zdjęcia */
  backdrop-filter: blur(12px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.6) !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.3rem 0.875rem !important;
  border-radius: 9999px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
  border: 1px solid transparent !important;
}

/* Na sprzedaż — złoty */
.property-image-wrapper .property-status.status-sale {
  background: rgba(202, 155, 30, 0.35) !important;
  color: #fef3c7 !important;
  border-color: rgba(202, 155, 30, 0.6) !important;
}

/* Do wynajęcia — zielony */
.property-image-wrapper .property-status.status-rent {
  background: rgba(22, 163, 74, 0.32) !important;
  color: #dcfce7 !important;
  border-color: rgba(22, 163, 74, 0.55) !important;
}

/* Wynajęte — szary */
.property-image-wrapper .property-status.status-rented {
  background: rgba(15, 15, 15, 0.45) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}


/* ============================================================
   STATS NIERUCHOMOŚCI — IKONY (override z wartościami literal)
   ============================================================ */
.property-stat-icon {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 0.875rem !important;
  background: #f2f2f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #B80F0A !important;
  flex-shrink: 0 !important;
}
.property-stat-icon svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  color: #B80F0A !important;
  stroke: #B80F0A !important;
}



/* ============================================================
   WIDOK LISTA — jedno pod drugim, pełna szerokość
   ============================================================ */
.listing-list-view {
  grid-template-columns: 1fr !important;
  display: grid !important;
}

.listing-list-view .property-card {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  grid-template-rows: auto !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  min-height: 180px !important;
  width: 100% !important;
}

.listing-list-view .property-card .property-image-wrapper {
  grid-column: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 180px !important;
  aspect-ratio: unset !important;
  border-radius: 0 !important;
}

.listing-list-view .property-card .property-content {
  grid-column: 2 !important;
  padding: 1.25rem 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

@media (max-width: 600px) {
  .listing-list-view .property-card {
    grid-template-columns: 1fr !important;
  }
  .listing-list-view .property-card .property-image-wrapper {
    grid-column: 1 !important;
    height: 200px !important;
    min-height: 200px !important;
  }
  .listing-list-view .property-card .property-content {
    grid-column: 1 !important;
  }
}


/* ============================================================
   PROPERTY STATS — FINAL (czerwone ikony, wyśrodkowane)
   ============================================================ */
.property-detail-stats {
  display: flex !important;
  gap: 2rem !important;
  flex-wrap: wrap !important;
}
.property-stat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0.375rem !important;
  min-width: 80px !important;
}
.property-stat-icon {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 0.875rem !important;
  background: #f2f2f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.property-stat-icon svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  stroke: #B80F0A !important;
  color: #B80F0A !important;
}
.property-stat-value {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  line-height: 1.1 !important;
  display: block !important;
  text-align: center !important;
}
.property-stat-label {
  font-size: 0.8125rem !important;
  color: #64748b !important;
  display: block !important;
  text-align: center !important;
}


/* STATS — wyśrodkowanie w karcie i większe odstępy */
.property-detail-stats {
  justify-content: center !important;
  gap: 3rem !important;
}


/* Process section — jasny header */
.process-header-light {
  background: #F2F2F2;
  padding: 5rem 0 3rem;
}


/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: #F2F2F2;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s ease;
}
.faq-item.open {
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cs-graphite);
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--cs-red); }
.faq-question svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--cs-red);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question {
  color: var(--cs-red);
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer p {
  padding: 0 1.75rem 1.5rem;
  color: var(--cs-charcoal);
  line-height: 1.75;
  font-size: 0.9375rem;
  margin: 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}


/* FAQ answer text — jedna klasa zamiast inline styles */
.faq-answer-text {
  padding: 1rem 1.75rem 1.5rem !important;
  color: #64748b !important;
  line-height: 1.75 !important;
  font-size: 0.9375rem !important;
  margin: 0 !important;
  border-top: 1px solid #f0f0f0 !important;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
}


/* Process timeline — linia między okręgami, nie przez nie */
.process-step::after {
  content: '';
  position: absolute;
  left: calc(2.5rem - 1px);
  top: calc(2rem + 5rem);      /* padding-top + wysokość ikony */
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(184, 15, 10,0.6), rgba(184, 15, 10,0.15));
  z-index: 0;
}
.process-step:last-child::after {
  display: none;
}




/* Napis "wymarzonej nieruchomości" — jednolity czerwony, bez gradientu */
.text-red-solid {
  color: #B80F0A;
  background: none;
  -webkit-text-fill-color: #B80F0A;
}



/* Checkbox RODO */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}
.form-checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--cs-red);
  cursor: pointer;
  border-radius: 0.25rem;
}
.form-checkbox-label span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.form-checkbox-label a {
  color: var(--cs-red);
  text-decoration: underline;
}
.form-checkbox-label a:hover {
  color: white;
}



/* Mobile hero — iframe wypełnia cały ekran */
@media (max-width: 767px) {
  .hero-video-wrapper iframe {
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 177.78vw !important;
    min-width: unset !important;
    min-height: unset !important;
    transform: translate(-50%, -50%) !important;
  }
}


/* ============================================================
   REVIEWS SLIDER
   ============================================================ */
.reviews-slider-wrapper {
  position: relative;
  overflow: hidden;
}
.reviews-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.reviews-slider:active { cursor: grabbing; }
.reviews-slider .review-card {
  flex: 0 0 calc(25% - 1.125rem);
  min-width: calc(25% - 1.125rem);
}
@media (max-width: 900px) {
  .reviews-slider .review-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: calc(50% - 0.75rem);
  }
}
@media (max-width: 600px) {
  .reviews-slider .review-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}
.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.reviews-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--cs-red);
  background: none;
  color: var(--cs-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.reviews-btn:hover { background: var(--cs-red); color: white; }
.reviews-dots { display: flex; gap: 0.5rem; align-items: center; }
.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  padding: 0;
}
.reviews-dot.active { background: var(--cs-red); width: 24px; border-radius: 4px; }


/* Hero video — desktop/mobile switching */
.hero-video-desktop { display: block; }
.hero-video-mobile  { display: none; }

@media (max-width: 767px) {
  .hero-video-desktop { display: none; }
  .hero-video-mobile  { display: block; }

  /* Pionowe video (Shorts 9:16) — wypełnia ekran */
  .hero-video-mobile iframe {
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 177.78vw !important;
    min-width: unset !important;
    min-height: unset !important;
    transform: translate(-50%, -50%) !important;
  }
}
