html, body {
  height: 100%;
  margin: 0;
  background: #0b0b0f;
}

#map {
  width: 100%;
  height: 100vh;
}

/* Legend */
.legend {
  background: rgba(0, 0, 0, 0.75);
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.9;
}

.legend h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  text-align: center;
}

/* Title */
.title {
  background: rgba(0, 0, 0, 0.75);
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-family: Georgia, 'Times New Roman', Times, serif, sans-serif;
  font-weight: 600;
}

.title h2 {
  margin: 0;
  font-size: 16px;
}

.info-panel {
  color: #fff;
  padding: 16px;
  border-radius: 10px;
  width: 320px;
  font-family: Georgia, 'Times New Roman', Times, serif, sans-serif;
  line-height: 1.6;
  font-size: 18px;  /* <-- increased */
}

.info-panel h3 {
  margin: 0 0 10px 0;
  font-size: 24px;  /* <-- increased */
  color: #fff;
}


.animated-title {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none; /* so it doesn't block map interactions */
  z-index: 999;
}

.animated-title h2 {
  margin: 0;
  font-size: 36px; /* bigger */
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;

  background: linear-gradient(
    90deg,
    #00ffff,
    #39ff14,
    #ffff00,
    #ff00ff,
    #ff4d00
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flowText 4s linear infinite;
}

@keyframes flowText {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}
