@import "moveka-station-gallery-0L7QM7B.css";
@import "../vendor/mapboxgl-spiderifier/index-H0-LpDo.css";
/* Public Station explorer: owner-approved A map and C mobile reference. */
.station-map { --station-green:#006653; --station-ink:#102039; --station-muted:#52647a; color:var(--station-ink); }
.station-map .modal-dialog { margin:0; width:100%; max-width:none; height:100%; }
.station-map .modal-content { height:100%; border:0; border-radius:0; background:#F9FAFB; }
.station-map [hidden] { display:none!important; }
.station-map__header { flex-shrink:0; padding:14px 24px; gap:16px; background:#F9FAFB; border-bottom:1px solid #dbe1e7; }
.station-map__header h2 { font-size:1.5rem; line-height:1.3; font-weight:800; }
.station-map__header-actions { display:flex; align-items:center; gap:12px; margin-left:auto; }
.station-map__header .btn { color:var(--station-ink); min-height:44px; }
.station-map__close { display:flex; align-items:center; gap:8px; text-decoration:none; }
.station-map__close>span:first-child { font-size:2rem; line-height:1; }
.station-map__back { font-weight:700; text-decoration:none; }
.station-map__body { position:relative; padding:0; overflow:hidden; min-height:0; background:#F9FAFB; }
.station-map__browse { position:relative; width:100%; height:100%; min-height:0; }
.station-map .station-map__map { position:absolute; inset:0; background:#e5ede9; }
.station-map__tools { position:absolute; z-index:3; top:18px; left:24px; right:76px; display:flex; flex-wrap:wrap; align-items:start; gap:12px; pointer-events:none; }
.station-map__tools>* { pointer-events:auto; }
.station-map__search { position:relative; flex:0 1 360px; }
.station-map__search input { height:48px; padding:10px 16px 10px 46px; border:1px solid #dbe1e7; box-shadow:0 3px 12px #10203914; font-size:1rem; background:#F9FAFB; }
.station-map__tool-actions { display:flex; gap:10px; }
.station-map__tool-actions .btn { display:flex; align-items:center; justify-content:center; gap:9px; min-height:48px; border:1px solid #dbe1e7; box-shadow:0 3px 12px #10203914; background:#F9FAFB; color:var(--station-green); font-weight:700; white-space:nowrap; }
.station-map__location-feedback { flex-basis:100%; max-width:680px; margin:0; padding:10px 14px; background:#F9FAFB; border-radius:6px; box-shadow:0 3px 12px #10203914; }
.station-map__count { position:absolute; z-index:2; left:24px; bottom:14px; max-width:70%; margin:0; padding:6px 10px; border-radius:4px; background:#F9FAFB; color:var(--station-muted); }
.station-map__map-feedback { position:absolute; z-index:4; top:90px; left:24px; max-width:min(470px,calc(100% - 48px)); padding:16px; border-radius:6px; background:#F9FAFB; box-shadow:0 3px 14px #1020391a; }
.station-map__map-feedback p { margin:0 0 10px; }
.station-map__feedback { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; height:100%; padding:24px; text-align:center; }
.station-map__list { height:100%; overflow:auto; padding:98px 24px 64px; background:#F9FAFB; }
.station-map__list-items { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); gap:20px; max-width:1220px; margin:0 auto; padding:0; list-style:none; }
.station-map__list-item { display:flex; align-items:flex-start; gap:16px; padding:20px 0; border-bottom:1px solid #dbe1e7; min-width:0; }
.station-map__list-item .station-map__preview-photo { width:100px; height:100px; border-radius:8px; }
.station-map__summary { min-width:0; }
.station-map__summary h3 { margin:0 0 4px; font-size:1.2rem; font-weight:800; line-height:1.3; }
.station-map__summary p { margin:0 0 7px; color:var(--station-muted); }
.station-map__summary .station-map__hours { color:var(--station-ink); }
.station-map__summary .btn { margin-top:5px; }
.station-map__preview { position:absolute; z-index:4; width:260px; padding:12px; background:#F9FAFB; border:1px solid #dbe1e7; border-radius:10px; box-shadow:0 6px 24px #1020392b; }
.station-map__preview:before { content:""; position:absolute; bottom:-8px; left:calc(50% - 8px); width:16px; height:16px; background:#F9FAFB; border-top:1px solid #dbe1e7; border-left:1px solid #dbe1e7; transform:rotate(225deg); }
.station-map__preview-photo { display:block; flex-shrink:0; width:100%; height:145px; object-fit:cover; border-radius:6px; }
.station-map__preview>.station-map__summary { padding:10px 2px 0; }
.station-map__preview .btn { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; }
.station-map__photo-fallback { display:grid; align-items:center; justify-content:center; background:#e2eee9; color:var(--station-green); font-weight:800; }
/* MapLibre positions each marker absolutely; the pin must stay absolute whatever the stylesheet order, or the pins flow inline and drift right of their Station. */
.station-map .maplibregl-marker.station-map__pin { position:absolute; left:0; top:0; }
.station-map__pin { --station-pin-border:1px; position:relative; width:64px; height:64px; padding:4px; border:var(--station-pin-border) solid #c4cdd3; border-radius:50%; background:#fff; box-shadow:0 3px 7px #1020393b; cursor:pointer; }
/* The tail ends 12px below the circular face; the MapLibre offset anchors that tip. */
.station-map__pin:after { content:""; position:absolute; z-index:-1; bottom:calc(-12px - var(--station-pin-border)); left:50%; width:28px; height:26px; background:#fff; clip-path:polygon(0 0,100% 0,50% 100%); transform:translateX(-50%); }
.station-map__pin>img,.station-map__pin>span { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; }
.station-map__pin>span { display:grid; }
.station-map__pin[aria-pressed="true"] { --station-pin-border:4px; width:80px; height:80px; border-color:var(--station-green); z-index:1; }
.station-map__pin[aria-pressed="true"]:after { background:var(--station-green); }
/* Zoom controls are the map's only on-canvas buttons: give them a full touch target with a matching icon. */
.station-map .maplibregl-ctrl-group button { width:48px; height:48px; }
.station-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { background-size:40px 40px; }
.station-map__device { display:block; width:18px; height:18px; border-radius:50%; background:#2679d8; border:3px solid #fff; box-shadow:0 0 0 8px #2679d82b; }
.station-map__details { display:flex; flex-direction:column; height:100%; overflow:hidden; background:#F9FAFB; }
.station-map__detail-inner { width:100%; max-width:1000px; margin:auto; flex:1; overflow:auto; padding:28px 24px; }
.station-map__details h2 { margin:0 0 8px; font-size:clamp(1.6rem,4vw,2.4rem); font-weight:800; }
.station-map__detail-area { color:var(--station-muted); }
.station-map__detail-section { padding:24px 0; border-top:1px solid #dbe1e7; }
.station-map__detail-section h3 { margin:0 0 15px; font-size:1.4rem; font-weight:800; }
.station-map__disclosure h4 { margin:18px 0 8px; font-size:1.1rem; font-weight:700; }
.station-map__detail-section li+li { margin-top:8px; }
.station-map__hours-list { max-width:650px; }
.station-map__hours-list>div { display:grid; grid-template-columns:minmax(100px,1fr) 2fr; gap:18px; padding:10px 0; }
.station-map__hours-list dd { margin:0; }
.station-map__hours-list .is-today { color:var(--station-green); font-weight:800; }
.station-map .btn-primary { background:var(--station-green); border-color:var(--station-green); color:#fff; }
.station-map :where(button,input,a,summary):focus-visible { outline:3px solid #f4ad22; outline-offset:3px; }
.station-map[data-state="list"] .station-map__map-feedback { position:relative; top:auto; left:auto; max-width:none; margin:0; border-radius:0; box-shadow:none; padding:12px 24px; }
.station-map[data-state="list"] .station-map__browse { display:flex; flex-direction:column; }
.station-map[data-state="list"] .station-map__tools { position:relative; top:auto; left:auto; right:auto; flex-shrink:0; padding:18px 24px 0; }
.station-map[data-state="list"] .station-map__list { padding-top:20px; }

@media (prefers-reduced-motion:reduce) { .station-map * { scroll-behavior:auto!important; } }
.station-map__preview-close { position:absolute; top:4px; right:4px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; font-size:1.7rem; line-height:1; background:#F9FAFB; color:var(--station-ink); }
.station-map__list-select { padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; text-decoration:underline; text-underline-offset:3px; }
.station-map__list-select[aria-pressed="true"] { color:var(--station-green); }
.station-map[data-state="list"] .station-map__preview { top:auto!important; left:auto!important; right:24px; bottom:38px; }

.station-map__detail-directions { flex-shrink:0; padding:14px 24px max(14px,env(safe-area-inset-bottom)); border-top:1px solid #dbe1e7; background:#F9FAFB; }
.station-map__detail-directions .btn { display:flex; align-items:center; justify-content:center; width:min(100%,952px); min-height:48px; margin:auto; }
.station-map__disclosure { padding:20px 0; border-top:1px solid #dbe1e7; }
.station-map__disclosure>summary { position:relative; padding:7px 32px 7px 0; font-weight:700; cursor:pointer; list-style:none; }
.station-map__disclosure[open]>summary { margin-bottom:16px; }

.station-map__search-icon { position:absolute; z-index:1; left:16px; top:14px; font-size:20px; color:var(--station-muted); pointer-events:none; }
.station-map__tool-actions .moveka-icon { font-size:20px; }
.station-map__mobile-list-prefix { display:none; }
.station-map__header [data-station-map-list-toggle] { color:var(--station-green); text-decoration:underline; }
.station-map__header [data-station-map-list-toggle] .moveka-icon { display:none; }
.station-map__preview>.station-map__preview-photo { height:125px; }
.station-map__preview.is-below:before { top:-8px; bottom:auto; transform:rotate(45deg); }
.station-map__pin>.station-map__pin-status { position:absolute; top:-26px; left:50%; transform:translateX(-50%); width:max-content; height:auto; padding:3px 6px; border-radius:4px; background:#52647a; color:#fff; font-size:.8rem; line-height:1.3; font-weight:700; }
.station-map__pin[data-availability="opening_soon"]>img { opacity:.65; }
@media (max-width:767.98px) {
    .station-map__header { padding:10px 14px; gap:6px; }
    .station-map__header h2 { font-size:1.25rem; }
    .station-map__header-actions { gap:0; }
    .station-map__header .btn { padding:6px 9px; }
    .station-map__close>span:last-child { display:none; }
    .station-map__browse { display:flex; flex-direction:column; }
    .station-map__tools,.station-map[data-state="list"] .station-map__tools { position:relative; top:auto; left:auto; right:auto; gap:10px; padding:12px 14px; flex-shrink:0; background:#F9FAFB; }
    .station-map__search { flex-basis:100%; }
    .station-map__search input { width:100%; font-size:1rem; padding:10px 12px 10px 44px; }
    .station-map__tool-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(90px,.65fr); width:100%; }
    .station-map__tool-actions .btn { box-shadow:none; }
    .station-map__tool-actions:has([data-station-map-locate][hidden]) { grid-template-columns:minmax(0,1fr); }
    .station-map__location-feedback { padding:8px 0; box-shadow:none; }
    .station-map .station-map__map { position:relative; flex:1; min-height:0; }
    .station-map__map-feedback { top:158px; left:14px; max-width:calc(100% - 28px); }
    .station-map__count { left:14px; bottom:78px; }
    /* Thumbnail beside the text, the details button on its own full-width row below both. */
    .station-map__preview { top:auto!important; display:grid; grid-template-columns:90px minmax(0,1fr); grid-template-rows:auto auto 1fr auto; column-gap:12px; row-gap:0; align-items:start; }
    .station-map__preview:before { display:none; }
    .station-map__preview>.station-map__summary { display:contents; }
    .station-map__preview .station-map__summary h3 { grid-column:2; font-size:1.15rem; padding-right:20px; }
    .station-map__preview .station-map__summary p { grid-column:2; margin-bottom:6px; }
    .station-map__preview .station-map__summary .btn { grid-column:1 / -1; grid-row:4; width:100%; margin-top:14px; }
    .station-map__preview .station-map__summary .btn + .btn { margin-top:8px; }
    .station-map__pin { width:56px; height:56px; }
    .station-map__pin[aria-pressed="true"] { width:70px; height:70px; }
    .station-map__list { padding:0 14px 60px; }
    .station-map__list-item { gap:12px; }
    .station-map__list-item .station-map__preview-photo { width:86px; height:86px; }

    .station-map__detail-inner { padding:22px 18px; }
    .station-map__detail-directions { padding-inline:18px; }

    .station-map__header [data-station-map-list-toggle] { position:fixed; z-index:6; left:14px; right:14px; bottom:max(14px,env(safe-area-inset-bottom)); min-height:48px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--station-green); border-radius:6px; background:var(--station-green); color:#fff; font-weight:800; text-decoration:none; }
    .station-map__header [data-station-map-list-toggle] .moveka-icon { display:inline-block; font-size:20px; }
    .station-map__mobile-list-prefix { display:inline; margin-right:-8px; }
    .station-map[data-state="list"] .station-map__mobile-list-prefix { display:none; }
    .station-map[data-preview="true"] .station-map__header [data-station-map-list-toggle] { display:none; }
    .station-map__preview,.station-map[data-state="list"] .station-map__preview { left:0!important; right:0; bottom:0; width:100%; padding:24px 20px max(18px,env(safe-area-inset-bottom)); border-radius:14px 14px 0 0; border-bottom:0; box-shadow:0 -4px 16px #1020391a; }
    .station-map__preview>.station-map__preview-photo,.station-map__preview>.station-map__photo-fallback { grid-column:1; grid-row:1 / span 3; width:90px; height:100px; border-radius:8px; object-fit:cover; }
    .station-map__preview:after { content:""; position:absolute; width:42px; height:4px; border-radius:4px; background:#c4cdd3; top:8px; left:calc(50% - 21px); }
    .station-map[data-preview="true"] .station-map__count { display:none; }
    .station-map .maplibregl-ctrl-bottom-right { bottom:70px; }
    .station-map[data-preview="true"] .maplibregl-ctrl-bottom-right { bottom:245px; }
}
.station-map__disclosure>summary::-webkit-details-marker { display:none; }
.station-map__disclosure>summary:after { content:""; position:absolute; right:4px; top:50%; width:9px; height:9px; margin-top:-7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.station-map__disclosure[open]>summary:after { margin-top:-2px; transform:rotate(225deg); }
.station-map__detail-inner .station-map__hours { display:flex; align-items:center; gap:12px; padding:22px 0 24px; }
.station-map__detail-inner .station-map__hours .moveka-icon { flex-shrink:0; width:22px; height:22px; }

/* The upstream library owns pixel offsets and legs; native buttons retain the approved pin face/tail. */
.station-map .station-map__spider { pointer-events:none; }
.station-map .station-map__spider .station-map__pin { position:absolute; left:0; top:-12px; transform:translate(-50%,-100%); pointer-events:auto; }
.station-map .station-map__spider .spider-leg-line { background:var(--station-green); opacity:.7; }
