/* =========================================
   1. RESET I BAZA (Zmienione pod nową nav)
   ========================================= */
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:'Poppins','Noto Sans JP',sans-serif;
  color:#fff;
  background-color:#383E42; 
  scroll-behavior:smooth;
  padding-top: 120px; /* Miejsce na stały topbar */
}
h1,h2,h3{color:#D4AF37}
img{max-width:100%;height:auto}
a{color:#D4AF37;text-decoration:none}

/* Preloader */
#preloader{
  position:fixed;top:0;left:0;width:100%;height:100%;
  background:#383E42;display:flex;align-items:center;
  justify-content:center;z-index:9999;transition:opacity .7s;
}
#preloader img{width:120px;height:auto}

/* =========================================
   2. NAWIGACJA (Poprawiony układ)
   ========================================= */

.topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  /* Zmieniamy na flex-start, aby elementy nie były "rozstrzelone" */
  justify-content: flex-start; 
  align-items: center;
  background: rgba(56,62,66,0.95);
  backdrop-filter: blur(6px);
  padding: 10px 40px; /* Zmniejszyłem padding góra/dół, bo logo jest większe */
  z-index: 1000;
  border-bottom: 1px solid rgba(212,175,55,.3);
  transition: all .4s ease;
  /* Odstęp między LOGO a MENU */
  gap: 50px; 
}

.topbar.scrolled {
  background: rgba(40,44,46,0.95);
  padding: 5px 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* POWIĘKSZONE LOGO */
.top-logo {
  height: 150px; /* Zwiększone z 90px */
  transition: height .4s ease;
  display: block;
}

.topbar.scrolled .top-logo { 
  height: 80px; /* Zwiększone z 60px w wersji po scrollu */
}

/* MENU GŁÓWNE */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.main-nav a {
  color: #D4AF37;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all .3s;
  white-space: nowrap; /* Zapobiega łamaniu tekstu w przyciskach */
}

.main-nav a:hover, .main-nav a.active {
  border-color: #D4AF37;
  color: #383E42;
  background: #D4AF37;
}

/* PRAWA CZĘŚĆ - IKONY KONTAKTOWE */
.top-right {
  display: flex;
  align-items: center;
  /* margin-left: auto odpycha ikonki na prawą stronę, 
     podczas gdy logo i menu zostają blisko siebie po lewej */
  margin-left: auto; 
  gap: 40px; /* Zwiększony odstęp między ikonkami z 18px na 40px */
  flex-wrap: nowrap;
}

.info-link, .home-link {
  color: #D4AF37;
  font-size: 1.3rem; /* Lekko powiększone ikonki dla lepszej widoczności */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.info-link:hover, .home-link:hover {
  color: #fff;
  transform: scale(1.2); /* Delikatne powiększenie ikony po najechaniu */
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 1100px) {
  .topbar { 
    gap: 20px; 
    padding: 10px 20px;
  }
  .top-logo { height: 90px; }
}

@media (max-width: 900px) {
  .topbar { 
    flex-wrap: wrap; 
    justify-content: center; 
    padding-bottom: 15px;
  }
  .top-right {
    margin-left: 0; /* Na mobilkach centrujemy ikonki */
    width: 100%;
    justify-content: center;
    margin-top: 15px;
  }
  .main-nav {
    width: 100%;
    justify-content: center;
  }
}/* Ukrycie hamburgera na desktopie */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #D4AF37;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  
  /* Rozwijalne menu */
  .main-nav {
    display: none; /* Ukryte domyślnie */
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(56, 62, 66, 0.98);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 2px solid #D4AF37;
  }
  
  .main-nav.active { display: flex; }
  
  /* Zapobieganie przesuwaniu na boki */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }
}
/* =========================================
   3. HERO I OGÓLNE SEKCJE
   ========================================= */
