/* ===== Custom Styles for Budget Host Inn ===== */

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

/* Floating card animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.floating-card-1 { animation: float-1 6s ease-in-out infinite; }
.floating-card-2 { animation: float-2 5s ease-in-out infinite; }
.floating-card-3 { animation: float-3 7s ease-in-out infinite; }
.floating-card-4 { animation: float-4 4.5s ease-in-out infinite; }

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(244, 241, 234, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(44, 44, 44, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6e6e6e;
}

/* Selection color */
::selection {
    background: #E07A5F;
    color: white;
}

/* Image loading placeholder */
img {
    background-color: #e8e8e8;
}

/* Subtle hover lift for room cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .floating-card-1, .floating-card-2, .floating-card-3, .floating-card-4 {
        display: none;
    }
    body {
        color: #2C2C2C;
        background: white;
    }
}
