/* ============================================================
   LUMINA BEACH VILLA — Design 2
   Dark editorial aesthetic: near-black + warm gold + stone
   Tailwind handles utilities; this file covers components,
   animations, gallery/lightbox, and complex states.
============================================================ */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Sticky nav ---------- */
#site-header { background: transparent; }
#site-header.scrolled {
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- Mobile menu overlay ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(24, 24, 27, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero ---------- */
.hero-section {
  background-image: url('../images/12.jpg');
  background-size: cover;
  background-position: center;
  background-color: #18181B;
}
.hero-overlay {
  background: linear-gradient(
    170deg,
    rgba(24, 24, 27, 0.75) 0%,
    rgba(24, 24, 27, 0.40) 40%,
    rgba(24, 24, 27, 0.82) 100%
  );
}

/* ---------- About image ---------- */
.about-image-wrap {
  background: linear-gradient(135deg, #a8a29e 0%, #78716c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-image-wrap.no-image img { display: none; }
.about-image-wrap.no-image::after {
  content: 'Photo coming soon';
  font-size: 0.85rem;
  color: #fff;
  font-style: italic;
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #a8a29e, #78716c);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Gallery "view all" overlay */
.gallery-more { position: relative; }
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-more-overlay:hover { background: rgba(0, 0, 0, 0.4); }
.gallery-more-overlay .sub { font-size: 0.8rem; font-weight: 400; opacity: 0.8; }

/* Lightbox counter */
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* Placeholder (image missing) */
.gallery-item.no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: default;
}
.gallery-item.no-image img { display: none; }
.gallery-item.no-image::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f030';
  font-size: 1.5rem;
  color: #C8963E;
  opacity: 0.5;
}
.gallery-item.no-image::after {
  content: 'Photo coming soon';
  font-size: 0.7rem;
  color: #d6d3d1;
  font-style: italic;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-image-wrap {
  max-width: 100vw;
  max-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
}
.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 94vh;
  object-fit: contain;
  border-radius: 4px;
}
@media (max-width: 767px) {
  .lightbox-image-wrap {
    max-width: 100vw;
    max-height: 96vh;
    padding: 0;
  }
  .lightbox-image-wrap img {
    max-height: 96vh;
    border-radius: 0;
  }
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 2.25rem; height: 2.25rem; }
  .lightbox-prev  { left: 0.25rem; width: 2.25rem; height: 2.25rem; }
  .lightbox-next  { right: 0.25rem; width: 2.25rem; height: 2.25rem; }
  .lightbox-counter { bottom: 0.75rem; }
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev  { top: 50%; transform: translateY(-50%); left: 1.25rem; }
.lightbox-next  { top: 50%; transform: translateY(-50%); right: 1.25rem; }

/* ---------- Reviews ---------- */
.reviews-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.reviews-scroll .review-card {
  width: 100%;
}
@media (min-width: 768px) {
  .reviews-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }
  .reviews-scroll .review-card { min-width: unset; }
}

/* ---------- CTA section ---------- */
.cta-section {
  background-image: url('../images/14.jpg');
  background-size: cover;
  background-position: center;
  background-color: #18181B;
}
.cta-overlay {
  background: rgba(24, 24, 27, 0.88);
}

/* ---------- Map placeholder ---------- */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  text-align: center;
  padding: 2rem;
}
.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  border: 0;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ---------- Collapsible amenities ---------- */
.amenity-extra-wrap { display: contents; }
.amenity-extra-wrap.collapsed { display: none; }

.amenity-toggle {
  background: none;
  border: 1px solid #C8963E;
  color: #C8963E;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.amenity-toggle:hover {
  background: #C8963E;
  color: #fff;
}

/* ---------- Reviews 3-col on large screens ---------- */
@media (min-width: 1024px) {
  .reviews-scroll {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #fafaf9; }
::-webkit-scrollbar-thumb { background: #C8963E; border-radius: 3px; }