.hero {
  height: 85vh;
  background: url('../images/cam_9.jpg') center/cover no-repeat;
  display: flex; justify-content: center; align-items: center; flex-direction: column;
  position: relative; text-align: center;
}
.hero .overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(56, 62, 66, 0.65);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 10px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 8px; }
.hero h2 { font-size: 1.4rem; font-weight: 400; color: #eee; max-width: 800px; margin: auto; }
.hero .highlight { font-weight: 700; color: #D4AF37 }

.section { 
  position: relative; text-align: center; padding: 100px 20px; 
  background-size: cover; background-position: center; 
}
.section .overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(56, 62, 66, 0.65); z-index: 1;
}
.section-content { position: relative; z-index: 2; max-width: 1200px; margin: auto; }

.fade { opacity: 0; transform: translateY(40px); transition: all 1s ease-out }
.fade.visible { opacity: 1; transform: translateY(0) }
/* =========================================
   4. TWOJE ORYGINALNE STYLE (Mieszkania, Ceny, Galeria, Kontakt)
   ========================================= */
/* --- SEKCJA O PROJEKCIE - ZOPTYMALIZOWANA --- */
#oprojekcie {
  padding: 120px 20px;
  background: transparent;
  position: relative;
}

.intro-text {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.intro-text p {
  margin-bottom: 50px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #eee;
}

.gold-subtitle {
  color: #D4AF37;
  font-weight: 700;
  margin: 60px 0;
  text-transform: uppercase;
  font-size: 1.8rem;
  text-align: center;
}

/* Kontener kart */
.project-cards-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-top: 60px;
}

.project-card {
  background: #4A5054;
  border: 1px solid #D4AF37;
  padding: 35px 25px;
  flex: 1;
  min-width: 280px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px); /* Delikatny efekt uniesienia */
}

.project-card h3 {
  color: #D4AF37;
  margin-bottom: 25px;
  font-size: 1.3rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 15px;
}

.project-card ul { 
  list-style: none; 
  margin-bottom: 25px; 
  padding: 0; /* Reset domyślnego wcięcia */
}

.project-card ul li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  color: #fff;
}

.project-card ul li::before {
  content: "•";
  color: #D4AF37;
  position: absolute; 
  left: 0;
}

.project-card p.card-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ddd;
  margin-top: auto; 
  padding-top: 20px;
}

/* --- ZDJĘCIE LOKALIZACJI (ZAMIAST MAPY) --- */
.map-replacement-link {
  display: block;
  position: relative;
  margin: 0 auto; /* Usunięto 100px marginesu górnego */
  max-width: 1200px;
  border: 2px solid #D4AF37;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.map-replacement-link:hover {
  transform: scale(1.005);
  box-shadow: 0 5px 25px rgba(212, 175, 55, 0.3);
}

.map-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.map-replacement-link:hover .map-img {
  filter: brightness(1);
}

.map-overlay-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(56, 62, 66, 0.85);
  padding: 12px 25px;
  border: 1px solid #D4AF37;
  color: #D4AF37;
  font-weight: 600;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-replacement-link:hover .map-overlay-text {
  opacity: 1;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 1000px) {
  #oprojekcie { padding: 60px 15px; }
  
  .project-cards-container {
    flex-wrap: wrap; 
    margin-top: 40px;
  }
  
  .project-card {
    flex: 1 1 100%;
  }

  .gold-subtitle { margin: 40px 0; font-size: 1.4rem; }

  .map-img { height: 300px; } /* Niższa mapa na telefonach */
  
  .map-replacement-link { margin-top: 60px; } /* Mniejszy odstęp na mobile */
}
//* GŁÓWNA SIATKA RZUTÓW */
/* Przycisk w jednej linii */
.lokale-top {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* Wymuszenie jednej linii */
  gap: 15px;
  margin-bottom: 30px;
}

/* Siatka zdjęć w jednej linii z odstępem 1cm */
/* Sekcja rzutów usunięta - przeniesiona do sekcji 6 */

body.no-scroll {
  overflow: hidden;
}

