/* An independent overlay keeps directional previews attached to the viewport edges. */
.map-activities {
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
}
.map-activities .reel-pin {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: var(--reel-width);
  height: var(--reel-height);
  overflow: hidden;
  pointer-events: auto;
  border-width: 2px;
  border-radius: 7px;
  box-shadow: 0 1px 3px #241a2038, 0 3px 8px #241a2029;
}
.map-activities .reel-pin:focus-visible,
.map-activities .reel-pin:hover {
  z-index: 2;
  box-shadow: 0 0 0 2px white, 0 3px 10px #241a2055;
}
.reel-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.reel-direction {
  position: absolute;
  bottom: 3px;
  left: 3px;
  display: none;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  color: white;
  background: #231f20ed;
  box-shadow: 0 0 0 1px #fff9;
}
.edge-reel .reel-direction { display: grid; }
.reel-direction svg { display: block; stroke-width: 2.4; }
@media (max-width:740px) {
  .workspace[data-layout=map] .map-panel { min-height: 202px; }
}
.reel-leader {
  position: absolute;
  left: 0;
  top: 0;
  border-top: 1.5px dashed #a22d55;
  transform-origin: 0 0;
}
.reel-leader::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8c264b;
  box-shadow: 0 0 0 1px white;
}

.workspace[data-layout=map] .atlas {display:block;position:relative}
.workspace[data-layout=map] .map-panel {height:100%;width:100%;min-height:0}
.workspace[data-layout=map] .places {display:none;position:absolute;left:14px;bottom:34px;z-index:470;width:min(360px,calc(100% - 28px));max-height:44%;background:white;border:1px solid var(--line);box-shadow:0 5px 24px #231f2026}
.workspace[data-layout=map] .places:has(.detail-card) {display:block;overflow:auto}
.workspace[data-layout=map] .places .list-heading,.workspace[data-layout=map] .places .results {display:none}
.workspace[data-layout=map] .map-detail {margin:0}
.map-live-status {position:absolute;top:12px;left:12px;z-index:440;max-width:calc(100% - 80px);padding:7px 11px;border:1px solid #e5ded8;border-radius:9px;background:#fffffff2;box-shadow:0 2px 10px #231f2012;font-size:12px;line-height:1.4;pointer-events:auto}
.map-live-status:empty {display:none}
.map-live-status button {font-weight:750;text-decoration:underline}
.reel-pin .reel-kind {position:absolute;top:5px;left:5px;max-width:calc(100% - 10px);padding:3px 5px;border-radius:4px;background:#231f20d9;color:white;font-size:9px;font-weight:750;pointer-events:none}
.reel-caption {position:absolute;bottom:0;left:0;right:0;padding:22px 5px 7px;background:linear-gradient(transparent,#171115ed);color:white;font-size:11px;font-weight:750;line-height:1.15;text-align:left;pointer-events:none;overflow-wrap:anywhere}
.map-preview-fallback {display:none;position:absolute;inset:0;place-items:center;align-content:center;gap:5px;padding:10px;background:linear-gradient(145deg,#fff5f8,#eadbe3);color:#812b4d;pointer-events:none}
.map-preview-fallback svg {width:25px;height:25px}.map-preview-fallback small {font-size:9px;font-weight:800;text-align:center}
.reel-pin[data-media=false] .reel-photo {display:none}
.reel-pin[data-media=false] .map-preview-fallback {display:grid}
.reel-pin[data-media=false] .reel-caption {padding-top:5px;background:#fff6f9;color:#502638}
.map-video-preview {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.map-activities .reel-pin:not(.has-frame),.reel-leader:has(+.reel-pin:not(.has-frame)){visibility:hidden}
.reel-pin.edge-reel .reel-direction{bottom:auto;top:5px;right:4px;left:auto}
.reel-pin.map-preview-playing .reel-photo {animation:map-preview-motion 5.2s ease-in-out both}
.reel-pin.map-preview-playing .map-preview-fallback {animation:map-preview-pulse 5.2s ease-in-out both}
.reel-pin.map-preview-playing::after {content:"";position:absolute;left:6px;bottom:6px;width:5px;height:5px;border-radius:50%;background:#ff406f;box-shadow:0 0 0 3px #fff9;z-index:3}
@keyframes map-preview-motion {0%{transform:scale(1) translateX(0)}100%{transform:scale(1.1) translateX(-2%)}}
@keyframes map-preview-pulse {0%,100%{filter:saturate(1);transform:scale(1)}50%{filter:saturate(1.25);transform:scale(1.045)}}
@media(prefers-reduced-motion:reduce){.reel-pin.map-preview-playing .reel-photo,.reel-pin.map-preview-playing .map-preview-fallback{animation:none}.reel-pin.map-preview-playing::after{display:none}}
.map-activities .reel-pin {border-radius:10px;border-color:white}
.city-videos{position:absolute;bottom:12px;left:12px;z-index:460;width:min(310px,calc(100% - 64px));padding:9px;display:grid;gap:5px;background:#fff;border-radius:10px;box-shadow:0 2px 12px #0003;font-size:12px}
.city-videos select{width:100%;min-width:0;padding:4px}
.city-videos :is(iframe,video){display:block;width:100%;height:clamp(100px,26vh,225px);border:0;background:#171517}
.city-videos button{justify-self:end;font-weight:700}
.city-videos a{color:var(--ink);text-decoration:underline}
.map-activities .reel-pin:has(video) {box-shadow:0 0 0 2px var(--accent),0 4px 18px #231f2033}
@media(max-width:740px){
 .workspace[data-layout=map] {height:calc(100dvh - 54px);min-height:0;padding:0 0 8px;gap:8px}
 .workspace[data-layout=map] .atlas {flex:1;min-height:0}
 .workspace[data-layout=map] .map-panel {border-radius:0;flex:none;min-height:0}
 .workspace[data-layout=map] .map-wrap {min-height:0}
 .workspace[data-layout=map] .places {bottom:31px;left:10px;width:calc(100% - 20px);max-height:42%;border-radius:12px}
 .map-live-status {top:9px;left:9px;font-size:11px;max-width:calc(100% - 65px)}
}
