/* "Kameralar xaritasi" section (js/lpr-map.mjs): full-size MapLibre map with floating glass panels */
#lprSection .section-title{margin-bottom:12px}
.lm-wrap{position:relative;height:calc(100vh - 175px);min-height:520px;border-radius:18px;overflow:hidden;border:1px solid #e2e8f0;box-shadow:0 10px 30px rgba(15,23,42,.08);background:#e5e7eb;isolation:isolate}
.lm-wrap .lm-map{position:absolute!important;inset:0;width:100%;height:100%} /* maplibre-gl.css (loaded later) sets position:relative */
.lm-float{position:absolute;z-index:5;background:rgba(255,255,255,.86);backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4);border:1px solid rgba(255,255,255,.7);box-shadow:0 8px 28px rgba(15,23,42,.14);border-radius:16px}
.lm-search{top:14px;left:14px;width:min(430px,calc(100% - 28px - 64px))}
.lm-search form{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 14px}
.lm-search i{color:#64748b}
.lm-search input{flex:1;min-width:0;border:none;background:transparent;font-size:14px;padding:8px 0;outline:none;color:#0f172a}
.lm-search button{border:none;border-radius:11px;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;font-weight:700;font-size:13px;padding:9px 16px;cursor:pointer}
.lm-side{top:76px;left:14px;width:260px;padding:14px 14px 12px;max-height:calc(100% - 100px);overflow:auto;transition:transform .25s ease,opacity .25s ease}
.lm-side.hide{transform:translateX(-120%);opacity:0;pointer-events:none}
.lm-h{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b;margin:12px 0 7px}
.lm-h:first-child{margin-top:0}
.lm-tg{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;cursor:pointer;margin-bottom:6px;background:rgba(241,245,249,.8)}
.lm-tg input{display:none}
.lm-sw{width:34px;height:20px;border-radius:20px;background:#cbd5e1;position:relative;flex-shrink:0;transition:background .2s}
.lm-sw::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.lm-tg input:checked+.lm-sw-red{background:#e11d48}.lm-tg input:checked+.lm-sw-green{background:#059669}
.lm-tg input:checked+.lm-sw::after{left:17px}
.lm-tg input:disabled+.lm-sw{opacity:.4}
.lm-tg-t{display:flex;flex-direction:column;line-height:1.25}
.lm-tg-t b{font-size:13px;color:#0f172a}.lm-tg-t small{font-size:11px;color:#64748b}
.lm-side select{width:100%;padding:8px 10px;border-radius:10px;border:1px solid #cbd5e1;background:#fff;font-size:13px;color:#0f172a}
.lm-seg{display:flex;background:rgba(226,232,240,.8);border-radius:11px;padding:3px}
.lm-seg button{flex:1;border:none;background:transparent;padding:7px 4px;border-radius:9px;font-size:12px;font-weight:600;color:#475569;cursor:pointer}
.lm-seg button.on{background:#fff;color:#1d4ed8;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.lm-stat{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:10px 12px;border-radius:12px;background:linear-gradient(135deg,rgba(225,29,72,.1),rgba(79,70,229,.1));font-size:12px;color:#475569}
.lm-stat b{font-size:17px;color:#0f172a}
.lm-upd{font-size:11px;color:#94a3b8;margin-top:8px}
.lm-tools{top:14px;right:14px;display:flex;flex-direction:column;padding:5px;gap:4px}
.lm-tools button{width:38px;height:38px;border:none;border-radius:11px;background:transparent;color:#334155;font-size:16px;cursor:pointer}
.lm-tools button:hover{background:rgba(226,232,240,.9)}
.lm-panel{position:absolute;top:0;right:0;bottom:0;width:min(420px,100%);z-index:6;background:rgba(255,255,255,.95);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:-12px 0 36px rgba(15,23,42,.18);transform:translateX(105%);transition:transform .3s cubic-bezier(.2,.8,.2,1);overflow:auto}
.lm-panel.open{transform:none}
.lm-ph{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:18px 18px 16px;color:#fff;position:sticky;top:0;z-index:2}
.lm-ph-red{background:linear-gradient(135deg,#be123c,#e11d48 60%,#f43f5e)}
.lm-ph-green{background:linear-gradient(135deg,#047857,#059669 60%,#10b981)}
.lm-ph h3{margin:4px 0 0;font-size:18px;line-height:1.3;font-weight:700}
.lm-tag{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.9;display:flex;align-items:center;gap:6px}
.lm-x{border:none;background:rgba(255,255,255,.2);color:#fff;width:34px;height:34px;border-radius:10px;cursor:pointer;font-size:16px;flex-shrink:0}
.lm-body{padding:16px 18px 22px}
.lm-kv{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #f1f5f9;font-size:13px}
.lm-kv span{color:#64748b}.lm-kv b{color:#0f172a;text-align:right}
.lm-acts{display:flex;gap:8px;margin:14px 0 4px;flex-wrap:wrap}
.lm-acts a{flex:1;min-width:130px;text-align:center;padding:9px 10px;border-radius:11px;background:#eff6ff;color:#1d4ed8;font-weight:600;font-size:13px;text-decoration:none}
.lm-sec{margin:18px 0 10px;font-weight:700;font-size:13px;color:#0f172a;display:flex;align-items:center;gap:8px}
.lm-sec i{color:#059669}
.lm-near{display:flex;flex-direction:column;gap:8px}
.lm-near-it{display:flex;align-items:center;gap:10px;padding:6px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;text-align:left}
.lm-near-it:hover{border-color:#10b981;box-shadow:0 2px 10px rgba(16,185,129,.18)}
.lm-near-it img{width:92px;height:56px;object-fit:cover;border-radius:8px;background:#e2e8f0;flex-shrink:0}
.lm-near-it span{display:flex;flex-direction:column;min-width:0}
.lm-near-it b{font-size:12px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lm-near-it small{font-size:11px;color:#64748b}
.lm-empty{font-size:13px;color:#94a3b8;padding:10px 0}
.lm-hint{margin-top:14px;font-size:12px;color:#64748b;background:#f8fafc;border-radius:10px;padding:10px 12px;line-height:1.5}
.lm-view{position:relative;border-radius:14px;overflow:hidden;background:#0f172a;aspect-ratio:16/10;margin-bottom:10px}
.lm-view img,.lm-view video{width:100%;height:100%;object-fit:contain;display:block;background:#0f172a}
.lm-view-bar{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff;font-size:12px;font-weight:600}
.lm-view-bar button{border:none;background:rgba(255,255,255,.18);color:#fff;width:30px;height:30px;border-radius:8px;cursor:pointer}
.lm-view:fullscreen{aspect-ratio:auto;border-radius:0}
.lm-prog{position:absolute;left:0;top:0;height:3px;width:0;background:#34d399}
.lm-prog.run{animation:lmprog 5s linear forwards}
@keyframes lmprog{from{width:0}to{width:100%}}
.lm-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 0 rgba(239,68,68,.7);animation:lmpulse 1.6s infinite}
.lm-ph .lm-live-dot{background:#fff}
@keyframes lmpulse{0%{box-shadow:0 0 0 0 rgba(239,68,68,.6)}70%{box-shadow:0 0 0 8px rgba(239,68,68,0)}100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}}
.lm-loading{position:absolute;inset:0;z-index:7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:rgba(248,250,252,.92);font-weight:600;color:#475569}
.lm-spin{width:42px;height:42px;border-radius:50%;border:4px solid #e2e8f0;border-top-color:#e11d48;animation:lmspin .9s linear infinite}
@keyframes lmspin{to{transform:rotate(360deg)}}
.lm-wrap .maplibregl-ctrl-group{border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.15)}
body.dark .lm-wrap{border-color:#334155;background:#0f172a}
body.dark .lm-float{background:rgba(15,23,42,.82);border-color:rgba(51,65,85,.8)}
body.dark .lm-search input,body.dark .lm-tg-t b,body.dark .lm-stat b,body.dark .lm-kv b,body.dark .lm-sec,body.dark .lm-near-it b{color:#f1f5f9}
body.dark .lm-tg{background:rgba(30,41,59,.85)}
body.dark .lm-side select{background:#1e293b;color:#e2e8f0;border-color:#334155}
body.dark .lm-seg{background:rgba(30,41,59,.9)}body.dark .lm-seg button{color:#94a3b8}body.dark .lm-seg button.on{background:#334155;color:#93c5fd}
body.dark .lm-tools button{color:#cbd5e1}body.dark .lm-tools button:hover{background:rgba(51,65,85,.9)}
body.dark .lm-panel{background:rgba(15,23,42,.96)}
body.dark .lm-kv{border-color:#1e293b}
body.dark .lm-near-it{background:#1e293b;border-color:#334155}
body.dark .lm-acts a{background:rgba(37,99,235,.18);color:#93c5fd}
body.dark .lm-hint{background:#1e293b;color:#94a3b8}
body.dark .lm-loading{background:rgba(15,23,42,.92);color:#cbd5e1}
@media (max-width:760px){
  .lm-wrap{height:calc(100vh - 150px);border-radius:12px}
  .lm-side{top:auto;bottom:12px;left:12px;right:12px;width:auto;max-height:45%}
  .lm-side.hide{transform:translateY(130%)}
  .lm-search{width:calc(100% - 28px - 56px)}
}
