.main {
  height: 100vh !important;
}

#map {
  display: block;
  width: 100vw;
  height: calc(100vh - 70px);
  z-index: 1;
  padding: 10px;
}

.leaflet-top.leaflet-left {
  display: none !important;
}
.leaflet-draw-draw-circlemarker {
  display: none !important;
}
.leaflet-right {
  margin-top: 3rem;
}

@media screen and (max-width: 700px) {
  .leaflet-right {
    margin-top: 5rem;
  }
}

.leaflet-draw a,
.leaflet-control-locate,
.leaflet-draw-section,
.leaflet-bar button:last-of-type {
  display: block;
}
.dark .leaflet-control * {
  background: #1f2937;
}

.dark .leaflet-control-layers {
  background: #1f2937;
  color: #fff;
}
.leaflet-control-layers-toggle {
  background: none;
  position: relative;
}

.leaflet-control-layers-toggle::before {
  content: "\f5fd";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.dark .leaflet-control-layers-toggle::before {
  color: #fff;
}

.leaflet-control-locate .fa {
  font-size: 11px;
  line-height: 1;
}
.dark .leaflet-control-locate {
  background: #1f2937;
}

.dark .leaflet-control-locate a:hover {
  background: #4b5563;
}

.dark .leaflet-control-locate .fa {
  color: #ffffffcb;
}
.dark .leaflet-control-zoom {
  background: #1f2937;
}

.dark .leaflet-control-zoom-in,
.dark .leaflet-control-zoom-out {
  all: unset;
  color: #ffffffcb;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.dark .leaflet-control-zoom-in:hover,
.dark .leaflet-control-zoom-out:hover {
  color: #ffffffcb;
  background-color: #4b5563;
}

.leaflet-control-fullscreen-button {
  background: none !important;
}

.leaflet-control-fullscreen-button::before {
  content: "\f065";
  font-size: 18px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #333;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dark .leaflet-control-fullscreen-button::before {
  background: #1f2937;
  color: #ffffffcb;
  border-color: #1f2937;
}
.dark .leaflet-control-fullscreen-button:hover::before {
  background: #4b5563;
}

.leaflet-draw-draw-polyline {
  background: none !important;
}
.dark .leaflet-draw-draw-polyline {
  background: #1f2937 !important;
}
.leaflet-draw-draw-polyline::before {
  content: "\f715";
  font-size: 10px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #333;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(90deg);
}
.dark .leaflet-draw-draw-polyline::before {
  color: #ffffffcb;
}
.dark .leaflet-draw-draw-polyline:hover {
  background: #4b5563 !important;
}

.leaflet-draw-draw-polygon {
  background: none !important;
}

.leaflet-draw-draw-polygon::before {
  content: "\f5ee";
  font-size: 13px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #333;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dark .leaflet-draw-draw-polygon::before {
  background: #1f2937;
  color: #ffffffcb;
  border-top: 0.1px solid #111827;
}
.dark .leaflet-draw-draw-polygon:hover::before {
  background: #4b5563;
}

.leaflet-draw-draw-rectangle {
  background: none !important;
}

.leaflet-draw-draw-rectangle::before {
  content: "\f096";
  font-size: 11px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #333;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dark .leaflet-draw-draw-rectangle::before {
  background: #1f2937;
  color: #ffffffcb;
  border-top: 0.1px solid #111827;
}
.dark .leaflet-draw-draw-rectangle:hover::before {
  background: #4b5563;
}

.leaflet-draw-draw-circle {
  background: none !important;
}

.leaflet-draw-draw-circle::before {
  content: "\f111";
  font-size: 10px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #333;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dark .leaflet-draw-draw-circle::before {
  background: #1f2937;
  color: #ffffffcb;
  border-top: 0.1px solid #111827;
}
.dark .leaflet-draw-draw-circle:hover::before {
  background: #4b5563;
}

.leaflet-draw-draw-marker {
  background: none !important;
}

.leaflet-draw-draw-marker::before {
  content: "\f3c5";
  font-size: 11px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #333;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dark .leaflet-draw-draw-marker::before {
  background: #1f2937;
  color: #ffffffcb;
  border-top: 0.1px solid #111827;
}
.dark .leaflet-draw-draw-marker:hover::before {
  background: #4b5563;
}

/* Leaflet Popup Start */
.drawn-popup .leaflet-popup-content {
  min-width: unset !important;
  max-width: auto !important;
  word-wrap: break-word;
}
.leaflet-popup-content {
  min-width: 390px !important;
}
.dark .leaflet-popup-content-wrapper {
  background-color: #1f2937;
  color: #fff;
  border: 1px solid #444;
}

.dark .leaflet-popup-tip {
  border-top: 10px solid #1f2937;
}
.leaflet-popup-close-button {
  display: none !important;
}

.dark .leaflet-popup-close-button:hover {
  background-color: #374151;
}
/* Leaflet Popup End */
