#map {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  height: min(680px, calc(100vh - 260px));
  min-height: 520px;
  overflow: hidden;
  width: 100%;
}

.leaflet-popup-content-wrapper {
  background-color: #111827;
  color: #ffffff;
}

.legend {
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  font: 16px "Lato", "Inter", "Segoe UI", sans-serif;
  line-height: 24px;
  padding: 10px 12px;
}

.legend h4 {
  color: #fbbf24;
  font-size: 1rem;
  margin: 2px 12px 8px;
  text-align: center;
}

.legend span {
  position: relative;
  bottom: 3px;
}

.legend i {
  float: left;
  height: 18px;
  margin: 0 8px 0 0;
  opacity: 1;
  width: 18px;
}

.legend i.icon {
  background-color: #ffffff;
  background-size: 20px;
}

@media screen and (max-width: 768px) {
  #map {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    height: 68vh;
    min-height: 420px;
  }

  .legend {
    font-size: 0.78rem;
    line-height: 18px;
    max-width: 180px;
    padding: 8px 10px;
  }

  .legend h4 {
    font-size: 0.82rem;
    margin: 0 0 6px;
  }

  .legend i {
    height: 14px;
    width: 14px;
  }
}

@media screen and (max-width: 480px) {
  #map {
    height: 64vh;
    min-height: 360px;
  }
}
