body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
div.showcasePreview {
  display: block;
  width: 100%;
  height: calc(100vh - 100px);
  border-bottom: 1px solid #ddd;
}
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100vh;
    margin-top: 0;
}
.showcasePreview #map {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: calc(100vh - 100px);
    margin-top: 0;
}
#logo {
    position: absolute;
    bottom: 25px;
    right: 10px;
    z-index: 1000;
}
.showcasePreview #logo {
    position: absolute;
    top: calc(100vh - 155px);
    bottom: auto;
    right: 14px;
    z-index: 2;
}
#logo img {
    width: 200px;
    height: auto;
}
.controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 10px;
    z-index: 1;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.showcasePreview .controls {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
}
.controls span {        
    padding: 0 5px;
    font-weight: normal;
    font-size: 14px;
}
.showcasePreview .legend {
    position: absolute;
    top: calc(100vh - 350px);
    bottom: auto;
    left: 10px;
    z-index: 1;
    width: 210px;
    height: 200px;
    padding: 10px 0;
    background: linear-gradient(to right, rgba(249, 249, 249, 0.6) 0%, #f7f7f7 40%, rgba(249, 249, 249, 0.4) 100%);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}
.legend .listing div span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}
.controls button {
    display: inline-block;
    width: auto;
    max-width: fit-content;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 3px;
}
.controls button {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-bottom: 1px solid #dbc9c9;
    background: linear-gradient(to bottom, #f9f9f9 0%, #f7f7f7 40%, #eaeaea 100%);
    cursor: pointer;
    border-radius: 4px;
    color: #454545;
}
.controls button:hover,
.controls button:target {
    border: 1px solid #d9d9d9;
    border-bottom: 1px solid #dbc9c9;
    background: #ebe7e7;
}
.controls button.selected,
.controls button.selected:hover,
.controls button.selected:target {
    background: #67adf5;
    border: 1px solid #6aa5e1;
    border-bottom: 1px solid #4f8ac7;
    color: #fff;
    text-shadow: 2px 1px 2px #6aa5e1;
}
.legend {
    position: absolute;
    bottom: 30px;
    left: 10px;
    z-index: 1;    
    width: 210px;
    height: 190px;
    padding: 10px 0;
    background: linear-gradient(to right, rgba(249, 249, 249, 0.6) 0%, #f7f7f7 40%, rgba(249, 249, 249, 0.4) 100%);
    backdrop-filter: blur(10px);    
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}
#legend.legend div {
    display: block;
    height: 13px;
    margin: 0 5px 4px;
    padding: 5px;
    vertical-align: top;
}
.legend p {
    margin: 0 0 10px;
    font-weight: bold;
}
.legend p b {
    display: block;
    margin: 0 0 -5px 0;
    padding: 0 10px 0 10px;
    font-size: 14px;
    font-weight: normal;
}
.legend .listing div {
    display: flex;
    align-items: center;
    margin-bottom: 4px;    
}
.legend span.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 100px;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.legend .listing div {
    display: flex;
    margin-bottom: 5px;
    padding: 3px;
    align-items: center;
    font-size: 13px;
}
#legend.legend div em {
    display: inline-block;
    margin-right: 6px;
    font-size: 13px;
    font-style: normal;
    vertical-align: top;
}
#legend.legend div i {
    float: right;
    display: inline-block;
    margin-left: auto;
    margin-right: 0;
    padding-top: 0;
    font-size: 13px;
    font-style: normal;
    color: #090909;
}
#legend.legend div.active {
    outline: none;
    height: 18px;
    margin: 0 5px 0;
    padding: 5px;
    background: rgb(189 215 232 / 50%);
    border-radius: 4px;
    color: #333; 
}
.legend div.legend-reset {
    display: block;
    width: calc(100% - 30px);
    height: 18px !important;
    margin: 10px !important;
    padding: 4px 0;
    border: none;
    background: #f3f3f3;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #111;
    text-decoration: none;
    text-align: center;    
    cursor: pointer;
}
.legend div.legend-reset:hover,
.legend div.legend-reset:target {
    background: #3399CC;
    border: 1px solid #3399CC;
    color: #fff;
    text-shadow: none;
    cursor: pointer;    
}
.legend .active {
    outline: 2px solid #000;
}
.controls {
position: fixed;
    top: 10px;
    left: auto;
    right: 80px;
    z-index: 1;
    display: flex;
    width: fit-content;
    max-width: auto;
    padding: 10px;
    border-radius: 4px;
    background: linear-gradient(to right, rgba(249, 249, 249, 0.6) 0%, #f7f7f7 40%, rgba(249, 249, 249, 0.4) 100%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}
.mapboxgl-popup-content {
    position: relative;
    width: 220px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}
.mapboxgl-popup-content h2 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    text-transform: capitalize;
}
.mapboxgl-popup-close-button {
    position: absolute;
    right: 3px;
    top: 3px;
    z-index: 10;    
    background-color: transparent;
    border: 0;
    border-radius: 0 3px 0 0;
    font-size: 20px;
    cursor: pointer;
}
.mapboxgl-popup-close-button:hover,
.mapboxgl-popup-close-button:target {
    background: transparent;
    color: #3399CC;
}
.mapboxgl-popup-content p {
    margin: 0 0 5px 0;
    font-size: 14px;
}
.mapboxgl-popup-content p span {
    color: #666;
}
.legend .active {
    outline: 2px solid rgba(0,0,0,.35);
    border-radius: 6px;
}
.legend div { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer;
}
.legend .color-dot {
    display: inline-block;    
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 0, 0, .25);
}
.legend em { 
    font-style: normal; 
}
.legend i { 
    font-style: normal; 
    opacity: .75; 
}
.mapboxgl-ctrl-bottom-right {
    zoom: 60%;
    opacity: 0.6;
}
a.mapboxgl-ctrl-logo {
    opacity: 0.5;
}
@media (max-width:720px) {
    .controls span {
        display: none;
    }
}