/* Hyde Mansion Bed & Breakfast - Custom Styles */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Custom selection color */
::selection {
    background-color: rgba(245, 166, 35, 0.3);
    color: #ffffff;
}

/* Room card hover effects */
.room-card {
    position: relative;
    overflow: hidden;
}

.room-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.room-card:hover::after {
    border-color: rgba(245, 166, 35, 0.3);
}

/* Experience card hover */
.experience-card {
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.05), transparent);
    transition: left 0.5s ease;
}

.experience-card:hover::before {
    left: 100%;
}

/* Navbar scroll behavior */
#navbar.scrolled {
    background: rgba(7, 13, 33, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
    background: #ffffff;
}

#navbar.scrolled .menu-line:last-child {
    background: #f5a623;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0f1a3d inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 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;
    }
    
    .room-card:hover,
    .experience-card:hover {
        transform: none;
    }
    
    .room-card img,
    .aspect-square img {
        transition: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobileMenu,
    .geo-circle,
    .geo-square {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
