/* =========================================
   MAP HEADER
========================================= */

.map-header {

    padding: 70px 8%;

    background:
        linear-gradient(
            90deg,
            rgba(10, 38, 28, 0.50) 0%,
            rgba(10, 38, 28, 0.28) 50%,
            rgba(10, 38, 28, 0.12) 100%
        ),
        url("../assets/images/defaults/home.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    color: white;
}


.map-header-content {

    max-width: 1200px;

    margin: auto;
}


.map-header-content > p {

    margin-bottom: 10px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.35);
}


.map-header h1 {

    margin-bottom: 16px;

    color: #ffffff;

    font-size: 45px;

    line-height: 1.2;

    text-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.40);
}


.map-header span {

    display: block;

    max-width: 700px;

    color:
        rgba(
            255,
            255,
            255,
            0.95
        );

    line-height: 1.7;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.30);
}

/* =========================================
   MAP PAGE
========================================= */

.map-page {
    padding: 45px 7% 70px;

    background-color: #f6f8f7;
}


/* =========================================
   FILTER PANEL
========================================= */

.map-filter-panel {
    max-width: 1450px;

    margin: 0 auto 25px;

    padding: 28px;

    background-color: white;

    border-radius: 15px;

    box-shadow:
        0 5px 20px
        rgba(
            0,
            0,
            0,
            0.06
        );
}


.filter-heading {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}


.filter-label {
    margin-bottom: 5px;

    color: #198754;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}


.filter-heading h2 {
    color: #1f2e26;

    font-size: 26px;
}


.result-stat {
    min-width: 105px;

    padding: 12px 18px;

    text-align: center;

    background-color: #edf7f1;

    border-radius: 10px;
}


.result-stat strong {
    display: block;

    color: #167249;

    font-size: 25px;
}


.result-stat span {
    color: #65726b;

    font-size: 12px;
}


/* =========================================
   FILTER
========================================= */

.filter-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 16px;

    margin-top: 16px;
}


.filter-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.filter-group label {
    color: #53615a;

    font-size: 13px;

    font-weight: 600;
}


.filter-group input,
.filter-group select {
    width: 100%;

    min-height: 45px;

    padding: 10px 12px;

    border:
        1px solid #d9e2dd;

    border-radius: 7px;

    background-color: white;

    color: #27352e;

    font-size: 14px;

    outline: none;
}


.filter-group input:focus,
.filter-group select:focus {
    border-color: #198754;
}


.full-filter {
    width: 100%;
}


.full-filter input {
    width: 100%;

    padding: 13px 15px;

    border:
        1px solid #d9e2dd;

    border-radius: 8px;

    font-size: 15px;
}


.button-group {
    justify-content: flex-end;
}


.reset-button {
    min-height: 45px;

    padding: 10px 18px;

    border: none;

    border-radius: 7px;

    background-color: #e9eeeb;

    color: #34443b;

    cursor: pointer;

    transition: 0.2s;
}


.reset-button:hover {
    background-color: #dce4df;
}


/* =========================================
   MAP
========================================= */

.map-container-section {
    position: relative;

    max-width: 1450px;

    margin: auto;
}


.main-map {
    width: 100%;

    height: 650px;

    border-radius: 16px;

    overflow: hidden;

    border:
        1px solid #dce5e0;

    box-shadow:
        0 6px 22px
        rgba(
            0,
            0,
            0,
            0.08
        );
}


/* =========================================
   LEGEND
========================================= */

.map-legend {
    position: absolute;

    right: 20px;

    bottom: 25px;

    z-index: 500;

    min-width: 170px;

    padding: 16px;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    border-radius: 10px;

    box-shadow:
        0 3px 15px
        rgba(
            0,
            0,
            0,
            0.15
        );
}


.map-legend strong {
    display: block;

    margin-bottom: 12px;

    color: #27352e;

    font-size: 13px;
}


.map-legend div {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 8px;

    color: #55625b;

    font-size: 12px;
}


.legend-dot {
    width: 11px;
    height: 11px;

    display: inline-block;

    border-radius: 50%;
}


.legend-dot.low {
    background-color: #2d9d60;
}


.legend-dot.medium {
    background-color: #e1a52b;
}


.legend-dot.high {
    background-color: #d75145;
}


.legend-dot.unknown {
    background-color: #7b8580;
}


/* =========================================
   MAP POPUP
========================================= */

.destination-popup {
    min-width: 220px;
}


.destination-popup h3 {
    margin-bottom: 6px;

    color: #1f3027;

    font-size: 16px;
}


.destination-popup p {
    margin-bottom: 5px;

    color: #59675f;

    font-size: 12px;
}


.popup-detail-button {
    width: 100%;

    margin-top: 10px;

    padding: 9px 12px;

    border: none;

    border-radius: 6px;

    background-color: #198754;

    color: white;

    cursor: pointer;
}


/* =========================================
   INFORMATION
========================================= */

.map-information {
    max-width: 1450px;

    margin: 30px auto 0;

    padding: 25px;

    background-color: white;

    border-radius: 12px;
}


.map-information h2 {
    margin-bottom: 10px;

    color: #24342b;

    font-size: 20px;
}


.map-information p {
    color: #65716a;

    line-height: 1.7;
}


/* =========================================
   NAV ACTIVE
========================================= */

.nav-menu a.active {
    color: #198754;

    font-weight: 700;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .filter-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .main-map {
        height: 560px;
    }

}


@media (max-width: 650px) {

    .map-header {
        padding:
            55px 6%;
    }


    .map-header h1 {
        font-size: 34px;
    }


    .map-page {
        padding:
            30px 5%
            55px;
    }


    .filter-heading {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .filter-grid {
        grid-template-columns:
            1fr;
    }


    .main-map {
        height: 500px;
    }


    .map-legend {
        position: static;

        margin-top: 15px;

        box-shadow: none;

        border:
            1px solid #dce5e0;
    }

}