body { position: absolute; top: 0; left:0; width: 100%; height: 100%;}

#r-map { position: absolute; top: 0; bottom: 0; width: 100%; height: 100%;}

#r-map-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    border-radius: 16px;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-family: 'Roboto Slab', serif;
}

.r-map-legend {
    background-color: #fff; /* previous blue color: #11a1dc */
    top: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    position: absolute;
    left: 22px;
    z-index: 1311;
    width: 250px;
    height: auto;
    padding-top: 5px;
    padding-left: 11px;
    padding-right: 12px;
    padding-bottom: 40px;
    font-family: 'Roboto Slab', serif;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: normal;
    line-height: normal;
    color: #fff;
    font-weight: normal;
}

.r-map-legend h4 {
    font-size: 12px;
    font-weight: 500;
    height: 20px;
    margin: 0 6px 9px;
    text-align: left;
    width: 300px;
}

.r-map-legend div span {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin-right: 5px;
    width: 10px;
}

#r-map-bar{
    margin-top: 0px;
    font-size: 14px;
}

.checkbox-container {
    display: inline-flex;
    flex-direction: row;
    /* align-items: center; */
}

.checkbox-container p{
	color: #2f6095;
    font-size: 1rem;
    min-width: 140px;
    margin-top: 8px;
    margin-left: 4px;
}

.circle-container {
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    background-color: white;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-top: 14px;
    min-width: 20px;
    opacity: .9;
    /* border: solid 1px #2f6095; */
}

#circle-container {
    position: relative;
    align-self: center;
    width: 30px;
    height: 35px;     
}

#large-circle {
    -moz-border-radius: 18px;
    -webkit-border-radius: 18px;
    border-radius: 18px;
    background-color: white;
    width: 35px;
    height: 35px;
    opacity: 1;
}
 
#mid-circle {
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
    border-radius: 16px;
    background-color: #2f6095;
    width: 25px;
    height: 25px;
    margin: 5px;
    transform: translateY(5px);
    opacity: 1;
    border: solid 5px #5b87cb;
 }
 
input:checked+.checkbox {
	background-color: #2f6095 !important;
}
.mr6 {
	margin-top: 12px;
}
.r-map-filter-title {
    flex-direction: column;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 5px;
    padding: 5px;
	color: #2f6095;
}

.r-map-popup {
    padding-top: 30px;
    padding-left: 12px;
    padding-right: 13px;
    padding-bottom: 30px;
    background-color: #11a1dc;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    width: fit-content;
    font-family: 'Roboto Slab', serif;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: normal;
    opacity: .95;
    font-weight: normal;
}

.r-map-popup h3{
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.r-map-popup a{
    padding: 2px 20px;
    margin-top: 20px;
    color: white;
    max-width: 255px;
    cursor: pointer;
    pointer-events: unset;
    font-size: 0.875rem;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    text-decoration: underline;
}

.r-map-popup a:hover {
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
    transition: 0.7s;
}


@media only screen and (max-device-width: 640px) {
    .r-map-legend { display: none; }
    .mapboxgl-ctrl-top-right { left: 0; margin: 10px 0 0 10px; }
    .mapboxgl-ctrl-top-right .mapboxgl-ctrl.mapboxgl-ctrl-group { float: left; }
    .mapboxgl-ctrl-top-right .mapboxgl-ctrl-geocoder.mapboxgl-ctrl { display: none !important; }
}

@media only screen and (max-device-width: 480px)
and (orientation: portrait) {
    .r-map-legend {
        left: 0px;
        top: unset;
        bottom: 0px;
        height: fit-content;
        width: 100%;
        overflow-y: scroll;
        padding-bottom: 24px;
        max-height: 200px;
        display: none;
    }

    .r-map-filter-title {
        margin-top: 0px;
    }
}
 
@media screen and (max-device-width: 740px)
and (orientation: landscape) {
    .r-map-legend {
        left: 0px;
        top: 0px;
        height: 100%;
        overflow-y: scroll;
    }

    .r-map-filter-title {
        margin-top: 0px;
    }
}

.mapboxgl-popup {
   z-index: 10000; 
}

.mapboxgl-popup-close-button {
    display: none;
}

.mapboxgl-popup-content {
    width: fit-content;
    text-align: center;
    background: unset !important;
    box-shadow: unset !important;
}

.mapboxgl-popup-tip {
    display: none !important;
}

.mapboxgl-ctrl-geocoder--input {
    padding: 6px 30px;
    margin-left: 5px;
    border-color: #f60;
}