/* ======================================
   BLOK: SZCZEGÓŁ OFERTY (GALERIA + TEKST)
   ====================================== */

.offer-detail-block {
  background: #f8fafc;              /* jasno, jak na screenie */
  padding-block: 3rem 3.5rem;
  margin-top: 3rem;                  /* odstęp od menu / hero */
}

.offer-detail-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* LEWA KOLUMNA – GALERIA */

.offer-mini-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;                       /* bliżej miniatury do zdjęcia */
}

/* duże zdjęcie (niebieska rama z obrazka) */
.offer-mini-gallery__main {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #020617;
  border: 1px solid #0b1120;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);

  /* proporcje pionowego zdjęcia */
  aspect-ratio: 3 / 4;
  max-height: 560px;
}

.offer-mini-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* podpis pod zdjęciem (zielona strefa na screenie) */
.offer-photo-label {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #e5e7eb;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.7));
  text-align: center;
}

/* małe miniatury (zielony pasek – „karuzela”) */
.offer-mini-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
}

.offer-thumb {
  flex: 1 1 0;
  padding: 0;
  border: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #020617;
  cursor: pointer;
  opacity: 0.6;
  transform: translateY(0);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease,
    outline-color 0.15s ease;
  outline: 2px solid transparent;
}

.offer-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.offer-thumb--active {
  opacity: 1;
  outline-color: var(--color-accent, #f97373);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.4);
}

/* PRAWA KOLUMNA – TEKST (czerwone na screenie) */

.offer-detail-content-block {
  background: #ffffff;
  border-radius: 1.3rem;
  padding: 2rem 2.3rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(15, 23, 42, 0.02);
}

.offer-detail-heading {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
  line-height: 1.3;
  color: #0f172a;
}

.offer-detail-text {
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #475569;
}

.offer-detail-list-block {
  margin-top: 1.2rem;
}

.offer-detail-subheading {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.offer-detail-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.96rem;
}

.offer-detail-list li + li {
  margin-top: 0.25rem;
}

/* tagi (pigułki) */

.offer-detail-tags {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.offer-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f1f5f9;
  color: #0f172a;
}

/* CTA tekst + przycisk */

.offer-detail-contact-cta {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.95rem;
  color: #475569;
}

.offer-detail-contact-cta p {
  margin: 0 0 0.85rem;
  max-width: 30rem;
}

/* mały przycisk z globalnego .btn */

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
}

/* animacja zmiany zdjęcia */

#offer-main-image {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

#offer-main-image.fade-out {
  opacity: 0;
  transform: scale(0.99);
}

/* RWD */

@media (max-width: 1024px) {
  .offer-detail-2col {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-detail-content-block {
    padding: 1.6rem 1.7rem;
  }
}

@media (max-width: 640px) {
  .offer-detail-block {
    padding-block: 2.4rem 2.8rem;
  }

  .offer-mini-gallery__thumbs {
    gap: 0.5rem;
  }

  .offer-detail-content-block {
    border-radius: 1rem;
    padding: 1.4rem 1.45rem;
  }

  .offer-detail-contact-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* Lightbox dla dużego zdjęcia */

.offer-lightbox-backdrop {
  position: fixed;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.offer-lightbox-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.offer-lightbox-img {
  max-width: min(1200px, 100%);
  max-height: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.offer-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
/* STRZAŁKI PRZY DUŻYM ZDJĘCIU */

.offer-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  color: #e5e7eb;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
  opacity: 0.9;
}

.offer-gallery-arrow--prev {
  left: 0.75rem;
}

.offer-gallery-arrow--next {
  right: 0.75rem;
}

.offer-gallery-arrow:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-50%) scale(1.05);
}

/* STRZAŁKI W LIGHTBOXIE */

.offer-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
  opacity: 0.9;
}

.offer-lightbox-arrow--prev {
  left: 2rem;
}

.offer-lightbox-arrow--next {
  right: 2rem;
}

.offer-lightbox-arrow:hover {
  background: #020617;
  transform: translateY(-50%) scale(1.06);
}
.offer-lightbox-img {
  transition: opacity .18s ease, transform .18s ease;
}

.offer-lightbox-img.fade-out {
  opacity: 0;
  transform: scale(0.99);
}
