* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f2;
  color: #1a1a1a;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  padding: 12px 16px;
  background: #1f3d2b;
  color: #fff;
}

header h1 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.route-summary {
  font-size: 0.85rem;
  opacity: 0.9;
}

#map {
  flex: 1;
  min-height: 0;
}

.controls {
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#report-btn {
  background: #b3401f;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

#report-btn.active {
  background: #7a2b15;
}

#report-btn:hover {
  filter: brightness(1.05);
}

.hint {
  font-size: 0.85rem;
  color: #555;
}

.traffic-toggle {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.leaflet-popup-content {
  font-size: 0.85rem;
}
