.cm-map{position:relative;width:100%;background:#eef0ec}
.cm-map .maplibregl-canvas{outline:none}
.cm-msg{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;font:600 13px/1.5 Inter,system-ui,sans-serif;color:#64748b;background:#f1f5f9}
.cm-pop .maplibregl-popup-content{padding:14px 16px 13px;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.22);font-family:Inter,system-ui,sans-serif}
.cm-pop .maplibregl-popup-close-button{width:28px;height:28px;font-size:18px;color:#94a3b8;border-radius:8px;right:4px;top:4px}
.cm-pop .maplibregl-popup-close-button:hover{background:#f1f5f9;color:#0f172a}
.cm-pop-t{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:#64748b}
.cm-pop-t i{font-style:normal;height:20px;padding:0 7px;border-radius:6px;display:inline-flex;align-items:center;color:#fff;background:#2563eb}
.cm-pop-t i.dc{background:#059669}
.cm-pop-t i.priv{background:#64748b}
.cm-pop-n{display:block;margin-top:8px;padding-right:18px;font-size:14.5px;font-weight:800;line-height:1.3;color:#0f172a}
.cm-pop-n:hover{color:#047857}
.cm-pop-m{margin-top:4px;font-size:12.5px;color:#475569}
.cm-pop-a{margin-top:10px;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:9px;background:#0f172a;color:#fff;font-size:12.5px;font-weight:700}
.cm-pop-a:hover{background:#1e293b;color:#fff}
.cm-legend{position:absolute;left:10px;bottom:10px;z-index:2;display:flex;gap:10px;align-items:center;padding:7px 10px;border-radius:10px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(15,23,42,.15);font:600 11.5px/1 Inter,system-ui,sans-serif;color:#334155}
.cm-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.cm-legend i{width:10px;height:10px;border-radius:50%}
.cm-legend b{font-weight:inherit}
.cm-lg-short{display:none}
.cm-stage .cm-map{height:clamp(600px,calc(100vh - 150px),780px)}
.cm-fbtn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 11px 0 13px;border-radius:11px;background:#0f172a;color:#fff;font:700 13.5px/1 Inter,system-ui,sans-serif;box-shadow:0 6px 18px rgba(15,23,42,.28);transition:background .15s}
.cm-fbtn:hover{background:#1e293b}
.cm-fbtn svg{width:17px;height:17px;flex:none}
.cm-fbtn .arr{width:15px;height:15px;color:#6ee7b7;transition:transform .2s}
.cm-fbtn:hover .arr{transform:translateX(2px)}
.cm-fbtn b{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#10b981;font-size:11px;display:inline-grid;place-items:center}
.cm-filter{position:absolute;z-index:4;top:0;bottom:0;left:0;width:340px;max-width:100%;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e2e8f0;box-shadow:14px 0 36px rgba(15,23,42,.16);transform:translateX(-104%);visibility:hidden;transition:transform .25s cubic-bezier(.2,.8,.2,1),visibility 0s .25s}
.cm-filter.open{transform:none;visibility:visible;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.cm-fhead{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;height:56px;padding:0 10px 0 20px;border-bottom:1px solid #f1f5f9}
.cm-fclose{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#64748b}
.cm-fclose:hover{background:#f1f5f9;color:#0f172a}
.cm-fclose svg{width:18px;height:18px}
.cm-fbody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px 20px}
.cm-ffoot{flex:none;display:flex;gap:8px;padding:12px 20px;border-top:1px solid #f1f5f9;background:#fff}
.cm-dock{position:absolute;left:12px;top:12px;z-index:3;max-width:calc(100% - 62px);display:flex;flex-direction:column;align-items:stretch;gap:8px;pointer-events:none}
.cm-dock>*{pointer-events:auto}
.cm-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.cm-tools .cm-legend{position:static;flex:1;justify-content:center;height:40px;padding:0 12px;border-radius:11px}
.cm-lbtn .arr{margin-left:auto}
.cm-lbtn{display:flex;align-items:center;gap:8px;height:40px;padding:0 11px 0 13px;border-radius:11px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;font:700 13.5px/1 Inter,system-ui,sans-serif;box-shadow:0 4px 14px rgba(15,23,42,.16)}
.cm-lbtn:hover{border-color:#a7f3d0}
.cm-lbtn svg{width:17px;height:17px;flex:none;color:#047857}
.cm-lbtn .arr{width:15px;height:15px;color:#94a3b8;transition:transform .2s}
.cm-lbtn:hover .arr{transform:translateX(2px)}
.cm-lbtn b{min-width:20px;height:20px;padding:0 7px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;display:inline-grid;place-items:center;font-variant-numeric:tabular-nums}
.cm-list{position:absolute;left:12px;top:60px;bottom:12px;z-index:3;width:380px;max-width:calc(100% - 24px);display:none;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 12px 32px rgba(15,23,42,.18);overflow:hidden;transition:opacity .15s}
.cm-stage.list-open .cm-list{display:flex}
.cm-stage.list-open .cm-lbtn{display:none}
.cm-stage.hinting .cm-lbtn{border-color:#6ee7b7;box-shadow:0 0 0 4px rgba(16,185,129,.22),0 4px 14px rgba(15,23,42,.16)}
.cm-hint{position:absolute;left:0;top:calc(100% + 12px);width:300px;max-width:calc(100vw - 56px);padding:14px 16px;border-radius:12px;background:#0f172a;color:#cbd5e1;font:500 12.5px/1.5 Inter,system-ui,sans-serif;box-shadow:0 14px 34px rgba(15,23,42,.3);animation:cmHint .35s cubic-bezier(.2,.8,.2,1)}
.cm-hint[hidden],.cm-stage.list-open .cm-hint{display:none}
.cm-hint::before{content:"";position:absolute;left:28px;top:-5px;width:12px;height:12px;border-radius:2px;background:#0f172a;transform:rotate(45deg)}
.cm-hint b{display:block;margin-bottom:3px;color:#fff;font-size:13.5px;font-weight:800}
.cm-hint span{display:block}
.cm-hint button{margin-top:10px;height:30px;padding:0 12px;border-radius:8px;background:#10b981;color:#fff;font-size:12.5px;font-weight:700}
.cm-hint button:hover{background:#059669}
@keyframes cmHint{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.cm-lhead{flex:none;padding:10px 10px 12px 16px;border-bottom:1px solid #f1f5f9}
.cm-lhead [role=group]{margin-right:6px}
.cm-lbody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
@media (max-width:640px){
  .cm-stage .cm-map{height:calc(100svh - 190px)}
  .cm-filter{width:100%;border-right:0}
  .cm-list{inset:0;width:auto;max-width:none;border:0;border-radius:0;z-index:4}
  .cm-tools .cm-legend{gap:8px;padding:0 10px}
  .cm-tools .cm-lg-full{display:none}
  .cm-tools .cm-lg-short{display:inline}
}
.maplibregl-ctrl-group{border-radius:10px!important;box-shadow:0 2px 8px rgba(15,23,42,.15)!important}
.maplibregl-ctrl-group button{width:34px!important;height:34px!important}
