    #map {
      width: 100%;
      height: 800px;
    }
    body {
      margin: 0;
      font-family: sans-serif;
    }
    .legend {
      background: white;
      padding: 10px;
      line-height: 18px;
      color: #333;
      font-size: 14px;
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
    }
    .legend i {
      width: 18px;
      height: 18px;
      float: left;
      margin-right: 8px;
      opacity: 0.9;
    }
    .leaflet-tooltip {
      background-color: transparent;
      border: none;
      color: black;
      font-size: 13px;
      font-weight: bold;
      text-align: center;
      text-shadow: 1px 1px 2px white;
    }


#sidePanel {
  position: absolute;
  top: 80px;         /* 👈 abans era 20px */
  left: 20px;
  background: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: top 0.3s ease;
}


#sidePanel h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

#sidePanel button {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: all 0.2s ease;
  font-size: 14px;
}

#sidePanel button:hover {
  background-color: #e0e0e0;
}

#sidePanel button.active {
  background-color: #0078ff;
  color: white;
  font-weight: 600;
}

