/* FoxFares Travel - Hero & Global Design System (Dark Slate Theme) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0284c7;
    --primary-cyan: #06b6d4;
    --accent-orange: #f97316;
    --accent-gold: #fbbf24;
    --dark-bg: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.55);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-card: rgba(255, 255, 255, 0.88);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
}

/* Hero Section Base */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: linear-gradient(
        180deg, 
        rgba(15, 23, 42, 0.45) 0%, 
        rgba(15, 23, 42, 0.30) 40%, 
        rgba(15, 23, 42, 0.85) 100%
    ), url('../images/hero-beach.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transition: all 0.3s ease-in-out;
}

/* Mobile Hero Background & Layout Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        background-position: center center;
        background-image: linear-gradient(
            180deg, 
            rgba(15, 23, 42, 0.65) 0%, 
            rgba(15, 23, 42, 0.40) 45%, 
            rgba(15, 23, 42, 0.90) 100%
        ), url('../images/hero-beach.jpg');
    }

    .hero-title {
        font-size: 2.125rem !important;
        line-height: 1.25 !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    .search-card {
        padding: 1.25rem 1rem !important;
        border-radius: 1.25rem !important;
        margin-top: 1rem !important;
    }

    .search-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .mobile-hide {
        display: none !important;
    }
}

/* Glassmorphism Components */
.glass-nav {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.search-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Interactive Tabs */
.tab-btn {
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

/* Custom Select & Input Styling */
.input-group-custom {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.85rem;
    transition: all 0.2s ease;
}

.input-group-custom:focus-within {
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.input-group-custom input,
.input-group-custom select {
    background: transparent;
    color: #ffffff;
    border: none;
    outline: none;
    width: 100%;
}

.input-group-custom select option {
    background: #0f172a;
    color: #ffffff;
}

/* Gradient Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.5);
    transition: all 0.25s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.7);
    background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
}

.btn-accent-gradient {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.5);
    transition: all 0.25s ease;
}

.btn-accent-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(249, 115, 22, 0.7);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

/* Mobile Navigation Menu Drawer */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Airport Autocomplete Panel Overlay */
.airport-search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 300px;
    max-height: 340px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 100;
    padding: 0.65rem;
}

.airport-search-panel::-webkit-scrollbar {
    width: 6px;
}
.airport-search-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.airport-item {
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.airport-item:hover, .airport-item.active {
    background: rgba(56, 189, 248, 0.15);
    border-left: 3px solid #38bdf8;
}

.airport-item .code-badge {
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Counter Control Buttons */
.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.counter-btn:hover:not(:disabled) {
    background: #0284c7;
    border-color: #38bdf8;
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.disabled-field {
    opacity: 0.4;
    pointer-events: none;
}