#map {
  height: 650px;
  width: 100%;

  position: relative;
  background-color: #ffffff;
}

#map .mapboxgl-map {
  background-color: #ffffff;
}

/* Canvas element background (Mapbox GL draws into this). */
#map .mapboxgl-canvas {
  background-color: #ffffff;
}

.marker {
  display: block;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.geocoder {
  position: absolute;
  z-index: 1;
  width: 50%;
  left: 50%;
  margin-left: -25%;
  top: 20px;
}
.mapboxgl-ctrl-geocoder {
  min-width: 100%;
}
.filter-ctrl {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 400px;
}

.filter-ctrl input[type='text'] {
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  width: 100%;
  border: 0;
  background-color: #fff;
  height: 40px;
  margin: 0;
  color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* Mapbox Popup Styling - override max-width here or via --wb-mapbox-popup-max-width */
.mapboxgl-popup {
  z-index: 2;
  max-width: var(--wb-mapbox-popup-max-width, 400px);
  min-width: 350px;
}

.mapboxgl-popup-content {
  width: 100%;
  max-width: var(--wb-mapbox-popup-max-width, 400px);
  padding: 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mapboxgl-popup-close-button {
  font-size: 20px;
  color: #333;
  padding-top: 16px;
  padding-right: 24px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.mapboxgl-popup-close-button:hover {
  opacity: 1;
  background-color: transparent;
}

/* Location Popup Styling */
.location-popup-content {
  padding: 24px;
  background: #ffffff;
}

.location-popup-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

.location-popup-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.location-popup-description ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

.location-popup-description ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;

}

.location-popup-description ul li:before {
  content: "\f105";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #15436a;
}

/* Country Popup Styling */
.country-popup-content {
  padding: 24px;
  padding-top: 16px;
  background: #ffffff;
}

.country-popup-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

.content-projects {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  margin-top: 12px;
}

.content-projects ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.content-projects ul li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.content-projects ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #15436a;
  font-weight: bold;
}

.content-projects p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}
.percent-box {
  position: absolute;
  bottom: 10px;
  right: 20px;
  background: white;
  padding: 20px;
  padding-top: 0px;
}
.percent-box h3 {
  font-weight: bold;
}

.percent-box ul {
  list-style-type: none;
  list-style-image: none;
  margin-left: 0px;
  padding-left: 0px;
}
.percent-box ul span {
  width: 25px;
  height: 25px;
  display: inline-table;
}
.color-closed {
  background: #b3d0e3;
}
.color-open {
  background: #5191c3;
}
.content-projects .list-item {
  padding: 0.5rem 0rem 0.5rem 1rem;
  color: #00254F;
  font-size: 0.875rem;
  font-weight: 400;
  border: 0;
  position: relative;
}
.content-projects .list-item:before {
  content: '\f08e';
  font-family: 'Font Awesome 7 Free', 'FontAwesome', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  color: #60B6ED;
  position: absolute;
  left: 0rem;
  top: 50%;
  transform: translateY(-50%);
}

.map-mobile-details {
  display: none;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 16px;
  padding-bottom: 45px;
  border-radius: 8px;
  border: 1px solid #dfe6ee;
  background: #ffffff;
}

.map-mobile-details__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-mobile-details__title {
  margin: 0;
  font-size: 20px;
  color: #00254F;
}

.map-mobile-details__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #15436a;
  cursor: pointer;
}

.map-mobile-details__body {
  margin-top: 10px;
}

.map-mobile-details__body .country-popup-content,
.map-mobile-details__body .location-popup-content {
  padding: 0;
}

@media (max-width: 767px) {
  /* Keep a landscape-like map window on phones so the full world is visible. */
  #map {
    height: 54vw;
    min-height: 220px;
    max-height: 320px;
  }

  .map-mobile-details {
    display: block;
  }
}