/* =========================================
   SECTOR PAGE
========================================= */

.sector-page {
    position: relative;
    background: radial-gradient( circle at 50% 15%, rgba(198,156,74,.08), transparent 38% ), linear-gradient( 180deg, rgba(16,24,39,.96) 0%, rgba(16,24,39,.90) 100% );
    min-height: 100vh;
}

.sector-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px var(--page-padding) 50px;
    background-image: linear-gradient( 90deg, rgba(8,14,24,.30), rgba(8,14,24,.08), rgba(8,14,24,.30) ), var( --sector-banner, url("../images/herotitle.png") );
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    overflow: hidden;
}

    .sector-hero .hero-content {
        position: relative;
        z-index: 2;
        width: min(900px, 100%);
        text-align: center;
    }

    .sector-hero h1 {
        margin: 0 0 12px;
        font-family: var(--title-font);
        font-size: clamp(48px, 7vw, 82px);
        color: var(--gold-light);
        text-shadow: 0 0 8px rgba(244,212,124,.55), 0 0 22px rgba(198,156,74,.35), 0 4px 12px rgba(0,0,0,.9);
    }

    .sector-hero p {
        margin: 0 auto;
        font-size: clamp(18px, 2vw, 24px);
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,.95);
    }

.sector-introduction {
    max-width: 900px;
    margin: auto;
    padding: 70px 30px 30px;
    text-align: center;
    font-size: 24px;
    line-height: 1.8;
}

/* =========================================
   PARCHMENT MAP SECTION
========================================= */

.sector-map-section {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: clamp(55px, 7vw, 90px) var(--page-padding);
    background-image: url("../images/parchment.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #3b2618;
}

    .sector-map-section > h2 {
        margin: 0 0 35px;
        text-align: center;
        font-family: var(--title-font);
        font-size: clamp(34px, 4vw, 48px);
        color: #4b2f18;
        text-shadow: 0 1px 0 rgba(255,255,255,.3);
    }

/* =========================================
   MAP
========================================= */

.sector-map {
    position: relative;
    width: min(1200px, 100%);
    margin-inline: auto;
    overflow: hidden;
    border: 2px solid #8b642f;
    border-radius: 8px;
    background: #ead39b;
    box-shadow: 0 14px 35px rgba(59,38,24,.28);
}

.sector-map img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   MAP HOTSPOTS
========================================= */

#map-hotspots {
    position: absolute;
    inset: 0;
}

.map-hotspot {
    position: absolute;
    z-index: 5;
    transform: translate(-50%, -50%);
    text-decoration: none;
}

.map-dot {
    display: block;
    width: 14px;
    height: 14px;
    border: 3px solid rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(59,38,24,.75), 0 0 8px rgba(244,212,124,.65);
    transition: transform .25s ease, box-shadow .25s ease;
}

.map-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    background: rgba(40,25,12,.94);
    border: 1px solid #c69c4a;
    border-radius: 8px;
    color: #f8e9b0;
    font-family: var(--title-font);
    font-size: 13px;
    transition: opacity .25s ease, transform .25s ease;
}

.map-label strong {
    display: block;
}

.map-label small {
    display: block;
    margin-top: 3px;
    opacity: .75;
    font-family: var(--body-font);
    font-size: 12px;
}

.map-hotspot:hover .map-dot,
.map-hotspot:focus-visible .map-dot {
    transform: scale(1.45);
    box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 24px rgba(244,212,124,1);
}

.map-hotspot:hover .map-label,
.map-hotspot:focus-visible .map-label {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
}

/* =========================================
   LOCATION DIRECTORY
========================================= */

.sector-locations {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 30px 110px;
}

.sector-locations > h2 {
    margin: 0 0 45px;
    text-align: center;
    font-size: clamp(34px, 4vw, 48px);
    color: var(--dark-leather);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.location-card {
    --category-color: #c69c4a;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 190px;
    overflow: hidden;
    text-decoration: none;
    color: #3b2618;
    background: linear-gradient(145deg, rgba(255,250,232,.98), rgba(238,217,169,.96));
    border: 1px solid rgba(107,71,37,.32);
    border-left: 6px solid var(--category-color);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(59,38,24,.13);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.location-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(198,156,74,.14), transparent 42%);
}

.location-card::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--category-color);
    box-shadow: 0 0 0 3px rgba(255,255,255,.7);
}

