body, html { 
	width: 100%;
	height: 100%;
	margin: 0; 
	padding: 0; 
}
* {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5em;
}
main {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
}
footer {
    position: relative;
}
@media (min-width: 768px) {
  section.geography {
        position: relative;
        top: 58px;
        left: 0;
        width: 100%;
        height: calc(100vh - 58px);
  }
}
@media (max-width: 768px) {
    main {
        position: relative;
        display: block;
        width: 100%;
        min-height: calc(100vh - 69px);
        height: auto;
        overflow: hidden;
    }     
    section.geography {
        position: relative;
        top: 50px;
        left: 0;
        width: 100%;
        height: calc(100vh - 120px);
    }
}
#map { 
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}
#filters {
  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 5;
  display: flex;
  width: calc(100% - 160px);
  height: 50px;
  border-radius: 4px;
  align-items: center;
  gap: 1rem;
  padding: 0 10px;
  overflow-x: auto;
  background-color: rgb(255 255 255 / 85%);
  backdrop-filter: blur(10px);
  transition: top 0.3s ease;
}
#filters.hidden {
    display: none;
}

.filter-btn {
  cursor: pointer;
  padding: 6px 12px;
  background: transparent;
  border-radius: 4px;
  font-weight: 400;
  text-shadow: 0 1px 2px #fff;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn:target,
.toggle-filters:hover,
.toggle-filters:target {
  background: #5da1f8;
  color: #efefef;
  text-shadow: none;
  cursor: pointer;  
}

.filter-btn.active {
  background: #3c8ef8;
  color: white;
  text-shadow: none;
}

/* mobile responsive */
@media (max-width: 768px) {
  .filters-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0;
  }

    button.openPanel {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 10;
        width: 160px;
        height: 38px;
        background: #efefef;
        border: 1px solid #efefef;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);  
        cursor: pointer;           
    }  

  .toggle-filters {
        position: absolute;
        bottom: 20px;
        left: calc(50% - 52.5px);
        z-index: 11;
        height: 38px;
        padding: 8px 16px;
        background-color: rgba(255, 255, 255, 0.90);
        border-radius: 100px;
        box-shadow: none;
        color: #111;
        border: 1px solid #fff;
        font-size: 14px;
        cursor: pointer;
  }
  .toggle-filters:hover,
  .toggle-filters:target {
        border: 1px solid #ececec;
        color: #ececec;
  }

  div#filters {
        bottom: 0;
        top: auto;
        left: 0;
        display: block;        
        width: calc(100% - 20px);
        min-height: 40px;
        height: fit-content;
        padding: 10px 10px 65px 10px;
        border-radius: 0;
        vertical-align: top;

  }

  .filter-btn {
        flex-shrink: 0;
        padding: 4px 8px;
        font-size: 14px;
  }

  .hidden {
    display: none;
  }
  .filter-btn.active {
      width: fit-content;
      background: #3c8ef8;
      color: white;
      text-shadow: none;
  }
  .filter-btn:hover, 
  .filter-btn:target, 
  .toggle-filters:hover, 
  .toggle-filters:target {
      width: fit-content;
  }
  .region {
      display: none;
      position: absolute;
      z-index: 10;
      top: 60px;
      left: 10px;
      width: 220px;
      height: fit-content;
      padding: 15px;
      background: white;
      border: none;
      border-radius: 4px;
      background-color: rgb(255 255 255 / 85%);
      backdrop-filter: blur(10px);
  }
}
.filter-btn:first-letter {
	text-transform: uppercase;
}
.mapboxgl-marker.mapboxgl-marker-anchor-center {
    cursor: pointer;
}
a.mapboxgl-ctrl-logo {
    opacity: 0.5;
}
#logo {
    position: absolute;
    bottom: 25px;
    right: 10px;
    z-index: 1;
    opacity: 0.9;
}
#logo img {
    position: relative;
    z-index: 1;    
    width: 160px;
}
.mapboxgl-ctrl-attrib-inner {
    zoom: 70%;
}
.mapboxgl-popup-content {
    position: relative;	
    width: 320px;
    padding: 15px;	
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    pointer-events: auto;
    box-sizing: border-box;    
}
.mapboxgl-popup-close-button {
    position: absolute;
    right: 1px;
    top: 3px;
    background-color: transparent;
    border: 0;
    border-radius: 0 3px 0 0;
    cursor: pointer;
    font-size: 20px;
}
.mapboxgl-popup-close-button:hover,
.mapboxgl-popup-close-button:target,
.mapboxgl-popup-close-button:focus {
	outline: none;
	border: none;
	background: transparent;
}
.mapboxgl-popup-close-button:hover,
.mapboxgl-popup-close-button:target {
	color: #3c8ef8;
}
.custom-marker {
  transition: background-image 0.2s ease;
}
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    left: 50% !important;    
    margin-left: 20px;
    width: 1px;
    transform: translateX(-50%);
}
.mapboxgl-popup-content h2 {
    width: calc(100% - 10px);
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}
.mapboxgl-popup-content p {
    margin: 10px 0;
	font-weight: 300;
    color: #000;	
}
.mapboxgl-popup-content p span {
	font-weight: 300;	
    color: #222;
}
.mapboxgl-popup-content p.button {
    margin: 0;
    padding: 0;
}
.mapboxgl-popup-content p.button a {
    display: block;
    width: 80px;
    margin: 15px 0 0 0;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f3f3f3;	
    border: 1px solid #cbcbcb;
    color: #111;
    text-decoration: none;
}
.mapboxgl-popup-content p.button a:hover,
.mapboxgl-popup-content p.button a:target,
button.openPanel:hover,
button.openPanel:target,
.region button.closePanel:hover,
.region button.closePanel:target {
	background: #3c8ef8;
	border: 1px solid #3c8ef8;
	color: #fff;
}
.region {
    display: none;
    position: absolute;
    z-index: 10;
    top: 10px;
    left: 10px;
    width: 220px;
    height: fit-content;
    padding: 15px;
    background: white;
    border: none;
    border-radius: 8px;
    background-color: rgb(255 255 255 / 85%);
    backdrop-filter: blur(10px);
} 
.region h2, .region h3 {
  margin: 5px 0;
}
.region h2 {
    margin: -5px 0 10px 0;
    padding: 0;
	font-size: 16px;
}
.region h3 {
    margin: 5px 0 10px 0;
    padding: 0;
    font-weight: 400;
}
.region ul {
    margin: 5px 0 10px;
    padding: 0;	
    list-style: none;
}
.region ul li {
  margin-bottom: 5px;
}
.region button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 5px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    text-align: left;
    cursor: pointer;
}
.region button.closePanel {
    margin-top: 15px;    
    padding: 6px 0;
    background: #f7f7f7;
    border-radius: 4px;
    text-align: center;
    color: #4c4c4c;
}
.region button:hover {
  background: transparent;
  color: #3c8ef8
}
@media (min-width:768px) {
    div.filters-wrapper {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 10;
        display: block !important;
        width: calc(100% - 40px);
        height: 40px;
    }
    div.filters-wrapper div#filters.hidden {
        top: 0;
        left: 0;
        display: block !important;
        width: fit-content;
        height: 34px;
        padding: 10px;
    }
    div.filter-btn {
        display: inline-block;
        width: fit-content;
        margin: 0 5px 0 0;
        cursor: pointer;   
    }
    button.openPanel {
        position: absolute;
        top: 75px;
        left: 10px;
        z-index: 10;
        width: 200px;
        height: 38px;
        background: #efefef;
        border: 1px solid #efefef;
        border-radius: 4px;
        cursor: pointer;      
    }
    button.toggle-filters {
        display: none;
    }
    div.region {
        display: none;
        position: absolute;
        z-index: 10;
        top: 75px;
        left: 10px;
        width: 220px;
        height: fit-content;
        padding: 15px;
        background: white;
        border: none;
        border-radius: 4px;
        background-color: rgb(255 255 255 / 85%);
        backdrop-filter: blur(10px);
    }
}