/* ==========================================================
   AirportTaxiGo - PREMIUM THEME v3.0
   Sky Blue Light — Clean • Bright • Airy
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@500;600&display=swap');

/* ===================== DESIGN TOKENS ===================== */
:root {
    /* Core Palette — BRIGHT Sky Blue Light Theme */
    --brand-1: #0284c7;
    --brand-2: #7c3aed;
    --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #93c5fd 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(147,197,253,0.20) 100%);

    --bg-main: #dbeafe;
    --bg-surface: #eff6ff;
    --bg-card: #ffffff;
    --bg-card-alt: #e0f2fe;
    --bg-input: #bfdbfe;

    --border-color: #93c5fd;
    --border-color-hover: #60a5fa;
    --border-glow: rgba(14, 165, 233, 0.5);

    --text-primary: #1e3a5f;
    --text-secondary: #1d4ed8;
    --text-muted: #3b82f6;

    --primary: #0284c7;
    --primary-dark: #1d4ed8;
    --primary-light: #bfdbfe;

    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #d1fae5;

    --violet: #7c3aed;
    --violet-light: #ede9fe;

    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;

    /* Shadows — crisp blue-tinted */
    --shadow-xs: 0 1px 3px rgba(14,165,233,0.10);
    --shadow-sm: 0 2px 10px rgba(14,165,233,0.14);
    --shadow-md: 0 6px 24px rgba(14,165,233,0.18);
    --shadow-lg: 0 15px 45px rgba(14,165,233,0.22);
    --shadow-glow-blue: 0 0 32px rgba(14, 165, 233, 0.45);
    --shadow-glow-violet: 0 0 24px rgba(124, 58, 237, 0.30);

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== DARK THEME ===================== */
[data-theme="dark"] {
    --brand-1: #38bdf8;
    --brand-2: #a78bfa;
    --brand-gradient: linear-gradient(135deg, #0369a1 0%, #0284c7 52%, #2563eb 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(56,189,248,0.15) 0%, rgba(59,130,246,0.12) 100%);

    --bg-main: #06101d;
    --bg-surface: #0b1b2d;
    --bg-card: #10243a;
    --bg-card-alt: #132c46;
    --bg-input: #091a2c;

    --border-color: #294a64;
    --border-color-hover: #38bdf8;
    --border-glow: rgba(56, 189, 248, 0.42);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --primary: #38bdf8;
    --primary-dark: #7dd3fc;
    --primary-light: rgba(56, 189, 248, 0.14);
    --accent: #34d399;
    --accent-dark: #6ee7b7;
    --accent-light: rgba(16, 185, 129, 0.15);
    --violet: #a78bfa;
    --violet-light: rgba(167, 139, 250, 0.15);
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger-light: rgba(239, 68, 68, 0.15);

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.28);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.30);
    --shadow-md: 0 8px 26px rgba(0,0,0,0.34);
    --shadow-lg: 0 18px 48px rgba(0,0,0,0.40);
    --shadow-glow-blue: 0 0 30px rgba(56, 189, 248, 0.22);
}


/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    background-image: radial-gradient(ellipse at 20% 0%, rgba(14,165,233,0.35) 0%, transparent 55%),
                      radial-gradient(ellipse at 80% 100%, rgba(56,189,248,0.25) 0%, transparent 55%),
                      radial-gradient(ellipse at 50% 50%, rgba(147,197,253,0.15) 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

[data-theme="dark"] body, [data-theme="dark"] {
    background-image: radial-gradient(ellipse at 15% 0%, rgba(14,165,233,0.16) 0%, transparent 48%),
                      radial-gradient(ellipse at 85% 100%, rgba(37,99,235,0.13) 0%, transparent 52%);
}



h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-primary); line-height: 1.2; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ===================== TICKER BANNER ===================== */
.ticker-banner {
    background: var(--brand-gradient);
    color: white;
    padding: 0.55rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    position: relative;
}

.ticker-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ticker-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.ticker-brand-tag {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.18);
    padding: 0.22rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}

.currency-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: auto;
    min-width: 0;
    flex: 1;
    position: relative;
}

.currency-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    animation: currencyMarquee 38s linear infinite;
}

.currency-marquee-track:hover { animation-play-state: paused; }

@keyframes currencyMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.currency-rate-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.77rem;
    backdrop-filter: blur(4px);
}

