:root {
  --bg-void:      #0a0a0f;
  --bg-surface:   #13131a;
  --bg-elevated:  #1c1c26;
  --bg-hover:     #24242f;

  --border:       rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);

  --text-primary:   #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted:     #55556a;

  --accent:         #f59e0b;
  --accent-dim:     rgba(245, 158, 11, 0.15);

  --green:  #22c55e;
  --red:    #ef4444;
  --blue:   #3b82f6;

  --font-sans:  "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:  "JetBrains Mono", "Fira Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition:      200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin:  0;
  padding: 0;
}

html, body {
  width:  100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  font-size:   14px;
  line-height: 1.5;
  color:       var(--text-primary);
  background:  var(--bg-void);
  -webkit-font-smoothing: antialiased;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  position: relative;
  width:  100%;
  height: 100%;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#app-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity var(--transition-slow);
}

#app-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width:  36px;
  height: 36px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-label {
  font-size:   12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.leaflet-container {
  background: var(--bg-void) !important;
  font-family: var(--font-sans) !important;
}

.leaflet-control-zoom a {
  background: var(--bg-elevated) !important;
  color:  var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  width:  32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
  transition: background var(--transition) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-hover) !important;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-attribution-flag { display: none !important; }

.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.45) !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
  backdrop-filter: blur(4px) !important;
}

.leaflet-control-attribution a {
  color: var(--text-secondary) !important;
}

@media (max-width: 640px) {
  :root {
    font-size: 13px;
  }
}