/* ================================
   Grand Azure — Custom Styles
   ================================ */

/* --- Smooth scroll offset --- */
html {
  scroll-padding-top: 80px;
}

/* --- Navbar glassmorphism --- */
#navbar.scrolled {
  background: rgba(30, 58, 95, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.15);
}

/* --- Active nav link --- */
.nav-link.active {
  color: #D4A853 !important;
}

/* --- Mobile menu --- */
#mobile-menu.open {
  transform: translateX(0);
}

/* --- Hamburger to X --- */
#menu-toggle.open .menu-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.open .menu-bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle.open .menu-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Back to top --- */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Room filter animation --- */
.room-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.room-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  pointer-events: none;
}

/* --- Form validation --- */
.input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.1);
}

/* --- Gallery lightbox --- */
#lightbox.active {
  display: flex;
}

/* --- Swiper testimonial --- */
.testimonial-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #BCCCDC;
  opacity: 1;
  transition: all 0.3s ease;
}
.testimonial-swiper .swiper-pagination-bullet-active {
  background: #D4A853;
  width: 28px;
  border-radius: 5px;
}

/* --- Marquee (unused in this template, kept for reference) --- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Mobile: prevent AOS horizontal overflow --- */
@media (max-width: 1023px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* --- Focus visible ring --- */
:focus-visible {
  outline: 2px solid #D4A853;
  outline-offset: 2px;
}

/* --- Date input color fix for dark backgrounds --- */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}