/* Custom styles for Sonny's Motel */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1209;
}
::-webkit-scrollbar-thumb {
    background: #1f3e21;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #285228;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #faf9f6;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 18, 9, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(250, 249, 246, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Room card hover effect */
.room-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}
.float-medium {
    animation: float 4.5s ease-in-out infinite;
}
.float-fast {
    animation: float 3.5s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4af5a;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

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

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}
