/* 사건 이동 MAP (2026-11-12): MAP under the manuscript and its image cards. The road is a stand-in until the MAP picture is ready. */
.event-map { box-sizing:border-box; width:100%; margin:24px 0 0; padding:0 16px; }
.event-map-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.event-map-head h3 { margin:0; font-size:18px; color:var(--ink, #152b45); }
.event-map-auto { min-height:36px; padding:0 14px; white-space:nowrap; }
.event-map-area { position:relative; width:100%; max-width:560px; margin:0 auto; overflow:hidden; border-radius:16px; background:#e8f1e4; }
.event-map-picture { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.event-map-svg { position:absolute; inset:0; width:100%; height:100%; }
.event-map-road-edge { fill:none; stroke:#b9c2cf; stroke-width:11; stroke-linecap:round; stroke-linejoin:round; transform:translate(.8px, 1.2px); }
.event-map-road { fill:none; stroke:#6b7280; stroke-width:9; stroke-linecap:round; stroke-linejoin:round; }
.event-map-road.is-hidden { stroke:transparent; }
.event-map-road-line { fill:none; stroke:#fff; stroke-width:.6; stroke-dasharray:2.4 2.4; }
.event-map-bus rect { fill:var(--red, #ff075f); }
.event-map-bus .event-map-bus-window { fill:#fff; opacity:.9; }
.event-map-point { position:absolute; display:flex; align-items:center; gap:6px; width:max-content; max-width:58%; padding:0; border:0; background:none; color:var(--ink, #152b45); transform:translate(-14px, -14px); cursor:pointer; text-align:left; }
.event-map-number { flex:none; display:grid; place-items:center; width:28px; height:28px; border:2px solid #fff; border-radius:50%; background:#152b45; color:#fff; font-size:13px; font-weight:700; box-shadow:0 2px 6px #15294340; }
.event-map-label { padding:2px 8px; border-radius:8px; background:#ffffffe6; font-size:13px; font-weight:600; line-height:1.35; box-shadow:0 1px 4px #15294320; }
/* Points on the right half show their label to the left, so no label leaves the MAP. */
.event-map-point.is-right { flex-direction:row-reverse; transform:translate(calc(-100% + 14px), -14px); text-align:right; }
.event-map-point.is-arrived .event-map-number { background:var(--red, #ff075f); }
.event-map-point.is-current .event-map-number { outline:3px solid var(--red, #ff075f); outline-offset:2px; }
.event-map-point:focus-visible .event-map-label { outline:2px solid var(--red, #ff075f); }
/* Cards sit at the top so the audio dock stays clear. */
.event-card-dialog { width:min(calc(100% - 24px), 520px); max-height:calc(100dvh - 170px); margin:12px auto auto; padding:0; border:0; border-radius:16px; overflow:hidden; color:var(--ink, #152b45); }
.event-card-dialog[open] { display:flex; flex-direction:column; }
.event-card-dialog::backdrop { background:rgba(15, 23, 42, .5); }
.event-card-close { position:absolute; top:6px; right:6px; z-index:1; width:40px; height:40px; border:0; border-radius:50%; background:#ffffffd9; color:inherit; font-size:26px; cursor:pointer; }
.event-card-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.event-card-track::-webkit-scrollbar { display:none; }
.event-card { flex:0 0 100%; scroll-snap-align:start; padding:0 16px 8px; overflow-y:auto; }
.event-card-figure { display:grid; place-items:center; aspect-ratio:4 / 3; margin:0 -16px 12px; background:#e8f1e4; }
.event-card-figure img, .event-card-figure video { width:100%; height:100%; object-fit:cover; }
.event-card-figure video { object-fit:contain; background:#000; }
.event-card-placeholder { color:#15294333; font-size:64px; font-weight:800; }
.event-card-step { margin:0; color:#68758a; font-size:13px; }
.event-card h4 { margin:4px 0 6px; font-size:19px; line-height:1.35; }
.event-card-text { margin:0; font-size:16px; line-height:1.6; }
.event-card-audio { width:100%; margin-top:10px; }
.event-card-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 16px 14px; border-top:1px solid #eef0f3; }
.event-card-nav { min-width:72px; min-height:40px; padding:0 14px; border:1px solid #d7dde8; border-radius:99px; background:#fff; color:inherit; font:inherit; font-size:15px; font-weight:700; cursor:pointer; }
.event-card-nav:disabled { opacity:.4; cursor:default; }
.event-card-position { margin:0; font-size:14px; font-weight:700; }
@media (prefers-reduced-motion: reduce) { .event-card-track { scroll-behavior:auto; } }
