
/* =========================
   DESIGN SYSTEM (PREMIUM BASE)
   Wklej na samą górę style.css
========================= */

:root{
  /* Kolory bazowe */
  --bg: #F6F7F5;
  --surface: rgba(255,255,255,.78);
  --surface-solid: #ffffff;

  --text: #111714;
  --muted: rgba(17, 23, 20, .68);

  /* Brand (Twoja zieleń jako akcent) */
  --brand: #1F6F43;
  --brand-2: #185C37;

  /* Obrysy i cienie */
  --border: rgba(17, 23, 20, .10);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.08);
  --shadow-md: 0 18px 45px rgba(0,0,0,.12);

  /* Zaokrąglenia i odstępy */
  --r-lg: 18px;
  --r-xl: 22px;
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;

  /* Premium tło: miękki gradient + delikatny pattern */
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(31,111,67,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(0,0,0,.10), transparent 55%),
    radial-gradient(rgba(0,0,0,0.028) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 140px 140px, auto;
}

/* Czytelna typografia nagłówków */
h1, h2, h3 { letter-spacing: -0.02em; }
h2{
  color: var(--text);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 18px;
}
p { color: var(--muted); }


/* =========================
   NAV (spójna dla <nav> i <nav class="nav">)
========================= */

nav, .nav{
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(19, 19, 19, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Usuń margin-left: 120px; – to był hack */
.logo-link, .logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.site-logo, .logo img{
  height: 52px;
  display: block;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 650;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background .2s ease, opacity .2s ease;
}

.nav-links a:hover{
  background: rgba(255,255,255,.08);
}

.nav-links a.active{
  background: rgba(255,255,255,.12);
}

/* ====== SEKCJA HERO (duże zdjęcie + overlay) ====== */
.hero {
  background: url('tlo.jpg') center/cover no-repeat;
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, .4);
  padding: 40px 24px;
  text-align: center;
  border-radius: 8px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 10px;
}

h2 {
  color: #1F6F43;
  font-size: 2rem;
  margin-bottom: 20px;
}

h3 {
  color: #2A2A2A;
  font-weight: 600;
}

/* ====== SEKCJE OGÓLNE ====== */
/* Domyślnie: sekcje BEZ karty */
section {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}



section h2 {
  color: #2d6a4f;
  text-align: center;
  margin: 0 0 24px;
}

/* ====== BOXY Z ATUTAMI ====== */
.features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature {
  flex: 1 1 220px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  background: #f9f9f9;
}

/* ====== GALERIA ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform .3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ====== FORMULARZ KONTAKTOWY ====== */
.contact-form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ====== STOPKA ====== */
footer {
  background: #2f2f2f;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 768px) {
  .site-logo { height: 44px; }
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 2.2rem; }
  .hero h2 { font-size: 1.2rem; }
  .nav-links { gap: 12px; }
}

/* ====== STRUKTURA STRONY ====== */
html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero { flex: 1 0 auto; }
footer { margin-top: auto; }

/* ===== Overlay nav na zdjęciu – tylko na stronie głównej ===== */
.home nav {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  z-index: 1001;
}

.home .nav-links a {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

.home .site-logo {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}

/* ===== Hero pełnoekranowy + gradient ===== */
.hero { position: relative; }

.home .hero {
  min-height: 100vh;
}

.home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.28) 28%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

.home .hero-overlay { padding-top: 90px; }

@media (max-width: 768px) {
  .home .hero-overlay { padding-top: 70px; }
}
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.apartment-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #fafafa;
}

.apartment-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.status-available {
  color: #2d6a4f;
  font-weight: 700;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.document-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #f9f9f9;
}
.section-intro {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-intro p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

.apartment-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.apartment-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.apartment-card p {
  margin: 6px 0;
}

.status-available {
  background: #e6f4ea;
  color: #1b7a46;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .85rem;
}
.btn-primary {
  background: linear-gradient(135deg, #1F6F43, #185C37);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: #185c37;
}

.btn-secondary {
  background: #f0f0f0;
  color: #222;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}
.location-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
}

.location-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
/* =========================
   INVESTMENT – PREMIUM UX
========================= */

.investment-hero {
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.2)),
              url("tlo.jpg") center/cover no-repeat;
  color: #fff;
  padding: 140px 24px 100px;
  text-align: center;
}

