/* For Leaflet map container */
#map {
  height: 100%; /* Or any height you prefer */
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

body .leaflet-container {
  cursor: default !important;
  font-family: inherit;
  font-weight: 400;
}
body .leaflet-popup-content {
  margin: 13px 28px 13px 20px;
}

body .leaflet-popup-content,
body .leaflet-container .btn {
  font-size: 14px;
}

@media only screen and (max-width: 767px) {
  body .leaflet-popup-content,
  body .leaflet-container .btn {
    font-size: 13px;
  }
}

#map .leaflet-popup-content p {
  margin: 0;
}
body .leaflet-container a.leaflet-popup-close-button {
  width: 32px;
  height: 32px;
  font-size: 24px;
  font-weight: bold;
  /* color: #000; */
  line-height: 32px;
  text-align: center;
}

/* Styles for the numbered marker icons created with L.divIcon */
.numbered-marker-icon-container {
  background: none;
  border: none;
}
.latlng-icon {
  display: block;
  width: 22px;
  height: 40px;
}

/* Styles for the clearable input fields */
.latitude,
.longitude {
  position: relative;
}
.clear-button {
  position: absolute;
  right: 5px;
  bottom: 17px;
  cursor: pointer;
  font-size: 20px;
  color: #999;
  font-weight: bold;
}
.clear-button:hover {
  color: #333;
}

/*** Result Table ***/

#latlng-results-table .details-cell .latlng-icon {
  display: none;
}
/* Thead */
#latlng-results-table .th-x {
  width: 24px;
}
#latlng-results-table .th-icon {
  width: 40px;
}

@media screen and (max-width: 767px) {
  #latlng-results-table .th-icon {
    width: 0;
  }
  #latlng-results-table .latlng-icon {
    display: none;
  }
  #latlng-results-table .details-cell .latlng-icon {
    display: block;
    margin-bottom: 6px;
  }
}

/* Map UI */
#marker-ctrl,
#cursor-latlng-ctrl {
  z-index: 800;
  position: absolute;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}
#marker-ctrl {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
#cursor-latlng-ctrl {
  right: 0;
  bottom: 16px;
}
/* Add marker */
#marker-ctrl {
  display: flex;
  justify-content: center;
}
#marker-ctrl .ui-marker {
  display: block;
  /* vertical-align: middle; */
  padding: 5px;
  height: auto;
}
#marker-ctrl .ui-marker-icon {
  padding: 10px;
  padding-right: 0;
}
#marker-ctrl #add-marker {
  align-self: stretch;
  display: flex;
  padding: 0;
}
#marker-ctrl #add-marker .add-icon {
  height: 100%;
  width: 45px;
  background-position: center;
}

/* Mobile */
@media only screen and (max-width: 767px) {
  #marker-ctrl {
    bottom: 50px;
  }
  #cursor-latlng-ctrl {
    bottom: auto;
    top: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
