/* Increase specificity for the dropdown */
#layermenu .form-select {
  width: 150px !important;
  /* Force the width to 200px */
  max-width: 100%;
  /* Ensure it doesn't overflow its container */
  display: inline-block;
  /* Prevent it from stretching */
  margin-top: 7px;
  margin-bottom: 0px;
  color: white;
  background-color: #6c757d;
  /* Darker background for select */

}

hr {
  border-top: 1px solid #ffffff;
  /* White hr line */
}

fieldset {
  border: none;
  /* Remove default fieldset border */
}

label {
  color: #ffffff;
  /* Ensure labels are white */
}

button {
  color: #ffffff;
  /* White text for buttons */
  background-color: #343a40;
  /* Dark background color */
  border: none;
  /* Remove default border */
  padding: 10px 15px;
  /* Add some padding */
  border-radius: 4px;
  /* Optional: round the corners */
  cursor: pointer;
  /* Change cursor on hover */
}

button:hover {
  background-color: #495057;
  /* Slightly lighter on hover */
}


.mapboxgl-ctrl-geocoder {
  width: 200px !important;

  justify-content: center;
  align-items: center;
}

.map-container {
  letter-spacing: 0em;

}


.map-overlay {
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: absolute;
  width: 400px;
  top: 0;
  left: 0;
  padding-left: 10px;
  padding-top: 10px;
  z-index: 500;
}

.select-resolution {
  width: 150px !important;
  ;

}

.chooseSize {
  z-index: 500;
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: relative;
  margin-left: 450px;
  margin-top: 10px;
  width: 200px;
  padding-left: 10px;
  padding-top: 10px;
  border-radius: 3px;
  background-color: #ffffff;

}


.map-overlay-mobile {
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 0px;
  z-index: 500;
}


.map-overlay-menu-buttons-left {
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: absolute;
  width: 200px;
  top: 0;
  left: 400;
  padding: 10px;
  z-index: 500;
}

.map-overlay .top-map-overlay-inner {
  background-color: #495057;
  /* Softer background */
  border-radius: 0px;
  /* Small border radius */
  padding: 0px 7px;
  /* Added padding */
  max-height: 35px;
  /* Slightly increased max-height */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition */
}

.map-overlay-inner hr {
  margin: 5px 0;
  /* Reduced margin for closer spacing */
}

.map-overlay-mobile .top-map-overlay-inner {
  background-color: #495057;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  padding: 10px;
  max-height: 20px;
}

.map-overlay .map-overlay-inner {
  background-color: #343a40;
  /* Dark background */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 0px;
  padding: 10px;
  margin-bottom: 0px;
  overflow-y: scroll;
  height: 600px;
}

/* Style for the drag bars */
.drag-bar-horizontal {
  width: 100%;
  height: 5px;
  background-color: #333;
  position: absolute;
  bottom: 0;
  cursor: ns-resize;
  background-color: transparent; /* Make it invisible */
}

.drag-bar-vertical {
  width: 1px;
  height: 100%;
  background-color: #333;
  position: absolute;
  right: 0;
  cursor: ew-resize;
}


.map-overlay-mobile .map-overlay-inner {

  background-color: #343a40;
  /* Dark background */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 0px;
  padding: 10px;
  margin-bottom: 0px;
  overflow-y: auto;
  height: 150px;
}


.map-overlay-inner fieldset {
  border: none;
  padding: 0;
  margin: 0 0 10px;
}

.map-overlay-inner fieldset:last-child {
  margin: 0;
}

.map-overlay-inner select {
  width: 100%;
}

.map-overlay-inner label {
  align-items: center;
  display: block;

  margin: 0 0 5px;

}

.map-overlay-inner input[type="checkbox"] {
  vertical-align: middle;
  position: relative;
  bottom: 1px;
}

.map-overlay-inner input[type="radio"] {
  vertical-align: middle;
  position: relative;
  bottom: 1px;

}

.map-overlay2 {
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: absolute;
  width: 540px;
  
  top: 10px;
  left: 10px;
  z-index: 500;
  display: none;
}

.map-overlay2 .map-overlay2-inner {
  padding: 10px;
  height: 90%;
  max-height: 640px;
  overflow-y: scroll;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

}

.map-overlay2-mobile {
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 0px;
  z-index: 1000;
  display: none;
}

.map-overlay2-mobile .map-overlay2-inner {
  padding: 10px;
  height: 50%;
  max-height: 300px;
  overflow-y: scroll;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: left;
  z-index: 9999;
}


.modal-content {
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  width: 30%;
  min-width: 400px;
  height: 80%;
  overflow-y: scroll;
}


.legend-icon {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  margin-right: 5px;
  width: 10px;
}



.legend-box-container {
  position: absolute;
  right: 10px;
  z-index: 50;
  bottom: 40px;
  background-color: #343a40;
  /* Dark background */
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  z-index: 50;
  display: block;
}

.legend-box-container .top-legend-box {
  background-color: #495057;
  /* Softer background */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  max-height: 20px;
}

.legend-right {

  padding: 10px;
  position: relative;
  background-color: #343a40;
  /* Dark background */


}

.legend-right h4 {
  margin: 0 0 10px;
}


.legend-left {
  position: relative;
  padding: 10px;
}

.legend-left h4 {
  margin: 0 0 10px;
}

.map-controls-right {

  top: 5px;

  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  right: 250px;
  z-index: 100;
}

.map-controls-left {

  top: 5px;

  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  left: 10px;
  z-index: 600;
  display: none
}

.map-controls-bottom-right {

  bottom: 40px;
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  right: 10px;
  z-index: 600;
  display: none
}

.button-hide1 {

  display: none
}

.button-hide2 {


  display: block
}

.button-control-noborder {
  background: none;
  border: none;
  cursor: pointer;
}

.button-control-withborder {
  cursor: pointer;
}

.flex-ends {
  display: flex;
  justify-content: space-between;
}