/* --- SLIDER KONSTRUKCJA --- */
.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 50px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 10px 0;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slider-track img {
  min-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  padding: 0 10px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.7);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.arrow:hover { background: #D4AF37; }
.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

/* --- LIGHTBOX (POŁĄCZONE STYLE) --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border: 3px solid #D4AF37;
  border-radius: 5px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.close-lightbox {
  position: absolute;
  top: 20px; right: 30px;
  color: white; font-size: 45px;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.6);
  color: white;
  border: none;
  font-size: 3rem;
  padding: 15px 20px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10002;
  border-radius: 5px;
}

.lightbox-arrow:hover { background: #D4AF37; }
.l-prev { left: 5%; }
.l-next { right: 5%; }

/* Miniatury galerii */
.gallery-grid img {
  cursor: zoom-in;
  transition: all 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  opacity: 0.8;
}

/* --- MOBILNE POPRAWKI --- */
@media (max-width: 900px) {
  .arrow { font-size: 1.5rem; padding: 10px 5px; }
  
  .price-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
/* Lokale */
.lokale-top span{
  display:inline-block; margin:5px; padding:8px 12px;
  border:2px solid #D4AF37; color:#D4AF37;
  border-radius:4px; font-weight:600; cursor:pointer;
  transition:all .3s;
}
.lokale-top span:hover, .lokale-top span.active{ background:#D4AF37; color:#383E42; }

.mieszkania-container{ margin-top:30px; position:relative; }

/* Wspólne style dla ramek */
.building-image{ 
    position:relative; 
    display:inline-block; 
    border: 3px solid #D4AF37; /* Złota ramka dla zdjęcia */
    border-radius: 8px; /* Zaokrąglone rogi ramki */
    overflow: hidden; /* Aby powiększone zdjęcie nie wychodziło poza ramkę */
    transition: all 0.5s ease; /* Płynne przejścia */
}

/* --- RÓŻNE RAMKI DLA RÓŻNYCH ZDJĘĆ --- */

/* Dla zdjęć o wymiarach 1260x2250 (rzut2d.3d.png, etc.) */
.building-image.ramka-mala {
    max-width: 1000px; /* Zachowana stara wielkość */
    aspect-ratio: 1260 / 2250; /* Wymuszenie proporcji dla spójności */
}

/* Dla zdjęcia rzut2d.4d.png o wymiarach 1403x2250 - Wyraźnie inna ramka */
.building-image.ramka-duza {
    max-width: 1100px; /* Zwiększona szerokość, aby była różnica */
    aspect-ratio: 1403 / 2250; /* Wymuszenie proporcji dla spójności */
    /* Dodatkowy akcent wizualny, np. inny cień lub lekko inna ramka */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}

/* Bazowy styl dla samego zdjęcia wewnątrz ramki */
.building-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease; /* Płynna animacja powiększania */
}

/* --- POWIĘKSZENIE 1:2 PO KLIKNIĘCIU --- */
/* Ta klasa będzie dodawana do samego zdjęcia (img) przez JavaScript */
.building-image img.powiekszone-1-2 {
    transform: scale(2); /* Powiększenie dwukrotne */
    cursor: zoom-out; /* Zmiana kursora na pomniejszenie */
}

/* Highlight box nadal działa tak samo */
.highlight-box{ /* zmiana nazwy z .highlight by nie gryzło się z hero */
  position:absolute; border:3px solid #D4AF37;
  opacity:0; transition:opacity .3s; pointer-events:none;
}

./* Główne ustawienia tabeli */
/* ... reszta stylu tabeli bez zmian ... */
.availability-table {
    border-collapse: collapse; 
    margin: 30px auto; 
    min-width: 60%; 
    max-width: 800px;
    border: 2px solid #D4AF37; /* Główna, zewnętrzna złota ramka */
    color: #fff;
}
/* th, td, child-nth, status-available/sold bez zmian */
/* Galeria i Lightbox */
.gallery-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:15px; margin-top:25px;
}
.gallery-grid img{ width:100%; border-radius:8px; cursor:pointer; transition:transform .3s; }
.gallery-grid img:hover{ transform:scale(1.05); }

#lightbox{
  position:fixed; top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,.85); display:none;
  align-items:center; justify-content:center; z-index:5000;
}
#lightbox img{ max-width:90%; max-height:90%; border:4px solid #D4AF37; border-radius:8px; }
/* === WSPÓŁPRACA === */
.cards {
  display: flex;
  justify-content: center;
  align-items: stretch;          /* ramki równej wysokości */
  flex-wrap: wrap;
  gap: 30px;                     /* odstęp między ramkami */
  margin: 40px auto;
  max-width: 1100px;             /* ograniczenie szerokości sekcji */
}

