/* Custom styles for Grand Highlands Bear Wallow */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdfbf7;
}

::-webkit-scrollbar-thumb {
    background: #d4a8b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b92b42;
}

/* Selection color */
::selection {
    background: #b92b42;
    color: #fff;
}

/* Subtle animation for interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

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

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

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(185, 43, 66, 0.1);
}

/* Decorative line animations */
.w-12.h-px {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

section:hover .w-12.h-px {
    width: 3rem;
}

/* Room card hover effects */
.group:hover .aspect-\[4\/5\] img {
    transform: scale(1.05);
}

/* Button hover effects */
button, a {
    position: relative;
    overflow: hidden;
}

button::after, a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

button:hover::after, a:hover::after {
    width: 80%;
}

/* Map filter for cohesive design */
iframe {
    filter: grayscale(30%) contrast(1.1) brightness(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* Text gradient for hero */
.hero-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #fce7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(185, 43, 66, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}