.investment-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.investment-hero p {
  font-size: 1.15rem;
  opacity: .9;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head p {
  color: #555;
  font-size: 1.05rem;
}

/* ===== MIESZKANIA ===== */

.apartments-section {
  padding: 80px 40px;
  background: #f7f9f8;
}

.apartments-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.apartment-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.apartment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.apartment-card h3 {
  font-size: 1.3rem;
  margin: 0;
}

.apartment-meta {
  display: flex;
  gap: 18px;
  color: #555;
  font-size: .95rem;
}

.apartment-status {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
}

.apartment-status.available {
  background: #e6f4ea;
  color: #1b7a46;
}

.apartment-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* ===== DOKUMENTY ===== */

.section-box {
  background: #fff;
  border-radius: 18px;
  padding: 80px 40px;
  margin: 80px auto;
  max-width: 1200px;
}

.legal-note {
  margin-top: 24px;
  font-size: .9rem;
  color: #666;
  text-align: center;
}

/* ===== RESPONSYWNOŚĆ ===== */

@media (max-width: 1024px) {
  .apartments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .apartments-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .apartment-card {
    min-width: 300px;
    scroll-snap-align: start;
  }

  .investment-hero h1 {
    font-size: 2.2rem;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, Arial, sans-serif;
  background: #f7f9f8;
  color: #222;
}

/* NAV */
.nav {
  background: #1f1f1f;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo img { height: 48px; }

.nav-links a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a.active { opacity: .7; }

/* HERO */
.investment-hero {
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.25)),
              url("tlo.jpg") center/cover no-repeat;
  padding: 140px 24px;
  text-align: center;
  color: #fff;
}

.investment-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* SEKCJE */
.section-head {
  max-width: 700px;
  margin: 0 auto 32px; /* było 50 */
  text-align: center;
}


.flats-section {
  padding: 3px 4px 1px; /* ↓ kluczowa zmiana */
}

/* GRID */
.flats-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px; /* zamiast dużej pustki */

}

/* KARTA */
.flat-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: .25s;
}

.flat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.flat-image {
  aspect-ratio: 4/3;
  position: relative;
}

.flat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flat-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
}

.flat-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flat-meta {
  display: flex;
  gap: 18px;
  color: #555;
}

.flat-status {
  background: #e6f4ea;
  color: #1b7a46;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  width: fit-content;
}

.flat-cta {
  margin-top: auto;
  background: linear-gradient(135deg,#1f6f43,#185c37);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

/* DOKUMENTY */
.documents-section {
  background: #fff;
  padding: 56px 40px 64px;
  margin-top: 24px; /* kluczowa zmiana */
  text-align: center;
}

.documents-grid {
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}

.document-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px 28px;
  background: #fafafa;
}


.document-card a {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #1f6f43;
}

/* FOOTER */
.footer {
  background: #2f2f2f;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 80px;
}
.documents-section h2 {
  margin-bottom: 32px;
}

/* MOBILE */
@media (max-width: 1024px) {
  .flats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .flats-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .flat-card {
    min-width: 280px;
    scroll-snap-align: start;
  }
}
.flats-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
}

.flat-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: .25s;
}

.flat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.flat-image {
  aspect-ratio: 4/3;
  position: relative;
}

.flat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}

.flat-badge.available {
  background: #e6f4ea;
  color: #1b7a46;
}

.flat-badge.sold {
  background: #ffe3e3;
  color: #b42318;
}

.flat-info {
  padding: 20px;
}

.flat-meta {
  color: #666;
  font-size: .95rem;
  margin: 6px 0 14px;
}

.flat-pricing {
  display: flex;
  flex-direction: column;
}

.price-m2 {
  font-size: .85rem;
  color: #777;
}

.price-total {
  font-size: 1.5rem;
  color: #1f6f43;
}

.flat-link {
  display: inline-block;
  margin-top: 12px;
  color: #1f6f43;
  font-weight: 600;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  max-width: 1100px;   /* SZERSZA KARTA */
  width: 95%;
  display: grid;
  grid-template-columns: 420px 1fr; /* ZDJĘCIE | TREŚĆ */
  gap: 32px;
  padding: 32px;
}


