/* ============================================
   ZEN BLU — Custom Styles
   Edit this file to change the site's look.
   Tailwind utility classes are loaded via CDN.
   ============================================ */

/* ---------- Loader / Splash ---------- */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.loader-screen.fade-out {
  opacity: 0;
}
.loader-text {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateY(10px);
  animation: loaderFadeIn 1s ease forwards;
}
.loader-line {
  width: 96px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  animation: loaderLine 1.2s 0.3s cubic-bezier(0.65,0,0.35,1) forwards;
}
@keyframes loaderFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderLine {
  to { transform: scaleX(1); }
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FAF9F6; }
::-webkit-scrollbar-thumb { background: #bda574; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a89163; }

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.glass-dark {
  background: rgba(26,26,26,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ---------- Navbar ---------- */
.nav-pill {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s ease;
}
.nav-island:hover .nav-pill,
.nav-pill:focus-within,
.nav-pill.force-open {
  max-height: 200px;
  opacity: 1;
  overflow: visible;
  margin-top: 0.75rem;
}

/* Desktop dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  margin-top: 0.75rem;
}
.nav-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #111;
  border-left: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile menu */
.mobile-menu {
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.mobile-dropdown.open {
  max-height: 300px;
  opacity: 1;
}

/* ---------- Hero Slideshow ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.hero-slide.active {
  opacity: 0.6;
  transform: scale(1);
}

/* ---------- Advanced Lightbox (GLB) ---------- */
.glb-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.98);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.glb-container.is-open {
  opacity: 1;
  pointer-events: auto;
}

.glb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 1010;
}
.glb-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
}
.glb-close {
  color: white;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.glb-close:hover { opacity: 1; }

.glb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  min-height: 0;
}
.glb-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  transition: opacity 0.3s ease;
}

.glb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1020;
}
.glb-arrow:hover {
  background: white;
  color: black;
  transform: translateY(-50%) scale(1.1);
}
.glb-arrow-prev { left: 2rem; }
.glb-arrow-next { right: 2rem; }

.glb-thumbstrip {
  height: 120px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  overflow-x: auto;
  z-index: 1010;
}
.glb-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}
.glb-thumb:hover { opacity: 0.8; }
.glb-thumb.is-active {
  opacity: 1;
  border-color: white;
  transform: scale(1.05);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }


/* ---------- FAQ Accordion ---------- */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
  opacity: 1;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.open {
  transform: rotate(180deg);
}

/* ---------- Floating Contact FAB ---------- */
.fab-options {
  opacity: 0;
  transform: translateY(10px) scale(0.5);
  pointer-events: none;
  transition: all 0.3s ease;
}
.fab-options.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-toggle {
  transition: transform 0.3s ease;
}
.fab-toggle.open {
  transform: rotate(90deg);
}
.fab-tooltip {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
@media (min-width: 768px) {
  .fab-btn:hover .fab-tooltip {
    opacity: 1;
  }
}

/* ---------- Scroll Indicator Bounce ---------- */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.scroll-indicator svg {
  animation: scrollBounce 1.5s infinite;
}

/* ---------- Map grayscale hover ---------- */
.map-grayscale {
  filter: grayscale(100%);
  transition: filter 1s ease;
}
.map-grayscale:hover {
  filter: grayscale(0%);
}

/* ---------- Gallery hover zoom ---------- */
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* ---------- Swiper custom styles ---------- */
.swiper-amenities .swiper-slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- Floating Room Layout ---------- */
.room-floating-item {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-floating-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  z-index: 1;
}

.room-floating-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.room-floating-item:hover .room-floating-image {
  transform: scale(1.08);
}

.room-floating-content {
  position: relative;
  margin-top: -3rem;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 2;
  transition: all 0.4s ease;
}

.room-floating-item:hover .room-floating-content {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
  background: rgba(255, 255, 255, 0.95);
}

@media (min-width: 1024px) {
  .room-floating-item:nth-child(even) .room-floating-content {
    margin-left: auto;
    margin-right: -2rem;
    width: 90%;
  }
  .room-floating-item:nth-child(odd) .room-floating-content {
    margin-right: auto;
    margin-left: -2rem;
    width: 90%;
  }
}
