/* ===========================
   Base Layout
   =========================== */
html, body, #map {
  height: 100%;
  margin: 0;
}

/* ===========================
   Colorbar Control
   =========================== */
.leaflet-colorbar {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  pointer-events: none;
}
.leaflet-colorbar .colorbar-title {
  font-size: 12px;
  font-family: sans-serif;
  color: #333;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: center;
  width: 180px;
}
.leaflet-colorbar .colorbar-gradient {
  width: 180px;
  height: 14px;
  background: linear-gradient(to right, #1f1a85, #3f6fcf, #e8e8e8, #d45a3a, #7d0c02);
  border-radius: 3px;
}
.leaflet-colorbar .colorbar-labels {
  display: flex;
  justify-content: space-between;
  width: 180px;
  margin-top: 4px;
  font-size: 11px;
  font-family: sans-serif;
  color: #333;
}
.leaflet-colorbar .colorbar-subtext {
  font-size: 10px;
  font-family: sans-serif;
  color: #888;
  margin-top: 4px;
  text-align: center;
  width: 180px;
}

/* ===========================
   GitHub Link Control
   =========================== */
.leaflet-github {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 12px;
  font-family: sans-serif;
}
.leaflet-github a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.leaflet-github a:hover {
  color: #000;
  text-decoration: underline;
}

/* ===========================
   Debug Panel
   =========================== */
#debug {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #0f0;
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  max-width: 400px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}
#debug.visible {
  display: block;
}
#debug .error {
  color: #f00;
}
#debug .success {
  color: #0f0;
}
#debug .info {
  color: #0ff;
}