.modal-media {
  border-radius: 16px;
  overflow: hidden;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.modal-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-cta {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(135deg,#1f6f43,#185c37);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.flat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}

.flat-badge.available {
  background: #e6f4ea;
  color: #1b7a46;
}

.flat-badge.sold {
  background: #ffe3e3;
  color: #b42318;
}

.flat-badge.reservation {
  background: #fff4e5;
  color: #b25a00;
}

.flat-pricing {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.price-m2 {
  font-size: .85rem;
  color: #777;
}

.price-total {
  font-size: 1.6rem;
  color: #1f6f43;
  font-weight: 700;
}
.investment-intro {
  max-width: 900px;
  margin: 60px auto 40px;
  text-align: center;
}

.investment-intro h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.investment-intro p {
  color: #555;
  font-size: 1.05rem;
}
body {
  background-color: #f6f6f4;
  background-image: radial-gradient(
    rgba(0,0,0,0.03) 1px,
    transparent 1px
  );
  background-size: 140px 140px;
}
.flats-hero {
  padding: 140px 40px 120px;
}
.flats-hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}

.flats-hero p {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 80px;
}
.flats-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.flat-card {
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.10);
}

.flat-image {
  aspect-ratio: 4 / 3;
}

.flat-info {
  padding: 28px 28px 32px;
}

.flat-info h3 {
  font-size: 1.25rem;
}

.price-total {
  font-size: 1.75rem;
  font-weight: 700;
}
/* ===== Modal – wersja premium ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;              /* otwieramy przez JS */
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(0,0,0,.65); /* zamiast rgba(...,6) */
  z-index: 2000;
}

.modal-content{
  position: relative;          /* kluczowe: close jest absolutny */
  width: min(920px, 100%);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.modal-media{
  background: #f3f3f3;
  min-height: 280px;
}

.modal-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body{
  padding: 26px 26px 22px;
  text-align: left;
}

.modal-top{
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.modal-status{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  background: #eef2f3;
  color: #2b2b2b;
}

.modal-status.available{ background:#e6f4ea; color:#1b7a46; }
.modal-status.sold{ background:#ffe3e3; color:#b42318; }
.modal-status.reservation{ background:#fff4e5; color:#b25a00; }

.modal-body h2{
  margin: 6px 0 8px;
}

.modal-body p{
  margin: 0 0 14px;
  color: #555;
}

.modal-facts{
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.modal-facts li{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fafafa;
}

.modal-facts li span{
  color: #666;
  font-size: .92rem;
}

.modal-facts li strong{
  color: #1f6f43;
  font-weight: 800;
}

.modal-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal-cta{
  display: inline-block;
  background: linear-gradient(135deg,#1f6f43,#185c37);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.modal-secondary{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px){
  .modal-content{ grid-template-columns: 1fr; }
  .modal-body{ text-align: center; }
  .modal-actions{ justify-content: center; flex-wrap: wrap; }
  .modal-facts li{ justify-content: center; }
}
.location-content {
  max-width: 1100px;
  margin: 0 auto 40px;
}
/* ====== PAGE WRAPPER (podstrony) ====== */
.page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 90px;
}

/* === GALERIA – OBOK SIEBIE === */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.gallery img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery img:hover{
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,.22);
}
/* ===== LOKALIZACJA – PREMIUM UKŁAD ===== */

.location-content {
  max-width: 1020px;          /* czytelna szerokość tekstu */
  margin: 0 auto 48px;
  text-align: left;
}

.location-content p {
  font-size: 1.05rem;
  line-height: 1.65;
}

.location-map {
  max-width: 1100px;         /* mapa NIE na całą stronę */
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.location-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {
  .location-map iframe {
    height: 300px;
  }
}
/* === LOKALIZACJA – TEKST NORMALNY === */
.location-content {
  text-align: left;
}

.location-content p,
.location-content li {
  text-align: left;
}
.page h2{
  margin-top: 0;
  margin-bottom: 32px;
}
.galeria-page h2,
.lokalizacja-page h2 {
  margin-top: 0;
  padding-top: 48px;
}
/* ===== KONTAKT – DANE NA ŚRODKU ===== */
.contact-details {
  max-width: 600px;
  margin: 0 auto 32px;   /* środek strony */
  text-align: center;
}

.contact-details p {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.contact-details a {
  color: #1f6f43;
  font-weight: 600;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}
/* =========================
   MODAL – KARTA LOKALU
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 1100px;          /* <<< SZERSZA KARTA */
  max-width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;  /* obraz + treść */
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.price-history {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.price-history li {
  padding: 12px 16px;
  border-radius: 10px;
  background: #f6f6f6;
  margin-bottom: 10px;
  font-weight: 500;
}
.modal-sm .modal-content-sm {
  max-width: 420px;
  padding: 24px;
  border-radius: 16px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

#price-modal.open {
  display: flex;
}
#price-modal {
  z-index: 3000;
}
/* =========================
   FIX: KARTA HISTORII CEN
========================= */

.modal-sm {
  align-items: center;
  justify-content: center;
}

.modal-content-sm {
  background: #ffffff;          /* 🔥 TO JEST KLUCZ */
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: min(420px, 92vw);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.modal-content-sm h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f6f6f6;
  font-weight: 600;
}
/* =========================
   GALERIA – LIGHTBOX (PRO FIX)
========================= */

.lightbox{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;

  background: rgba(0,0,0,.85);
  display: none;

  z-index: 2147483647; /* absolutny max */
  cursor: zoom-out;
}

.lightbox img{
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;

  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
body.lightbox-open {
  overflow: hidden !important;
}
