/* =========================================
   LOCATIONS / WORLD ATLAS LANDING
========================================= */

.locations-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 24px;
    background:
        linear-gradient(rgba(16,24,39,.28), rgba(16,24,39,.72)),
        url("../images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #c69c4a;
}

.locations-hero-content {
    width: min(850px, 100%);
}

.locations-hero-kicker,
.section-eyebrow {
    margin: 0 0 12px;
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #d9ad4d;
}

.locations-hero h1 {
    margin: 0 0 16px;
    font-family: var(--title-font);
    font-size: clamp(48px, 7vw, 82px);
    color: #f4d47c;
    text-shadow: 0 4px 18px rgba(0,0,0,.72);
}

.locations-hero p:last-child {
    max-width: 780px;
    margin: 0 auto;
    font-size: clamp(20px, 2vw, 23px);
    line-height: 1.65;
    color: #f7edd0;
    text-shadow: 0 2px 10px rgba(0,0,0,.72);
}

.locations-page {
    position: relative;
    overflow: hidden;
    background: #101827;
    color: #f4ead2;
}

.locations-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 94px;
}

.locations-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.locations-intro > div {
    max-width: 800px;
}

.locations-intro h2,
.section-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0 0 15px;
    padding-bottom: 10px;
    font-family: var(--title-font);
    font-size: clamp(36px, 4vw, 50px);
    color: #f4d47c;
    text-shadow: 0 3px 14px rgba(0,0,0,.35);
}

.locations-intro h2::after,
.section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, #b8862c, #f4d47c, transparent);
    box-shadow: 0 0 9px rgba(244,212,124,.22);
    transition: width .35s ease;
}

.locations-intro:hover h2::after,
.section-heading:hover h2::after {
    width: 100%;
}

.locations-intro p:last-child,
.section-heading p:last-child {
    margin: 0;
    max-width: 800px;
    font-size: 20px;
    line-height: 1.7;
    color: rgba(247,237,208,.84);
}

.atlas-back-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid rgba(244,212,124,.55);
    border-radius: 8px;
    background: rgba(16,24,39,.72);
    color: #f4d47c;
    font-family: var(--title-font);
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0,0,0,.18);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.atlas-back-button:hover {
    transform: translateY(-2px);
    border-color: #fff0ad;
    box-shadow: 0 8px 20px rgba(0,0,0,.28), 0 0 12px rgba(244,212,124,.12);
}

/* =========================================
   FEATURED BOOK ONE SECTORS
========================================= */

.featured-sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.featured-sector-card {
    position: relative;
    overflow: hidden;
    min-height: 285px;
    padding: 30px;
    background:
        linear-gradient(rgba(255,250,229,.94), rgba(232,211,164,.94)),
        url("../images/parchment.png");
    background-size: cover;
    border: 1px solid rgba(198,156,74,.62);
    border-radius: 13px;
    color: #3d2918;
    box-shadow: 0 13px 30px rgba(0,0,0,.23);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.featured-sector-card:first-child {
    grid-column: span 2;
}

.featured-sector-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,.14), rgba(244,212,124,.22), transparent);
    transform: skewX(-18deg);
    transition: left .7s ease;
}

.featured-sector-card:hover {
    transform: translateY(-5px);
    border-color: #f4d47c;
    box-shadow: 0 18px 38px rgba(0,0,0,.29), 0 0 18px rgba(244,212,124,.10);
}

.featured-sector-card:hover::after {
    left: 125%;
}

.featured-sector-topline {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.featured-sector-card h3 {
    margin: 0;
    font-family: var(--title-font);
    font-size: clamp(31px, 3vw, 40px);
    color: #56351a;
}

.sector-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #101827;
    border: 1px solid rgba(198,156,74,.56);
    color: #f4d47c;
    font-size: 12px;
    font-family: var(--title-font);
    letter-spacing: .55px;
    text-transform: uppercase;
}

.featured-sector-role {
    position: relative;
    z-index: 2;
    margin: 0 0 22px;
    max-width: 840px;
    font-size: 19px;
    line-height: 1.68;
    color: #5e4934;
}

.notable-location-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.notable-location-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    overflow: hidden;
    border: 1px solid rgba(139,93,31,.38);
    border-radius: 999px;
    background: rgba(255,250,229,.72);
    color: #62401f;
    font-family: var(--title-font);
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(70,45,20,.08);
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}

.notable-location-chip::after {
    content: "";
    position: absolute;
    top: 0;
    left: -90%;
    width: 42%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(244,212,124,.20), rgba(255,255,255,.28), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
    pointer-events: none;
}

.notable-location-chip:hover {
    transform: translateY(-2px);
    background: #fff8df;
    color: #4d2e16;
    border-color: #c69c4a;
    box-shadow: 0 6px 14px rgba(70,45,20,.15), 0 0 10px rgba(198,156,74,.12);
}

.notable-location-chip:hover::after {
    left: 125%;
}

.notable-location-chip-dot {
    color: #a97629;
    text-shadow: 0 0 7px rgba(198,156,74,.28);
}

.sector-card-action,
.sector-card-muted-action {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--title-font);
    font-size: 15px;
}

