/* Camera maps: original CRISALI colors, user-entered locations and private images. */
.map-mini{margin:0;min-width:0}
.map-frame{padding:16px;background:#f7f9fc;border:1px solid #dce3ef;border-radius:9px;min-width:0}
.map-frame-mini{padding:12px;border:0;background:#f3f6fb;border-radius:8px}
.map-canvas{position:relative;width:100%;min-width:0;background:#edf2f9;border-radius:7px;isolation:isolate}
.map-canvas>.map-base,.map-canvas>.map-image,.coverage-card .coverage-mini .map-canvas>.map-base{display:block;width:100%;height:100%;max-height:none;position:absolute;inset:0;border-radius:7px;object-fit:contain;pointer-events:none;user-select:none}
.map-base .map-perimeter{fill:none;stroke:#7186ab;stroke-width:4}
.map-base .map-building{fill:#dce5f6;stroke:var(--brand);stroke-width:1.3}
.map-base .map-detail{fill:none;stroke:#819ac4;stroke-width:2}
.map-base .map-parking{fill:#e0e8f7;stroke:#7a95c3;stroke-width:1.2}
.map-base .map-inspection{fill:#fff4d7;stroke:#b49a54;stroke-width:1.2;stroke-dasharray:5 4}
.map-base .map-lane{fill:none;stroke:#b3c1db;stroke-width:2;stroke-dasharray:7 6}
.map-base .map-island{fill:none;stroke:#d0dbef;stroke-width:22;stroke-linecap:round}
.map-base .map-caption-label{fill:#788bac;text-anchor:middle;font:11px ui-sans-serif,system-ui,sans-serif;letter-spacing:1px}
.map-marker{position:absolute;z-index:2;transform:translate(-50%,-50%);width:34px;height:34px;border:2px solid #fff;border-radius:50%;padding:0;display:grid;place-items:center;background:var(--brand);color:#fff;box-shadow:0 1px 5px #172c5952;cursor:pointer;touch-action:manipulation}
.map-marker:hover{background:var(--brand-hover);z-index:4;box-shadow:0 0 0 3px #3e5ca528}
.map-marker.is-selected{background:var(--yellow);color:#203764;border-color:#fff;z-index:3;box-shadow:0 0 0 3px #f9bd3a66}
.map-marker:focus-visible{outline:3px solid #192c55;outline-offset:3px;z-index:5}
.map-marker .icon,.coverage-card .coverage-mini .map-marker .icon{width:17px;height:17px;max-height:17px;stroke-width:1.8}
.map-marker-number{position:absolute;bottom:-5px;right:-7px;min-width:17px;height:17px;padding:0 3px;display:grid;place-items:center;background:#fff;color:#294474;border:1px solid #c7d3e9;border-radius:5px;font-size:.6875rem;font-weight:650;line-height:1}
.map-frame-mini .map-marker{width:25px;height:25px;border-width:1.5px}
.map-frame-mini .map-marker .icon,.coverage-card .coverage-mini .map-frame-mini .map-marker .icon{width:13px;height:13px;max-height:13px}
.map-frame-mini .map-marker-number{min-width:14px;height:14px;right:-6px;bottom:-5px;font-size:.625rem;padding:0 2px}
.map-mini-caption{display:flex;flex-direction:column;gap:4px;margin-top:9px;color:#6c7c96;font-size:.75rem;line-height:1.4}
.map-mini-caption strong{font-weight:550;color:#405b88}
.map-image-error{position:absolute;inset:0;margin:0;padding:20px;background:#f8f1e3;color:#775723;display:flex;align-items:center;justify-content:center;text-align:center;font-size:.875rem;line-height:1.5;z-index:1}
.map-image-error[hidden]{display:none}
.map-image-missing .map-image{visibility:hidden}
.map-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;min-height:0;flex:1}
.map-main-panel{min-height:0;display:flex;flex-direction:column}
.map-main-panel>.panel-head{flex-shrink:0}
.map-main-body{padding:16px;overflow:auto;min-height:0}
.map-main-body>.map-frame{max-width:920px;margin:auto}
.map-main-body .map-canvas{max-width:100%;margin:auto}
.map-main-body>.section-note{font-size:.8125rem;margin-top:12px}
.map-explanation{display:flex;justify-content:space-between;gap:12px;margin-top:12px;color:#5c7392;font-size:.8125rem;line-height:1.4;flex-wrap:wrap}
.map-camera-panel{min-height:0;display:flex;flex-direction:column;align-self:start;max-height:100%}
.map-camera-panel>.panel-head{flex-shrink:0}
.map-camera-list{padding:0 14px;overflow:auto;min-height:0}
.map-camera-row{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #e0e6f1}
.map-camera-row:last-child{border-bottom:0}
.map-list-number{display:grid;place-items:center;min-width:26px;height:27px;border-radius:6px;background:var(--brand-soft);color:var(--brand);font-size:.8125rem;font-weight:600}
.map-list-info{min-width:0;flex:1}
.map-list-info strong{display:block;font-size:.875rem;font-weight:550;line-height:1.4;overflow-wrap:anywhere;color:#284467}
.map-list-info>span{display:block;margin-top:4px;color:#6a7e9b;font-size:.75rem;line-height:1.35}
.map-camera-row>.icon-button{width:30px;height:30px;border-radius:7px}
.map-camera-row>.icon-button .icon{width:17px;height:17px}
.map-list-foot{display:flex;gap:7px;align-items:center;border-top:1px solid #dfe5f0;color:#6c7f9b;padding:12px 14px;font-size:.75rem;flex-shrink:0}
.map-list-foot>.icon{width:15px;height:15px}
.map-empty{text-align:center;padding:29px 10px;color:#6b7d96}
.map-empty>.icon{margin:0 auto 12px;width:31px;height:31px;color:#7c95bc}
.map-empty h3{font-size:.9375rem;color:#345176}
.map-empty p{font-size:.8125rem;line-height:1.5;margin-top:8px}
dialog.map-editor-dialog{width:min(1020px,calc(100vw - 28px));max-height:calc(100dvh - 28px)}
.map-editor-dialog .modal-header{padding:17px 20px}
.map-editor-dialog .modal-body{padding:18px 20px}
.map-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:20px;align-items:start}
.map-editor-drawing{min-width:0}
.map-editor-drawing .map-frame{padding:17px}
.map-canvas-editable{cursor:crosshair;touch-action:manipulation}
.map-editor-tools{display:flex;flex-direction:column;gap:15px;min-width:0}
.map-editor-tools .field{font-size:.875rem}
.map-editor-tools .field input,.map-editor-tools .field select{padding:9px 10px;font-size:.875rem}
.map-editor-tools .field select{padding-right:32px}
.map-upload-field input[type=file]{font-size:.75rem;line-height:1.5;background:#f7f9fc}
.map-upload-field input[type=file]::file-selector-button{font:inherit;background:#e9eff9;color:#34527e;border:1px solid #c7d4e9;border-radius:5px;padding:6px 8px;margin-right:7px;cursor:pointer}
.map-upload-field input:disabled{opacity:.6;cursor:not-allowed}
.map-editor-tools .field small{font-size:.75rem;line-height:1.4}
.map-image-note{font-size:.75rem;line-height:1.5;color:#7b6a42;padding:9px 10px;border:1px solid #e5d9b8;border-radius:7px;background:#fff9ec;overflow-wrap:anywhere}
.map-coordinate-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.map-position-actions{display:flex;gap:8px;align-items:center}
.map-position-actions .icon-button{width:34px;height:34px}
.map-position-actions>span{font-size:.75rem;line-height:1.4;color:#6d7f98;margin-left:2px}
.map-editor-hint{font-size:.875rem;color:#365a89;line-height:1.5;margin-top:12px}
.map-editor-count{font-size:.75rem;color:#6f819d;line-height:1.4;margin-top:5px}
.map-editor-empty,.map-editor-note{font-size:.75rem;line-height:1.5;color:#667d9a}
.map-editor-empty{padding:10px 12px;background:#f1f5fb;border:1px solid #d9e3f1;border-radius:7px}
.map-editor-dialog .form-actions{margin-top:18px;padding-top:15px;border-top:1px solid #dce4ef}
@media(min-width:901px){.map-main-body .map-frame{width:min(100%,calc((100dvh - 360px) * 1.45))}.map-editor-drawing .map-frame{max-height:none}}
@media(max-width:1000px){.map-workspace{grid-template-columns:minmax(0,1fr) 260px;gap:14px}.map-editor-layout{grid-template-columns:minmax(0,1fr) 235px;gap:15px}}
@media(max-width:800px){.map-workspace{grid-template-columns:1fr}.map-camera-panel{max-height:none}.map-main-body{overflow:visible}.map-editor-layout{grid-template-columns:1fr}.map-editor-tools{display:grid;grid-template-columns:1fr 1fr;gap:14px}.map-image-note,.map-editor-empty,.map-editor-note{grid-column:1/-1}.map-editor-tools>.map-upload-field{grid-column:1/-1}.map-editor-drawing .map-frame{max-width:620px;margin:auto}.map-editor-tools>.field{grid-column:1/-1}}
@media(max-width:520px){.map-main-body{padding:12px}.map-main-body>.map-frame{padding:12px}.map-editor-dialog .modal-header,.map-editor-dialog .modal-body{padding:15px}.map-editor-layout{gap:15px}.map-editor-drawing .map-frame{padding:12px}.map-editor-tools{display:flex;gap:13px}.map-marker{width:30px;height:30px}.map-marker .icon{width:15px;height:15px}.map-explanation{font-size:.75rem}.map-editor-hint{font-size:.8125rem}}