.currency-rate-chip strong { color: #86efac; }

/* ===================== HEADER ===================== */
.header {
    background: rgba(219,234,254,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 20px rgba(14,165,233,0.18);
}

[data-theme="dark"] .header {
    background: rgba(6,16,29,0.90);
    border-bottom-color: var(--border-color);
}


.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.42rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-badge {
    width: 40px;
    height: 40px;
    background: var(--brand-gradient);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow-blue);
    transition: var(--transition-spring);
}

.logo:hover .logo-badge { transform: rotate(-8deg) scale(1.08); }

.logo span mark { background: none; color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 0.3rem; list-style: none; }

.nav-link {
    font-weight: 600;
    font-size: 0.87rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle-btn {
    min-width: 92px;
    min-height: 42px;
    padding: 0.5rem 0.75rem;
    gap: 0.45rem;
}

.theme-toggle-btn i {
    width: 1rem;
    text-align: center;
}

.theme-toggle-btn span {
    font-size: 0.82rem;
    font-weight: 800;
}

/* ===================== HAMBURGER ===================== */
.hamburger-btn {
    display: none;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    transition: var(--transition);
}

.hamburger-btn:hover { border-color: var(--primary); background: var(--primary-light); }

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 150;
    backdrop-filter: blur(6px);
}

.mobile-nav-overlay.active { display: block; }

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 300;
    padding: 1.5rem;
    box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.32s;
    will-change: transform;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.mobile-nav-panel.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-close-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-close-btn:hover { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }

.mobile-nav-menu { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }

.mobile-nav-menu .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.93rem;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
}

.mobile-nav-menu .nav-link:hover,
.mobile-nav-menu .nav-link.active {
    background: var(--brand-gradient-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===================== HERO ===================== */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0 1.1rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(56,189,248,0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

.hero-copy {
    text-align: left;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-gradient-soft);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    animation: fadeInDown 0.6s ease forwards;
}

.hero-badge-action {
    font-family: var(--font-main);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-badge-action:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.hero-badge-action:focus-visible {
    outline: 3px solid var(--border-glow);
    outline-offset: 3px;
}

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

.hero h1 {
    font-size: clamp(2rem, 3.4vw, 2.65rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: fadeInUp 0.65s ease forwards;
}

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

.hero p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0;
    animation: fadeInUp 0.75s ease forwards;
}

/* ===================== STATS BAR ===================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
    border-color: var(--primary);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    font-family: var(--font-heading);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-top: 0.3rem; }

/* ===================== TABS ===================== */
.main-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 0.45rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-lg);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-main);
    white-space: nowrap;
}

.tab-btn:hover { color: var(--primary); background: var(--primary-light); }

.tab-btn.active {
    background: var(--brand-gradient);
    color: white;
    box-shadow: var(--shadow-glow-blue);
}

/* ===================== AD SLOT ===================== */
.ad-slot-container { margin: 1.25rem auto; text-align: center; }

.ad-banner-box {
    background: var(--brand-gradient-soft);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    min-height: 80px;
}

.ad-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* ===================== CALCULATOR WORKSPACE ===================== */
.calculator-workspace {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.calc-card:hover { box-shadow: var(--shadow-lg); }

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--border-color);
}

/* ===================== FORM ELEMENTS ===================== */
.form-group { margin-bottom: 1.25rem; position: relative; }

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.78rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.93rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
}

.form-control::placeholder { color: var(--text-muted); }

.field-help {
    margin-top: 0.45rem;
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.inline-card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Range slider custom */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--violet) 100%);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(14,165,233,0.4);
    cursor: pointer;
    transition: var(--transition-spring);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(14,165,233,0.5);
}

/* ===================== COUNTRY FILTER BUTTONS ===================== */
.country-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.country-filter-btn {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    white-space: nowrap;
}

.country-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.country-filter-btn.active {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow-blue);
}

.airport-location-detect {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.65rem 0 0.8rem;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card-alt);
}

.airport-location-btn {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
}

