/* ==============================
   KTV Styles – ktv.css (Production)
============================== */

/* ------------------------------
   0. Features Grid Layout
------------------------------ */
.ktv-features .feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ------------------------------
   1. Feature Cards
------------------------------ */
.ktv-features .feature-item {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  position: relative;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ktv-features .feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* Icon via pseudo-element */
.ktv-features .feature-item::before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  background-size: cover;
  background-position: center;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.ktv-features .feature-item:hover::before {
  transform: scale(1.1);
}

/* ------------------------------
   2. Feature Icons by Index
------------------------------ */
.ktv-features .feature-item:nth-child(1)::before { background-image: url('/assets/icons/ktv/room-door.svg'); }
.ktv-features .feature-item:nth-child(2)::before { background-image: url('/assets/icons/ktv/speaker-2.svg'); }
.ktv-features .feature-item:nth-child(3)::before { background-image: url('/assets/icons/ktv/food.svg'); }
.ktv-features .feature-item:nth-child(4)::before { background-image: url('/assets/icons/ktv/wifi.svg'); }
.ktv-features .feature-item:nth-child(5)::before { background-image: url('/assets/icons/ktv/toilet.svg'); }
.ktv-features .feature-item:nth-child(6)::before { background-image: url('/assets/icons/ktv/shield-lock.svg'); }

/* ------------------------------
   3. Responsive Adjustments
------------------------------ */
@media (max-width: 600px) {
  .feature-item {
    padding: 1.5rem 1rem;
  }

  .feature-item::before {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

  .feature-item h3 {
    font-size: 1.1rem;
  }

  .feature-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .feature-item::before {
    width: 40px;
    height: 40px;
  }
}

/* ------------------------------
   5. Gallery
------------------------------ */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
}

.gallery-item {
  flex: 0 1 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .gallery-item {
    flex: 0 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: none;
    width: 100%;
    max-width: 360px;
    margin-bottom: 1rem;
  }
}

/* ------------------------------
   6. Lightbox Overlay
------------------------------ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ------------------------------
   7. Booking CTA Button
------------------------------ */
.book-ktv-wrapper {
  display: flex;
  justify-content: center;
  margin: 3rem auto 1rem;
}

.book-ktv-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.book-ktv-button:hover {
  transform: scale(1.05);
  background: var(--color-accent-end);
}

@media (max-width: 480px) {
  .book-ktv-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}


.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: block;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .feature-icon {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 380px) {
  .feature-icon {
    width: 40px;
    height: 40px;
  }
}
