/* ============================
   Global / Base
   ============================ */
html, body { height: 100%; }
body { font-feature-settings: "liga" 1; }
img { max-width: 100%; height: auto; display: block; }

/* Link aktywny w nawigacji */
.navbar .nav-link.active { font-weight: 600; }
/* Centrowanie zawartości w navbarze */
.navbar { align-items: center; }

/* ============================
   Brand / Logo w navbarze
   ============================ */
.navbar-brand { padding-top: .25rem; padding-bottom: .25rem; }
.brand-logo {
  height: 100px;        /* desktop */
  max-width: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  .brand-logo { height: 60px; } /* mobile */
}

/* ============================
   Slider – strona główna
   ============================ */
.slider-img {
  height: 600px;
  width: 100%;
  object-fit: cover;
}
/* Overlay dla czytelności napisów */
.carousel-item::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}
.carousel-caption {
  position: absolute;
  bottom: 20%;
  z-index: 2;
  text-align: center;
}
.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.carousel-caption p {
  font-size: 1.25rem;
  color: #eee;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ============================
   Slider – strona Oferta
   ============================ */
.offer-slider-img {
  height: 420px;
  width: 100%;
  object-fit: cover;
}

/* Strzałki – lepszy kontrast */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
  filter: invert(1) grayscale(100);
}

/* Kropki (indicators) */
.carousel-indicators [data-bs-target] {
  background-color: #333;
  width: 12px; height: 12px; border-radius: 50%;
}
.carousel-indicators .active { background-color: #0d6efd; }

/* Mobile */
@media (max-width: 768px) {
  .slider-img { height: 300px; }
  .offer-slider-img { height: 260px; }
  .carousel-caption h2 { font-size: 1.5rem; }
  .carousel-caption p { font-size: 1rem; }
}

/* ============================
   Karty i obrazy (galeria/oferta)
   ============================ */
.card img { object-fit: cover; height: 220px; }
.shadow-soft { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.card.shadow-soft:hover { transform: translateY(-2px); transition: transform .15s ease-in-out; }

/* ============================
   CTA / Hero / Drobne
   ============================ */
.home-hero { scroll-margin-top: 80px; }
.cta-strip { background: linear-gradient(135deg, #0d6efd, #4f8cff); }
.alert { margin-bottom: .75rem; }
footer { background: #fff; }

@media (max-width: 576px) {
  main { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

/* ============================
   GALERIA
   ============================ */
.gallery-img {
  width: 100%;
  height: 280px;        /* wszystkie zdjęcia równej wysokości */
  object-fit: cover;    /* przycina zachowując proporcje */
  border-radius: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ============================
   GALERIA + LIGHTBOX
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;                 /* domyślnie ukryte */
  align-items: center;
  justify-content: center;
  z-index: 1050;                 /* ponad nav i treścią */
  padding: 2rem;
}
.lightbox.is-open { display: flex; animation: lbFade .15s ease-out; }

@keyframes lbFade {
  from { opacity: 0; } to { opacity: 1; }
}

/* Obraz w overlay */
.lightbox-img {
  max-width: 70vw;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* Zablokuj scroll tła gdy lightbox otwarty */
body.modal-open { overflow: hidden; }

/* Na małych ekranach miniatury trochę niższe */
@media (max-width: 768px) {
  .gallery-img { height: 220px; }
}

/* ============================
   BLOG
   ============================ */
.blog-post img {
  max-height: 400px;
  object-fit: cover;
}
.blog-post .content {
  font-size: 1.05rem;
  line-height: 1.6;
}
.text-muted.small {
  color: #777 !important; /* jaśniejszy szary */
}

/* Blog – placeholder gdy brak zdjęcia */
.blog-placeholder {
  height: 220px;
  background-color: #6c757d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 10px;
}
.blog-placeholder h4 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
}

/* ============================
   Google Maps container
   ============================ */
.map-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
