/* ===== HERO SEKCIJA – KUPATILA ===== */
.kupatila-hero {
  background-color: #b91c1c;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185,28,28,0.9), rgba(185,28,28,0.7) 70%, rgba(249,250,251,1));
  background-size: 40px 40px, 40px 40px, 100% 100%;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  animation: fadeInHero 1s ease-in-out;
}

.kupatila-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.kupatila-hero p {
  font-size: 1.1rem;
  color: #f3f4f6;
}

/* ===== SEKCIJE ===== */
.kupatila-section {
  background-color: #f9fafb;
  background-image:
    linear-gradient(to right, rgba(185,28,28,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185,28,28,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 80px 0;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== REDOVI ===== */
.kupatila-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.kupatila-section.visible .kupatila-row {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SLIKE I TEKST ===== */
.kupatila-image {
  flex: 1 1 50%;
}

.kupatila-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease;
}

.kupatila-image img:hover {
  transform: scale(1.03);
}

.kupatila-text {
  flex: 1 1 50%;
  color: #374151;
  animation: fadeInText 1s ease-in-out;
}

.kupatila-text h2 {
  font-size: 1.9rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.kupatila-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
}

/* ===== GALERIJA – KUPATILA ===== */
.kupatila-gallery {
  background: #f9fafb;
  background-image:
    linear-gradient(to right, rgba(185,28,28,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185,28,28,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 80px 0;
  text-align: center;
  animation: fadeInHero 1s ease-in-out;
}

.kupatila-gallery h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1e293b;
}

/* 6 slika u redu na većim ekranima */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Responsive raspored kolona */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .kupatila-row {
    flex-direction: column;
    text-align: center;
  }

  .kupatila-image {
    width: 100%;
  }

  .kupatila-image img {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
  }

  .kupatila-text {
    margin-top: 25px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid img {
    height: 180px;
  }
}

/* ===== LIGHTBOX ===== */
body.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
}

.lightbox-image {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(185, 28, 28, 0.95);
}

/* ===== ANIMACIJE ===== */
@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