.card {
  background: rgba(56, 62, 66, 0.85);
  border: 2px solid #D4AF37;
  border-radius: 10px;
  padding: 25px 20px;
  flex: 1 1 45%;                 /* dwie ramki obok siebie */
  min-width: 320px;
  max-width: 500px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

/* Responsywność – jedna karta pod drugą na telefonach */
@media (max-width: 900px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    flex: 1 1 100%;
    max-width: 90%;
  }
}
/* Styl dla sekcji Pobierania */
.download-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Równe odstępy między przyciskami */
  margin-top: 30px;
}

.download-btn {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #D4AF37; /* Złoty kolor Twojej strony */
  color: #D4AF37;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.download-btn:hover {
  background: #D4AF37;
  color: #383E42; /* Ciemny kolor tła strony */
  transform: translateY(-3px); /* Delikatne uniesienie przy najechaniu */
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Dostosowanie do telefonów */
@media (max-width: 900px) {
  .download-container {
    flex-direction: column;
    align-items: center;
  }
  .download-btn {
    width: 90%; /* Na telefonach przyciski są szersze i pod sobą */
    text-align: center;
  }
}

/* Układ siatki dla Kontaktu */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr; /* Trzy kolumny: Info, Formularz, Mapa */
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.contact-info { text-align: left; }
.contact-info h3 { margin-bottom: 20px; font-size: 1.2rem; }
.contact-info p { margin-bottom: 10px; color: #ccc; font-size: 0.95rem; }
.contact-links a { display: block; margin-top: 15px; font-weight: 600; }

/* Styl formularza */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  background: #2b2f33;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fff;
  border-radius: 4px;
}

/* Sekcja RODO */
.consent-container {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.consent-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  cursor: pointer;
}

.consent-container label {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #bbb;
  cursor: pointer;
}

/* Przycisk */
.btn-gold {
  background: #D4AF37;
  color: #383E42;
  border: none;
  padding: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

.btn-gold:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-gold:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.map-box iframe {
  width: 100%;
  height: 350px;
  border: 2px solid #D4AF37;
  border-radius: 8px;
}

/* Responsywność */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { text-align: center; }
  .consent-container { justify-content: center; }
}
/* =========================================
   5. RESPONSIVE (Kompletny zestaw poprawek)
   ========================================= */

/* --- TABLETY I MAŁE LAPTOPY (do 1100px) --- */
@media (max-width: 1100px) {
  .topbar { 
    padding: 10px 20px;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px;
  }
  
  .top-logo { height: 80px; }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .top-right {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    gap: 30px;
  }

  .floor-plans-grid {
    gap: 15px;
  }
  
  .plan-item {
    flex: 1 1 40%; /* 2 rzuty obok siebie na tabletach */
  }
}

/* --- TELEFONY (do 900px) --- */
@media (max-width: 900px) {
  /* 1. Header i Logo */
  .top-logo { height: 65px; }
  .top-right { gap: 25px; }

  /* 2. Sekcja O Projekcie (Ramki pionowo) */
  .project-cards-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
  }
  
  .project-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }

  /* 3. Mieszkania (Rzuty pionowo) */
  .plan-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* 4. Tabele (Przewijanie boczne) */
  .price-table, .availability-table {
    display: block;
    width: 100%;
    overflow-x: auto; /* Pozwala przesuwać tabelę palcem */
    white-space: nowrap;
    border: 1px solid #D4AF37;
  }

  /* 5. Galeria (Wyłączenie powiększania) */
  .gallery-grid img {
    pointer-events: none;
    cursor: default;
  }
  /* Wspólne tło dla sekcji Pobierania i Kontaktu */
.section-with-bg {
  background-image: url('../images/cam_7.jpg');
  background-attachment: fixed; /* Opcjonalnie: efekt lekkiego paralaksy */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff; /* Upewniamy się, że tekst jest biały na ciemnym tle */
}

/* Upewnienie się, że overlay jest odpowiednio ciemny (jak w Hero) */
.section-with-bg .overlay {
  background: rgba(56, 62, 66, 0.75); /* Możesz zwiększyć 0.75, jeśli ma być jeszcze ciemniej */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Wyciągnięcie treści ponad przyciemnienie */
.section-with-bg .section-content {
  position: relative;
  z-index: 2;
}

  /* 6. Kontakt (Układ pionowy i estetyka) */
.contact-grid {
  display: grid;
  /* Trzy kolumny: Info (1), Formularz (1.3), Mapa (1) */
  grid-template-columns: 1fr 1.3fr 1fr; 
  gap: 50px; /* Równa odległość między elementami */
  margin-top: 50px;
  align-items: stretch; /* Wyrównanie wysokości wszystkich kolumn */
}

.contact-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* LEWA KOLUMNA */
.contact-info {
  text-align: left;
}

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #D4AF37;
}

