﻿/* ── Hero ── */
.airports-hero {
    background: linear-gradient(135deg, #0f3460 0%, #1a4a7a 60%, #0f3460 100%);
    color: #fff; padding: 64px 0 52px; text-align: center;
}
.airports-hero-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #e94560; background: rgba(233,69,96,.15);
    border: 1px solid rgba(233,69,96,.35); border-radius: 20px; padding: 4px 14px;
    margin-bottom: 16px;
}
.airports-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 10px; letter-spacing: -.5px; }
.airports-hero p  { font-size: 1.1rem; opacity: .85; margin-bottom: 8px; }
.airports-hero-dek { font-size: 1rem; opacity: .7; max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }
.airports-search-form {
    display: flex; gap: 10px; max-width: 700px; margin: 0 auto; flex-wrap: wrap; justify-content: center;
}
.airports-search-form input, .airports-search-form select {
    padding: 13px 18px; border-radius: 10px; border: none;
    font-size: 15px; outline: none; flex: 1; min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.airports-search-form button {
    padding: 13px 32px; background: #e94560; color: #fff; border: none;
    border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer;
    white-space: nowrap; box-shadow: 0 2px 8px rgba(233,69,96,.4);
    transition: background .15s, transform .1s;
}
.airports-search-form button:hover { background: #c73652; transform: translateY(-1px); }

/* ── Stats bar ── */
.airports-stats {
    background: #fff; border-bottom: 1px solid #e5e7eb;
    padding: 0;
}
.airports-stats-inner {
    display: flex; gap: 0; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.airports-stat {
    flex: 1; text-align: center; padding: 14px 16px;
    border-right: 1px solid #f0f0f0;
}
.airports-stat:last-child { border-right: none; }
.airports-stat-val { font-size: 1.25rem; font-weight: 800; color: #0f3460; }
.airports-stat-lab { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── Continent Pills ── */
.continent-pills {
    display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0 4px;
}
.cp-pill {
    padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
    text-decoration: none; border: 1.5px solid #e5e7eb; color: #374151;
    background: #fff; transition: all .15s; white-space: nowrap; cursor: pointer;
}
.cp-pill:hover { border-color: #0f3460; color: #0f3460; }
.cp-pill.active { background: #0f3460; border-color: #0f3460; color: #fff; }

/* ── Filters ── */
.filters-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0 4px; }
.filters-bar select {
    padding: 8px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: 14px; background: #fff; color: #374151; cursor: pointer;
}
.filters-bar select:focus { border-color: #0f3460; outline: none; }
.results-count { color: #6b7280; font-size: 13px; margin-left: auto; }
.major-toggle {
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
    color: #374151; cursor: pointer; padding: 7px 14px; border: 1.5px solid #e5e7eb;
    border-radius: 8px; background: #fff; text-decoration: none; transition: all .15s;
}
.major-toggle.active { background: #e94560; border-color: #e94560; color: #fff; }
.major-toggle:hover:not(.active) { border-color: #0f3460; color: #0f3460; }

/* ── Grid ── */
.airports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    padding: 20px 0 8px;
}

/* ── Card ── */
.airport-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #eef0f3;
    transition: box-shadow .2s, transform .15s;
}
.airport-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.13);
    transform: translateY(-3px);
}

/* Image area */
.airport-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #0f3460;
}
.airport-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.airport-card:hover .airport-card-img img { transform: scale(1.05); }

/* Gradient overlay on image */
.airport-card-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.05) 0%,
        rgba(0,0,0,.0) 40%,
        rgba(0,0,0,.55) 100%
    );
    pointer-events: none;
}

/* IATA overlay */
.airport-iata-overlay {
    position: absolute; bottom: 12px; left: 14px; z-index: 2;
    background: rgba(255,255,255,.92);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 18px; font-weight: 900; color: #0f3460;
    letter-spacing: 1px; line-height: 1;
    backdrop-filter: blur(4px);
}
.airport-iata-overlay.no-iata {
    font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #6b7280;
}

/* Type badge overlay */
.airport-type-overlay {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 20px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
}
.badge-large  { background: rgba(219,234,254,.9); color: #1d4ed8; }
.badge-medium { background: rgba(209,250,229,.9); color: #065f46; }
.badge-small  { background: rgba(254,243,199,.9); color: #92400e; }
.badge-heli   { background: rgba(243,232,255,.9); color: #6b21a8; }
.badge-seaplane{ background: rgba(204,251,241,.9); color: #0f766e; }

/* Fallback no-image background */
.airport-no-img {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 3rem; gap: 6px;
}
.airport-no-img span.code-big {
    font-size: 2.2rem; font-weight: 900; color: rgba(255,255,255,.9); letter-spacing: 3px;
}
.airport-no-img span.country-sm {
    font-size: 12px; color: rgba(255,255,255,.6); font-weight: 600; letter-spacing: 1px;
}

/* Card body */
.airport-card-body { padding: 14px 16px 16px; }
.airport-card-name {
    font-size: 14px; font-weight: 700; color: #1a1a2e;
    line-height: 1.35; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.airport-card-city { font-size: 12px; color: #6b7280; margin-bottom: 10px; }
.airport-card-stats {
    display: flex; gap: 14px; padding-top: 10px;
    border-top: 1px solid #f3f4f6; font-size: 11px; color: #9ca3af;
}
.airport-card-stats span { display: flex; align-items: center; gap: 3px; }

/* ── Utility ── */
.u-hidden { display: none; }

/* ── Card CTA "Flights from here →" ── */
.airport-card-cta {
    margin-left: auto; color: #e94560; font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: .4px;
}

/* ── Country flag chip ── */
.airport-card-flag { font-size: 15px; }

/* ── Pill count ── */
.cp-pill-count { opacity: .65; font-weight: 400; font-size: 11px; }

/* ── Clear filters link ── */
.clear-filters-link {
    font-size: 13px; color: #e94560; text-decoration: none; font-weight: 600;
}
.clear-filters-link:hover { text-decoration: underline; }

/* ── No-results empty state ── */
.airports-empty {
    grid-column: 1 / -1; text-align: center; padding: 80px 24px; color: #9ca3af;
}
.airports-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.airports-empty-title { font-size: 18px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.airports-empty-btn {
    display: inline-block; margin-top: 20px; padding: 11px 28px;
    background: #e94560; color: #fff; border-radius: 10px; text-decoration: none;
    font-weight: 700;
}

@media (max-width: 600px) {
    .airports-hero h1 { font-size: 1.8rem; }
    .airports-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .airport-card-img { height: 140px; }
}
@media (max-width: 400px) {
    .airports-grid { grid-template-columns: 1fr; }
}
