/* Basic reset */
html, body {
  height: 100%;
  margin: 0;
}

/* Layout */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "PingFang HK", "Microsoft JhengHei", sans-serif;
  background: #fff;
  color: #111;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
}

.brand .title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
}

.brand .subtitle {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

/* Map fills the screen, minus the top bar */
#map {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Legend */
.legend {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 170px;
  padding: 10px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  z-index: 1000;
}

.legend-title {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 6px 0;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Placeholder colors (you can refine thresholds later in JS) */
.swatch.green { background: #2ecc71; }
.swatch.yellow { background: #f1c40f; }
.swatch.orange { background: #e67e22; }
.swatch.red { background: #e74c3c; }
.swatch.black { background: #2d3436; }
