﻿/* ============================================
   AIRPORT DETAIL
   ============================================ */
.ap-hero {
    background: linear-gradient(135deg, #0f3460 0%, #1a4a7a 100%);
    color: #fff; padding: 44px 0 36px;
}
.ap-hero-inner { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.ap-iata-block {
    background: rgba(255,255,255,.15); border-radius: 14px;
    padding: 18px 24px; text-align: center; flex-shrink: 0;
}
.ap-iata-code  { font-size: 3rem; font-weight: 900; letter-spacing: 2px; line-height: 1; }
.ap-icao-code  { font-size: 13px; opacity: .75; margin-top: 4px; }
.ap-hero-info  { flex: 1; min-width: 0; }
.ap-hero-name  { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.ap-hero-city  { font-size: 1rem; opacity: .85; margin-bottom: 12px; }
.ap-type-badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    background: rgba(255,255,255,.2); color: #fff;
}

/* Quick facts row */
.ap-facts { background: #f0f4f8; border-bottom: 1px solid #d1d5db; }
.ap-facts-inner {
    display: flex; gap: 0; overflow-x: auto;
}
.ap-fact {
    flex: 1; min-width: 120px; padding: 18px 20px;
    border-right: 1px solid #d1d5db; text-align: center;
}
.ap-fact:last-child { border-right: none; }
.ap-fact-val  { font-size: 1.3rem; font-weight: 800; color: #0f3460; }
.ap-fact-lab  { font-size: 12px; color: #6b7280; margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }

/* Content layout */
.ap-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 36px 0; }
@media(max-width:900px){ .ap-layout { grid-template-columns: 1fr; } }

/* Section card */
.ap-section {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 24px; margin-bottom: 20px;
}
.ap-section h2 {
    font-size: 1.15rem; font-weight: 700; color: #1a1a2e; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 2px solid #e5e7eb;
}

/* Runways table */
.runway-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.runway-table th { background: #f9fafb; padding: 8px 12px; font-weight: 600; color: #374151; text-align: left; border-bottom: 1px solid #e5e7eb; }
.runway-table td { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.runway-table tr:last-child td { border-bottom: none; }
.rw-lighted      { color: #059669; font-weight: 600; }
.rw-dark         { color: #9ca3af; }
.rw-status-open  { color: #059669; font-weight: 600; }
.rw-status-closed{ color: #ef4444; font-weight: 600; }

/* Flight rows */
.flight-row {
    display: flex; align-items: center; gap: 14px; padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.flight-row:last-child { border-bottom: none; }
.flight-codes { font-weight: 700; font-size: 15px; color: #1a1a2e; }
.flight-airline { font-size: 13px; color: #6b7280; }
.flight-price {
    margin-left: auto; background: #008009; color: #fff;
    padding: 5px 14px; border-radius: 8px; font-weight: 800; font-size: 15px; white-space: nowrap;
}
.flight-book {
    display: inline-block; padding: 6px 16px; background: #e94560; color: #fff;
    border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.flight-book:hover { background: #c73652; }

/* Hotel cards */
.hotel-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:600px){ .hotel-mini-grid { grid-template-columns: 1fr; } }
.hotel-mini {
    border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
    text-decoration: none; color: inherit; display: block; transition: box-shadow .2s;
}
.hotel-mini:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.hotel-mini img { width: 100%; height: 100px; object-fit: cover; }
.hotel-mini-body { padding: 10px 12px; }
.hotel-mini-name { font-size: 13px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; line-height: 1.3; }
.hotel-mini-row  { display: flex; justify-content: space-between; align-items: center; }
.hotel-mini-score{ background: #0f3460; color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.hotel-mini-price{ color: #008009; font-weight: 700; font-size: 13px; }

/* Comment cards */
.comment-card {
    padding: 14px 0; border-bottom: 1px solid #f3f4f6;
}
.comment-card:last-child { border-bottom: none; }
.comment-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.comment-author { font-weight: 700; font-size: 14px; color: #1a1a2e; }
.comment-date   { font-size: 12px; color: #9ca3af; }
.comment-subject{ font-weight: 600; font-size: 14px; color: #374151; margin-bottom: 4px; }
.comment-body   { font-size: 14px; color: #4b5563; line-height: 1.5; }

/* Nearby airports */
.nearby-list { display: flex; flex-direction: column; gap: 10px; }
.nearby-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; background: #f9fafb; border-radius: 10px;
    text-decoration: none; color: inherit; transition: background .15s;
}
.nearby-item:hover { background: #eff6ff; }
.nearby-iata { min-width: 44px; font-weight: 800; font-size: 15px; color: #0f3460; text-align: center; }
.nearby-info { flex: 1; }
.nearby-name { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.nearby-city { font-size: 12px; color: #6b7280; }

/* Terminal cards */
.ap-terminal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.ap-terminal-card { background: #f0f4ff; border: 1px solid #dbeafe; border-radius: 10px; padding: 14px 16px; }
.ap-terminal-code { font-size: 20px; font-weight: 900; color: #1e40af; letter-spacing: 1px; margin-bottom: 4px; }
.ap-terminal-name { font-size: 13px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.ap-terminal-airlines { font-size: 11px; color: #6b7280; line-height: 1.5; }

/* Ground transport table */
.ap-transport-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ap-transport-table th { background: #f9fafb; padding: 9px 12px; font-weight: 600; color: #374151; text-align: left; border-bottom: 1px solid #e5e7eb; }
.ap-transport-table td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: top; }
.ap-transport-table tr:last-child td { border-bottom: none; }
.ap-type-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: #dbeafe; color: #1e40af; }

/* Live flight board */
.ap-live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #059669; background: #d1fae5; border-radius: 20px; padding: 3px 10px; margin-bottom: 12px; }
.ap-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #059669; animation: hd-pulse 1.6s infinite; }
.ap-flight-board { width: 100%; border-collapse: collapse; font-size: 13px; }
.ap-flight-board th { background: #1a1a2e; color: #fff; padding: 8px 12px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.ap-flight-board td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; }
.ap-flight-board tr:last-child td { border-bottom: none; }
.ap-callsign { font-weight: 800; color: #1a1a2e; font-family: monospace; font-size: 14px; }

/* Airport Lounges */
.ap-lounge-group { margin-bottom: 20px; }
.ap-lounge-group:last-of-type { margin-bottom: 0; }
.ap-lounge-group-hd {
    font-size: 14px; font-weight: 700; color: #1a1a2e;
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb;
}
.ap-lounge-count {
    margin-left: auto; font-size: 11px; font-weight: 600;
    background: #f3f4f6; color: #6b7280; border-radius: 12px; padding: 2px 8px;
}
.ap-lounge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
@media(max-width:600px){ .ap-lounge-grid { grid-template-columns: 1fr; } }
.ap-lounge-card {
    background: #fafbff; border: 1px solid #dbeafe; border-radius: 10px;
    padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.ap-lounge-name { font-size: 14px; font-weight: 700; color: #1a1a2e; line-height: 1.3; }
.ap-lounge-terminal {
    display: inline-block; font-size: 11px; font-weight: 700;
    background: #1e40af; color: #fff; border-radius: 4px; padding: 2px 7px; width: fit-content;
}
.ap-lounge-detail { font-size: 12px; color: #6b7280; }
.ap-lounge-access { font-size: 12px; color: #374151; background: #f0f4ff; border-radius: 6px; padding: 6px 10px; line-height: 1.5; margin-top: 2px; }
.ap-lounge-btn {
    display: inline-block; margin-top: auto; padding: 7px 14px;
    background: #e94560; color: #fff; border-radius: 7px;
    font-size: 12px; font-weight: 700; text-decoration: none; text-align: center;
    transition: background .15s;
}
.ap-lounge-btn:hover { background: #c73652; }
.ap-lounge-note { font-size: 11px; color: #9ca3af; margin-top: 14px; }

/* Sidebar sticky */
.ap-sidebar-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 20px; margin-bottom: 20px;
}
.ap-sidebar-card h3 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 14px; }
.quick-link {
    display: flex; align-items: center; gap: 8px; padding: 9px 12px;
    background: #f9fafb; border-radius: 8px; text-decoration: none; color: #374151;
    font-size: 14px; font-weight: 500; margin-bottom: 8px; transition: background .15s;
}
.quick-link:hover { background: #eff6ff; color: #0f3460; }
.quick-link:last-child { margin-bottom: 0; }

/* ── Sidebar flight CTA card ── */
.ap-sidebar-flight-cta {
    background: linear-gradient(135deg, #0f3460, #1a4a7a);
    color: #fff; border: none; border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.ap-sidebar-flight-cta h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.ap-sidebar-flight-cta p { font-size: 13px; opacity: .85; margin-bottom: 14px; line-height: 1.5; }
.ap-sidebar-flight-cta-btn {
    display: block; padding: 11px 0; background: #e94560; color: #fff;
    border-radius: 8px; font-weight: 700; font-size: 14px; text-align: center;
    text-decoration: none; transition: background .15s;
}
.ap-sidebar-flight-cta-btn:hover { background: #c73652; }

/* ── Airport details sidebar table ── */
.ap-details-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.ap-details-table td { padding: 7px 0; }
.ap-details-table td:first-child { color: #6b7280; font-weight: 600; width: 45%; }
.ap-details-table td:last-child { color: #1a1a2e; font-weight: 500; }
.ap-details-iata { font-weight: 700; color: #0f3460; }

/* ── Hero CTA buttons ── */
.ap-hero-btns { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.ap-hero-btn-primary {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px;
    background: #e94560; color: #fff; border-radius: 8px; font-weight: 700;
    font-size: 14px; text-decoration: none; transition: background .15s;
}
.ap-hero-btn-primary:hover { background: #c73652; }
.ap-hero-btn-ghost {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px;
    background: rgba(255,255,255,.15); color: #fff; border-radius: 8px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    border: 1px solid rgba(255,255,255,.3); transition: background .15s;
}
.ap-hero-btn-ghost:hover { background: rgba(255,255,255,.25); }

/* ── Hero badge row ── */
.ap-hero-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }

/* ── About section ── */
.ap-about-text { font-size: 15px; line-height: 1.7; color: #374151; }
.ap-about-link {
    display: inline-block; margin-top: 12px; font-size: 13px;
    color: #0f3460; font-weight: 600; text-decoration: none;
}
.ap-about-link:hover { text-decoration: underline; }
.ap-about-link + .ap-about-link { margin-left: 16px; }

/* ── Direct flight badge ── */
.ap-direct-badge {
    background: #d1fae5; color: #065f46; padding: 2px 7px;
    border-radius: 10px; font-size: 11px; font-weight: 700;
}

/* ── Transport table cells ── */
.ap-transport-dest { font-weight: 600; font-size: 13px; }
.ap-transport-op   { font-size: 12px; color: #6b7280; }
.ap-transport-freq { font-size: 11px; color: #9ca3af; }
.ap-nowrap { white-space: nowrap; }

/* ── Misc utility ── */
.ap-text-sm-muted { font-size: 12px; color: #9ca3af; }
.ap-text-sm-muted-center { font-size: 12px; color: #9ca3af; margin-top: 8px; }
.ap-section-center { text-align: center; margin-top: 16px; }
.ap-section-btn {
    display: inline-block; padding: 10px 28px; background: #e94560; color: #fff;
    border-radius: 8px; font-weight: 700; text-decoration: none; transition: background .15s;
}
.ap-section-btn:hover { background: #c73652; }
.ap-section-btn-navy {
    display: inline-block; padding: 10px 24px; background: #0f3460; color: #fff;
    border-radius: 8px; font-weight: 700; text-decoration: none; transition: background .15s;
}
.ap-section-btn-navy:hover { background: #0c2a4f; }
.ap-map-wrap { border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; }
.ap-map-caption { font-size: 12px; color: #9ca3af; margin-top: 6px; }
.ap-map-caption a { color: #0f3460; }
.ap-travel-tips { font-size: 14px; color: #4b5563; line-height: 1.8; padding-left: 20px; }
.ap-transport-note { font-size: 12px; color: #9ca3af; margin-top: 8px; }
.ap-travel-tip-link { color: #e94560; }
.ap-terminal-note { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.ap-flight-date { font-size: 12px; color: #9ca3af; }
.ap-hotel-fallback {
    height: 100px; background: #f3f4f6; display: flex; align-items: center;
    justify-content: center; color: #9ca3af; font-size: 28px;
}
.ap-breadcrumb { font-size: 13px; color: #9ca3af; padding-bottom: 24px; }
.ap-breadcrumb a { color: #0f3460; text-decoration: none; }
.ap-breadcrumb a:hover { text-decoration: underline; }
.ap-lounge-source { font-size: 11px; color: #9ca3af; margin-top: 8px; }

/* ── Mobile sticky CTA ── */
.ap-sticky-cta {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: #0f3460; padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.ap-sticky-cta-btn {
    display: block; width: 100%; padding: 13px 0; background: #e94560;
    color: #fff; border-radius: 10px; font-weight: 800; font-size: 15px;
    text-align: center; text-decoration: none; letter-spacing: .2px;
}
@media (max-width: 768px) {
    .ap-sticky-cta { display: block; }
    .ap-layout { padding-bottom: 72px; }
}