.location-card:hover,
.location-card:focus-visible {
    transform: translateY(-5px);
    background: linear-gradient(145deg, #fff9e7, #f2dfb1);
    box-shadow: 0 15px 28px rgba(59,38,24,.22);
}

.location-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 25px 42px 24px 26px;
}

.location-type {
    display: block;
    margin-bottom: 8px;
    font-family: var(--title-font);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--category-color);
}

.location-card h3 {
    margin: 0 0 12px;
    font-family: var(--title-font);
    font-size: 24px;
    line-height: 1.25;
    color: #53351c;
}

.location-card p {
    margin: 0;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.5;
    color: #5d4933;
}

/* =========================================
   CATEGORY COLOURS
========================================= */

.category-residential { --category-color: #66862f; }
.category-education { --category-color: #285f80; }
.category-business { --category-color: #bd5d17; }
.category-public_place { --category-color: #256b8d; }
.category-special_area { --category-color: #a83c22; }
.category-hidden_secret { --category-color: #745286; }

.category-residential .map-dot { background: #66862f; }
.category-education .map-dot { background: #285f80; }
.category-business .map-dot { background: #bd5d17; }
.category-public_place .map-dot { background: #256b8d; }
.category-special_area .map-dot { background: #a83c22; }
.category-hidden_secret .map-dot {
    background: #745286;
    border-style: dashed;
}

/* =========================================
   TABLET
========================================= */

@media(max-width: 900px) {
    .sector-hero {
        min-height: 45vh;
    }

    .sector-introduction {
        padding: 50px 25px 20px;
        font-size: 21px;
    }

    .sector-map-section {
        padding: 30px 20px 60px;
    }

    .sector-map {
        border-width: 3px;
        border-radius: 14px;
    }

    .sector-locations {
        padding: 30px 22px 80px;
    }

    .location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* =========================================
   PHONE
========================================= */

@media(max-width: 650px) {
    .sector-hero {
        min-height: 38vh;
    }

    .sector-introduction {
        padding: 38px 18px 15px;
        font-size: 18px;
        line-height: 1.65;
    }

    .sector-map-section {
        padding: 25px 12px 50px;
    }

    .sector-map-section h2 {
        margin-bottom: 25px;
    }

    .sector-map {
        border-width: 2px;
        border-radius: 10px;
    }

    .sector-locations {
        padding: 25px 14px 65px;
    }

    .sector-locations > h2 {
        margin-bottom: 30px;
        font-size: clamp(30px, 9vw, 40px);
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .location-card {
        min-height: 0;
    }

    .location-card-content {
        padding: 22px 40px 22px 20px;
    }

    .location-card h3 {
        font-size: 22px;
    }

    .location-card p {
        font-size: 16px;
    }

    .map-dot {
        width: 16px;
        height: 16px;
    }

    .map-label {
        top: 30px;
        max-width: 180px;
        white-space: normal;
        text-align: center;
        font-size: 12px;
    }
}

@media (hover: none) {
    .map-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .location-card,
    .map-dot,
    .map-label {
        transition: none;
    }
}
.map-hotspot:hover .map-dot {
    transform: scale(1.45);
    box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 24px rgba(244,212,124,1);
}


/* =========================================
   SECTOR DARK THEME CONTRAST
========================================= */

.sector-introduction {
    color: rgba(255, 255, 255, .9);
}

.sector-locations > h2 {
    color: var(--gold-light);
    text-shadow: 0 3px 12px rgba(0,0,0,.45);
}


/* =========================================
   COMPACT MAP KEY
========================================= */

.sector-map-key {
    width: fit-content;
    max-width: 100%;
    margin: 22px auto 0;
    padding: 12px 18px;
    background: rgba(255, 248, 220, .88);
    border: 1px solid rgba(91, 58, 29, .45);
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(59,38,24,.15);
    color: #3b2618;
}

    .sector-map-key h3 {
        margin: 0 0 10px;
        text-align: center;
        font-family: var(--title-font);
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        color: #5b3a1d;
    }

.sector-map-key-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 16px;
}

.sector-key-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    color: #3b2618;
}

.sector-key-dot {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    background: var(--category-color, #c69c4a);
    border: 1px solid rgba(59,38,24,.65);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,.45);
}

.sector-key-item.category-hidden_secret
.sector-key-dot {
    border-style: dashed;
}


/* =========================================
   MAP KEY TABLET
========================================= */

@media(max-width: 900px) {

    .sector-map-key {
        width: min(620px, 100%);
        padding: 12px 15px;
    }

    .sector-map-key-grid {
        gap: 7px 14px;
    }
}

/* =========================================
   MAP KEY PHONE
========================================= */

@media(max-width: 600px) {

    .sector-map-key {
        width: 100%;
        margin-top: 15px;
        padding: 12px;
    }

        .sector-map-key h3 {
            margin-bottom: 9px;
            font-size: 14px;
        }

    .sector-map-key-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .sector-key-item {
        font-size: 13px;
        white-space: normal;
    }
}
/* =========================================
   SECTOR FULL-PAGE PARTICLES
========================================= */


#app {
    position: relative;
    isolation: isolate;
}

.sector-particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

/* Main backgrounds sit below particles */

.sector-hero,
.sector-page {
    position: relative;
    z-index: 1;
}

    .sector-hero .hero-content,
    .sector-introduction,
    .sector-locations {
        position: relative;
        z-index: 3;
    }

.sector-map-section {
    position: relative;
    z-index: 4;
    padding:
        clamp(50px, 7vw, 90px)
        var(--page-padding);

    background-image:
        url("../images/parchment.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


    .sector-particles span {
        position: absolute;
        bottom: -30px;
        width: 6px;
        height: 6px;
        background: #f4d47c;
        border-radius: 50%;
        opacity: .7;
        box-shadow: 0 0 10px #f4d47c, 0 0 24px rgba(244,212,124,.9);
        animation: sectorParticleFloat linear infinite;
    }


        /* Spread particles across screen */

        .sector-particles span:nth-child(1) {
            left: 5%;
            animation-duration: 12s;
            animation-delay: 0s;
        }

        .sector-particles span:nth-child(2) {
            left: 12%;
            animation-duration: 16s;
            animation-delay: 3s;
        }

        .sector-particles span:nth-child(3) {
            left: 20%;
            animation-duration: 14s;
            animation-delay: 7s;
        }

        .sector-particles span:nth-child(4) {
            left: 28%;
            animation-duration: 18s;
            animation-delay: 2s;
        }

        .sector-particles span:nth-child(5) {
            left: 36%;
            animation-duration: 13s;
            animation-delay: 5s;
        }

        .sector-particles span:nth-child(6) {
            left: 44%;
            animation-duration: 17s;
            animation-delay: 9s;
        }

        .sector-particles span:nth-child(7) {
            left: 52%;
            animation-duration: 15s;
            animation-delay: 1s;
        }

        .sector-particles span:nth-child(8) {
            left: 60%;
            animation-duration: 19s;
            animation-delay: 6s;
        }

        .sector-particles span:nth-child(9) {
            left: 68%;
            animation-duration: 14s;
            animation-delay: 4s;
        }

        .sector-particles span:nth-child(10) {
            left: 76%;
            animation-duration: 17s;
            animation-delay: 8s;
        }

        .sector-particles span:nth-child(11) {
            left: 84%;
            animation-duration: 13s;
            animation-delay: 2s;
        }

        .sector-particles span:nth-child(12) {
            left: 92%;
            animation-duration: 18s;
            animation-delay: 5s;
        }

        .sector-particles span:nth-child(13) {
            left: 16%;
            animation-duration: 20s;
            animation-delay: 10s;
        }

        .sector-particles span:nth-child(14) {
            left: 48%;
            animation-duration: 16s;
            animation-delay: 11s;
        }

        .sector-particles span:nth-child(15) {
            left: 80%;
            animation-duration: 21s;
            animation-delay: 7s;
        }


@keyframes sectorParticleFloat {

    0% {
        transform: translateY(0) scale(.5);
        opacity: 0;
    }

    15% {
        opacity: .55;
    }

    80% {
        opacity: .4;
    }

    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}

/* =========================================
   SECTOR BACK NAVIGATION
========================================= */

.sector-back-navigation {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 28px;
}

.sector-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #f4d47c;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(244,212,124,.45);
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--title-font);
    font-size: 16px;
    letter-spacing: .5px;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

    .sector-back-button:hover {
        transform: translateX(-4px);
        background: rgba(244,212,124,.12);
        border-color: var(--gold-light);
        box-shadow: 0 6px 18px rgba(0,0,0,.2);
    }

    .sector-back-button:focus-visible {
        outline: 2px solid var(--gold-light);
        outline-offset: 4px;
    }

@media(max-width: 600px) {

    .sector-back-navigation {
        width: calc(100% - 28px);
        padding-top: 20px;
    }

    .sector-back-button {
        padding: 9px 16px;
        font-size: 12px;
    }
}