html, body {
  margin: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
}

/* ---------------- SIDEBAR ---------------- */
#sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;

  background: #ffffff;
  padding: 16px;
  overflow-y: auto;
  z-index: 1000;

  box-shadow: 1px 0 6px rgba(0,0,0,0.15);
  border-right: 1px solid #ddd;
}

#sidebar h2 {
  margin-top: 0;
  font-size: 18px;
}

#sidebar p {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

#sidebar hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 12px 0;
}

label {
  font-size: 12px;
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

/* ---------------- FILTER ---------------- */
select {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
}

/* ---------------- MAP ---------------- */
#map {
  position: absolute;
  left: 280px;
  right: 0;
  top: 0;
  bottom: 0;

  min-height: 100vh;
}

/* ---------------- LEGEND ---------------- */
#sidebar div {
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------- CURSOR FEEDBACK ---------------- */
.leaflet-interactive {
  cursor: pointer;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {

  #sidebar {
    position: relative;
    width: 100%;
    height: auto;
    box-shadow: none;
    border-right: none;
  }

  #map {
    position: relative;
    left: 0;
    height: 70vh;
    min-height: 400px;
  }
}