:root{
  --bg: #0b1020;
  --card: #121a33;
  --text: #e9ecf5;
  --muted: rgba(233,236,245,.72);
  --line: rgba(233,236,245,.14);
  --accent: #7bd389;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius: 18px;
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 500px at 20% 0%, rgba(123,211,137,.18), transparent 70%),
              radial-gradient(800px 500px at 90% 10%, rgba(98,168,255,.14), transparent 70%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a{ color: var(--text); text-decoration: none; }
a:hover{ text-decoration: underline; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.72);
  border-bottom: 1px solid var(--line);
}
.container{ width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.topbar .container{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }
.brand{ font-weight: 800; letter-spacing: .2px; }
.nav a{ margin-left: 14px; opacity: .92; }

main.container{ padding: 20px 0 40px; }
.card{
  background: rgba(18,26,51,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
h1, h2{ margin: 0 0 10px 0; font-size: 20px; }
p{ margin: 8px 0; }
.muted{ color: var(--muted); }

.map{
  margin-top: 14px;
  width: 100%;
  height: min(70vh, 640px);
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--line);
}
.legend{ margin-top: 12px; color: var(--muted); display:flex; align-items:center; gap: 10px; font-size: 14px; }
.dot{ width: 10px; height: 10px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(123,211,137,.18); display:inline-block; }

.error{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 99, 99, .25);
  background: rgba(255, 99, 99, .10);
  color: rgba(255,255,255,.92);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper{
  border-radius: 14px;
  background: rgba(18,26,51,.96);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.leaflet-popup-tip{ background: rgba(18,26,51,.96); border: 1px solid var(--line); }
.popup-title{ font-weight: 800; margin-bottom: 6px; }
.popup-sub{ color: var(--muted); font-size: 13px; line-height: 1.35; }
.popup-contact{ margin-top: 10px; font-size: 13px; line-height: 1.45; }
.popup-contact strong{ font-weight: 700; }

.btn{
  display:inline-block;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
}
.btn:hover{ filter: brightness(1.05); }
.btn-danger{ border-color: rgba(255,99,99,.25); background: rgba(255,99,99,.10); }
.btn-accent{ border-color: rgba(123,211,137,.25); background: rgba(123,211,137,.12); }
