/* Base map styles */
#map { 
  width: 100%;
  height: clamp(350px, 65vh, 700px);  /* responsive height */
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tablets and small laptops */
@media (max-width: 992px) {
  #map {
    height: clamp(300px, 55vh, 600px);
  }
}

/* Phones */
@media (max-width: 576px) {
  #map {
    height: 280px;        /* fixed but reasonable height for small screens */
    margin: 0;            /* remove any extra margin if present */
  }
}

/* Legend box */
.info.legend {
  background-color: #fff;
  padding: 8px 10px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-radius: 4px;
  max-width: 260px;
  font-size: 0.9rem;
}

/* Slightly smaller legend on very small screens */
@media (max-width: 576px) {
  .info.legend {
    max-width: 200px;
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

