/* ============================================================
   AIRLINES DIRECTORY STYLESHEET
   Location: /airlines/airline-style.css
   ============================================================ */

.airports-page { padding: 32px 0 60px; }
.airports-page h1 { font-size: 28px; margin: 0 0 8px; color: #0f172a; }
.airports-page .page-subtitle { color: #64748b; font-size: 15px; margin: 0 0 32px; }

.airports-section { margin-bottom: 44px; }
.airports-section h2 {
    font-size: 20px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0a7c3f;
    color: #0f172a;
}

/* ---------- Airline card grid ---------- */
.airline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.airline-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}
.airline-card:hover {
    border-color: #0a7c3f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    text-decoration: none;
}

.airline-card-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 6px;
}
.airline-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.airline-card-body { min-width: 0; flex: 1; }
.airline-card-name {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.airline-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}
.iata-chip {
    display: inline-block;
    background: #eef7f0;
    color: #0a7c3f;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .6px;
}

/* ---------- Country grid (reuses airports) ---------- */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.country-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all .2s;
}
.country-link:hover {
    border-color: #0a7c3f;
    color: #0a7c3f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    text-decoration: none;
}
.country-link .arrow { color: #64748b; font-size: 13px; }
.country-link:hover .arrow { color: #0a7c3f; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    margin: 0 0 22px;
}
.breadcrumb a { color: #64748b; text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: #0a7c3f; }
.breadcrumb span { color: #64748b; }

/* ---------- Airline detail ---------- */
.airline-detail { max-width: 900px; }

.airline-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.airline-header-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.airline-header-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.airline-header-main { flex: 1; min-width: 200px; }
.airline-header-main h1 { font-size: 28px; margin: 0 0 10px; line-height: 1.2; }

.airline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 15px;
    color: #64748b;
}
.airline-meta .badge {
    background: #0a7c3f;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .8px;
}
.airline-country { color: #334155; font-weight: 500; }
.airline-established { color: #64748b; font-size: 14px; }

/* ---------- Sections (shared with airports) ---------- */
.airport-section { margin-bottom: 38px; }
.airport-section h2 {
    font-size: 20px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0a7c3f;
    color: #0f172a;
}
.airport-section p {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    margin: 0 0 14px;
}

/* ---------- Facts grid ---------- */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.fact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.fact-card:hover { border-color: #0a7c3f; box-shadow: 0 2px 12px rgba(15, 23, 42, .06); }
.fact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 6px;
}
.fact-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
    line-height: 1.4;
}

/* ---------- Info grid ---------- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.info-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
}
.info-block h3 {
    font-size: 15px;
    margin: 0 0 12px;
    color: #0a7c3f;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}
.info-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}
.info-block a { color: #0a7c3f; }

/* ---------- CTA card ---------- */
.airport-cta { margin: 40px 0; }
.cta-card {
    background: linear-gradient(135deg, #0a7c3f 0%, #086431 100%);
    border-radius: 14px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}
.cta-card h3 { color: #fff; margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.cta-card p { color: rgba(255,255,255,.9); margin: 0 0 22px; font-size: 14px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.primary-link {
    background: #fff;
    color: #0a7c3f;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: transform .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.primary-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: #086431;
}
.cta-card .btn-wa {
    background: #25d366;
    color: #fff;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, transform .15s;
}
.cta-card .btn-wa:hover { background: #1eb457; text-decoration: none; transform: translateY(-2px); }

/* ---------- Empty state ---------- */
.empty {
    background: #fff;
    padding: 40px 24px;
    border-radius: 14px;
    text-align: center;
    color: #64748b;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.empty h1 { font-size: 22px; margin: 0 0 8px; color: #0f172a; }
.empty p { margin: 0 0 16px; }
.empty .btn {
    display: inline-block;
    background: #0a7c3f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.empty .btn:hover { background: #086431; text-decoration: none; }





/* ============================================================
   POPULAR ROUTES
   ============================================================ */
.section-note {
    font-size: 13px;
    color: #64748b;
    margin: -8px 0 16px;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.route-card {
    display: block;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}
.route-card:hover {
    border-color: #0a7c3f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    text-decoration: none;
}

.route-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.route-code {
    display: inline-block;
    background: #eef7f0;
    color: #0a7c3f;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 5px;
    letter-spacing: .8px;
}
.route-arrow {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}
.route-card-cities {
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.35;
}
.route-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #0a7c3f;
    margin-bottom: 4px;
}
.route-card-meta {
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 640px) {
    .routes-grid {
        grid-template-columns: 1fr;
    }
}



/* ---------- Responsive ---------- */
@media (min-width: 720px) {
    .info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .airports-page h1 { font-size: 22px; }
    .airline-header { gap: 14px; }
    .airline-header-logo { width: 72px; height: 72px; padding: 8px; }
    .airline-header-main h1 { font-size: 22px; }
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .airline-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .facts-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 24px 18px; }
    .cta-card h3 { font-size: 18px; }
    .cta-actions { flex-direction: column; }
    .cta-actions a { width: 100%; justify-content: center; }
    .country-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}