:root {
    --main-bg-color: #263287;
    --text-color: #ffffff;
    --border-color: #ccc;
}

body {
	margin: 0;
	padding: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}
.sr-only-focusable:active, .sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal
}

.map_wrapper {
    flex: 1;
    padding-bottom: 4rem;
    position: relative;
    top: 60px;
    left: -90px
}
.map_wrapper.drop_shadow {
    z-index: 10;
    box-shadow: none;
    width: auto;
    height: auto;
    bottom: -250px;
    left: -200px
}
.map {
    height: 550px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .2)
}

@media (max-width: 992px) {
    /*.map_wrapper {
        flex: 1;
        padding-bottom: 3rem;
        position: relative;
        top: 60px;
        left: -60px;
    }*/
}


#map {
    width: 100%;
	height: 100dvh;
	container-type: inline-size;
}


/* popup layout */
.info-window {
    width: 100%;
    min-width: 250px !important;
    max-width: 350px;
}
.info-window-header {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    padding: 15px;
}
.info-window-header h2, .info-window-header h3 {
    margin: 0;
    font-family: Roboto Condensed, sans-serif;
    color: var(--text-color);
}
.info-window-header h2 {
    font-weight: normal;
    line-height: 24px;
    font-size: 16px;
}
.info-window-header h3 {
    font-weight: bold;
    font-size: 20px;
}
.info-window-image {
    width: 100%;
    height: auto;
    display: block;
}
.info-window-desc {
    padding: 15px;
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: Cabin, sans-serif;
    line-height: 1.44444;
}
.info-window-body {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.info-window-footer {
    display: flex;
    align-items: center;
    padding: 15px 15px 0 28px;
    background-image: url(/maps/zero-emissions/bases/images/map-technology-icon-14x24.png);
    background-repeat: no-repeat;
    background-position: 0 16px;
    min-height: 30px;
}
.info-window-bottom img {
    height: 24px;
    padding-right: 16px;
}
.mapboxgl-popup {
	width: 100%;
    min-width: 250px !important;
    max-width: 350px;
    z-index: 20px;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    -webkit-filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .4));
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .4));
    height: 12px;
    left: 50%;
    position: absolute;
    bottom: -11px;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 25px;
    border: none;
    z-index: 20px;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip::after {
    background: #fff;
    -webkit-clip-path: polygon(0 0, 50% 100%, 100% 0);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    content: "";
    height: 12px;
    left: 0;
    position: absolute;
    top: 0;
    width: 25px
}
.mapboxgl-popup-content {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .4);
    padding: 0;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}
.mapboxgl-popup-close-button {
    background-color: transparent;
    border: 0;
    border-radius: 0 3px 0 0;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    height: 28px;
    width: 28px;
    font-size: 24px;
    color: #fff;
}
#legend {
    position: absolute;
    top: 60px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 10px;
    font-family: Roboto Condensed, sans-serif;
    font-size: 16px;
    z-index: 1;
    max-width: 220px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
	display: none;
}

@container (width > 578px) {
	#legend {
        display: block;
    }
}
/*@media (max-width: 992px) {
    #legend {
        display: none;
    }
}*/
#legend h3 {
    margin: 0 0 5px 0;
    font-weight: bold;
}
.legend-item {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}
.legend-item + .legend-item {
    margin-top: 5px;
}
.legend-item label {
    display: block;
    margin-bottom: 3px;
    position: relative;
}
.legend-item label {
    padding-left: 24px;
}
.legend-item label::before {
    content: "";
    background-position: -3px;
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    overflow: hidden;
    /*top: 10px;*/
	top: 50%;
    left: 0;
    height: 16px;
    width: 24px;
    transform: translateY(-50%);
}
.legend-item.existing-bases label::before {
    background-image: url(/maps/zero-emissions/bases/images/existing-base-legend-icon.png);
}
.legend-item.future-bases label::before {
    background-image: url(/maps/zero-emissions/bases/images/future-base-legend-icon.png);
}
.legend-item.opp-chargers label::before {
    background-image: url(/maps/zero-emissions/bases/images/opp-charger-legend-icon.png);
}
/* Hide the compass control on larger screens */
@media (min-width: 768px) {
    .mapboxgl-ctrl-compass {
        display: none !important;
    }
}
#map-style-menu {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    border-radius: 4px;
    overflow: hidden;
    font-family: Roboto Condensed, sans-serif;
    font-size: 16px;
    display: flex;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 4px -1px;
}
#map-style-menu input[type="radio"] {
    display: none;
}
#map-style-menu label {
    display: inline-block;
    padding: 10px 20px;
	margin: 0;
    font-weight: 400;
    background-color: #fff;
    cursor: pointer;
}
#map-style-menu input[type="radio"]:checked + label {
    background-color: #e8e8e8; /* Active state background color */
    color: #000; /* Active state text color */
    font-weight: 800;
}

.mapboxgl-ctrl-fullscreen {
    display: block !important; /* Ensure the full-screen button is always visible */
    /*position: fixed; /* Position the button on top of other content */
    /*top: 10px; /* Adjust top position as needed */
    /*right: 10px; /* Adjust right position as needed */
    z-index: 1000; /* Ensure the button is above other elements */
}