/* =========================================================
   MARVALET
   AREAS PAGE
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --areas-coverage-height: 650px;
}


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

.areas-page {
    padding: 35px 0 65px;

    background: #080808;

    color: #ffffff;
}


.areas-container {
    width: min(1450px, 96%);

    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.areas-heading {
    padding: 10px 0 35px;

    text-align: center;
}


.areas-eyebrow {
    margin: 0 0 7px;

    color: #858585;

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 2.3px;

    text-transform: uppercase;
}


.areas-heading h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            2.6rem,
            4.5vw,
            4.6rem
        );

    font-weight: 800;

    line-height: 0.95;

    letter-spacing: -1.5px;

    text-transform: uppercase;
}


.areas-heading-description {
    margin: 13px 0 0;

    color: #999999;

    font-size: 0.95rem;
}


/* =========================================================
   MAIN GRID
========================================================= */

.areas-main {
    display: grid;

    grid-template-columns:
        390px
        minmax(0, 1fr);

    gap: 16px;

    align-items: start;
}


/* =========================================================
   LEFT COVERAGE PANEL
========================================================= */

.coverage-panel {
    height: var(--areas-coverage-height);

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: #0a0a0a;

    border: 1px solid #343434;

    border-radius: 4px;
}


/* =========================================================
   SCROLLABLE AREA LIST
========================================================= */

.coverage-scroll {
    flex: 1;

    min-height: 0;

    padding:
        24px
        18px
        15px
        24px;

    overflow-y: auto;

    overflow-x: hidden;

    scrollbar-width: thin;

    scrollbar-color:
        #555555
        #111111;
}


.coverage-scroll::-webkit-scrollbar {
    width: 7px;
}


.coverage-scroll::-webkit-scrollbar-track {
    background: #101010;
}


.coverage-scroll::-webkit-scrollbar-thumb {
    background: #4d4d4d;

    border-radius: 10px;
}


.coverage-scroll::-webkit-scrollbar-thumb:hover {
    background: #686868;
}


/* =========================================================
   GROUP
========================================================= */

.coverage-group {
    padding-bottom: 25px;

    margin-bottom: 25px;

    border-bottom: 1px solid #292929;
}


.coverage-group:last-child {
    margin-bottom: 0;

    border-bottom: none;
}


/* =========================================================
   GROUP HEADER
========================================================= */

.coverage-group-heading {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-bottom: 20px;
}


.coverage-group-heading h2 {
    margin: 0 0 3px;

    color: #ffffff;

    font-size: 1rem;

    font-weight: 800;

    line-height: 1.2;

    text-transform: uppercase;
}


.coverage-group-heading p {
    margin: 0;

    color: #777777;

    font-size: 0.7rem;
}


/* =========================================================
   CATEGORY BOXES
========================================================= */

.coverage-colour {
    flex-shrink: 0;

    width: 26px;
    height: 26px;

    display: block;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.25
        );

    border-radius: 3px;
}


/* BASE */

.coverage-base {
    background: #f2f2f2;
}


/* SERVICE POINTS */

.coverage-service {
    background: #aaaaaa;
}


/* SURROUNDING */

.coverage-surrounding {
    background: #555555;
}


/* =========================================================
   LOCATION LIST
========================================================= */

.coverage-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        15px
        15px;
}


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

.coverage-location {
    min-width: 0;

    display: flex;

    align-items: flex-start;

    gap: 9px;
}


.coverage-location > i {
    flex-shrink: 0;

    margin-top: 3px;

    color: #dedede;

    font-size: 0.95rem;
}


.coverage-location > div {
    min-width: 0;
}


.coverage-location strong {
    display: block;

    color: #ffffff;

    font-size: 0.78rem;

    font-weight: 700;

    line-height: 1.3;
}


