#map_main {
  margin-top: 80px;
}

#map_main #map {
  width: 100%;
  height: calc(100vh - 80px - 60px);
}

/* Floating side navigation */
/* left-side menu */
#map_main .sidenav {
  position: fixed;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 320px;
  /* height: 560px; */
  height: 500px;
  background-color: #f8f9fa;
  opacity: 0.8;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 15px 15px 15px;
  transition: 0.3s;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

#map_main .sidenav.hidden {
  width: 0;
  padding: 0;
  overflow: hidden;
}

.btn-outline-dark {
  background-color: #929caa;
  color: white;
  border: #5c7896;
  font-size: 16px;
}

.btn-outline-dark.active,
.btn-outline-dark:active,
.btn-check:checked + .btn-outline-dark {
  background-color: #7598b9;
  border: #5c7896;
}

#map_main .toggle-side-btn {
  position: fixed;
  top: 50%;
  left: 332px;
  transform: translateY(-50%);
  z-index: 10000;
  background-color: rgba(52, 58, 64, 0.5);
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 6px 10px;
  font-size: 18px;
  transition: left 0.3s;
}
/* hide the sidenav, the left menu will be hidden */
#map_main .sidenav.hidden + .toggle-side-btn {
  left: 0;
  border-radius: 6px;
}

/* step 3: wealth indices */
#value-select {
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  color: #333;
  padding: 6px 12px;

  scrollbar-width: 6px; /* Firefox */
  scrollbar-color: #aaa #f0f0f0; /* Firefox */
}

/* Chrome / Safari scrollbar */
#value-select::-webkit-scrollbar {
  width: 6px;
}
#value-select::-webkit-scrollbar-track {
  background: #f0f0f0;
}
#value-select::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}

#value-select option {
  padding: 6px;
  line-height: 2;
}

#value-select option:checked,
#value-select option:hover {
  background-color: #7598b9;
  color: #fff;
  border: #5c7896;
  border-radius: 5px;
}

/* legend style */
#map_main .map-legend {
  width: 150px;
  background-color: #fff;
  border-radius: 3px;
  bottom: 100px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font: 16px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  right: 10px;
  z-index: 1;
}

#map_main .map-legend span {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
  margin-right: 10px;
}

#map_main .map-legend div {
  margin-bottom: 5px;
  margin-left: 15px;
}

.map-legend h4 {
  margin: 0 0 8px 10px;
  /* margin-left: 10px; */
  font-size: 16px;
  font-weight: bold;
}

/* information box for variable description */
.map-overlay.top-right {
  position: absolute;
  top: 100px;
  right: 10px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  /* max-width: 250px; */
  z-index: 1;
}

#project-box {
  position: absolute;
  display: flex;
  width: 100%;
  top: 100px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0);
  font-size: 25px;
}

#info-box {
  width: 400px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#map_main #loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.5);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-align: center;
  /* display: none; */
}
