* { margin: 0; padding: 0; box-sizing: border-box; }
.leaflet-control-attribution { display: none !important; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  overflow: hidden;
}

#map {
  width: 100vw;
  height: 100vh;
}

#legend {
  position: absolute;
  bottom: 30px;
  right: 15px;
  background: rgba(20, 20, 40, 0.92);
  border-radius: 10px;
  padding: 14px 16px;
  z-index: 1000;
  font-size: 13px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}

#legend h3 {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 4px 0;
}

.legend-color {
  width: 28px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  flex-shrink: 0;
}

.legend-label {
  font-size: 12px;
  color: #ccc;
}

#spinner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 25, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(3px);
  transition: opacity 0.3s;
}

#spinner-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #00ccff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#spinner-text {
  margin-top: 12px;
  font-size: 14px;
  color: #aaa;
}

.theme-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ccc;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.theme-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

#credits {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: #777;
}

#credits a {
  color: #aaa;
  text-decoration: none;
}

#credits a:hover {
  color: #fff;
}

#info-panel {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(20, 20, 40, 0.92);
  border-radius: 10px;
  padding: 14px 18px;
  z-index: 1000;
  font-size: 13px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 280px;
}

#info-panel h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

#info-panel p {
  color: #aaa;
  font-size: 12px;
  line-height: 1.5;
}

#origin-info {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: #ccc;
  display: none;
}

#tooltip {
  position: absolute;
  background: rgba(10, 10, 30, 0.95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  z-index: 3000;
  display: none;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
}
