/* =====================================================================
   HL // Centre Tactique — thème sombre inspiré de l'interface Arma 3
   ===================================================================== */

:root {
    --bg: #0b0d0b;
    --bg-2: #111411;
    --panel: rgba(17, 20, 17, .94);
    --panel-2: #171b16;
    --line: #262c24;
    --line-2: #3a4336;
    --text: #d9d7cc;
    --muted: #868b7c;
    --accent: #9fb45a;
    --accent-2: #c4d77f;
    --accent-dim: rgba(159, 180, 90, .14);
    --sand: #d4a13a;
    --danger: #c9362b;
    --ok: #6fbf5a;
    --head: 'Rajdhani', 'Arial Narrow', sans-serif;
    --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
    --mono: 'Share Tech Mono', ui-monospace, Consolas, monospace;
    --topbar: 52px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(159,180,90,.06), transparent 60%),
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 48px 48px,
        var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--body);
    min-height: 100vh;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
h1 { font-size: 1.9rem; line-height: 1.1; }
code { font-family: var(--mono); background: var(--bg-2); padding: 1px 5px; border: 1px solid var(--line); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.right { margin-left: auto; }
.pad { padding: 14px 16px; margin: 0; }
.mt { margin-top: 18px; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 10px; }
.grow { flex: 1; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 1000;
    height: var(--topbar);
    display: flex; align-items: center; gap: 22px;
    padding: 0 18px;
    background: rgba(8, 10, 8, .96);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 1px 0 rgba(159,180,90,.25), 0 8px 24px rgba(0,0,0,.4);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand-text { font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark {
    width: 14px; height: 14px; flex: none;
    border: 2px solid var(--accent);
    transform: rotate(45deg);
    box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 6px var(--accent);
}
.nav { display: flex; height: 100%; }
.nav a {
    display: flex; align-items: center; padding: 0 16px; height: 100%;
    font-family: var(--head); font-weight: 600; font-size: .98rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav a.active { color: var(--text); border-bottom-color: var(--accent); background: linear-gradient(to top, var(--accent-dim), transparent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.clock { color: var(--accent); font-size: 1.05rem; letter-spacing: .08em; }
.user-chip { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.user-chip img { width: 28px; height: 28px; border: 1px solid var(--line-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); font-size: 1.1rem; padding: 4px 10px; cursor: pointer; }

/* ---------- Layout ---------- */
.main { min-height: calc(100vh - var(--topbar)); }
.container { max-width: 1240px; margin: 0 auto; padding: 26px 20px 60px; }
.container.narrow { max-width: 820px; }
.pad-top { padding-top: 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .8rem; letter-spacing: .18em; margin-bottom: 4px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }

/* ---------- Panels (façon fenêtre Arma) ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.panel + .panel { margin-top: 18px; }
.grid > .panel + .panel { margin-top: 0; }
.panel-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(159,180,90,.22), rgba(159,180,90,.05));
    border-bottom: 1px solid var(--line-2);
    border-left: 3px solid var(--accent);
    font-family: var(--head); font-weight: 700; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase;
}
.panel-danger .panel-head { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(201,54,43,.25), transparent); }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }
.panel-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(0,0,0,.2); }
.panel-foot .actions { margin-left: auto; }

/* ---------- Buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 18px; border: 1px solid var(--accent); background: var(--accent); color: #11140e;
    font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
    cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #11140e; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--accent-dim); color: #fff; border-color: var(--accent); }
.btn-danger { background: transparent; color: #e58a82; border-color: rgba(201,54,43,.6); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 3px 10px; font-size: .82rem; }
.btn-steam { padding: 12px 22px; font-size: 1.05rem; width: 100%; }

input, select, textarea {
    width: 100%; padding: 8px 10px;
    background: #0a0c0a; color: var(--text);
    border: 1px solid var(--line-2); border-radius: 0;
    font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="color"] { padding: 2px; height: 36px; cursor: pointer; }
textarea { resize: vertical; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label, label.field { display: flex; flex-direction: column; gap: 4px; font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.form label > input, .form label > select, .form label > textarea { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); font-weight: 400; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.ic { display: inline-grid; place-items: center; }
.ic svg { width: 22px; height: 22px; }
label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 400; color: var(--text); font-size: .92rem; cursor: pointer; }
.search { width: 280px; }

/* ---------- Tags / badges ---------- */
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: rgba(255,255,255,.03); }
.tag-warn { border-color: var(--sand); color: var(--sand); }
.tag-accent { border-color: var(--accent); color: var(--accent); }
.badge { display: inline-block; min-width: 88px; text-align: center; padding: 2px 6px; font-family: var(--mono); font-size: .75rem; }
.b-ok { background: rgba(111,191,90,.15); color: var(--ok); border: 1px solid rgba(111,191,90,.4); }
.b-warn { background: rgba(212,161,58,.15); color: var(--sand); border: 1px solid rgba(212,161,58,.4); }
.b-err { background: rgba(201,54,43,.18); color: #ef7d73; border: 1px solid rgba(201,54,43,.5); }
.status-dot { width: 9px; height: 9px; display: inline-block; }
.s-ok { background: var(--ok); } .s-warn { background: var(--sand); } .s-err { background: var(--danger); }

/* ---------- Flash ---------- */
.flash { position: fixed; top: calc(var(--topbar) + 12px); right: 16px; z-index: 2000; padding: 10px 16px; border: 1px solid; background: var(--panel-2); font-family: var(--mono); box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: fadeout .4s 4s forwards; }
body.bare .flash { top: 16px; }
.flash-ok { border-color: var(--accent); color: var(--accent-2); }
.flash-err { border-color: var(--danger); color: #ef7d73; }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
.flash-inline { padding: 10px 14px; border: 1px solid; font-family: var(--mono); margin-bottom: 10px; }
.flash-inline.ok { border-color: var(--accent); color: var(--accent-2); }
.flash-inline.err { border-color: var(--danger); color: #ef7d73; }
.alert-strip { display: block; margin-bottom: 18px; padding: 10px 14px; border: 1px solid var(--sand); color: var(--sand); background: rgba(212,161,58,.08); font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.alert-strip:hover { background: rgba(212,161,58,.16); color: var(--sand); }

/* ---------- Gate (connexion / attente) ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px;
    background:
        radial-gradient(circle at 50% 40%, rgba(159,180,90,.10), transparent 55%),
        repeating-radial-gradient(circle at 30% 70%, transparent 0 38px, rgba(159,180,90,.035) 39px 40px),
        transparent; }
.gate-panel { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.7); position: relative; }
.gate-panel::before, .gate-panel::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); }
.gate-panel::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.gate-panel::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.gate-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: linear-gradient(90deg, rgba(159,180,90,.28), rgba(159,180,90,.05)); border-bottom: 1px solid var(--line-2); font-family: var(--head); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.gate-head.warn { background: linear-gradient(90deg, rgba(212,161,58,.28), rgba(212,161,58,.04)); }
.gate-head.warn .brand-mark { border-color: var(--sand); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 6px var(--sand); }
.gate-code { margin-left: auto; color: var(--muted); font-size: .8rem; }
.gate-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.gate-body h1 { font-size: 1.7rem; }
.gate-body p { margin: 0; }
.gate-foot { display: flex; justify-content: space-between; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; letter-spacing: .1em; }
.gate-user { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.gate-user img { width: 48px; height: 48px; border: 1px solid var(--line-2); }

/* ---------- Tiles (QG) ---------- */
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); color: var(--text); transition: transform .12s, border-color .12s; }
.tile:hover { color: var(--text); border-color: var(--line-2); border-top-color: var(--accent-2); transform: translateY(-2px); }
.tile-label { font-family: var(--head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-size: .88rem; }
.tile-value { font-size: 1.7rem; color: var(--text); }
.tile-value small { font-size: .9rem; color: var(--muted); }
.tile-value.freq { color: var(--accent-2); font-size: 2.3rem; text-shadow: 0 0 18px rgba(159,180,90,.35); }
.tile-foot { color: var(--accent); font-size: .9rem; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--text); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--accent-dim); color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 8px 12px; font-family: var(--head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line-2); background: rgba(0,0,0,.25); }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table .actions { display: flex; gap: 6px; white-space: nowrap; }
.table .actions form { margin: 0; }
.row-main td { background: var(--accent-dim); }
.freq-cell { color: var(--accent-2); font-size: 1.1rem; white-space: nowrap; }
.notes-cell { max-width: 360px; font-size: .9rem; }
.diag td { vertical-align: middle; }
.diag-status { width: 110px; }

/* ---------- Radio ---------- */
.radio-hero { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 18px; margin-bottom: 18px; }
.radio-screen {
    padding: 20px 24px; border: 1px solid var(--line-2);
    background: linear-gradient(180deg, #151b11, #0c100a);
    box-shadow: inset 0 0 40px rgba(159,180,90,.12), 0 10px 30px rgba(0,0,0,.4);
    position: relative; overflow: hidden;
}
.radio-screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); pointer-events: none; }
.radio-screen-label { color: var(--accent); font-size: .8rem; letter-spacing: .2em; }
.radio-freq { font-size: 3.4rem; line-height: 1.1; color: var(--accent-2); text-shadow: 0 0 22px rgba(159,180,90,.55); }
.radio-screen-name { font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; }
.radio-notes { padding: 18px; border: 1px solid var(--line); background: var(--panel); }

/* ---------- Intel ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters input { flex: 1; min-width: 200px; }
.filters select { width: auto; min-width: 180px; }
.intel-list { display: flex; flex-direction: column; gap: 16px; }
.intel-list .panel + .panel { margin-top: 0; }
.intel.pinned { border-color: rgba(212,161,58,.5); }
.intel.pinned .panel-head { border-left-color: var(--sand); }
.intel-title { font-size: 1.08rem; }
.intel-content { white-space: normal; overflow-wrap: anywhere; }
.panel-foot form { margin: 0; }
.actions { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Admin ---------- */
.user-card { margin-top: 14px; }
.user-card.is-pending { border-color: rgba(212,161,58,.5); }
.user-card.is-pending .panel-head { border-left-color: var(--sand); background: linear-gradient(90deg, rgba(212,161,58,.2), transparent); }
.user-head { text-transform: none; letter-spacing: .02em; }
.user-name { font-size: 1.1rem; }
.avatar { width: 30px; height: 30px; border: 1px solid var(--line-2); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
fieldset { border: 1px solid var(--line); margin: 0; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 4px; }
legend { font-family: var(--head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-size: .82rem; padding: 0 6px; }
.note { max-width: 320px; }

/* ---------- Carte ---------- */
.page-map .main { height: calc(100vh - var(--topbar)); min-height: 0; overflow: hidden; }
.map-layout { display: grid; grid-template-columns: 1fr 360px; height: 100%; }
.map-wrap { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #0f130f; }
.map-toolbar { position: absolute; top: 12px; left: 56px; z-index: 500; display: flex; gap: 6px; }
.tool { padding: 7px 14px; background: rgba(10,12,10,.92); color: var(--text); border: 1px solid var(--line-2); font-family: var(--head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.tool:hover { border-color: var(--accent); }
.tool.active { background: var(--accent); color: #11140e; border-color: var(--accent); }
.map-hint { position: absolute; top: 56px; left: 56px; z-index: 500; padding: 8px 12px; background: rgba(10,12,10,.92); border: 1px solid var(--accent); font-family: var(--mono); font-size: .85rem; max-width: 420px; }
.map-hint b { color: var(--accent-2); }
.map-hint .row { margin-top: 6px; }
.map-readout { position: absolute; bottom: 10px; left: 10px; z-index: 500; display: flex; gap: 16px; padding: 5px 12px; background: rgba(10,12,10,.88); border: 1px solid var(--line-2); font-size: .85rem; color: var(--muted); }
.map-readout b { color: var(--accent-2); font-weight: 400; }

.map-side { display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line-2); min-height: 0; }
.side-tabs { display: flex; border-bottom: 1px solid var(--line-2); }
.side-tabs button { flex: 1; padding: 10px; background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; font-family: var(--head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.side-tabs button.active { color: var(--text); border-bottom-color: var(--accent); background: var(--accent-dim); }
.side-pane { flex: 1; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; }
.side-filters { padding: 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.item-list { flex: 1; }
.item-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item-row:hover, .item-row.selected { background: var(--accent-dim); }
.item-row .ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; }
.item-row .meta { min-width: 0; flex: 1; }
.item-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-row .sub { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.item-group { padding: 6px 12px; font-family: var(--head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--accent); background: rgba(0,0,0,.3); border-bottom: 1px solid var(--line); }
.item-detail { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.item-detail .form { gap: 10px; }
.detail-title { font-family: var(--head); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }
.detail-desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; padding-top: 2px; }
.kv dd { margin: 0; font-family: var(--mono); }
.eta-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.eta-table td { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.eta-table td:last-child { text-align: right; font-family: var(--mono); color: var(--accent-2); }
.eta-table tr.sel td { color: var(--sand); }
.eta-table tr.sel td:last-child { color: var(--sand); }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.swatch { width: 22px; height: 22px; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.swatch.sel { outline: 2px solid #fff; outline-offset: 1px; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
.icon-pick button { height: 36px; background: #0a0c0a; border: 1px solid var(--line-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.icon-pick button.sel { border-color: var(--accent); background: var(--accent-dim); }
.icon-pick svg { width: 20px; height: 20px; }

/* Leaflet : habillage */
.leaflet-container { font-family: var(--body); background: #0f130f; }
.leaflet-bar a, .leaflet-bar a:hover { background: rgba(10,12,10,.92); color: var(--text); border-color: var(--line-2); border-radius: 0 !important; }
.leaflet-bar { border: 1px solid var(--line-2) !important; border-radius: 0 !important; box-shadow: none !important; }
.leaflet-control-attribution { display: none; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel-2); color: var(--text); border-radius: 0; border: 1px solid var(--line-2); }
.mk { width: 30px; height: 30px; display: grid; place-items: center; background: rgba(8,10,8,.85); border: 2px solid currentColor; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.mk svg { width: 18px; height: 18px; }
.mk.sel { box-shadow: 0 0 0 3px rgba(255,255,255,.8), 0 2px 8px rgba(0,0,0,.6); }
.mk-label { position: absolute; left: 34px; top: 5px; white-space: nowrap; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .05em; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.hide-labels .mk-label, .hide-labels .line-label { display: none; }
.line-label { background: rgba(8,10,8,.85) !important; border: 1px solid #3a4336 !important; color: #fff !important; border-radius: 0 !important; font-family: var(--mono); font-size: 11px; padding: 1px 6px !important; box-shadow: none !important; white-space: nowrap; }
.line-label::before { display: none; }
.grid-label { font-family: var(--mono); color: rgba(230,230,210,.55); font-size: 11px; }
.vertex { background: #fff; border: 2px solid #000; width: 10px; height: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid-side { grid-template-columns: 1fr; }
    .radio-hero { grid-template-columns: 1fr; }
    .map-layout { grid-template-columns: 1fr; grid-template-rows: 1fr 45%; }
    .map-side { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; top: var(--topbar); left: 0; right: 0; flex-direction: column; height: auto; background: rgba(8,10,8,.98); border-bottom: 1px solid var(--line-2); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 18px; }
    .brand-text { font-size: .95rem; }
    .user-chip span, .clock { display: none; }
    .topbar { gap: 12px; }
    .search { width: 100%; }
    .map-toolbar { left: 50px; flex-wrap: wrap; }
}