.airport-location-status {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.airport-location-status.is-success { color: var(--accent-dark); }
.airport-location-status.is-error { color: var(--danger); }

.airport-location-privacy {
    margin-top: 0.12rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ===================== RECENT SEARCHES ===================== */
.recent-searches-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
}

.recent-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.recent-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.recent-chip {
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-card-alt);
    border: 1.5px solid var(--border-color);
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.recent-chip:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.smart-route-card,
.mini-tool-card,
.comparison-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.smart-route-card {
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.smart-route-grid,
.planner-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.location-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: stretch;
}

.location-search-btn {
    min-height: 45px;
    white-space: nowrap;
    padding-inline: 1rem;
}

.location-search-btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.location-search-status {
    min-height: 1.35rem;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.location-search-status.is-error {
    color: var(--danger);
}

.location-search-status.is-success {
    color: var(--accent-dark);
}

.location-search-results {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.15rem;
    padding: 0.45rem;
    max-height: 260px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.location-search-results[hidden],
.selected-location-card[hidden] {
    display: none;
}

.location-result-item {
    width: 100%;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: flex-start;
    font-family: var(--font-main);
    transition: var(--transition);
}

.location-result-item:hover,
.location-result-item:focus-visible {
    border-color: var(--primary);
    background: var(--primary-light);
    outline: none;
}

.location-result-item i {
    color: var(--primary);
    margin-top: 0.2rem;
}

.location-result-name,
.location-result-address {
    display: block;
}

.location-result-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-primary);
}

.location-result-address {
    margin-top: 0.12rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.location-result-postcode {
    display: block;
    margin-top: 0.18rem;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.selected-location-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.55rem;
    padding: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    background: var(--accent-light);
}

.selected-location-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: white;
}

.selected-location-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.selected-location-copy strong,
.selected-location-copy span {
    display: block;
}

.selected-location-copy strong {
    font-size: 0.84rem;
    color: var(--text-primary);
}

.selected-location-copy > span {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.selected-location-copy .selected-location-route {
    margin-top: 0.28rem;
    color: var(--accent-dark);
    font-weight: 800;
}

.selected-location-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent-dark);
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.osm-attribution {
    margin-top: 0.45rem;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.osm-attribution a {
    color: var(--primary);
    text-decoration: underline;
}

.preset-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.preset-chip {
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-main);
}

.preset-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.preset-chip.active {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow-blue);
}

.preset-chip strong {
    font-size: 0.8rem;
    font-weight: 800;
}

.preset-chip span {
    font-size: 0.72rem;
    opacity: 0.9;
}

/* ===================== DROPDOWN GROUP HEADER ===================== */
.dropdown-group-header {
    padding: 0.45rem 1rem 0.3rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-card-alt);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: sticky;
    top: 0;
}

/* Search highlight in dropdown */
.search-highlight {
    background: rgba(14,165,233,0.2);
    color: var(--primary-dark);
    border-radius: 3px;
    font-weight: 900;
}

/* ===================== SEARCHABLE DROPDOWN ===================== */
.searchable-select-wrapper { position: relative; width: 100%; }

.searchable-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-md);
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    margin-top: 0.4rem;
    display: none;
}

.searchable-dropdown.active { display: block; animation: dropIn 0.18s ease; }

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

.dropdown-airport-item {
    padding: 0.78rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-airport-item:last-child { border-bottom: none; }
.dropdown-airport-item:hover { background: var(--brand-gradient-soft); }
.dropdown-item-left { display: flex; align-items: center; gap: 0.65rem; }
.dropdown-item-flag { font-size: 1.25rem; }
.dropdown-item-name { font-weight: 700; font-size: 0.88rem; }
.dropdown-item-sub { font-size: 0.76rem; color: var(--text-muted); }

.dropdown-item-code {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.82rem;
    background: var(--brand-gradient);
    color: white;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-sm);
}

/* ===================== VEHICLE GRID ===================== */
.vehicle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; margin-top: 0.4rem; }

.vehicle-btn {
    border: 1.5px solid var(--border-color);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.vehicle-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand-gradient);
    opacity: 0;
    transition: var(--transition);
}

.vehicle-btn:hover { border-color: var(--primary); transform: translateY(-2px); }
.vehicle-btn:hover::before { opacity: 0.06; }

.vehicle-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-glow-blue);
}

.vehicle-icon { font-size: 1.35rem; margin-bottom: 0.25rem; position: relative; }
.vehicle-name { font-size: 0.73rem; font-weight: 800; position: relative; }

/* ===================== CHECKBOXES ===================== */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    background: var(--bg-card-alt);
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.2rem 0;
}

.checkbox-label:hover { color: var(--primary); }

input[type="checkbox"] {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ===================== RECEIPT CARD ===================== */
.receipt-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.receipt-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.1rem;
}

.airport-badge {
    background: var(--brand-gradient);
    color: white;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow-blue);
}

.total-fare-box {
    text-align: center;
    background: var(--brand-gradient-soft);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1rem;
    margin-bottom: 1.25rem;
}

.total-fare-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.total-fare-amount {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.fare-breakdown-list { list-style: none; font-size: 0.86rem; margin-bottom: 1.25rem; }

.fare-breakdown-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-secondary);
}

