/* --------------------------------------------------------------------------
   Atlas y selector de bases
   -------------------------------------------------------------------------- */

.destinations-atlas {
    --atlas-ink: var(--bs-emphasis-color);
    --atlas-muted: var(--bs-secondary-color);
    --atlas-line: var(--bs-border-color-translucent);
    --atlas-accent: var(--any-interactive-color);
    --atlas-accent-hover: var(--any-interactive-hover-color);
    --atlas-accent-soft: color-mix(in srgb, var(--atlas-accent) 12%, transparent);
}

.destinations-atlas .atlas-console {
    --any-hero-image: url('/img/destinations/index.webp');

    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 0;
    color: #fff;
    background-position: center;
}

.destinations-atlas .atlas-console-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(16rem, 0.75fr) minmax(32rem, 1.25fr);
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.destinations-atlas .strip-label {
    color: var(--atlas-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1rem;
    text-transform: uppercase;
}

.destinations-atlas .atlas-code {
    margin: 0;
    color: #fff;
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.88;
}

.destinations-atlas .atlas-city {
    margin-top: 0.75rem;
    color: rgb(255 255 255 / 0.82);
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.destinations-atlas .atlas-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.destinations-atlas .atlas-metric {
    min-width: 7.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: var(--bs-border-radius-lg);
    background: rgb(0 0 0 / 0.16);
    backdrop-filter: blur(8px);
}

.destinations-atlas .atlas-metric strong {
    display: block;
    color: #fff;
    font-size: 1.15rem;
}

.destinations-atlas .atlas-metric span {
    color: rgb(255 255 255 / 0.72);
    font-size: 0.76rem;
}

.destinations-atlas .hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    gap: 0.65rem;
}

.destinations-atlas .hub-beacon {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    min-height: 4.25rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--atlas-line);
    color: var(--atlas-ink);
    background: color-mix(in srgb, var(--bs-body-bg) 90%, transparent);
    text-decoration: none;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}

.destinations-atlas .hub-beacon:hover,
.destinations-atlas .hub-beacon:focus-visible {
    border-color: var(--atlas-accent-hover);
    color: var(--atlas-ink);
    background: color-mix(in srgb, var(--atlas-accent-hover) 12%, var(--bs-body-bg));
    transform: translateY(-2px);
}

.destinations-atlas .hub-beacon.active {
    border-color: var(--atlas-accent);
    color: #fff;
    background: var(--atlas-accent);
}

.destinations-atlas .hub-beacon.active strong,
.destinations-atlas .hub-beacon.active .hub-pulse {
    color: #fff;
}

