body {
  margin: 0;
  padding: 0;
  overflow: visible;
  background: 000;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

#menu {
  background: #023950;
  position: relative;
  z-index: 9999;
  width: 250px;
  text-align: left;
  font-family: "pt-sans-pro", sans-serif;
  font-weight: 500;
  margin-bottom: 30px;
  text-transform: capitalize;
}

#menu a {
  font-size: 13px;
  color: #404040;
  display: block;
  margin: 0;
  padding: 0;
  padding: 10px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  text-align: left;
  background: #e1e1e1;
}

#link {
  color: #bad879;
}

a {
  color: #bad879;
}

#menu a::before {
  content: "☒ ";
}

#menu a:last-child {
  border: none;
}

#menu a:hover {
  background-color: #f8f8f8;
  color: #404040;
}

#menu a.active {
  background-color: #3887be;
  color: #ffffff;
}

#menu a.active::before {
  content: "☑ ";
}

#menu a.active:hover {
  background: #3074a4;
}

#menu a:visited {
  color: #f1e0d0;
}

#all-toggle {
  border: solid 2px #fff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 9px;
  cursor: pointer;
  background-color: #0c8d79;
  letter-spacing: 0.03em;
  z-index: 9999;
  transition: background-color 0.5s;
  font-family: "pt-sans-pro", sans-serif;
}

#all-toggle:hover,
.switcher:hover {
  background-color: #09685a;
}

#mobilemenubtn {
  opacity: 0;
}

@media (max-width: 1024px) {
  #mobilemenubtn {
    background-color: #0c8d79;
    z-index: 99999999;
    position: absolute;
    text-align: center;
    color: #fff;
    width: auto;
    font-weight: bold;
    font-family: "pt-sans-pro", sans-serif;
    border-radius: 8px;
    margin: 10px 0 0 10px;
    letter-spacing: 0.1em;
    padding: 10px;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .mapboxgl-ctrl-geocoder {
    width: 50% !important;
  }

  .mapboxgl-ctrl-group.mapboxgl-ctrl:has(.mapbox-gl-draw_line) {
    display: none;
  }

  #measures {
    display: none;
  }
}

@media (max-width: 375px) {
  .mapboxgl-ctrl-geocoder {
    width: 30% !important;
    min-width: 210px !important;
  }
}

h1 {
  font-family: "pt-sans-pro-condensed", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 36px;
  padding: 0;
  margin: 0;
  text-align: left;
  letter-spacing: 0.02em;
}

@media (max-width: 425px) {
  h1 {
    font-size: 18px;
    width: 90%;
  }
}

h2 {
  font-family: "pt-sans-pro-condensed", sans-serif;
  color: #000;
  font-size: 16px;
  margin-top: 0;
}

h4.infobox-name {
  font-size: 26px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: "pt-sans-pro-condensed", sans-serif;
  text-transform: uppercase;
  line-height: 1.4em;
  font-weight: 700;
}

h4.infobox-date {
  font-size: 20px;
  margin-bottom: 10px;
  display: inline;
  font-family: "pt-sans-pro-condensed", sans-serif;
}

p.infobox-dateline {
  margin: 0;
  display: inline;
  font-family: "pt-sans-pro-condensed", sans-serif;
  font-size: 18px;
  text-transform: capitalize;
}

#floatleft {
  float: left;
}

#tagline {
  vertical-align: middle;
  font-family: "pt-sans-pro", sans-serif;
  width: 270px;
  margin-top: 36px;
  color: #f7f7ec;
}

@media (max-height: 850px) {
  #tagline {
    display: none;
  }
}

@media (max-width: 1024px) {
  #tagline {
    display: none;
  }
}

.box {
  position: absolute;
  top: 5vh;
  left: 0;
  z-index: 100;
  border: 1px solid #fff;
  border-width: 1px 1px 1px 0;
  border-radius: 0 15px 15px 0;
  padding: 16px;
  font-family: "pt-sans-pro", sans-serif;
  color: #f7f7ec;
  font-weight: 500;
  background: rgba(2, 57, 80, 0.85);
  overflow-y: auto;
  max-height: 90vh;
  box-sizing: border-box;
}

