.film-atlas { margin: 0 0 2rem; --atlas-ink: #24372f; --atlas-paper: #fbf3de; }
.atlas-bar, .atlas-tools, .atlas-legend, .atlas-legend span { display: flex; align-items: center; }
.atlas-bar { justify-content: space-between; gap: .7rem 1rem; flex-wrap: wrap; margin: 0 0 .65rem; }
#map-summary-label { margin: 0; color: var(--ink-2); font: .82rem/1.4 var(--mono); }
.atlas-tools { border: 1px solid var(--hairline-strong); border-radius: 3px; overflow: hidden; background: var(--paper); }
.atlas-tools :is(select,button) { margin: 0; border: 0; border-radius: 0; padding: 0 .65rem; height: 36px; background: transparent; color: var(--ink); font: .84rem/1 var(--sans); cursor: pointer; }
.atlas-tools select { width: 9.4rem; }
.atlas-tools button { min-width: 38px; border-left: 1px solid var(--hairline-strong); }
.atlas-tools [data-atlas-action="in"], .atlas-tools [data-atlas-action="out"] { font-size: 1.13rem; }
.atlas-tools :disabled { opacity: .45; cursor: default; }
.atlas-tools :is(select,button):not(:disabled):hover { background: var(--paper-subtle); }
.atlas-tools :focus-visible { outline-offset: -3px; outline: 2px solid var(--teal); }
.atlas-frame { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #a9ad96; background: var(--atlas-paper); }
.atlas-plot { display: block; width: 100%; aspect-ratio: 2.52; touch-action: pan-y; outline-offset: -3px; }
.atlas-plot.can-pan { cursor: grab; touch-action: none; }
.atlas-plot.can-pan:active { cursor: grabbing; }
.atlas-pin, .atlas-city { cursor: pointer; }
.atlas-pin { outline: none; }
.atlas-hit { fill: transparent; }
.atlas-single { stroke: var(--atlas-paper); stroke-width: 1.65; }
.atlas-cluster { fill: #fcf6e7; stroke-width: 2.4; }
.atlas-focus { fill: none; stroke: var(--atlas-ink); stroke-width: 1.5; opacity: 0; }
.atlas-pin:focus-visible .atlas-focus, .atlas-pin.is-hot .atlas-focus { opacity: 1; }
.atlas-number { font: 700 11px Arial, sans-serif; fill: var(--atlas-ink); pointer-events: none; }
.atlas-city, .atlas-water, .atlas-north text { paint-order: stroke fill; stroke: var(--atlas-paper); stroke-linejoin: round; }
.atlas-city { font: 600 12px Arial, sans-serif; fill: var(--atlas-ink); stroke-width: 3px; }
.atlas-water { font-family: Georgia, serif; font-style: italic; fill: #315e62; stroke-width: 1.5px; stroke-opacity: .4; pointer-events: none; }
.atlas-land { fill: #565c46; font-family: Georgia, serif; letter-spacing: .11em; }
.atlas-scale { pointer-events:none; }
.atlas-scale path { fill:none; stroke:var(--atlas-ink); stroke-width:1.2; }
.atlas-scale text { font:600 10px Arial,sans-serif; fill:var(--atlas-ink); paint-order:stroke fill; stroke:var(--atlas-paper); stroke-width:2px; }
.atlas-leader { stroke: #5e6452; stroke-width: .9; pointer-events: none; }
.atlas-north { fill: var(--atlas-ink); pointer-events: none; }
.atlas-north text { font: 600 10px Arial, sans-serif; stroke-width: 2; }
.atlas-info { position: absolute; z-index: 3; right: 3px; top: 3px; }
.atlas-info summary { display: grid; place-items: center; list-style: none; width: 40px; height: 40px; cursor: pointer; }
.atlas-info summary::-webkit-details-marker { display: none; }
.atlas-info summary span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #647365; border-radius: 50%;
  background: #fbf6e7f2; color: var(--atlas-ink); font: bold italic 15px/1 Georgia,serif; }
.atlas-info[open] summary span { background: var(--atlas-ink); color: var(--atlas-paper); }
.atlas-info > div, .atlas-peek, .atlas-empty { position: absolute; border: 1px solid #a9ac94; background: #fff9ea; color: var(--atlas-ink); box-shadow: 0 3px 12px #27382a22; }
.atlas-info > div { right: 4px; top: 36px; width: min(15.5rem,calc(100vw - 68px)); padding: .7rem .8rem; font: .79rem/1.45 var(--sans); }
.atlas-peek { z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; max-width: calc(100% - 12px); pointer-events: none; }
.atlas-peek img { width: 64px; height: 48px; object-fit: cover; background: var(--paper-subtle); }
.atlas-peek strong, .atlas-peek p { font: .77rem/1.4 var(--sans); }
.atlas-peek strong { font-weight: 650; }
.atlas-peek p { margin: .1rem 0 0; }
.atlas-peek.is-picker { pointer-events: auto; max-height: calc(100% - 12px); overflow: auto; }
.atlas-choices { display: grid; margin-top: .25rem; }
.atlas-choices button { padding: .4rem .1rem; border: 0; border-top: 1px solid var(--hairline-strong); background: transparent; color: var(--teal); cursor: pointer; text-align: left; }
.atlas-empty { z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); width: max-content; max-width: calc(100% - 2rem); padding: .6rem .8rem; margin: 0; font: .85rem/1.4 var(--sans); }
.atlas-legend { flex-wrap: wrap; gap: .45rem 1.15rem; padding: .65rem 0; color: var(--ink-2); font: .79rem/1.3 var(--sans); }
.atlas-legend span { gap: .38rem; }
.atlas-dot { width: 9px; height: 9px; border-radius: 50%; }
.atlas-dot.us { background: var(--teal); }
.atlas-dot.intl { background: var(--vermilion); }
.atlas-group-key { display: grid; place-items: center; width: 15px; height: 15px; border: 1.4px solid var(--ink-2); border-radius: 50%; background: #fcf6e7; font: 700 9px/1 Arial, sans-serif; }
@media (prefers-reduced-motion: no-preference) {
  .atlas-peek:not([hidden]), .atlas-info[open] > div { animation: street-atlas-in .14s ease-out; }
  @keyframes street-atlas-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 620px) {
  .atlas-plot { aspect-ratio: 1.85; }
  .atlas-bar { gap: .55rem; }
  #map-summary-label { font: .79rem/1.4 var(--sans); }
  .atlas-tools :is(select,button) { height: 40px; }
  .atlas-legend { gap: .4rem .8rem; font-size: .72rem; }
}
