:root {
    --bg-dark: #020617;
    --primary: #0060e6;
    --primary-hover: #004db3;
    --accent: #ff7d8a;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --radius: 12px;
}

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

body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(0, 96, 230, 0.1), transparent),
        linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.9)),
        url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

.glass-nav {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 96, 230, 0.3));
    mix-blend-mode: screen;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Search Section */
.hero-search-container {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    padding: 2.5rem;
    border-radius: 24px;
    margin: 2rem 0;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 1fr 1fr 1fr 100px;
    gap: 1rem;
    align-items: end;
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-box label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.input-box input, .passenger-trigger-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-box input:focus, .passenger-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 96, 230, 0.2);
}

.swap-btn-container {
    display: flex;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.swap-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

.main-search-btn {
    height: 52px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Results Layout */
.results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
}

.sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Flight Cards */
.results-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.location-chips {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chip {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}

.separator {
    color: var(--primary);
    font-size: 1.2rem;
}

.flight-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.flight-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.75);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.flight-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 2rem;
    border-right: 1px solid var(--glass-border);
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.airline-logo {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.airline-name {
    font-weight: 700;
    font-size: 1.2rem;
}

.flight-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-block h3 {
    font-size: 2rem;
    font-weight: 800;
}

.time-block p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.duration-visual {
    flex: 1;
    margin: 0 3rem;
    text-align: center;
    position: relative;
}

.duration-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-bottom: 0.8rem;
    border-radius: 4px;
    position: relative;
}

.stopover-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.duration-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.flight-price-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.price-tag {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 96, 230, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 96, 230, 0.4);
}

/* Passenger Dropdown Customization */
.passenger-dropdown {
    width: 340px;
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
}

.hidden { display: none; }

/* Mobile */
@media (max-width: 1100px) {
    .search-row {
        grid-template-columns: 1fr 1fr;
    }
    .swap-btn-container { display: none; }
    .results-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .flight-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .flight-main {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 2rem;
    }
}