.sector-card-action {
    padding: 10px 14px;
    border-radius: 7px;
    background: #101827;
    border: 1px solid rgba(198,156,74,.7);
    color: #f4d47c;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, color .22s ease;
}

.sector-card-action:hover {
    transform: translateX(3px);
    color: #fff0ad;
    box-shadow: 0 0 12px rgba(244,212,124,.18);
}

.sector-card-muted-action {
    color: #6f543c;
    font-style: italic;
}

/* =========================================
   RACE ROUTE
========================================= */

.race-route-section,
.other-sectors-section {
    margin-top: 68px;
}

.section-heading {
    margin-bottom: 28px;
}

.race-route {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.race-route::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 31px;
    height: 2px;
    z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(244,212,124,.42), transparent);
}

.race-stop {
    position: relative;
    z-index: 1;
    min-height: 180px;
    padding: 50px 20px 20px;
    text-align: center;
    border: 1px solid rgba(244,212,124,.26);
    border-radius: 11px;
    background: rgba(22,34,52,.84);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.race-stop::before {
    content: attr(data-step);
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #d9ad4d;
    background: #101827;
    color: #f4d47c;
    font-family: var(--title-font);
    font-size: 13px;
    box-shadow: 0 0 10px rgba(244,212,124,.14);
}

.race-stop:hover {
    transform: translateY(-5px);
    border-color: rgba(244,212,124,.64);
    background: rgba(27,42,64,.96);
    box-shadow: 0 13px 28px rgba(0,0,0,.28), 0 0 14px rgba(244,212,124,.08);
}

.race-stop-type {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(217,173,77,.85);
}

.race-stop h3 {
    margin: 0 0 9px;
    font-family: var(--title-font);
    font-size: 20px;
    color: #f4d47c;
}

.race-stop p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(247,237,208,.78);
}

.race-stop-open {
    display: inline-block;
    margin-top: 13px;
    font-family: var(--title-font);
    font-size: 13px;
    color: #d9ad4d;
}

/* =========================================
   OTHER SECTORS
========================================= */

.other-sector-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.other-sector-card {
    min-height: 185px;
    padding: 20px 18px;
    border: 1px solid rgba(244,212,124,.20);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(24,36,55,.90), rgba(16,24,39,.96));
    box-shadow: 0 7px 18px rgba(0,0,0,.20);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.other-sector-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244,212,124,.50);
    box-shadow: 0 11px 24px rgba(0,0,0,.28), 0 0 12px rgba(244,212,124,.08);
}

.other-sector-card h3 {
    margin: 0 0 10px;
    font-family: var(--title-font);
    font-size: 22px;
    color: #f4d47c;
}

.other-sector-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.58;
    color: rgba(247,237,208,.76);
}

.atlas-loading,
.atlas-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 25px;
    border: 1px solid rgba(244,212,124,.24);
    border-radius: 10px;
    background: rgba(22,34,52,.72);
    color: rgba(247,237,208,.84);
    text-align: center;
    font-size: 17px;
}

/* =========================================
   PAGE PARTICLES
========================================= */

.locations-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.locations-particles span {
    position: absolute;
    bottom: -30px;
    border-radius: 50%;
    background: #f4d47c;
    box-shadow: 0 0 8px rgba(244,212,124,.75), 0 0 18px rgba(244,212,124,.30);
    animation: locationsParticleFloat linear infinite;
}

@keyframes locationsParticleFloat {
    0% {
        bottom: -30px;
        transform: translateX(0) scale(.55);
        opacity: 0;
    }
    9% { opacity: .48; }
    50% {
        transform: translateX(14px) scale(.82);
        opacity: .36;
    }
    90% { opacity: .24; }
    100% {
        bottom: calc(100% + 30px);
        transform: translateX(-10px) scale(1.05);
        opacity: 0;
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width: 1000px) {
    .other-sector-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .race-route {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 760px) {
    .locations-hero {
        min-height: 310px;
        padding: 55px 20px;
    }

    .locations-hero-kicker,
    .section-eyebrow {
        font-size: 15px;
    }

    .locations-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 34px;
    }

    .locations-intro {
        display: block;
    }

    .locations-intro p:last-child,
    .section-heading p:last-child {
        font-size: 18px;
    }

    .atlas-back-button {
        margin-top: 22px;
    }

    .featured-sector-grid,
    .race-route,
    .other-sector-grid {
        grid-template-columns: 1fr;
    }

    .featured-sector-card:first-child {
        grid-column: auto;
    }

    .featured-sector-card {
        padding: 24px 20px;
    }

    .featured-sector-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .featured-sector-role {
        font-size: 18px;
    }

    .notable-location-chip {
        font-size: 14px;
    }

    .race-route::before {
        display: none;
    }

    .race-stop {
        min-height: 0;
        padding: 52px 18px 20px;
    }

    .other-sector-card {
        min-height: 0;
    }
}

@media(prefers-reduced-motion: reduce) {
    .featured-sector-card,
    .notable-location-chip,
    .race-stop,
    .other-sector-card,
    .atlas-back-button {
        transition: none;
    }

    .locations-particles span {
        animation: none;
        display: none;
    }
}
