/* Map Stylings */

#map {
  height: 750px;
  background-color: #849476;
}

.leaflet-marker-icon {
  -webkit-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

/* Leaflet Marker Popup */

.leaflet-popup-content-wrapper {
  padding: 0 !important;
  overflow: hidden;
  border: 4px solid #004279;
}

.leaflet-popup-content {
  margin: 0 !important;
  margin-right: -1px !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: white;
  top: 5px;
  right: 5px;
}

.custom-popup {
  width: 240px;
}

.popup-image {
  height: 0;
  padding-top: 50%;
  position: relative;
}

.popup-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(
    0deg,
    rgb(11 64 112 / 75%),
    rgb(11 64 112 / 20%)
  );
}

.popup-image img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.popup-image h3 {
  position: absolute;
  bottom: 5px;
  left: 10px;
  margin: 0;
  font-size: 16px;
  color: white;
  z-index: 999;
}

a.popup-link {
  display: block;
  color: #004279 !important;
  padding: 7px 15px;
  border-radius: 4px;
  text-align: center;
  font-family: "Bjola" !important;
  font-size: 1rem;
  text-transform: uppercase;
}

.leaflet-popup-tip {
  background: #004279 !important;
}

.leaflet-tooltip-pane {
  font-family: "Bjola" !important;
  text-transform: uppercase;
}

/* Leaflet Overlay Filter Controls */

.leaflet-control-layers-overlays label {
  padding: 5px;
  cursor: pointer;
}

.leaflet-control-layers-overlays div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.leaflet-control-layers-overlays span {
  font-family: "Bjola", Sans-serif;
  font-size: 14px;
}

input.leaflet-control-layers-selector {
  border-radius: 50%;
  height: 26px;
  width: 26px;
  background-color: var(--yellow);
  border: 2px solid var(--dark-blue);
}

.leaflet-control-layers-selector:checked::before {
  position: absolute;
  color: var(--dark-blue) !important;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-weight: 900 !important;
}

/* Leaflet Zoom Controls */
.leaflet-control-zoom.leaflet-bar a {
  width: 50px;
  height: 50px;
  font-size: 30px;
  line-height: 50px;
}

.leaflet-control-zoom.leaflet-bar a:not(.leaflet-disabled) {
  color: var(--yellow);
}

/* Leaflet Fullscreen Control */
.leaflet-touch .leaflet-control-fullscreen a {
  width: 50px;
  height: 50px;
  background-size: 90%;
}

.leaflet-touch.leaflet-fullscreen-on .leaflet-control-fullscreen a {
  background-position: 2px -42px;
}

/* Responsive */

@media screen and (max-width: 478px) {
  #map {
    height: 450px;
  }
}