.destinations-atlas .hub-pulse {
    position: relative;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.destinations-atlas .hub-beacon.active .hub-pulse::after {
    content: '';
    position: absolute;
    inset: -0.4rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.5;
}

.destinations-atlas .hub-beacon strong,
.destinations-atlas .hub-beacon small {
    display: block;
}

.destinations-atlas .hub-beacon small {
    overflow: hidden;
    color: var(--atlas-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.destinations-atlas .hub-beacon.active small {
    color: rgb(255 255 255 / 0.78);
}

/* --------------------------------------------------------------------------
   Navegación y sectores
   -------------------------------------------------------------------------- */

.destinations-atlas .route-sector {
    margin-bottom: 2rem;
    scroll-margin-top: 5rem;
}

.destinations-atlas .sector-head {
    position: relative;
    min-height: 11rem;
    margin-bottom: 1rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    overflow: hidden;
    color: #fff;
}

.destinations-atlas .sector-head-insular {
    --any-hero-image: url('/img/destinations/insular.webp');
}

.destinations-atlas .sector-head-regional {
    --any-hero-image: url('/img/destinations/regional.webp');
}

.destinations-atlas .sector-head-nacional {
    --any-hero-image: url('/img/destinations/nacional.webp');
}

.destinations-atlas .sector-head-internacional {
    --any-hero-image: url('/img/destinations/internacional.webp');
}

.destinations-atlas .sector-head-intercontinental {
    --any-hero-image: url('/img/destinations/intercontinental.webp');
}

.destinations-atlas .sector-head-instruccion {
    --any-hero-image: url('/img/destinations/instruccion.webp');
}

.destinations-atlas .sector-head-fallback {
    background: var(--any-surface-primary);
}

.destinations-atlas .sector-head-content {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

.destinations-atlas .sector-head h2 {
    margin: 0 0 0.6rem;
    color: inherit;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 750;
    letter-spacing: -0.035em;
}

.destinations-atlas .sector-head p {
    max-width: 42rem;
    margin: 0;
    color: rgb(255 255 255 / 0.82);
}

.destinations-atlas .sector-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.destinations-atlas .sector-summary span {
    padding: 0.3rem 0.65rem;
    border: 1px solid rgb(255 255 255 / 0.28);
    border-radius: 999px;
    background: rgb(0 0 0 / 0.12);
    font-size: 0.78rem;
    backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   Mapa
   -------------------------------------------------------------------------- */

.destinations-atlas .sector-map-card {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--atlas-line);
    background: var(--bs-card-bg);
}

.destinations-atlas .sector-map,
.destinations-atlas .sector-map-empty {
    width: 100%;
    height: clamp(18rem, 30vw, 24rem);
    background: var(--bs-secondary-bg);
}

.destinations-atlas .sector-map-empty {
    display: grid;
    place-items: center;
    padding: 2rem;
    color: var(--atlas-muted);
    text-align: center;
}

.destinations-atlas .destinations-map-marker-shell > span {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    box-sizing: border-box;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Listado de destinos
   -------------------------------------------------------------------------- */

.destinations-atlas .sector-list-card {
    overflow: hidden;
    border: 1px solid var(--atlas-line);
    background: var(--bs-card-bg);
}

.destinations-atlas .strip-stack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--atlas-line);
    background: var(--bs-tertiary-bg);
}

.destinations-atlas .flight-strip {
    display: grid;
    grid-template-columns:
        minmax(5.25rem, 0.6fr)
        minmax(11rem, 1.55fr)
        minmax(6rem, 0.65fr)
        minmax(6rem, 0.65fr)
        minmax(4.5rem, 0.5fr)
        minmax(6.5rem, 0.75fr)
        minmax(5rem, 0.55fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--atlas-line);
    color: inherit;
    background-color: var(--bs-card-bg);
    text-decoration: none;
    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}

.destinations-atlas .flight-strip:nth-of-type(even) {
    background-color: var(--bs-tertiary-bg);
}

.destinations-atlas .flight-strip:last-child {
    border-bottom: 0;
}

.destinations-atlas .flight-strip:hover,
.destinations-atlas .flight-strip:focus-visible {
    color: inherit;
    background-color: var(--any-hover-bg);
    box-shadow: inset 0 0 0 2px var(--any-hover-border);
}

.destinations-atlas .strip-icao {
    color: var(--atlas-ink);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.destinations-atlas .strip-city {
    min-width: 0;
}

.destinations-atlas .strip-city-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.destinations-atlas .strip-city-copy {
    min-width: 0;
}

.destinations-atlas .strip-city-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.destinations-atlas .strip-country {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-top: 0.18rem;
    color: var(--atlas-muted);
    font-size: 0.8rem;
}

.destinations-atlas .strip-weather-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    object-fit: contain;
}

.destinations-atlas .strip-flag {
    width: auto;
    height: 0.8rem;
}

.destinations-atlas .strip-data-cell {
    display: flex;
    flex-direction: column;
    align-self: start;
    min-width: 0;
}

.destinations-atlas .strip-data-value {
    display: flex;
    align-items: flex-start;
    min-height: 2.15rem;
    margin-top: 0.25rem;
    color: var(--atlas-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.destinations-atlas .strip-fleet {
    line-height: 2.15rem;
}

.destinations-atlas .strip-fleet-badge {
    display: inline-flex;
    gap: 0.3rem;
}

.destinations-atlas .strip-operator-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 5rem;
    height: 2.15rem;
    padding: 0.12rem 0.22rem;
    border: 1px solid rgb(0 0 0 / 0.08);
    border-radius: 0.3rem;
    background-color: #f1f3f5;
    box-shadow: 0 0.1rem 0.25rem rgb(0 0 0 / 0.08);
}

.destinations-atlas .strip-operator-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

[data-bs-theme='dark'] .destinations-atlas .strip-operator-logo {
    border-color: rgb(0 0 0 / 0.14);
    background-color: #d9dee2;
}

.destinations-atlas .strip-flights {
    text-align: right;
}

.destinations-atlas .strip-chevron {
    color: var(--any-link-color);
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .destinations-atlas .atlas-console-main {
        grid-template-columns: 1fr;
    }

    .destinations-atlas .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .destinations-atlas .flight-strip {
        gap: 0.7rem;
    }
}

@media (max-width: 767.98px) {
    .destinations-atlas .atlas-console-main {
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .destinations-atlas .hub-grid {
        grid-template-columns: 1fr;
    }

    .destinations-atlas .sector-head {
        min-height: 9rem;
        padding: 1.25rem;
    }

    .destinations-atlas .sector-map,
    .destinations-atlas .sector-map-empty {
        height: 18rem;
    }

    .destinations-atlas .flight-strip {
        grid-template-columns: 4.8rem minmax(0, 1fr) 5rem;
        gap: 0.7rem;
        padding: 0.95rem;
    }

    .destinations-atlas .strip-destination {
        grid-column: 1;
        grid-row: 1;
    }

    .destinations-atlas .strip-city {
        grid-column: 2;
        grid-row: 1;
    }

    .destinations-atlas .strip-flights {
        grid-column: 3;
        grid-row: 1;
    }

    .destinations-atlas .strip-distance {
        grid-column: 2;
        grid-row: 2;
    }

    .destinations-atlas .strip-estimated {
        grid-column: 3;
        grid-row: 2;
    }

    .destinations-atlas .strip-fleet-cell {
        grid-column: 2;
        grid-row: 3;
    }

    .destinations-atlas .strip-operator {
        grid-column: 3;
        grid-row: 3;
    }
}
