body { 
    margin:0;
    padding:0;
}
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;
}
.legend {
    position: absolute;
    bottom: 40px;
    left: 10px;    
    padding: 10px;
    background: white;    
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);    
    font-family: Arial, sans-serif;
}
.legend .legend-title {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
}
.legend div {
    display: flex;
    margin-bottom: 5px;
    padding: 3px;
    align-items: center;
    font-size: 13px;
}
.legend span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}
#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;
    z-index: 2;    
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    font-family: sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.controls label {
    margin-right: 8px;
}
.legend {
    position: absolute;
    bottom: 30px; 
    left: 10px; 
    background: #fff; 
    padding: 8px; 
    border-radius: 4px; 
    font-family: sans-serif; 
    box-shadow: 0 1px 4px rgba(0,0,0,0.3); 
}
.showcasePreview .legend {
    position: absolute;
    top: calc(100vh - 360px);
    bottom: auto;
    left: 10px;
    z-index: 2;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    font-family: sans-serif;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.legend-title {
    font-weight: bold;
    margin-bottom: 4px;
}
.legend-item {
    cursor: pointer;
    margin-bottom: 4px;
    display: flex;
    align-items: center; 
}
.legend-item.active {
    outline: none;
    background: #f7f7f7;
    color: #333;
}
.legend-color {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 6px;
}
.legend-reset {
    color: #0074D9;
    margin-top: 8px;
    text-decoration: underline;
    font-size: 0.9em;
    cursor: pointer; 
}
.legend div.legend-reset {
    display: block;
    width: 100%;
    padding: 4px 0;    
    border: none;
    background: #f3f3f3;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #666;
    color: #111;
    text-decoration: none;    
}
.legend div.legend-reset:hover,
.legend div.legend-reset:target {
    background: #e8e8e8;
    color: #3399CC;
    text-shadow: 0 1px 2px #fff;
}
.mapboxgl-popup-content {
    width: 250px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    padding: 15px;
    pointer-events: auto;
    position: relative;
}
.mapboxgl-popup-content h2 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    text-transform: capitalize;    
}
.mapboxgl-popup-content p {
    margin: 0 0 5px 0;    
    font-size: 14px;
}
.mapboxgl-popup-content p span {
    color: #666;
}
.mapboxgl-popup-content p.density {
    margin-top: -3px;
}
.mapboxgl-popup-content p.density sup {
    position: relative;
    top: 1px;
}
.mapboxgl-popup-close-button {
     position: absolute;
    right: 3px;
    top: 3px;
    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-anchor-bottom .mapboxgl-popup-tip {
    position: relative;
    left: 8%;
    align-self: center;
    border-bottom: none;
    border-top-color: #fff;
}
.mapboxgl-ctrl-bottom-right {
    zoom: 60%;
    opacity: 0.6;
}
a.mapboxgl-ctrl-logo {
    opacity: 0.5;
}