.case-atlas {
  --atlas-line: #26343a;
  --atlas-ink: #e5eff0;
  --atlas-muted: #9aaeb3;
  --atlas-aqua: #87f2d4;
  --atlas-amber: #ffd08c;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--atlas-line);
  border-radius: 16px;
  background: #080c0e;
  color: var(--atlas-ink);
}
.case-atlas[hidden], .case-atlas [hidden] { display: none; }
.atlas-bar, .atlas-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 12px clamp(12px, 2vw, 24px);
  background: #10171b;
}
.atlas-bar { border-bottom: 1px solid var(--atlas-line); }
.atlas-brand, .atlas-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--atlas-aqua);
  font: 600 .68rem/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .13em;
}
.atlas-brand > span:first-child {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0 2px, transparent 3px);
}
.atlas-views { display: flex; flex-wrap: wrap; gap: 5px; }
.atlas-views button {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--atlas-muted);
  font: inherit;
  font-size: .79rem;
  cursor: pointer;
}
.atlas-views button:hover, .atlas-views [aria-pressed="true"] {
  border-color: #35504e;
  background: #162724;
  color: var(--atlas-aqua);
}
.atlas-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(270px, 28%, 340px);
}
.atlas-stage { position: relative; min-width: 0; min-height: 508px; }
.atlas-map {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 52% 40%, #102126 0%, #070c10 72%);
  font-family: inherit;
  isolation: isolate;
}
.atlas-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.81) contrast(1.18); }
.atlas-map .leaflet-tile { opacity: .86 !important; }
.atlas-map .leaflet-control-zoom { border: 1px solid #34474c; }
.atlas-map .leaflet-bar a {
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-color: #34474c;
  background: #111c21;
  color: #e6f5f4;
}
.atlas-map .leaflet-bar a:hover { background: #233538; }
.atlas-map .leaflet-bar a.leaflet-disabled { color: #65767c; }
.atlas-map .leaflet-control-attribution { background: #0a1217df; color: #a2b6bc; font-size: .58rem; }
.atlas-map .leaflet-control-attribution a { color: #c3d7d9; }
.atlas-legend {
  position: absolute;
  z-index: 500;
  inset: auto 12px 13px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 11px;
  border: 1px solid #2f3e43;
  border-radius: 5px;
  background: #0a1217ee;
  color: #c3d2d5;
  font-size: .69rem;
  pointer-events: none;
}
.atlas-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.atlas-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--atlas-aqua); }
.atlas-legend .atlas-legend-city { border: 1px solid var(--atlas-amber); background: transparent; }
.atlas-pin {
  display: grid;
  place-items: center;
  border: 1px solid var(--atlas-aqua);
  border-radius: 50%;
  background: #112a29;
  color: var(--atlas-aqua);
  box-shadow: 0 0 0 4px #78e9c720, 0 0 20px #78e9c744;
  font: 700 .71rem/1 ui-monospace, Consolas, monospace;
}
.atlas-pin-city { border-color: var(--atlas-amber); background: #2b231a; color: var(--atlas-amber); box-shadow: 0 0 0 4px #ffcb8024, 0 0 20px #ffcb8040; }
.atlas-pin-city::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.atlas-pin-address { background: var(--atlas-aqua); }
.atlas-pin.is-selected { box-shadow: 0 0 0 5px #e1fff65e, 0 0 24px #78e9c7a0; }
.atlas-pin:hover, .atlas-pin:focus-visible { box-shadow: 0 0 0 5px #e1fff65e, 0 0 24px #78e9c7a0; }
.atlas-pin-city::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: atlas-signal 3.8s ease-out infinite;
}
@keyframes atlas-signal {
  0%, 25% { transform: scale(.88); opacity: .65; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}
.atlas-map .atlas-label {
  padding: 3px 6px;
  border: 1px solid #314148;
  border-radius: 4px;
  background: #10191fed;
  color: #e0efef;
  box-shadow: none;
  font-size: .72rem;
  font-weight: 650;
}
.atlas-map .atlas-label::before { display: none; }
.atlas-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 508px;
  min-width: 0;
  border-left: 1px solid var(--atlas-line);
  background: #10171b;
}
.atlas-panel-head { padding: 16px; }
.atlas-panel .atlas-panel-title { margin: 6px 0 12px; color: var(--atlas-ink); font-size: 1.23rem; line-height: 1.2; }
.atlas-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid #35454b;
  border-radius: 6px;
  background: #080e11;
  color: var(--atlas-muted);
}
.atlas-search:focus-within { border-color: var(--atlas-aqua); }
.atlas-search svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.atlas-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--atlas-ink);
  color-scheme: dark;
  font: inherit;
  font-size: .85rem;
}
.atlas-search input::placeholder { color: var(--atlas-muted); }
.atlas-count { margin: 8px 0 0; color: var(--atlas-muted); font-size: .72rem; }
.atlas-results { overflow: auto; padding-inline: 9px; scrollbar-color: #41575e #10171b; }
.atlas-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-top: 1px solid #233137;
  background: none;
  color: #d7e3e5;
  font: inherit;
  font-size: .78rem;
  text-align: start;
  cursor: pointer;
}
.atlas-result:hover, .atlas-result[aria-pressed="true"] { background: #1a2a2b; color: var(--atlas-aqua); }
.atlas-result span:last-child { color: var(--atlas-aqua); }
.atlas-selection { padding: 10px 16px; border-top: 1px solid var(--atlas-line); background: #14221f; }
.atlas-selection strong { display: block; margin-bottom: 2px; font-size: .8rem; }
.atlas-selection p { margin: 0 0 4px; color: #b2c8c7; font-size: .72rem; }
.atlas-selection a { color: var(--atlas-aqua); font-size: .76rem; }
.atlas-foot { border-top: 1px solid var(--atlas-line); color: var(--atlas-muted); font-size: .68rem; }
.atlas-foot a { color: #b4c6c8; text-decoration: underline; text-underline-offset: 2px; }
.case-atlas :is(button, a, .leaflet-marker-icon):focus-visible { outline: 2px solid var(--atlas-aqua); outline-offset: -2px; }
.atlas-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 750px) {
  .atlas-body { grid-template-columns: minmax(0, 1fr); }
  .atlas-stage { min-height: clamp(270px, 65vw, 420px); }
  .atlas-panel { height: 355px; border-left: 0; border-top: 1px solid var(--atlas-line); }
}
@media (max-width: 400px) {
  .atlas-bar { padding-inline: 9px; }
  .atlas-views { gap: 3px; }
  .atlas-views button { padding-inline: 4px; font-size: .72rem; }
  .atlas-map .atlas-label { padding: 2px 4px; font-size: .63rem; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-pin-city::after { animation: none; opacity: 0; }
}
