.event-map { --map-ink: #271b29; border: 1px solid #91657f; background: var(--map-ink); min-width: 0; }
.map-label { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font: 500 11px/1.5 var(--mono, monospace); color: #fff; }
.map-label > span { margin-right: auto; }
.map-label a, .map-reset { color: #e6b1d0; background: none; border: 0; padding: 5px 0; text-decoration: none; font: inherit; cursor: pointer; }
.map-label a:hover, .map-reset:hover { color: #fff; }
.event-map-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.map-places { display: flex; flex-direction: column; max-height: 525px; overflow-y: auto; scrollbar-color: #835471 #271b29; }
.map-place { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; text-decoration: none; border-top: 1px solid #6b4a603d; border-left: 3px solid transparent; text-align: left; }
.map-place:hover { background: #41283c; }
.map-place.is-active { background: #40313f; border-left-color: #28c7cb; }
.map-place > span:last-child { min-width: 0; }
.map-place strong { display: block; font: 600 14px/1.3 var(--display, sans-serif); }
.map-place small { display: block; font: 12px/1.45 var(--display, sans-serif); color: #d0c4cf; margin-top: 4px; }
.place-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--place-color); color: white; }
.place-icon svg, .event-map-pin svg { width: 21px; height: 21px; }
.map-canvas { height: 525px; min-width: 0; background: #ede9df; color: #271b29; position: relative; z-index: 0; font-family: var(--display, sans-serif); }
.map-canvas > p { padding: 28px; }
.event-map-pin { border: none; background: transparent; }
.event-map-pin > span { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid white; border-radius: 50%; background: var(--place-color); color: white; box-shadow: 0 2px 7px #25182d66; }
.event-map-pin .is-selected { outline: 3px solid #28c7cb; outline-offset: 3px; }
.event-map-pin .map-cluster { font: 700 15px/1 var(--display, sans-serif); box-shadow: 0 0 0 5px #7e315b45, 0 2px 7px #25182d66; }
.event-map .map-hint { margin: 0; padding: 13px 18px; color: #d0c4cf; font: 11px/1.6 var(--mono, monospace); min-height: 44px; }
.event-map .leaflet-popup-content { margin: 16px 20px; max-width: calc(100vw - 100px); font: 13px/1.5 var(--display, sans-serif); color: #271b29; }
.event-map .leaflet-popup-content strong { font-size: 16px; line-height: 1.25; display: block; }
.event-map .leaflet-popup-content p { margin: 9px 0 14px; }
.event-map .leaflet-popup-content a { display: inline-block; color: #086d76; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.map-schedule { max-height: min(260px, 27dvh); overflow-y: auto; overscroll-behavior: contain; margin: 0 0 14px; padding: 12px 5px 0 0; border-top: 1px solid #e1d5df; scrollbar-color: #95617d #f2edf1; }
.map-schedule h3 { margin: 0 0 7px; font: 700 12px/1.5 var(--display, sans-serif); color: #783654; }
.map-schedule ul { list-style: none; margin: 0 0 14px; padding: 0; }
.map-schedule ul:last-child { margin-bottom: 0; }
.map-schedule li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; padding: 6px 0; font-size: 12px; line-height: 1.45; }
.map-schedule time { font-weight: 700; white-space: nowrap; }
.map-schedule small { display: block; margin-top: 3px; color: #675564; font-size: 11px; }
.map-schedule:focus-visible { outline: 2px solid #086d76; outline-offset: 2px; }
.event-map .leaflet-popup-content .map-schedule-hint { margin: 0 0 8px; color: #675564; font-size: 11px; }
.event-map .leaflet-control-attribution { font: 11px/1.4 Arial, sans-serif; }
.event-map a:focus-visible, .event-map button:focus-visible { outline: 3px solid #28c7cb; outline-offset: -3px; }
.map-page { margin: 0; background: #1c1721; color: white; font-family: 'Chakra Petch', sans-serif; --display: 'Chakra Petch', sans-serif; --mono: 'IBM Plex Mono', monospace; }
.map-page * { box-sizing: border-box; }
.map-page-header { max-width: 1440px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; gap: 20px; }
.map-page-header img { width: 135px; height: auto; display: block; }
.map-page-header h1 { margin: 0; font: 600 14px/1.5 var(--mono); }
.map-page-header a { color: white; text-decoration: none; font-size: 13px; }
.map-page main { max-width: 1440px; padding: 0 24px 24px; margin: auto; }
.map-page .map-canvas, .map-page .map-places { height: calc(100dvh - 210px); min-height: 460px; max-height: none; }
@media (max-width: 760px) {
  .map-label { flex-wrap: wrap; font-size: 10px; gap: 12px 16px; padding: 13px; }
  .event-map-layout { grid-template-columns: 1fr; }
  .map-places { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; overflow-x: auto; overflow-y: hidden; max-height: none; border-bottom: 1px solid #82516f; }
  .map-place { padding: 12px; border-left: 0; border-bottom: 3px solid transparent; }
  .map-place.is-active { border-bottom-color: #28c7cb; }
  .map-place strong { font-size: 13px; }
  .map-place small { font-size: 11px; }
  .map-canvas { height: 410px; }
  .map-page-header { padding: 16px; flex-wrap: wrap; gap: 12px; }
  .map-page-header img { width: 110px; }
  .map-page-header h1 { font-size: 12px; }
  .map-page main { padding: 0 12px 12px; }
  .map-page .map-places { height: auto; min-height: 0; }
  .map-page .map-canvas { height: 60dvh; min-height: 360px; }
}
.map-cluster b { position: absolute; right: -5px; top: -6px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 3px; border-radius: 50%; background: #fff; color: #271b29; font: 700 11px/1 var(--display, sans-serif); }

/* A compact overview opens the full interactive map; attribution stays exposed. */
.map-preview-window { position: relative; }
.map-preview .map-canvas { height: 300px; }
.map-preview .map-label > span:last-child { margin-right: 0; color: #e6b1d0; font-size: 17px; }
.map-preview-open { position: absolute; inset: 0 0 22px; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding: 16px; text-decoration: none; cursor: zoom-in; }
.map-preview-open > span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; background: #271b29ed; border: 1px solid #b27e9c; color: white; font: 500 10px/1.5 var(--mono, monospace); box-shadow: 0 2px 10px #1b152140; }
.map-preview-open .icon { width: 17px; height: 17px; }
.map-preview-open:hover > span { background: #4b2a42; border-color: #e6b1d0; }
.map-preview .map-hint { font-size: 10px; }
@media (max-width: 760px) { .map-preview .map-canvas { height: 250px; } }
