/* ==========================================================================
   fasilitas.css — Halaman Galeri Fasilitas Desa
   ========================================================================== */

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.fasilitas-header {
  background: linear-gradient(135deg, #f5f6f0 0%, #e8f5e9 100%);
  text-align: center;
  padding: 100px 20px 60px;
  border-bottom: 1px solid rgba(26,92,42,0.08);
}

.fasilitas-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.fasilitas-header p {
  font-size: 1.05rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  color: var(--color-primary-dark);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid rgba(26, 92, 42, 0.2);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-back:hover {
  background-color: var(--color-primary-dark);
  color: white;
  border-color: var(--color-primary-dark);
}

/* ─── GALLERY SECTION ────────────────────────────────────────────────────── */
.fasilitas-gallery-section {
  padding: 60px 0 100px;
  background-color: #f9faf5;
}

/* ─── CAROUSEL WRAPPER ───────────────────────────────────────────────────── */
.gallery-carousel {
  position: relative;
  margin-top: 20px;
}

/* Prev / Next Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: white;
  border: 1.5px solid rgba(26, 92, 42, 0.15);
  color: var(--color-primary-dark);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  outline: none;
}

.carousel-btn:hover {
  background: var(--color-primary-dark);
  color: white;
  border-color: var(--color-primary-dark);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-btn--prev {
  left: -24px;
}

.carousel-btn--next {
  right: -24px;
}

@media (max-width: 768px) {
  .carousel-btn--prev { left: -12px; }
  .carousel-btn--next { right: -12px; }
}

/* The scrollable track */
.gallery-track-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── GALLERY ITEMS ──────────────────────────────────────────────────────── */
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;

  /* On desktop: 3 per row */
  width: calc((100% - 40px) / 3);
}

@media (max-width: 900px) {
  .gallery-item {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    width: 100%;
  }
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ─── DOT INDICATORS ─────────────────────────────────────────────────────── */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 92, 42, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary-dark);
}

/* ─── EMPTY STATE ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 16px;
  color: #6B7280;
  border: 1px dashed rgba(26,92,42,0.15);
  font-size: 1rem;
}
