/* =====================================================
   OnweerDetector.nl – Main Stylesheet
   Storm theme: dark navy + electric yellow + blue
   ===================================================== */

:root {
    --bg:       #080c18;
    --bg2:      #0f1422;
    --bg3:      #161e32;
    --card:     #1a2240;
    --card2:    #1e2848;
    --border:   rgba(255,255,255,0.07);
    --border2:  rgba(255,255,255,0.12);
    --text:     #dde4f0;
    --text2:    #8899bb;
    --text3:    #4a5a7a;
    --accent:   #f5a623;
    --accentd:  #d4891a;
    --accentg:  rgba(245,166,35,.18);
    --blue:     #4f9eff;
    --blueg:    rgba(79,158,255,.18);
    --green:    #22c55e;
    --greeng:   rgba(34,197,94,.15);
    --red:      #f43f5e;
    --redg:     rgba(244,63,94,.15);
    --orange:   #fb923c;
    --purple:   #a78bfa;
    --yellow:   #facc15;
    --radius:   10px;
    --radius-lg: 16px;
    --shadow:   0 4px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,.6);
    --transition: 0.18s ease;
    --nav-h:    64px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 700px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ── Alert Banner ─────────────────────────────── */
.alert-banner {
    width: 100%; padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; font-size: 13px; position: relative; z-index: 200;
}
.alert-banner.alert-danger   { background: var(--red); color: #fff; }
.alert-banner.alert-warning-orange { background: var(--orange); color: #fff; }
.alert-banner.alert-warning  { background: #92400e; color: #fef3c7; }
.alert-banner.alert-info     { background: #1e3a5f; color: #bfdbfe; }
.alert-banner-inner { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
.alert-badge {
    background: rgba(255,255,255,.25); border-radius: 4px;
    padding: 2px 8px; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.alert-banner-link { color: #fff; text-decoration: underline; white-space: nowrap; }
.alert-banner-close {
    background: none; border: none; color: inherit; cursor: pointer;
    font-size: 22px; line-height: 1; padding: 0 4px; opacity: .7;
}
.alert-banner-close:hover { opacity: 1; }

/* ── Navbar ───────────────────────────────────── */
.navbar {
    background: rgba(8,12,24,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-h);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 24px; height: 100%;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 900; color: #fff;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.logo-icon { font-size: 22px; filter: drop-shadow(0 0 6px var(--accent)); }
.logo-dot { color: var(--accent); }
.nav-links {
    display: flex; list-style: none; gap: 2px; flex: 1; align-items: center;
}
.nav-links li a {
    display: block; padding: 8px 14px; border-radius: 8px;
    color: var(--text2); font-size: 14px; font-weight: 500;
    transition: all var(--transition); position: relative;
    text-decoration: none;
}
.nav-links li a:hover, .nav-links li a.active {
    color: #fff; background: var(--card);
}
.nav-links li a.active { color: var(--accent); }
.nav-links li a.nav-admin { color: var(--red); }
.nav-badge {
    background: var(--red); color: #fff;
    border-radius: 10px; font-size: 10px; font-weight: 700;
    padding: 1px 5px; margin-left: 4px; vertical-align: middle;
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px; transition: all .2s;
}

.avatar-dot {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block; vertical-align: middle; margin-right: 4px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 8px; font-size: 14px;
    font-weight: 600; cursor: pointer; transition: all var(--transition);
    text-decoration: none; border: none; white-space: nowrap;
    background: var(--accent); color: #000;
}
.btn:hover { background: #ffc54a; color: #000; transform: translateY(-1px); box-shadow: 0 4px 16px var(--accentg); }
.btn:active { transform: translateY(0); }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--card); color: #fff; border-color: var(--border2); box-shadow: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #6bb3ff; color: #fff; box-shadow: 0 4px 16px var(--blueg); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #f87090; color: #fff; }
.btn-green { background: var(--green); color: #000; }
.btn-green:hover { background: #34d97a; color: #000; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }

/* ── Main content ─────────────────────────────── */
.main-content { flex: 1; }

/* ── Cards ────────────────────────────────────── */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; overflow: hidden;
}
.card-sm { padding: 16px; }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 16px; font-weight: 700; color: #fff; }
.card-subtitle { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* ── Flash messages ───────────────────────────── */
.flash {
    padding: 12px 20px; border-radius: 8px; margin: 0; font-size: 14px;
    font-weight: 500; border-left: 4px solid;
}
.flash-error   { background: var(--redg);   border-color: var(--red);   color: #fda4af; }
.flash-success { background: var(--greeng); border-color: var(--green); color: #86efac; }
.flash-info    { background: var(--blueg);  border-color: var(--blue);  color: #93c5fd; }

/* ── Form elements ────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text2); margin-bottom: 6px; letter-spacing: 0.3px;
}
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px; border-radius: 8px;
    background: var(--bg3); border: 1px solid var(--border2);
    color: var(--text); font-size: 14px; font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accentg);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.form-check input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }

/* ── Page header ──────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--bg2) 0%, #0d1525 100%);
    border-bottom: 1px solid var(--border); padding: 48px 0 32px;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: -40%; right: -10%;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,.06) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-title { font-size: clamp(24px, 4vw, 36px); font-weight: 900; color: #fff; margin-bottom: 8px; }
.page-hero-sub { font-size: 15px; color: var(--text2); max-width: 600px; }
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accentg); color: var(--accent);
    border: 1px solid rgba(245,166,35,.3); border-radius: 20px;
    padding: 4px 12px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── Stat cards ───────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 16px; text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.stat-val { font-size: 28px; font-weight: 900; line-height: 1.1; }
.stat-lbl { font-size: 12px; color: var(--text2); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-icon { font-size: 20px; margin-bottom: 8px; }

/* ── Map ──────────────────────────────────────── */
.map-container { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.map-container .leaflet-container { background: #0a1020; }
#map { height: 500px; width: 100%; }
#map-fullscreen { height: calc(100vh - var(--nav-h)); width: 100%; }
.map-overlay {
    position: absolute; z-index: 1000; background: rgba(10,14,26,.88);
    backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; font-size: 13px;
}
.map-overlay-tl { top: 12px; left: 12px; }
.map-overlay-tr { top: 12px; right: 12px; }
.map-overlay-bl { bottom: 12px; left: 12px; }
.map-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.map-ctrl-btn {
    background: rgba(10,14,26,.88); border: 1px solid var(--border2);
    color: var(--text); border-radius: 6px; padding: 6px 10px;
    font-size: 12px; cursor: pointer; transition: all var(--transition);
}
.map-ctrl-btn:hover, .map-ctrl-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* Strike marker animation */
@keyframes strikeFlash {
    0%   { opacity: 1; transform: scale(1); }
    40%  { opacity: .7; transform: scale(1.8); }
    100% { opacity: 0; transform: scale(0); }
}
.strike-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
    animation: strikeFlash 3s ease-out forwards;
}
.strike-dot.old { animation-duration: 0s; opacity: 0.3; }

/* ── Lightning counter widget ─────────────────── */
.lightning-widget {
    background: linear-gradient(135deg, var(--card) 0%, #0f1930 100%);
    border: 1px solid rgba(245,166,35,.2); border-radius: var(--radius-lg);
    padding: 24px; text-align: center; position: relative; overflow: hidden;
}
.lightning-widget::before {
    content: '⚡'; position: absolute; font-size: 100px; opacity: .04;
    top: -10px; right: -10px; pointer-events: none;
}
.lightning-widget .count {
    font-size: 48px; font-weight: 900; color: var(--accent);
    line-height: 1; font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px var(--accentg);
}
.lightning-widget .count-lbl { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 6px; }

/* ── Table ────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th {
    background: var(--bg3); color: var(--text2); text-align: left;
    padding: 10px 16px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
}
tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--card2); }

/* ── Badges & tags ────────────────────────────── */
.badge {
    display: inline-block; padding: 3px 9px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-yellow { background: rgba(250,204,21,.15); color: var(--yellow); }
.badge-orange { background: rgba(251,146,60,.15); color: var(--orange); }
.badge-red    { background: var(--redg); color: var(--red); }
.badge-green  { background: var(--greeng); color: var(--green); }
.badge-blue   { background: var(--blueg); color: var(--blue); }
.badge-gray   { background: rgba(255,255,255,.08); color: var(--text2); }

/* ── Alert cards ──────────────────────────────── */
.alert-card {
    border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px;
    display: flex; align-items: flex-start; gap: 14px; border-left: 4px solid;
}
.alert-card.code-rood    { background: var(--redg);   border-color: var(--red);   }
.alert-card.code-oranje  { background: rgba(251,146,60,.1); border-color: var(--orange); }
.alert-card.code-geel    { background: rgba(250,204,21,.08); border-color: var(--yellow); }
.alert-card.waarschuwing { background: var(--accentg); border-color: var(--accent); }
.alert-card.info         { background: var(--blueg);   border-color: var(--blue);  }
.alert-icon { font-size: 22px; flex-shrink: 0; }
.alert-body .alert-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.alert-body .alert-msg   { font-size: 13px; color: var(--text2); line-height: 1.5; }
.alert-body .alert-meta  { font-size: 11px; color: var(--text3); margin-top: 8px; }

/* ── Province map grid ────────────────────────── */
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.province-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 14px; cursor: pointer; transition: all var(--transition);
    display: flex; align-items: center; justify-content: space-between;
}
.province-card:hover { border-color: var(--accent); }
.province-card.active { border-color: var(--accent); background: var(--accentg); }
.province-name { font-weight: 600; font-size: 14px; }
.province-count { font-size: 22px; font-weight: 900; color: var(--accent); }

/* ── Auth pages ───────────────────────────────── */
.auth-page { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; font-size: 32px; margin-bottom: 24px; }
.auth-title { font-size: 22px; font-weight: 800; color: #fff; text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text2); text-align: center; margin-bottom: 28px; }
.auth-divider { text-align: center; color: var(--text3); font-size: 13px; margin: 16px 0; position: relative; }
.auth-divider::before, .auth-divider::after {
    content: ''; position: absolute; top: 50%; width: calc(50% - 24px); height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── Panel layout ─────────────────────────────── */
.panel-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; max-width: 1200px; margin: 32px auto; padding: 0 20px; }
.panel-sidebar { flex-shrink: 0; }
.panel-menu { list-style: none; }
.panel-menu li a {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px;
    color: var(--text2); font-size: 14px; font-weight: 500; transition: all var(--transition);
    text-decoration: none;
}
.panel-menu li a:hover, .panel-menu li a.active { background: var(--card); color: #fff; }
.panel-menu li a.active { color: var(--accent); }
.panel-menu-icon { font-size: 16px; width: 20px; text-align: center; }

/* ── Admin ────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.admin-sidebar {
    background: var(--bg2); border-right: 1px solid var(--border);
    padding: 24px 0; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.admin-sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); padding: 0 20px 8px; }
.admin-menu { list-style: none; }
.admin-menu li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; color: var(--text2); font-size: 14px; transition: all var(--transition);
    text-decoration: none; border-left: 3px solid transparent;
}
.admin-menu li a:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-menu li a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accentg); }
.admin-content { padding: 32px; }
.admin-page-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 24px; }

/* ── Grid layouts ─────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Section ──────────────────────────────────── */
.section { padding: 48px 0; }
.section-title {
    font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px;
}
.section-sub { font-size: 14px; color: var(--text2); margin-bottom: 28px; }

/* ── Hero (homepage) ──────────────────────────── */
.hero {
    background: linear-gradient(160deg, #060a14 0%, #0b1428 50%, #070e20 100%);
    padding: 60px 0 48px; position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(245,166,35,.05) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(79,158,255,.04) 0%, transparent 50%);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accentg); border: 1px solid rgba(245,166,35,.25);
    border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent);
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(28px, 4.5vw, 48px); font-weight: 900; line-height: 1.15;
    color: #fff; margin-bottom: 16px;
}
.hero-title .highlight { color: var(--accent); text-shadow: 0 0 30px rgba(245,166,35,.3); }
.hero-sub { font-size: 16px; color: var(--text2); line-height: 1.7; margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stat-val { font-size: 28px; font-weight: 900; color: var(--accent); }
.hero-stat-lbl { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Storm activity indicator ─────────────────── */
.storm-indicator {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px;
}
.storm-indicator.active { border-color: rgba(245,166,35,.4); background: linear-gradient(135deg, var(--card) 0%, var(--accentg) 100%); }
.storm-led {
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
    background: var(--text3);
}
.storm-led.active {
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(34,197,94,.4);
    animation: pulse 1.5s infinite;
}
.storm-led.warning {
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(245,166,35,.4);
    animation: pulse 1s infinite;
}

/* ── Chart placeholder ────────────────────────── */
.chart-area {
    background: var(--bg3); border-radius: 8px; padding: 20px;
    display: flex; align-items: flex-end; gap: 3px; height: 120px;
}
.chart-bar {
    flex: 1; background: var(--accentg); border-radius: 3px 3px 0 0;
    transition: height .3s ease; min-width: 4px;
    border-top: 2px solid rgba(245,166,35,.4);
}

/* ── Recent strikes list ──────────────────────── */
.strike-list { list-style: none; }
.strike-list li {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border); font-size: 13px;
}
.strike-list li:last-child { border-bottom: none; }
.strike-time { color: var(--text3); font-variant-numeric: tabular-nums; flex-shrink: 0; width: 60px; }
.strike-loc  { color: var(--text); flex: 1; }
.strike-icon { color: var(--accent); font-size: 14px; }

/* ── Footer ───────────────────────────────────── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text2); line-height: 1.6; max-width: 240px; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a {
    width: 34px; height: 34px; border-radius: 8px; background: var(--card);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--text2); font-size: 14px; transition: all var(--transition);
}
.footer-socials a:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text2); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 20px;
    font-size: 12px; color: var(--text3);
}

/* ── Utility ──────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-red    { color: var(--red); }
.text-green  { color: var(--green); }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--text2); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }
.fw-bold     { font-weight: 700; }
.fw-900      { font-weight: 900; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Pagination ───────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--card); border: 1px solid var(--border);
    color: var(--text2); font-size: 13px; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
}
.page-btn:hover { background: var(--card2); color: #fff; }
.page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.page-btn.disabled { opacity: .3; cursor: not-allowed; }

/* ── Leaflet overrides ────────────────────────── */
.leaflet-control-attribution { background: rgba(10,14,26,.7) !important; color: var(--text3) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--text2) !important; }
.leaflet-bar a { background: var(--card) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-bar a:hover { background: var(--card2) !important; color: #fff !important; }
.leaflet-popup-content-wrapper { background: var(--card) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: 10px !important; box-shadow: var(--shadow) !important; }
.leaflet-popup-tip { background: var(--card) !important; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-map-preview { display: none; }
    .panel-layout { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        background: rgba(8,12,24,.97); backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border); padding: 16px;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-card { padding: 24px 20px; }
    .section { padding: 32px 0; }
    #map { height: 350px; }
}
@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