.fare-breakdown-list li strong { color: var(--text-primary); font-weight: 700; }

.mini-tool-card {
    margin-top: 1.1rem;
    padding: 1rem;
}

.planner-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.65;
}

.planner-highlight-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.planner-highlight {
    background: var(--brand-gradient-soft);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 0.85rem;
}

.planner-highlight-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}

.planner-highlight-time {
    display: block;
    font-size: 1.18rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.planner-meta {
    display: grid;
    gap: 0.5rem;
}

.planner-meta-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed var(--border-color);
}

.planner-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.planner-meta-label {
    font-weight: 700;
    color: var(--text-primary);
}

.planner-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.75rem;
}

/* ===================== BUTTONS ===================== */
.btn {
    padding: 0.75rem 1.3rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-spring);
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: var(--shadow-glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14,165,233,0.4);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,0.4); }
.btn-full { width: 100%; }

.comparison-card {
    margin: 0 0 1.5rem 0;
    padding: 1.25rem;
}

.comparison-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comparison-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.comparison-subtitle {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.comparison-control {
    min-width: 170px;
}

.comparison-select {
    min-width: 150px;
    background: var(--bg-card);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.compare-option-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.compare-option-card.best {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.compare-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--radius-full);
    padding: 0.25rem 0.65rem;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.compare-badge.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.compare-badge.success {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.compare-badge.warning {
    background: var(--warning-light);
    color: #b45309;
}

.compare-option-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.compare-option-copy {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    min-height: 2.6rem;
}

.compare-metric {
    margin-bottom: 0.7rem;
}

.compare-metric-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.compare-metric-value {
    display: block;
    font-size: 1.32rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-primary);
}

.compare-detail-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.compare-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.compare-detail-item i {
    color: var(--primary);
    margin-top: 0.12rem;
}

/* ===================== AIRPORTS GRID ===================== */
.airports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.airport-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.airport-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.airport-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    border-color: var(--primary);
}

.airport-card:hover::after { transform: scaleX(1); }
.airport-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

/* ===================== PAGE SECTIONS ===================== */
.page-section { display: none; padding: 2.5rem 0; }
.page-section.active { display: block; }

.page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    max-width: 920px;
    margin: 0 auto 2.5rem auto;
    box-shadow: var(--shadow-sm);
}

.page-card h2 { font-size: 1.75rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.page-card p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }
.page-card ul, .page-card ol { margin-left: 1.5rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 1rem; }
.page-card li { margin-bottom: 0.4rem; }

/* ===================== PACKING CHECKLIST ===================== */
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.checklist-category {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.checklist-category:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }

.checklist-category-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.45rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.checklist-item:hover { background: var(--bg-card-alt); }

.checklist-item.checked { color: var(--accent); }
.checklist-item.checked .checklist-box { background: var(--accent); border-color: var(--accent); color: white; }
.checklist-item.checked .checklist-text { text-decoration: line-through; opacity: 0.55; }

.checklist-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color-hover);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: var(--transition-spring);
    flex-shrink: 0;
}

.checklist-progress-bar { height: 5px; background: var(--border-color); border-radius: var(--radius-full); margin-top: 1.1rem; overflow: hidden; }
.checklist-progress-fill { height: 100%; background: var(--brand-gradient); border-radius: var(--radius-full); transition: width 0.35s ease; }

.checklist-summary-bar {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.checklist-counter {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-heading);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checklist-summary-actions {
    display: flex;
    gap: 0.75rem;
}

.parking-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

/* ===================== FAQ ACCORDION ===================== */
.faq-accordion { display: flex; flex-direction: column; gap: 0.65rem; }

.faq-item {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.faq-question {
    width: 100%;
    background: var(--bg-card);
    border: none;
    padding: 1.1rem 1.5rem;
    text-align: left;
    font-family: var(--font-main);
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover { background: var(--brand-gradient-soft); color: var(--primary); }
.faq-question.open { background: var(--brand-gradient-soft); color: var(--primary); }

.faq-chevron { transition: transform 0.3s ease; flex-shrink: 0; color: var(--text-muted); }
.faq-question.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-card-alt);
}

.faq-answer.open { max-height: 500px; padding: 1rem 1.5rem 1.25rem 1.5rem; }
.faq-answer p { color: var(--text-secondary); font-size: 0.91rem; line-height: 1.8; margin: 0; }

/* ===================== GUIDES GRID ===================== */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.guide-article-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-spring);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guide-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
    border-color: var(--primary);
}

