/* === Custom Styles for The Dew Drop Inn RI === */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #2e1022;
}
::-webkit-scrollbar-thumb {
  background: #7c3158;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #963c6c;
}

/* Selection color */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #faf0f6;
}

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

/* Room card reveal (progressive enhancement) */
.room-card,
.experience-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .room-card,
  .experience-card {
    opacity: 0;
    transform: translateY(24px);
  }
  .room-card.revealed,
  .experience-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar transition */
.nav-scrolled {
  background: rgba(46, 16, 34, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(251, 191, 36, 0.1);
}

/* Mobile menu animations */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Hamburger animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile link animation */
.mobile-link {
  opacity: 1;
}

/* Map container for dark theme */
iframe[src*="google.com/maps"] {
  border-radius: 0 0 1rem 1rem;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
