/* ===== Custom Styles for Travel Inn ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #011a12;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #022c22;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #faf8f5;
}

/* ===== Scroll Reveal Animations ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

/* ===== Navbar Styles ===== */
.navbar-scrolled {
    background: rgba(1, 26, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Gold shimmer effect on buttons ===== */
button::after,
a::after {
    content: '';
}

/* ===== Card hover glow ===== */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(212, 160, 23, 0.15) !important;
}

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

.float-1 {
    animation: float 4s ease-in-out infinite;
}

.float-2 {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* ===== Gold line decoration ===== */
.gold-line {
    position: relative;
}
.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4a017, transparent);
}

/* ===== Image overlay gradient ===== */
.img-overlay {
    position: relative;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 26, 18, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

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

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .float-1, .float-2 {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ===== Mobile adjustments ===== */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}