@media (max-height: 850px) {
  .box {
    top: 0;
    max-height: 100vh;
  }
}

@media (max-width: 1024px) {
  .box {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 45vh;
    overflow-y: auto;
    border-radius: 0;
    border-top: 0.5px solid #fff;
    border-left: none;
    border-right: none;
    border-bottom: none;
    z-index: 9999;
  }
}

#search-box {
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 240px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: "pt-sans-pro", sans-serif;
  color: #333;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border 0.2s ease-in-out;
}

#search-box:focus {
  outline: none;
  border-color: #79bcec;
}

ul {
  list-style-type: square;
}

#legend div span {
  display: inline-block;
  height: 10px;
  width: 30px;
  margin-right: 15px;
}

.legend-labels {
  text-align: left;
  vertical-align: top;
  display: inline-block;
  margin-top: 3px;
}

.mapboxgl-popup-content {
  position: relative;
  background-color: #245365;
  border-top: solid 3px #1f78b4;
  background-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3),
      rgba(36, 83, 101, 0.3));
  padding: 20px;
  pointer-events: auto;
  color: #ffffff;
  width: 300px;
  max-width: 90vw;
  font-family: "pt-sans-pro", sans-serif;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .mapboxgl-popup-content {
    width: auto;
    max-width: 95vw;
    padding: 15px;
  }
}

.mapboxgl-popup-close-button {
  border: 0;
  cursor: pointer;
  background-color: transparent;
  font-size: 20px;
  background: #1f78b4;
  float: right;
  margin: -25px;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  align-self: center;
  border-bottom: none;
  border-top-color: #1f78b4;
}

#legend {
  list-style-type: none;
  padding-left: 0;
}

#basemap-button {
  display: flex;
  justify-content: left;
  align-items: center;
}

.switcher {
  background: #0c8d79;
  color: #fff;
  box-shadow: none;
  border: solid 2px #fff;
  padding: 10px;
  font-family: "pt-sans-pro", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.03em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0 5px 5px 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .checkbox-container {
    font-size: 16px;
    margin-bottom: 2px;
  }
}

label img {
  height: 24px;
  width: 24px;
  margin-right: 10px;
}

input {
  cursor: pointer;
  height: 18px;
  width: 18px;
  margin-right: 10px;
  border-radius: 5px;
}

#layer-toggle-form {
  padding: 15px 0 15px 0;
  border-radius: 6px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin: 8px 0;
  color: #ffffff;
  font-size: 15px;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 8px;
}

.swatch {
  display: inline-block;
  margin-right: 8px;
}

.swatch.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

.swatch.line {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #fff;
}

.translations ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0 0 0;
}

.translations li {
  font-size: 1.2em;
  margin-bottom: 4px;
  color: #eee;
  font-family: "pt-sans-pro", sans-serif;
}

#more-info-text {
  display: inline-block;
  margin-right: 10px;
  margin-left: 8px;
  margin-top: 4px;
  font-size: 14px;
  color: #fff;
  font-style: italic;
}

.modal {
  font-family: "pt-sans-pro", sans-serif;
  visibility: hidden;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s linear;
}

.modal-content {
  background-color: rgba(43, 42, 42, 0.9);
  margin: 7vh auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-content p {
  margin-bottom: 10px;
}

.modal.show {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
  transition: visibility 0s linear 0s, opacity 0.3s linear;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.info-icon {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  background: none;
  color: #717c7d;
  border: solid 1px #717c7d;
  text-align: center;
  line-height: 18px;
  border-radius: 50%;
  font-style: normal;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  cursor: pointer;
  margin-left: 2px;
}

.info-icon:hover {
  background-color: #484f4f;
  color: #fff;
}