html, body {
  margin: 0;
  padding: 0;
}

#map {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}
#infoPanel {
  position: absolute;
  top: 80px;
  right: 20px;
  z-index: 1000;
  width: 300px;
}


#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#selectContainer {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 11px 0;
}

#countrySelect {
  width: 200px;
  margin: 0 auto;
}

/*
#countrySelect {
  background-color: rgba(216, 205, 205, 0.765);
  border: 3px solid #757373;
  width: 250px;
  min-width: 200px;
  text-align: center;
  border-radius: 50px;
  position: static;
  font-weight: bolder;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  min-width: 200px;

}
*/
.checkbox-wrapper {
  position: absolute;
  top: 60px; /* Adjust to match the position of your tile switch */
  right: 20px;
  z-index: 1000;
}

/* Optional: better checkbox spacing */
.form-check {
  margin-bottom: 10px;
}

/* Fix: Hide overlapping white info box if unused */
#infoPanel {
  display: none;
}

/* Ensure country select bar and buttons show */
.navbar .form-select,
.navbar .btn {
  display: inline-block !important;
}

/* Optional: Adjust z-index of Leaflet controls so nothing hides them */
.leaflet-control-layers {
  z-index: 1001;
}


/* Ensure country select bar and buttons always stay visible */
.navbar .form-select,
.navbar .btn {
  display: inline-block !important;
  visibility: visible !important;
}

/* Override default button reset styles if any */
button {
  all: unset;
  display: inline-block;
}


/* Make the map fill the entire viewport */
#map {
    height: 100vh;
    width: 100vw;
}

/* Hide the checkboxes by default */
#layerControls {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Show checkboxes when hovering the layers control */
.leaflet-control-layers:hover ~ #layerControls {
  opacity: 1;
  pointer-events: all;
}

/* Ensure the layers control doesn't interfere */
.leaflet-control-layers {
  pointer-events: auto;
}

/* Hide tick boxes by default */
.checkbox-wrapper {
    display: none;
    position: absolute;
    top: 100px;
    right: 20px;
    z-index: 1000;
}

/* Show when tile-switch is hovered or clicked */
.tile-switch:hover + .checkbox-wrapper,
.tile-switch.active + .checkbox-wrapper {
    display: block;
}
