/* Shared styles for airport route-map + destinations table + airline ranking */

.route-map-section {
    background: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden
}

.route-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f97316, transparent);
    border-radius: 2px
}

.route-map-header {
    text-align: center;
    margin-bottom: 1.5rem
}

.route-map-header h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.route-map-header h2 i {
    color: #f97316
}

.route-map-header p {
    color: #9ca3af;
    font-size: .95rem;
    margin: 0
}

.route-map-filters {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem
}

.route-filter-btn {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #d1d5db;
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    cursor: pointer;
    transition: all .25s;
    backdrop-filter: blur(8px)
}

.route-filter-btn:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff
}

.route-filter-btn.active {
    color: #fff;
    border-color: currentColor
}

.route-filter-btn[data-zone="all"].active {
    background: rgba(255, 255, 255, .15);
    border-color: #fff
}

.route-filter-btn[data-zone="national"].active {
    background: rgba(78, 205, 196, .2);
    color: #4ecdc4;
    border-color: #4ecdc4
}

.route-filter-btn[data-zone="europe"].active {
    background: rgba(168, 85, 247, .2);
    color: #a855f7;
    border-color: #a855f7
}

.route-filter-btn[data-zone="america"].active {
    background: rgba(249, 115, 22, .2);
    color: #f97316;
    border-color: #f97316
}

.route-filter-btn[data-zone="africa_asia"].active {
    background: rgba(239, 68, 68, .2);
    color: #ef4444;
    border-color: #ef4444
}

#routeMap {
    height: 500px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4)
}

@media (max-width: 768px) {
    #routeMap {
        height: 350px
    }
}

.route-map-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: #9ca3af;
    font-size: .85rem
}

.route-map-stats strong {
    color: #fff
}

/* Pulsing origin marker */
.mad-pulse-marker,
.bcn-pulse-marker {
    position: relative
}

.mad-pulse-core,
.bcn-pulse-core {
    width: 10px;
    height: 10px;
    background: #f97316;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    box-shadow: 0 0 12px #f97316, 0 0 24px rgba(249, 115, 22, .4)
}

.mad-pulse-ring,
.bcn-pulse-ring {
    width: 20px;
    height: 20px;
    border: 2px solid #f97316;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: madPulse 2.5s ease-out infinite;
    opacity: 0
}

.mad-pulse-ring2,
.bcn-pulse-ring2 {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(249, 115, 22, .6);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: madPulse 2.5s ease-out 1s infinite;
    opacity: 0
}

@keyframes madPulse {
    0% {
        transform: scale(.5);
        opacity: .7
    }

    100% {
        transform: scale(3.5);
        opacity: 0
    }
}

.route-tooltip {
    background: rgba(17, 24, 39, .92) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: .82rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3) !important
}

.route-tooltip::before,
.leaflet-tooltip-top::before {
    border-top-color: rgba(17, 24, 39, .92) !important
}

.iata-badge {
    background: rgba(249, 115, 22, .25);
    color: #fb923c;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 600;
    margin-left: 4px
}

.tooltip-country {
    color: #9ca3af;
    font-size: .72rem;
    margin-top: 1px
}

.tooltip-airlines {
    color: #9ca3af;
    font-size: .75rem;
    margin-top: 3px
}

.route-arc {
    animation: arcFadeIn .6s ease-out both
}

@keyframes arcFadeIn {
    from {
        opacity: 0;
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000
    }

    to {
        opacity: .5;
        stroke-dashoffset: 0
    }
}

.dest-dot {
    transition: transform .2s
}

.dest-dot:hover {
    transform: scale(2)
}

.leaflet-control-zoom a {
    background: rgba(17, 24, 39, .85) !important;
    color: #d1d5db !important;
    border-color: rgba(255, 255, 255, .1) !important
}

.leaflet-control-zoom a:hover {
    background: rgba(17, 24, 39, 1) !important;
    color: #fff !important
}

/* Destination search & table */
.dest-search-section {
    background: linear-gradient(180deg, #111827 0%, #0a0e1a 100%);
    padding: 2rem 0 2.5rem
}

.dest-search-input {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 50px;
    padding: .6rem 1.2rem;
    font-size: .9rem;
    width: 100%;
    max-width: 500px;
    transition: border-color .3s
}

.dest-search-input::placeholder {
    color: #6b7280
}

.dest-search-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .15)
}

.dest-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08)
}

.dest-table-wrapper::-webkit-scrollbar {
    width: 6px
}

.dest-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 3px
}

.dest-table {
    margin: 0;
    color: #d1d5db;
    font-size: .85rem
}

.dest-table thead th {
    background: rgba(17, 24, 39, .95);
    color: #9ca3af;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: .6rem .8rem
}

.dest-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: background .2s
}

.dest-table tbody tr:hover {
    background: rgba(249, 115, 22, .06)
}

.dest-table tbody td {
    padding: .5rem .8rem;
    vertical-align: middle;
    border: none
}

/* Airline ranking */
.airline-ranking-section {
    background: #0a0e1a;
    padding: 2rem 0 2.5rem
}

.airline-rank-item {
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04)
}

.airline-rank-item:last-child {
    border-bottom: none
}

.ranking-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 1.5rem
}
