/* Shared airport map styles (FIR visual parity) */

#ap-map {
    height: 380px;
    width: 100%;
    background: var(--body-bg, #f0f2f5);
}

.ap-marker-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    pointer-events: none;
}

.ap-marker-dot {
    width: 7px;
    height: 7px;
    background: var(--link, #2a6db5);
    border: 1.5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(42, 109, 181, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ap-marker-label {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--heading, #1e2837);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-dark, #c4c9d1);
    border-radius: 3px;
    padding: 1px 4px;
    margin-top: 2px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.runway-label-icon {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--link, #2a6db5);
    color: var(--link, #2a6db5);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 12px;
    border-radius: 3px;
    padding: 1px;
    pointer-events: none;
}

.zoomed-out-airports .ap-marker-dot {
    width: 3px !important;
    height: 3px !important;
    border-width: 0 !important;
    box-shadow: none !important;
}

.zoomed-out-airports .ap-marker-label {
    display: none !important;
}

.runway-table-wrap {
    border: 1px solid var(--border, #dde1e7);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.runway-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    font-family: monospace;
}

.runway-table thead th {
    background: var(--panel-head, #f8f9fa);
    border-bottom: 2px solid var(--border-dark, #c4c9d1);
    padding: 6px 9px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--heading, #1e2837);
    white-space: nowrap;
}

.runway-table tbody tr:nth-child(even) {
    background: var(--stripe, #f8f9fb);
}

.runway-table tbody tr:hover {
    background: #e8eef7;
}

.runway-table td {
    padding: 6px 9px;
    border-bottom: 1px solid var(--border, #dde1e7);
    color: var(--text, #2c3340);
}

.runway-table tr:last-child td {
    border-bottom: none;
}

.rw-id {
    color: var(--link, #2a6db5);
    font-weight: 700;
}

.rw-closed {
    color: #c0392b;
    font-weight: 700;
}

.type-badge {
    display: inline-block;
    background: #e8eef7;
    color: var(--link, #2a6db5);
    border: 1px solid #b8d0ef;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ap-stats-kpi {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 15px;
}

.ap-kpi {
    flex: 1 1 120px;
    min-width: 100px;
    padding: 10px 12px;
    background: var(--stripe, #f8f9fb);
    border: 1px solid var(--border, #dde1e7);
    border-radius: 3px;
    text-align: center;
}

.ap-kpi-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading, #1e2837);
    font-family: monospace;
}

.ap-kpi-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7585);
    margin-top: 2px;
}

.ap-ranked-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ap-ranked-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border, #dde1e7);
    font-size: 12px;
}

.ap-ranked-list li:last-child {
    border-bottom: none;
}

.ap-ranked-list .rank {
    color: var(--text-muted, #6b7585);
    font-size: 10px;
    width: 18px;
    flex-shrink: 0;
}

.ap-ranked-list .cnt {
    font-family: monospace;
    font-weight: 700;
    color: var(--link, #2a6db5);
}

.ap-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 0 15px 15px;
}

.cs-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 860px) {
    #ap-map {
        height: 240px;
    }
}
