:root {
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --primary: 213 92% 56%;
  --secondary: 188 78% 42%;
  --muted: 210 20% 94%;
  --destructive: 0 78% 56%;
  --border: 214 24% 86%;
  --card: 0 0% 100%;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.18);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 224 33% 8%;
  --foreground: 210 40% 98%;
  --primary: 204 100% 62%;
  --secondary: 186 72% 46%;
  --muted: 222 25% 16%;
  --destructive: 0 84% 64%;
  --border: 223 18% 24%;
  --card: 222 30% 12%;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.50);
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top, hsla(var(--primary), 0.08), transparent 32%),
    linear-gradient(180deg, hsl(var(--background)), hsl(var(--background)));
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font: inherit;
}
input, textarea, select {
  outline: none;
}
input:focus, textarea:focus, select:focus, button:focus-visible {
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.22);
}

.glass {
  background: hsla(var(--card), 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid hsla(var(--border), 0.8);
  box-shadow: var(--shadow-md);
}

.leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.issue-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: white;
  border: 2px solid white;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 800;
}

.issue-marker.multi {
  min-width: 38px;
}

.map-popup {
  font-size: 13px;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: hsla(var(--border), 1);
  border-radius: 999px;
}

.fade-in {
  animation: fadeIn 240ms ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}