.hidden { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  font-family: 'DM Sans', system-ui, sans-serif;
}

#map {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

#legend {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 100;
  background: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  border-radius: 8px;
  min-width: 140px;
  max-width: 90vw;
  min-height: 40px;
  max-height: 60vh;
  padding: 8px 12px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.85em;
}
#legend h4 {
  margin: 0 0 10px;
}
#legend div span:nth-child(1) { background-color: #0A0557; }
#legend div span:nth-child(2) { background-color: #2F1287; }
#legend div span:nth-child(3) { background-color: #6A2583; }
#legend div span:nth-child(4) { background-color: #A83881; }
#legend div span:nth-child(5) { background-color: #D37A5F; }
#legend div span:nth-child(6) { background-color: #E2B740; }
#legend div span:nth-child(7) { background-color: #F3F320; }

#legend div span {
  display: inline-block;
  height: 20px;
  width: 30px;
  margin: 0 -2.5px;
}
#legend .labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0px;
}
#legend div label {
  font-size: 0.90em;
  width: 30px;
  text-align: center;
  box-sizing: border-box;
}
#legend div label:nth-child(1) {
  padding-left: 10px;
}

#map-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  text-align: center;
}
#map-logo img {
  display: block;
  max-width: 200px;
  max-height: 60px;
}

.info-icon {
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-size: 1em;
  margin-left: 6px;
  color: #333;
  border-radius: 50%;
  width: 1.2em;
  height: 1.2em;
  text-align: center;
  line-height: 1.2em;
  background: #eee;
  font-style: normal;
  vertical-align: middle;
}