.guide-article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand-gradient);
    color: white;
    padding: 0.22rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}

.guide-article-card h3 { font-size: 1.05rem; line-height: 1.38; }
.guide-article-card p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.75; flex: 1; }

/* ===================== LEGAL PAGES ===================== */
.legal-section { margin-bottom: 1.75rem; }
.legal-section h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--primary); }
.legal-section p, .legal-section li { font-size: 0.91rem; color: var(--text-secondary); line-height: 1.8; }
.legal-section ul { margin-left: 1.5rem; margin-top: 0.5rem; }

.disclaimer-box {
    background: var(--warning-light);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    color: var(--warning);
    font-weight: 600;
}

/* ===================== KM / MILES TOGGLE ===================== */
.unit-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 2px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.unit-toggle:hover { border-color: var(--primary); }

.unit-option {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.unit-option.active {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 2px 6px rgba(14,165,233,0.35);
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 500px;
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: cookieIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cookieIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-content { font-size: 0.84rem; color: var(--text-secondary); }
.cookie-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ===================== FOOTER ===================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1.5rem 0;
    margin-top: auto;
    font-size: 0.88rem;
    color: var(--text-secondary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }

.footer-col h4 { color: var(--text-primary); margin-bottom: 0.85rem; font-size: 0.95rem; }

.footer-social-block {
    margin-top: 1.15rem;
}

.footer-social-block h4 {
    margin-bottom: 0.55rem;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.footer-social-link {
    --social-color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
    font-size: 0.72rem;
    font-weight: 800;
    transition: var(--transition);
}

.footer-social-link i {
    color: var(--social-color);
    font-size: 0.95rem;
}

.footer-social-link:hover {
    padding-left: 0.7rem;
    transform: translateY(-2px);
    border-color: var(--social-color);
    background: var(--social-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.footer-social-link:hover i { color: white; }
.footer-social-link:focus-visible { outline: 3px solid var(--border-glow); outline-offset: 2px; }
.social-facebook { --social-color: #1877f2; }
.social-instagram { --social-color: #e1306c; }
.social-x { --social-color: #64748b; }
.social-youtube { --social-color: #ff0000; }
.social-tiktok { --social-color: #0ea5e9; }
.social-linkedin { --social-color: #0a66c2; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.86rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .calculator-workspace { grid-template-columns: 1fr; }
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hamburger-btn { display: flex; }
    .nav-menu { display: none; }
    .hero h1 { font-size: 2.1rem; }
    .hero {
        display: block;
        padding: 1.15rem 0 0.75rem;
    }
    .hero-copy { text-align: center; }
    .hero p { margin: 0 auto; }
    .hero-visual { display: none; }
    .guides-grid { grid-template-columns: 1fr; }
    .main-tabs { border-radius: var(--radius-lg); width: 100%; }
    .comparison-header,
    .smart-route-grid,
    .planner-form-grid,
    .planner-highlight-row {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hamburger-btn { display: flex; }
    .nav-menu { display: none; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero-badge { padding: 0.35rem 0.7rem; font-size: 0.72rem; }
    .main-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }
    .main-tabs .tab-btn {
        justify-content: center;
        min-height: 44px;
        padding: 0.55rem 0.45rem;
        white-space: normal;
        text-align: center;
    }
    .main-tabs .tab-btn:last-child { grid-column: 1 / -1; }
    .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
    .checkbox-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-social-link { width: 100%; }
    .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .checklist-grid { grid-template-columns: 1fr; }
    .checklist-summary-bar { padding: 1rem; }
    .checklist-summary-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .checklist-summary-actions .btn { width: 100%; }
    .parking-options-grid { grid-template-columns: 1fr; gap: 0; }
    .total-fare-amount { font-size: 2.2rem; }
    .calc-card, .receipt-card { padding: 1.35rem; }
    .comparison-card,
    .smart-route-card,
    .mini-tool-card { padding: 1rem; }
    .planner-meta-item {
        flex-direction: column;
        gap: 0.15rem;
    }
    .location-search-control {
        grid-template-columns: 1fr;
    }
    .location-search-btn {
        width: 100%;
    }
    .airport-location-detect {
        align-items: stretch;
        flex-direction: column;
    }
    .airport-location-btn {
        width: 100%;
    }
    .theme-toggle-btn {
        min-width: 42px;
        width: 42px;
        padding: 0;
    }
    .theme-toggle-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .currency-marquee-track,
    .ticker-banner::before {
        animation: none;
    }
    .mobile-nav-panel {
        transition: none;
    }
}