.contact-info p {
  margin-bottom: 5px;
  color: #eee;
  font-size: 0.95rem;
}

.contact-details {
  margin-top: 25px;
}

.contact-details a {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  transition: color 0.3s;
}

/* ŚRODKOWA KOLUMNA - FORMULARZ */
.contact-form {
  gap: 15px;
  justify-content: space-between;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  background: #444;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  border-radius: 4px;
}

/* RODO */
.rodo-box {
  display: flex;
  gap: 10px;
  text-align: left;
  margin-top: 10px;
}

.rodo-box input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  cursor: pointer;
}

.rodo-box label {
  font-size: 0.7rem;
  line-height: 1.4;
  color: #bbb;
  cursor: pointer;
}

/* PRZYCISK */
.btn-gold {
  background: #D4AF37;
  color: #383E42;
  border: none;
  padding: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-gold:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

/* PRAWA KOLUMNA - MAPA */
.contact-map {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Wymuszenie startu od góry */
  align-items: stretch;
}

.contact-map-link {
  margin: 0 !important; /* Usuwamy wszelkie marginesy */
  height: 100%;
  display: flex !important;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
  align-items: stretch;
}

.contact-map-link .map-img {
  height: 100% !important;
  width: 100%;
  object-fit: cover; /* Wypełnia całą dostępną przestrzeń */
  min-height: 350px;
  display: block;
  margin: 0 !important;
  border-radius: 12px;
}

.contact-map iframe {
  border: 1px solid #D4AF37 !important;
  border-radius: 8px;
}

/* MOBILNOŚĆ */
@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Na tabletach wszystko w jednej kolumnie */
    gap: 40px;
    align-items: start;
  }
  .contact-info { text-align: center; }
  .contact-map-link .map-img {
    height: 300px !important;
  }
}
  .contact-container { 
    flex-direction: column; 
    align-items: center; 
    gap: 40px;
  }
  
  .contact-info { 
    text-align: center; 
    padding: 0 10px;
  }

  .contact-form {
    width: 100%;
    max-width: 100%;
  }
  
  .contact-form input, .contact-form textarea {
    width: 95%; 
    max-width: none;
    margin-bottom: 15px;
  }

  .contact-form button {
    width: 95%;
  }
}

/* =========================================
   6. DODATKOWE STYLE I FIXY (Siatki i Tabele)
   ========================================= */

/* --- Rzuty Mieszkań (Floor Plans) --- */
.floor-plans-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 20px;
}

.plan-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-label {
  display: none; /* Ukryte na desktopie */
  background: #D4AF37;
  color: #383E42;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.plan-item img {
  height: 550px; /* Powiększone o kolejne 1x (z 330px na 550px) */
  width: auto;   /* Szerokość dopasowana proporcjonalnie */
  display: block;
  border-radius: 4px;
}

/* Efekt powiększenia (Modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95); /* Ciemniejsze tło dla lepszego kontrastu */
  z-index: 99999; /* Absolutnie nad wszystkim */
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-overlay.active {
  display: flex;
}

.plan-modal-content {
  width: 95vw;
  height: 95vh;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100000;
}

.plan-modal-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

body.no-scroll {
  overflow: hidden;
}

/* Tabela Ceny i Dostępność */
.price-table {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  border-collapse: collapse;
  color: #fff;
  border: 2px solid #D4AF37;
}

.price-table th {
  background: #D4AF37;
  color: #383E42;
  padding: 12px;
  border: 1px solid #383E42;
}

.price-table td {
  padding: 12px;
  border: 1px solid #D4AF37;
  background: rgba(0,0,0,0.3);
  text-align: center;
}

