* {
  box-sizing: border-box;
}

html,
body,
#map {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Roboto", "Segoe UI", sans-serif;
}

body {
  color: #1f1f1f;
}

.panel {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.4;
}

.panel-heading {
  font-weight: 700;
  margin-bottom: 4px;
}

.panel-heading-gap {
  margin-top: 8px;
}

.panel-title {
  top: 12px;
  left: 12px;
  max-width: 360px;
}

.panel-title h1 {
  margin: 0 0 2px;
  font-size: 16px;
}

.panel-title p {
  margin: 0;
  color: #555;
  font-size: 11px;
}

.panel-layers {
  top: 12px;
  right: 12px;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-layers label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.slider-row {
  justify-content: space-between;
  margin-top: 6px;
  cursor: default;
}

#opacity-slider {
  width: 100%;
  margin: 0;
  cursor: pointer;
}

.popup-report {
  margin-top: 8px;
  width: 100%;
  padding: 5px 8px;
  cursor: pointer;
}

.popup-reported {
  margin-top: 6px;
  color: #c45c00;
  font-weight: 700;
}

.report-modal {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-card {
  width: 280px;
  background: #fff;
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.report-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.report-card textarea {
  width: 100%;
  margin: 8px 0;
  font: inherit;
  resize: vertical;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.report-actions button {
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

#report-done {
  margin: 8px 0 0;
  font-weight: 700;
  color: #1b7a1b;
}

.panel-stats {
  bottom: 12px;
  left: 12px;
  width: 190px;
}

.panel-legend {
  bottom: 12px;
  right: 58px;
  width: 170px;
}

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

.swatch {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.swatch-green {
  background: #00ff00;
}

.swatch-white {
  background: #fff;
  box-shadow: inset 0 0 0 2px #333;
}

.muted {
  color: #666;
  font-size: 11px;
}

.stat-name {
  font-weight: 700;
  margin-top: 6px;
}

.banner {
  position: absolute;
  z-index: 3;
  top: 72px;
  left: 12px;
  right: 230px;
  max-width: 520px;
  background: #fff6d6;
  border: 1px solid #e0c36a;
  padding: 8px 10px;
  font-size: 12px;
}

.hidden {
  display: none;
}

.maplibregl-popup-content {
  font-size: 12px;
  max-width: 260px;
}

.maplibregl-popup-content h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.maplibregl-popup-content dt {
  color: #666;
  font-weight: 400;
}

.maplibregl-popup-content dd {
  margin: 0 0 4px;
  font-weight: 600;
}

.maplibregl-ctrl-attrib {
  font-size: 10px;
}