.coverage-location small {
    display: block;

    margin-top: 3px;

    color: #777777;

    font-size: 0.6rem;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


/* =========================================================
   LEFT LIST BASE
========================================================= */

.coverage-location-base > i {
    color: #19b6ff;
}


.base-label {
    display: inline-block;

    margin-top: 4px;

    color: #19b6ff;

    font-size: 0.53rem;

    font-weight: 800;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


/* =========================================================
   EMPTY
========================================================= */

.coverage-empty {
    grid-column: 1 / -1;

    margin: 0;

    color: #666666;

    font-size: 0.73rem;
}


/* =========================================================
   BOTTOM NOTE
========================================================= */

.coverage-note {
    flex-shrink: 0;

    min-height: 68px;

    padding: 17px 24px;

    display: flex;

    align-items: center;

    gap: 10px;

    background: #090909;

    border-top: 1px solid #292929;
}


.coverage-note i {
    flex-shrink: 0;

    color: #ffffff;

    font-size: 1rem;
}


.coverage-note p {
    margin: 0;

    color: #929292;

    font-size: 0.72rem;

    line-height: 1.5;
}


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

.static-map-card {
    min-width: 0;

    height: var(--areas-coverage-height);

    padding: 16px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: #0a0a0a;

    border: 1px solid #343434;

    border-radius: 4px;
}


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

.static-map {
    position: relative;

    flex: 1;

    min-height: 0;

    width: 100%;

    overflow: hidden;

    background: #050505;

    border: 1px solid #282828;
}


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

.static-map-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: fill;

    user-select: none;

    pointer-events: none;
}


/* =========================================================
   MAP PIN LAYER
========================================================= */

.map-pins-layer {
    position: absolute;

    inset: 0;

    z-index: 3;

    pointer-events: none;
}


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

.map-marker {
    position: absolute;

    z-index: 4;

    display: flex;

    flex-direction: column;

    align-items: center;

    transform:
        translate(
            -50%,
            -100%
        );

    pointer-events: none;
}


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

.map-pin-icon {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    line-height: 1;
}


/*
   All actual pins on the map are red.
*/

.map-pin-icon i {
    color: #ee3030;

    font-size: 1.7rem;

    line-height: 1;

    filter:
        drop-shadow(
            0
            3px
            4px
            rgba(0, 0, 0, 0.9)
        );
}


/* =========================================================
   BASE PIN
========================================================= */

.map-marker-base .map-pin-icon i {
    color: #ff2020;
}


/* =========================================================
   SERVICE POINT PIN
========================================================= */

.map-marker-service .map-pin-icon i {
    color: #ee3030;
}


/* =========================================================
   SURROUNDING PIN
========================================================= */

.map-marker-surrounding .map-pin-icon i {
    color: #ee3030;
}


/* =========================================================
   LOCATION LABEL
========================================================= */

.map-marker-label {
    position: absolute;

    top: calc(100% + 4px);

    left: 50%;

    min-width: max-content;

    padding: 4px 6px;

    display: flex;

    align-items: center;

    gap: 4px;

    background: rgba(5, 5, 5, 0.94);

    border: 1px solid #565656;

    border-radius: 1px;

    color: #ffffff;

    transform:
        translateX(-50%);

    white-space: nowrap;

    box-shadow:
        0
        3px
        10px
        rgba(0, 0, 0, 0.65);
}


/* =========================================================
   LOCATION NAME
========================================================= */

.map-location-name {
    color: #ffffff;

    font-size: 0.58rem;

    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   BASE TAG
========================================================= */

.map-base-tag {
    color: #17b8ff;

    font-size: 0.45rem;

    font-weight: 900;

    letter-spacing: 0.5px;

    line-height: 1;

    text-transform: uppercase;
}


/* =========================================================
   BASE LABEL BORDER
========================================================= */

.map-marker-base .map-marker-label {
    border-color: #17b8ff;
}


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

.map-legend {
    flex-shrink: 0;

    min-height: 55px;

    padding:
        14px
        5px
        0;

    display: flex;

    align-items: center;

    gap: 25px;

    flex-wrap: wrap;
}


.legend-item {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #cccccc;

    font-size: 0.72rem;
}


.legend-item i {
    font-size: 1.05rem;
}


.legend-base {
    color: #17b8ff;
}


.legend-service {
    color: #ffffff;
}


.legend-surrounding {
    color: #8a8a8a;
}


/* =========================================================
   FINAL CTA
========================================================= */

.areas-cta {
    min-height: 130px;

    margin-top: 16px;

    padding: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    background:
        linear-gradient(
            110deg,
            #0d0d0d,
            #151515
        );

    border: 1px solid #343434;

    border-radius: 4px;
}


/* =========================================================
   CTA COPY
========================================================= */

.areas-cta-copy > p {
    margin: 0 0 5px;

    color: #777777;

    font-size: 0.6rem;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


.areas-cta-copy h2 {
    margin: 0 0 4px;

    color: #ffffff;

    font-size: 1.5rem;

    font-weight: 800;

    line-height: 1.2;

    text-transform: uppercase;
}


.areas-cta-copy > span {
    color: #8e8e8e;

    font-size: 0.8rem;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.areas-quote-button {
    flex-shrink: 0;

    min-width: 205px;
    min-height: 52px;

    padding: 13px 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    background: #ffffff;

    border: 1px solid #ffffff;

    border-radius: 2px;

    color: #080808;

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


.areas-quote-button:hover {
    background: #ffffff;

    border-color: #ffffff;

    color: #080808;
}


/* =========================================================
   SMALL DESKTOP
========================================================= */

@media (max-width: 1200px) {

    :root {
        --areas-coverage-height: 600px;
    }


    .areas-main {
        grid-template-columns:
            330px
            minmax(0, 1fr);
    }


    .coverage-scroll {
        padding:
            20px
            14px
            15px
            18px;
    }


    .coverage-list {
        grid-template-columns: 1fr;
    }


    .map-location-name {
        font-size: 0.52rem;
    }

}


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

@media (max-width: 950px) {

    :root {
        --areas-coverage-height: 560px;
    }


    .areas-main {
        grid-template-columns: 1fr;
    }


    .coverage-list {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    :root {
        --areas-coverage-height: 500px;
    }


    .areas-page {
        padding:
            25px
            0
            50px;
    }


    .areas-container {
        width: 92%;
    }


    .areas-heading {
        padding-bottom: 25px;
    }


    .areas-heading h1 {
        font-size: 2.5rem;
    }


    .areas-heading-description {
        font-size: 0.82rem;
    }


    /* -------------------------
       AREA LIST
    ------------------------- */

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


    .coverage-scroll {
        padding: 18px 14px;
    }


    .coverage-note {
        padding: 14px 17px;
    }


    /* -------------------------
       MAP
    ------------------------- */

    .static-map-card {
        padding: 8px;
    }


    .map-pin-icon i {
        font-size: 1.25rem;
    }


    .map-marker-label {
        padding: 3px 4px;
    }


    .map-location-name {
        font-size: 0.43rem;
    }


    .map-base-tag {
        font-size: 0.33rem;
    }


    .map-legend {
        min-height: 50px;

        gap: 18px;
    }


    .legend-item {
        font-size: 0.62rem;
    }


    /* -------------------------
       CTA
    ------------------------- */

    .areas-cta {
        min-height: auto;

        padding: 22px;

        align-items: stretch;

        flex-direction: column;
    }


    .areas-quote-button {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    :root {
        --areas-coverage-height: 470px;
    }


    .areas-heading h1 {
        font-size: 2.1rem;
    }


    .coverage-list {
        grid-template-columns: 1fr;
    }


    .coverage-group-heading h2 {
        font-size: 0.9rem;
    }


    .map-pin-icon i {
        font-size: 1.05rem;
    }


    .map-location-name {
        font-size: 0.37rem;
    }


    .map-base-tag {
        font-size: 0.29rem;
    }


    .areas-cta-copy h2 {
        font-size: 1.2rem;
    }

}