.dostepny { color: #7CFC00; font-weight: bold; }
.sprzedany { color: #FF6347; font-weight: bold; }
/* =========================================
   POPRAWKI RESPONSYWNOŚCI (Wklej na końcu)
   ========================================= */

/* --- Ogólne poprawki dla mniejszych ekranów --- */
@media (max-width: 900px) {
  body { 
    padding-top: 200px; /* Więcej miejsca na zawiniętą nawigację */
  }
  
  .section { 
    padding: 60px 15px; /* Mniejszy padding sekcji na mobile */
  }

  .hero h1 { 
    font-size: 1.8rem; /* Mniejszy tekst nagłówka */
  }
}

/* --- Nawigacja Mobile --- */
@media (max-width: 900px) {
  .topbar {
    padding: 10px;
    gap: 10px;
  }

  .top-logo { 
    height: 60px; /* Mniejsze logo */
  }

  .main-nav {
    gap: 5px;
  }

  .main-nav a {
    padding: 5px 10px;
    font-size: 0.8rem; /* Mniejsze przyciski menu */
  }

  .top-right {
    gap: 15px;
    margin-top: 5px;
  }
}

/* --- Rzuty Mieszkań (Floor Plans) --- */
@media (max-width: 900px) {
  .lokale-top {
    display: none !important; /* Ukrywamy górne przyciski na mobile */
  }

  .floor-plans-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    padding: 15px !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  .plan-item {
    flex: 0 0 calc(50% - 15px) !important;
    width: calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 20px !important;
  }

  .plan-label {
    display: flex !important;
    font-size: 0.7rem !important; /* Nieco większy tekst dla czytelności */
    padding: 6px 4px !important;
    margin-bottom: 10px !important;
    border: 2px solid #D4AF37 !important; /* Złota ramka jak w oryginale */
    line-height: 1.2 !important;
    background: #D4AF37 !important;
    color: #383E42 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 35px !important; /* Optymalna wysokość przycisku */
  }

  .plan-item img {
    height: auto !important;
    width: 100% !important;
    max-height: 250px !important; /* Zwiększyłem nieco wysokość dla lepszej czytelności */
    object-fit: contain !important;
  }
}

/* --- Kontakt (Trzy kolumny -> Jedna kolumna) --- */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Wszystko w pionie */
    gap: 30px;
    text-align: center;
  }

  .contact-info, .contact-details {
    text-align: center;
  }

  .contact-map {
    min-height: 300px;
    order: 3; /* Mapa na samym dole */
  }

  .contact-form {
    order: 2; /* Formularz w środku */
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }
  
  .rodo-box {
    display: flex;
    flex-direction: column; /* Checkbox nad tekstem dla idealnego centrowania */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
    margin-top: 20px;
    gap: 12px;
    width: 100%; /* Zapewnienie pełnej szerokości */
  }

  .rodo-box input {
    margin: 0;
    width: 22px; /* Nieco większy checkbox na mobile */
    height: 22px;
  }

  .rodo-box label {
    text-align: center;
    width: 100%;
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* --- Tabela i przyciski pobierania --- */
@media (max-width: 600px) {
  .price-table {
    font-size: 0.8rem;
  }

  .download-btn {
    width: 100%; /* Przyciski na całą szerokość */
    text-align: center;
  }
  
  body {
    padding-top: 250px; /* Jeszcze więcej miejsca na bardzo wąskie ekrany */
  }
}
/* --- BANER COOKIES --- */
.cookie-banner {
  position: fixed;
  bottom: -100%; /* Domyślnie schowany pod ekranem */
  left: 0;
  width: 100%;
  background: rgba(40, 44, 46, 0.98);
  border-top: 2px solid #D4AF37;
  padding: 20px;
  z-index: 11000; /* Musi być nad wszystkim, nawet nad rzutami */
  transition: bottom 0.5s ease-in-out;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

/* Klasa aktywująca pokazanie banera */
.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-content a {
  color: #D4AF37;
  text-decoration: underline;
}

#accept-cookies {
  white-space: nowrap;
  padding: 10px 25px;
  font-size: 0.85rem;
}

/* Poprawka dla telefonów */
@media (max-width: 900px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* --- STOPKA --- */
.footer {
  text-align: center;
  padding: 40px 20px;
  background: #282c2e;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer p {
  margin-bottom: 10px;
  color: #bbb;
  font-size: 0.9rem;
}

.footer a {
  color: #D4AF37;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #fff;
}