/* Embedded case-map visualisation */
.case-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 420px;
  max-height: 640px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(15, 26, 43, 0.25), 0 8px 16px -8px rgba(15, 26, 43, 0.12);
  background: #eef2f5;
  isolation: isolate;
}
.case-map .case-map-leaflet { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; filter: saturate(0.9); }
.case-map .case-map-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 400; }
.case-map .case-map-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 450;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(15,26,43,0.55) 100%);
}
.case-map .case-map-title {
  position: absolute; left: 24px; top: 20px; z-index: 460;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 10px 14px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(15,26,43,0.08);
  font-size: 0.85rem;
  color: var(--text-primary, #1b2129);
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.case-map .case-map-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-green, #00a673);
  box-shadow: 0 0 0 3px rgba(0,166,115,0.25);
  animation: caseMapPulse 2s infinite;
}
@keyframes caseMapPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,166,115,0.25); }
  50% { box-shadow: 0 0 0 7px rgba(0,166,115,0); }
}
.case-map .case-map-stats {
  position: absolute; left: 24px; bottom: 20px; z-index: 460;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.case-map .case-map-stats .pill {
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary, #1b2129);
  box-shadow: 0 2px 8px rgba(15,26,43,0.1);
  display: inline-flex; align-items: center; gap: 6px;
}
.case-map .case-map-stats .pill strong { color: var(--brand-green, #00a673); }
.case-map .case-map-stats .pill.amber { background: #fff4e6; border: 1px solid rgba(238,124,27,0.3); }
.case-map .case-map-stats .pill.amber strong { color: #ee7c1b; }
.case-map .case-map-stats .pill.red { background: #fdecec; border: 1px solid rgba(220,50,50,0.3); }
.case-map .case-map-stats .pill.red strong { color: #dc3232; }
.case-map .case-map-legend {
  position: absolute;
  right: 20px; top: 20px; z-index: 460;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(15,26,43,0.1);
  font-size: 0.78rem;
  color: var(--text-primary, #1b2129);
  line-height: 1.7;
}
.case-map .case-map-legend .legend-row { display: flex; align-items: center; gap: 8px; }
.case-map .case-map-legend .swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.case-map .case-map-legend .swatch.amber { background: #ee7c1b; box-shadow: 0 0 0 3px rgba(238,124,27,0.22); }
.case-map .case-map-legend .swatch.red { background: #dc3232; box-shadow: 0 0 0 3px rgba(220,50,50,0.22); }
.case-map .case-map-legend .swatch.green { background: #2d8a66; border: 0; border-radius: 0; width: 18px; height: 3px; box-shadow: none; opacity: 0.75; }
.case-map .case-map-legend .swatch.greenbright { background: #00c08a; border: 0; border-radius: 0; width: 18px; height: 4px; box-shadow: 0 0 6px rgba(0,192,138,0.6); }
.case-map .case-map-legend .swatch.blue { background: #2d75f6; box-shadow: 0 0 0 3px rgba(45,117,246,0.22); }
@media (max-width: 720px) {
  .case-map .case-map-legend { display: none; }
}
.case-map .leaflet-control-attribution {
  background: rgba(255,255,255,0.85) !important;
  font-size: 9px !important;
  color: #555 !important;
}
.case-map .leaflet-top.leaflet-left { display: none; }
.case-map-caption {
  text-align: center;
  color: var(--text-muted, #8a95a3);
  font-size: 0.88rem;
  margin-top: 12px;
  font-weight: 500;
}
