.map_container > .leafmap {
    height: 100%;
}
.map_control {
    background-color: #fff;
    padding: 0.5rem;
    color: black;
}

/* ********** MapTitle ********** */
.map_control.map_title {
    min-width: 15.625rem;

    .title {
        font-size: 1.125rem;
    }
    .subtitle {
        font-size: 0.75rem;
        color: dimgray;
    }
    .subtitle_value {

    }
}

/* ********** DataSlider **********  */
.map_control.map_data_slider {
    .slider_title {
        font-size: 1rem;
    }
    .slider_range {
        font-size: 0.75rem;
        color: dimgray;
    }
    .data_slider {
        width: 10.9375rem;
        height: 0.3125rem;
        margin: 0.625rem 0.3125rem;

        .ui-slider-range {
            background-color: #214E75;
        }
        .ui-slider-handle {
            background-color: white;
            border-color: #214E75;
            border-radius: 50%;
            border-width: 3px;
            width: 0.5rem;
            height: 0.5rem;
        }
    }
}

/* ********** DataDropdown **********  */
.map_control.map_data_dropdown {
    .dropdown_title {
        font-size: 1rem;
    }
}


/* ********** DataLegend ********** */
.map_control.map_legend {
    display: flex;
    flex-direction: column;

    .legend_values {
        display: flex;
        justify-content: space-between;
    }
    .legend_colours {
        display: flex;
    }
    .colour_block {
        width: 1.25rem;
        height: 1.25rem;
        box-sizing: border-box;
    }
    .colour_block:hover {
        border: 1px solid black;
        .colour_block_range {
            visibility: visible;
        }
    }
    .colour_block_range {
        visibility: hidden;
        position: absolute;
        top: -2.5rem;
        right: -2px;
        z-index: 1;
        white-space: nowrap;

        padding: 0.25rem;
        border: 2px solid rgba(40,40,40,0.4);
        border-radius: 0.25rem;
        background-color: #fff;
        box-shadow: none;
    }
}

/* ********** ValuePercentToggle ********** */
.map_control.map_value_percent_toggle {

    padding: 0;

    label {
        display: block;
        height: 1.875rem;
        width: 1.875rem;
    }
    label:has(input:checked) {
        background-color: #214E75;
        color: white;
    }
    label:not(:has(input:checked)):hover {
        background-color: #f4f4f4;
        cursor: pointer;
    }

    i {
        display: inline-block;
        width: 100%;
        text-align: center;
        line-height: 1.875rem;
        font-size: 1.5em;
    }

    input {
        display: none;
    }
}

/* ********** FullscreenButton ********** */
.map_control.map_fullscreen {

    padding: 0;
    display: block;
    height: 1.875rem;
    width: 1.875rem;

    :hover {
        background-color: #f4f4f4;
        cursor: pointer;
    }

    i {
        display: inline-block;
        width: 100%;
        text-align: center;
        line-height: 1.875rem;
        font-size: 1.5em;
    }

}

/* ********** PointInfoWindow ********** */
.map_control.map_point_info {
    min-width: 15.625rem;
    max-width: 25rem;

    .point_header {
        margin: 0 0 0.5rem 0;
        display: flex;
        justify-content: space-between;
        font-weight: normal;
        font-size: 1rem;

        .close_point_info {
            cursor: pointer;
            margin-left: 1.5rem;
        }
    }

    .point_body {
        font-size: 0.8rem;
    }
}
/* Leaflet Control Elements that can be opened / closed */
.leaflet-control.closeable {
    transition: transform 0.7s;
}
.leaflet-control.closeable.closed {
    transform: translateX(-32rem);
}
/* Adds hover highlight effect to marker icons */
.leafmap img.leaflet-marker-icon:hover {
    filter: brightness(150%);
}