:root {
    --bg: #F8FAFC; --card: #FFFFFF; --text: #0F172A; --text-muted: #64748B;
    --accent: #3B82F6; --accent-hover: #2563EB; --success: #10B981;
    --shadow: 0 4px 12px rgba(15,23,42,0.06); --shadow-hover: 0 8px 24px rgba(15,23,42,0.12);
    --radius: 12px; --font-body: 'Inter', sans-serif; --font-head: 'Montserrat', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.5; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.hero {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.55)), 
                url('/static/img/hero-airplane.jpg');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 16px;
    text-shadow: 0 3px 25px rgba(0,0,0,0.6);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 32px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .widget-box {
    animation: fadeInUp 1s ease 0.4s both;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
        background-attachment: scroll;
        background-position: center center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
.hero h1 { font-family: var(--font-head); font-size: 2.6rem; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }
.widget-box { background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 16px; min-height: 100px; display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.widget-placeholder { font-size: 0.9rem; opacity: 0.7; }

.tabs-section { padding: 24px 0 12px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tab { padding: 10px 16px; background: var(--card); border: 2px solid transparent; border-radius: 10px; font-weight: 500; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.tab.active { border-color: var(--accent); color: var(--accent); background: #EFF6FF; }
.tab:hover { border-color: var(--accent-hover); }

.grid-section { padding: 16px 0 32px; }
.grid-section h2 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 20px; }
.routes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.route-card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: 0.2s; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.badge { display: inline-block; padding: 4px 8px; font-size: 12px; font-weight: 600; border-radius: 6px; background: #EFF6FF; color: var(--accent); width: fit-content; }
.route-title { font-weight: 600; font-size: 1.1rem; }
.price { font-size: 1.5rem; font-weight: 700; color: var(--success); }
.meta { font-size: 0.9rem; color: var(--text-muted); }
.skeleton { height: 120px; background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: pulse 1.5s infinite; border-radius: var(--radius); }
@keyframes pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.max-findings { background: #F1F5F9; padding: 32px 0; text-align: center; border-radius: var(--radius); margin: 32px 0; }
.max-findings h3 { font-family: var(--font-head); margin-bottom: 12px; }
.max-findings p { max-width: 600px; margin: 0 auto 16px; color: var(--text-muted); }
.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; font-weight: 600; transition: 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }

.footer { text-align: center; padding: 32px 0; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid #E2E8F0; margin-top: 32px; }
.route-hero { text-align: center; padding: 40px 0 20px; }

@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .routes-grid { grid-template-columns: 1fr; }
    .tabs { padding: 0 4px; }
}
