/* ItsVegan — maps (mini maps + /map) and shared-JS extras (lightbox caption, previews, busy states) */

/* markers & clusters (Leaflet divIcons) */
.mk-icon,.mcl-icon,.me-icon{background:none!important;border:0!important}
.mk{transition:transform .15s}
.mk.hl,.leaflet-marker-icon:hover .mk{transform:rotate(-45deg) scale(1.18)}
.mk-pick{width:34px;height:34px}
.mcl{cursor:pointer;transition:transform .15s;line-height:1}
.mcl:hover{transform:scale(1.08)}
.mcl.one{width:14px;height:14px;background:var(--c,#16A34A);box-shadow:0 0 0 3px rgba(255,255,255,.9),0 2px 6px rgba(0,0,0,.3)}
.me-icon{position:relative}
.me-dot{position:relative;display:block;width:18px;height:18px;border-radius:50%;background:#2563EB;border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.me-pulse{position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:rgba(37,99,235,.45);animation:mePulse 2s ease-out infinite;pointer-events:none}
@keyframes mePulse{0%{transform:scale(1);opacity:.75}100%{transform:scale(3.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.me-pulse{animation:none;transform:scale(1.8);opacity:.35}}
/* popup: distance + rough walking / driving time from you (assets/js/app.js popTrip) */
.pop-trip{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:-4px 14px 8px;font-size:12.5px}
.pop-trip-km{font-weight:700;color:#1D4ED8}.pop-trip-km i{font-size:10px}
.pop-trip a{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:#EFF6FF;color:#1D4ED8!important;font-weight:600;text-decoration:none}
.pop-trip a:hover{background:#DBEAFE}
.pop-trip-est{color:var(--muted);font-size:11px}
.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large{background:none}
.pop-r{font-size:13px;display:flex;align-items:center;gap:4px;margin-top:2px}
.pop-r .stars{font-size:13px}
.pop .card-kicker{margin-bottom:2px}
.leaflet-popup-content a.pop-main:hover b{color:var(--leaf-2)}
.leaflet-container a.leaflet-popup-close-button{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6);top:6px;right:6px;font-size:22px}
.mini-map .leaflet-control-attribution{font-size:10px}

/* ── /map page ─────────────────────────────────────────────── */
body.map-page main.full{padding:0}
.map-page .map-panel,.map-page .map-fab{z-index:1001}
.map-page .map-loading{z-index:1002}
.mp-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.mp-title h1{margin:0!important;white-space:nowrap}
.mp-count{font-size:12.5px;font-weight:650;color:var(--leaf-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-search{position:relative}
.mp-search>i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:13px;pointer-events:none}
.map-panel .mp-search input[type=search]{width:100%;height:40px;min-height:40px;border-radius:999px;border:1px solid var(--line);background:var(--paper);padding:0 38px 0 36px;font-size:14.5px}
.mp-search input::-webkit-search-cancel-button{display:none}
.map-panel .mp-search input[type=search]:focus{outline:none;border-color:var(--leaf);background:#fff;box-shadow:0 0 0 4px rgba(22,163,74,.12)}
.mp-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;border:0;background:transparent;color:var(--muted);cursor:pointer}
.mp-clear:hover{background:var(--paper-2);color:var(--ink)}
.mp-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;border-bottom:1px solid var(--line-2)}
.mp-bar .chip-btn{padding:5px 11px;font-size:13px}
.mp-bar .chip-btn span{color:var(--muted);font-weight:500}
.mp-switch{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--ink-2);cursor:pointer;user-select:none;white-space:nowrap}
.mp-switch input{position:absolute;opacity:0;width:1px;height:1px}
.mp-switch .sw{position:relative;width:36px;height:21px;border-radius:999px;background:#D6D3C7;transition:background .15s;flex-shrink:0}
.mp-switch .sw::after{content:"";position:absolute;top:2.5px;left:2.5px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.mp-switch input:checked+.sw{background:var(--forest)}
.mp-switch input:checked+.sw::after{transform:translateX(15px)}
.mp-switch input:focus-visible+.sw{outline:3px solid var(--lime);outline-offset:2px}
.map-filters[hidden]{display:none}
.map-filters{max-height:300px;overflow:auto}
.mf-group{display:grid;grid-template-columns:76px 1fr;gap:8px;align-items:start}
.mf-label{font:700 11px/26px var(--ui);text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.map-filters .mf-chip{user-select:none;gap:5px;padding:4px 10px;font-size:12.5px}
.map-filters .mf-chip i{color:var(--c);font-size:11.5px}
.map-filters .mf-chip.on{background:var(--c);border-color:var(--c);color:#fff}
.map-filters .mf-chip.on i{color:#fff}
.map-filters .mf-chip:focus-within{outline:3px solid var(--lime);outline-offset:1px}
#map-filters-reset{align-self:flex-start}
#map-filters-reset[hidden]{display:none}
.map-item{text-decoration:none}
.map-item .mi-ico.lv-o{background:#fff;color:var(--c);box-shadow:inset 0 0 0 2px var(--c)}
.map-item .mi-b{min-width:0;flex:1}
.map-item b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-item .mi-r{color:#B45309;font-weight:700}
.map-item .mi-lv{font-size:11.5px;font-weight:650;color:var(--leaf-2)}
.map-item .mi-lv.v{color:var(--forest)}
.map-hint{display:flex;gap:10px;align-items:flex-start;line-height:1.45}
.map-hint i{margin-top:3px;color:var(--leaf-2)}
.mh-zoom b{color:var(--ink)}
.map-empty{padding:26px 20px;text-align:center}
.map-empty .empty-ico{width:52px;height:52px;margin:0 auto 10px;border-radius:16px;display:grid;place-items:center;background:var(--mint);color:var(--forest);font-size:22px}
.map-empty b{display:block;font:700 17px/1.3 var(--display);margin-bottom:4px}
.map-empty p{color:var(--muted);font-size:14px;margin:0 0 12px}
.map-loading{position:absolute;z-index:600;left:0;right:0;top:0;height:3px;overflow:hidden;pointer-events:none}
.map-loading[hidden]{display:none}
.map-loading::after{content:"";position:absolute;top:0;bottom:0;width:30%;background:linear-gradient(90deg,transparent,var(--leaf),transparent);animation:mapload 1s linear infinite}
@keyframes mapload{from{left:-30%}to{left:100%}}
.map-page .leaflet-top.leaflet-right{margin-top:6px}
.map-page .leaflet-control-zoom{border:0!important;box-shadow:var(--sh-2)!important;border-radius:12px!important;overflow:hidden}
.map-page .leaflet-control-zoom a{width:38px!important;height:38px!important;line-height:38px!important;color:var(--ink)!important}
.map-page .leaflet-control-scale{margin-left:376px!important;margin-bottom:12px!important}

/* ── shared JS extras ─────────────────────────────────────── */
.lb-cap{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);color:rgba(255,255,255,.88);font-size:14px;background:rgba(0,0,0,.35);padding:6px 14px;border-radius:999px;max-width:calc(100% - 140px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-cap[hidden]{display:none}
.lb .lb-p,.lb .lb-n{transform:translateY(-50%)}
.lb button:hover{background:rgba(255,255,255,.24)}
.previews figure.is-busy{animation:ivpulse 1s ease-in-out infinite alternate}
@keyframes ivpulse{from{opacity:.55}to{opacity:1}}
.dropzone.is-busy{opacity:.75;pointer-events:none}
.chip-btn.pop-anim i{animation:ivpop .35s ease}
@keyframes ivpop{50%{transform:scale(1.35)}}
.upload-progress[hidden]{display:none}
.suggest .s-all i{margin-right:4px}

@media (max-width:1020px){
  .map-page .leaflet-control-scale{margin-left:10px!important}
}
@media (max-width:760px){
  .map-page .leaflet-control-zoom,.map-page .leaflet-control-scale{display:none}
  .map-page .panel-toggle{position:relative;width:100%;height:22px;margin:0;background:transparent;border-radius:20px 20px 0 0}
  .map-page .panel-toggle::before{content:"";position:absolute;left:50%;top:9px;width:44px;height:5px;margin-left:-22px;border-radius:5px;background:var(--line)}
  .map-page .panel-toggle:focus-visible{outline:3px solid var(--lime);outline-offset:-3px}
  .map-panel-head{padding:0 16px 10px}
  .map-page .map-panel.collapsed{transform:translateY(calc(100% - 66px))}
  .map-panel.collapsed .mp-title{margin-bottom:14px}
  .mp-title{cursor:pointer}
  .mp-title h1{font-size:19px!important}
  .map-filters{max-height:38vh}
  .mf-group{grid-template-columns:1fr;gap:4px}
  .mf-label{line-height:1.4}
  .map-fab{flex-direction:row;right:12px;top:12px}
  .map-fab .btn{min-height:38px;padding:7px 13px;font-size:14px}
  .map-fab .btn-line span{display:none}
  .map-page .toast{bottom:84px}
  .map-page .leaflet-bottom.leaflet-right{bottom:64px}
  .lb-cap{bottom:12px;max-width:calc(100% - 32px)}
}

/* Popup actions: Directions + View (assets/js/app.js popupHtml) */
.pop-main{display:block;color:var(--ink)!important;text-decoration:none}
.pop-acts{display:flex;gap:6px;padding:0 12px 12px}
.pop-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:700;text-decoration:none}
.pop-dir{background:#1A73E8;color:#fff!important}
.pop-dir:hover{background:#1765CC}
.pop-view{background:var(--paper-2,#F1EEE6);color:var(--ink)!important}
.pop-view:hover{background:#E7E2D6}
.pop-btn i{font-size:12px}

/* Map ↔ Satellite switch (assets/js/app.js baseSwitch) */
.iv-basesw{display:flex;flex-direction:column;align-items:center;gap:0;width:64px;padding:3px;border:0;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:pointer;font:inherit}
.iv-basesw-th{display:block;width:58px;height:44px;border-radius:9px;background-size:cover;background-position:center}
.iv-basesw.to-sat .iv-basesw-th{background-image:url('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/13/3186/3898')}
.iv-basesw.to-map .iv-basesw-th{background-image:url('https://tile.openstreetmap.org/13/3898/3186.png')}
.iv-basesw b{font-size:11px;font-weight:700;color:var(--ink);padding:3px 0 1px}
.iv-basesw:hover{box-shadow:0 3px 12px rgba(0,0,0,.32)}
.iv-basesw:focus-visible{outline:3px solid var(--lime);outline-offset:2px}
.is-sat .leaflet-control-attribution{background:rgba(255,255,255,.85)}

/* GPS coordinates + copy (map popups · listing "Location" box) */
.pop-gps{display:flex;align-items:center;gap:6px;margin:-4px 14px 10px;padding:5px 6px 5px 10px;border-radius:10px;background:var(--paper-2,#F1EEE6);font-size:12px;color:var(--ink-2)}
.pop-gps>i{color:var(--muted);font-size:11px}
.pop-gps code,.ld-gps-c{flex:1;font:600 12px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink);user-select:all;white-space:nowrap}
.pop-gps-copy,.ld-gps-copy{border:0;background:#fff;color:var(--ink-2);border-radius:8px;cursor:pointer;font:inherit;font-size:12px;font-weight:600;padding:4px 8px;display:inline-flex;align-items:center;gap:4px}
.pop-gps-copy:hover,.ld-gps-copy:hover{color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.pop-gps-copy.is-copied,.ld-gps-copy.is-copied{background:var(--leaf,#16A34A);color:#fff}
.ld-gps-l{font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-right:2px}
.ld-gps-c{font-size:13.5px;flex:none}
.ld-gps-copy{background:var(--paper-2,#F1EEE6);margin-left:4px;vertical-align:1px}

/* Sort bar + distances in the map list (assets/js/parts/map.js) */
.map-sort{display:flex;align-items:center;gap:6px;padding:8px 14px;border-bottom:1px solid var(--line);background:#fff;flex-wrap:wrap}
.map-sort[hidden]{display:none}
.ms-l{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-right:2px}
.map-sort button{border:1px solid var(--line);background:#fff;color:var(--ink-2);border-radius:999px;padding:5px 11px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.map-sort button i{font-size:11px;color:var(--muted)}
.map-sort button:hover{border-color:var(--leaf)}
.map-sort button.on{background:var(--forest,#14532D);border-color:var(--forest,#14532D);color:#fff}
.map-sort button.on i{color:#A3E635}
.ms-from{margin-left:auto;font-size:12px;color:var(--muted)}
.ms-from i{color:#2563EB;font-size:11px}
.ms-rad{flex-basis:100%;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ms-rad button{padding:4px 10px;font-size:12.5px}
.ms-rad button.on i{color:#A3E635}
.map-item{position:relative}
.mi-dist{flex:none;align-self:center;margin-left:auto;padding:4px 9px;border-radius:999px;background:#EFF6FF;color:#1D4ED8;font-size:12.5px;font-weight:700;white-space:nowrap}
.mi-dist i{font-size:10px;margin-right:4px}
.pop-km{color:#1D4ED8;font-weight:700}

/* Pin badges: leaf (100% vegan / vegan options) + star rating bubble (assets/js/app.js markerIcon) */
.mk-wrap{position:relative;width:30px;height:30px}
.mk-lv{position:absolute;left:-7px;top:-7px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;font-size:8px;box-shadow:0 1px 3px rgba(0,0,0,.3);pointer-events:none}
.mk-lv.is-v{background:#16A34A;color:#fff;border:1.5px solid #fff}
.mk-lv.is-o{background:#fff;color:#16A34A;border:1.5px solid #86EFAC}
.mk-rt{position:absolute;left:18px;top:-11px;display:inline-flex;align-items:center;gap:1px;padding:1px 5px 1px 4px;border-radius:999px;background:#fff;color:#1F2937;
  font:700 10.5px/1.35 var(--ui,system-ui),sans-serif;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.28);pointer-events:none;letter-spacing:-.01em}
.mk-rt i{font-style:normal;color:#F59E0B;font-size:10px;margin-right:1px}
.leaflet-marker-icon:hover .mk-rt{z-index:2}

/* Pin prominence (assets/js/app.js markerTier): well rated a little bigger, the best clearly bigger — scaled from the pin's tip */
.mk-wrap{transform-origin:50% 120%}
.mk-wrap.mk-m{transform:scale(1.14)}
.mk-wrap.mk-l{transform:scale(1.34)}
.mk-wrap.mk-l .mk{box-shadow:0 4px 12px rgba(0,0,0,.35),0 0 0 3px rgba(250,204,21,.55)}

/* Phones: the map search floats over the top of the map, always visible (assets/js/parts/map.js · 2026-11-07) */
.mp-search-float{position:absolute;z-index:620;top:10px;left:12px;right:12px;margin:0}
.mp-search-float>i{left:16px;font-size:15px;color:var(--forest,#14532D)}
.map-wrap .mp-search-float input[type=search]{width:100%;height:48px;min-height:48px;border-radius:999px;border:1px solid rgba(20,40,25,.10);background:#fff;padding:0 44px 0 42px;font-size:16px;box-shadow:0 6px 20px -6px rgba(20,40,25,.35),0 1px 3px rgba(20,40,25,.12);-webkit-appearance:none;appearance:none}
.map-wrap .mp-search-float input[type=search]:focus{outline:none;border-color:var(--leaf);box-shadow:0 0 0 4px rgba(22,163,74,.16),0 6px 20px -6px rgba(20,40,25,.35)}
.mp-search-float .mp-clear{right:8px}
@media (max-width:760px){
  .map-wrap.has-float-search .map-fab{top:68px}
  .map-wrap.has-float-search .leaflet-top{top:58px}
}

/* Map search results: places on ItsVegan + cities, then "find the place on the map" (assets/js/parts/map.js · 2026-11-07) */
.mp-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:700;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 44px -14px rgba(20,40,25,.4);padding:6px;max-height:min(60vh,440px);overflow-y:auto;overscroll-behavior:contain}
.mp-results[hidden]{display:none}
.mf-row{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;color:var(--ink);text-decoration:none;min-height:52px}
.mf-row:hover,.mf-row.act{background:var(--paper);color:var(--ink)}
.mf-ico{width:38px;height:38px;flex:0 0 38px;border-radius:10px;display:grid;place-items:center;overflow:hidden;background:color-mix(in srgb,var(--c) 13%,#fff);color:var(--c);font-size:15px}
.mf-ico img{width:100%;height:100%;object-fit:cover}
.mf-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.mf-txt b{font-weight:650;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-txt small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-v{flex:none;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:999px;background:var(--forest,#14532D);color:var(--lime,#A3E635)}
.mf-geo{border-top:1px solid var(--line-2);border-radius:0 0 12px 12px;margin-top:2px}
.mf-geo .mf-txt b{font-weight:600;color:var(--leaf-2)}
/* results open: the search sits above the floating buttons, which step aside */
.mp-search-float{z-index:1010}
.map-wrap:has(.mp-results:not([hidden])) .map-fab,.map-wrap:has(.mp-results:not([hidden])) .leaflet-top{visibility:hidden}
@media (max-width:760px){ .map-wrap:has(.leaflet-popup) .map-fab{visibility:hidden} }   /* an open place card wins over the floating buttons */

/* ── Opening hours on map cards: ● Open now · until 22:00 (2026-11-09) ── */
.pop-open{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:13px;line-height:1.3;color:var(--ink-2,#3F4A43)}
.pop-open b{font-weight:700}
.ho-dot{width:8px;height:8px;border-radius:50%;flex:0 0 8px;background:currentColor}
.is-open>b,.is-open>.ho-dot{color:#15803D}
.is-closed>b,.is-closed>.ho-dot{color:#B91C1C}
.is-soon>b,.is-soon>.ho-dot{color:#C2410C}
.mi-open.is-open{color:#15803D;font-weight:700}.mi-open.is-closed{color:#B91C1C;font-weight:600}.mi-open.is-soon{color:#C2410C;font-weight:700}
.ho-week{width:100%;border-collapse:collapse;font-size:13px}
.ho-week th{text-align:left;font-weight:600;color:var(--muted);padding:3px 10px 3px 0;width:3.5em;white-space:nowrap}
.ho-week td{padding:3px 0;color:var(--ink)}
.ho-week tr.today th,.ho-week tr.today td{color:var(--ink);font-weight:700}

/* ══ Map v2 — modern UI (2026-11-09) ═══════════════════════════════════════════════════════════════ */
/* calmer base map so the pins carry the colour (street view only, not satellite) */
/* 2026-11-11: the base map itself is pastel now (CARTO Voyager, assets/js/app.js) — no grey filter on top; a touch of warmth only */
.leaflet-container:not(.is-sat) .leaflet-tile-pane{filter:saturate(1.08) brightness(1.01)}
.leaflet-container{background:#F5F3EE}
/* the old "Types · all / 100% vegan" bar → replaced by the chip row */
.map-page .mp-bar{display:none}

/* quick filter chips */
.mpc{position:absolute;z-index:1004;top:16px;left:372px;right:132px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 8px;-webkit-overflow-scrolling:touch;mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
.mpc::-webkit-scrollbar{display:none}
.mpc-c{flex:none;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 15px;border-radius:999px;border:0;background:rgba(255,255,255,.96);color:var(--ink,#16201A);
  font:600 13.5px/1 var(--ui,system-ui),sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 1px 2px rgba(16,24,20,.12),0 4px 14px -4px rgba(16,24,20,.22);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:background .15s,color .15s,transform .12s}
.mpc-c:active{transform:scale(.96)}
.mpc-c i{font-size:13px;color:var(--leaf-2,#15803D)}
.mpc-c.on{background:var(--forest,#14532D);color:#fff}
.mpc-c.on i{color:var(--lime,#A3E635)}
.mpc-open .ho-dot{background:#16A34A;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.mpc-open.on .ho-dot{background:var(--lime,#A3E635);box-shadow:0 0 0 3px rgba(163,230,53,.25)}
.mpc-n{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--lime,#A3E635);color:var(--forest,#14532D);font-size:11px;display:inline-grid;place-items:center}
.mpc-n[hidden]{display:none}
.mpc-ai{background:linear-gradient(135deg,#ECFCCB,#D9F99D)}
.mpc-ai i{color:var(--forest,#14532D)}
.mpc-c:focus-visible{outline:3px solid var(--lime,#A3E635);outline-offset:2px}

/* desktop: rounder, lighter floating buttons */
.map-page .map-fab .btn{border-radius:999px;box-shadow:0 2px 4px rgba(16,24,20,.12),0 8px 22px -8px rgba(16,24,20,.35)}
.map-page .leaflet-control-zoom{border-radius:14px!important}
.iv-basesw{border-radius:14px!important;overflow:hidden;box-shadow:0 2px 4px rgba(16,24,20,.12),0 8px 22px -8px rgba(16,24,20,.35)!important}

/* selected pin */
.mk-wrap.sel{z-index:5}
.mk-wrap.sel .mk{transform:rotate(-45deg) scale(1.32);box-shadow:0 0 0 3px #fff,0 0 0 6px var(--c,#16A34A),0 8px 18px rgba(0,0,0,.35)}

/* ── Place card (phones) ── */
.mps{position:fixed;left:0;right:0;bottom:calc(var(--tbh,0px) + 10px);z-index:1012;display:flex;justify-content:center;padding:0 10px;pointer-events:none;background:none}
.mps-card{pointer-events:auto;position:relative;width:100%;max-width:520px;background:#fff;border-radius:26px;overflow:hidden;
  box-shadow:0 1px 3px rgba(16,24,20,.1),0 18px 50px -12px rgba(16,24,20,.45);
  transform:translate3d(0,calc(100% + 40px),0);visibility:hidden;
  transition:transform .36s cubic-bezier(.32,.72,0,1),visibility 0s linear .36s;touch-action:pan-x;will-change:transform}
.mps.open .mps-card{transform:translate3d(0,0,0);visibility:visible;transition:transform .42s cubic-bezier(.32,.72,0,1),visibility 0s}
.mps-card.dragging{transition:none!important}
.mps-grab{position:absolute;z-index:3;top:7px;left:50%;width:38px;height:5px;margin-left:-19px;border-radius:5px;background:rgba(0,0,0,.18)}
.mps-x{position:absolute;z-index:3;top:12px;right:12px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:var(--ink,#16201A);font-size:15px;cursor:pointer;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.mps-x:active{transform:scale(.92)}
.mps-strip{display:flex;align-items:flex-start;transition:transform .32s cubic-bezier(.32,.72,0,1),height .28s cubic-bezier(.32,.72,0,1);will-change:transform}
.mps-strip.dragging{transition:none}
.mps-item{flex:0 0 100%;min-width:0;box-sizing:border-box}
.mps-hero{display:block;height:148px;background:var(--paper-2,#F1EEE6)}
.mps-hero img{width:100%;height:100%;object-fit:cover;display:block}
.mps-body{padding:22px 16px 14px}
.mps-item.has-hero .mps-body{padding-top:14px}
.mps-head{display:flex;gap:12px;align-items:center;padding-right:84px}
.mps-item.has-hero .mps-head{padding-right:0}
.mps-ico{flex:0 0 52px;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:21px;color:var(--c);background:color-mix(in srgb,var(--c) 13%,#fff)}
.mps-ttl{min-width:0}
.mps-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:700 19px/1.2 var(--display,inherit);color:var(--ink,#16201A)!important;text-decoration:none;letter-spacing:-.01em}
.mps-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;margin-top:4px;font-size:13px;color:var(--muted,#6B776F)}
.mps-sep{font-style:normal;opacity:.6}
.mps-rt{color:var(--ink,#16201A);font-weight:700}.mps-rt i{color:#F59E0B;font-size:11px}.mps-rt span{color:var(--muted);font-weight:500}
.mps-km{color:#1D4ED8;font-weight:700}
.mps-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.mps-lv,.mps-st{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;font-size:12.5px;font-weight:700;background:#F0FDF4;color:var(--leaf-2,#15803D)}
.mps-lv i{font-size:11px}
.mps-lv.v{background:var(--forest,#14532D);color:var(--lime,#A3E635)}
.mps-st.is-open{background:#DCFCE7;color:#166534}
.mps-st.is-closed{background:#FEE2E2;color:#991B1B}
.mps-st.is-soon{background:#FFEDD5;color:#9A3412}
.mps-st .ho-dot{background:currentColor}
.mps-st.is-open .ho-dot{animation:hoPulse 2s ease-out infinite}
@keyframes hoPulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.55)}70%,100%{box-shadow:0 0 0 7px rgba(22,163,74,0)}}
.mps-hours{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:10px 12px;border:0;border-radius:14px;background:var(--paper,#F7F5EE);text-align:left;font:inherit;color:var(--ink,#16201A);cursor:pointer}
.mps-hours>i:first-child{color:var(--muted);font-size:15px}
.mps-hours>span{flex:1;min-width:0;font-size:14px;font-weight:600}
.mps-hours small{display:block;font-size:12.5px;font-weight:500;color:var(--muted);margin-top:1px}
.mps-chev{color:var(--muted);font-size:12px;transition:transform .2s}
.mps-hours.on .mps-chev{transform:rotate(180deg)}
.mps-week{padding:8px 12px 0 39px}
.mps-acts{display:flex;gap:8px;margin-top:14px}
.mps-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:46px;padding:0 16px;border-radius:14px;border:0;font:700 14.5px/1 var(--ui,system-ui),sans-serif;text-decoration:none;cursor:pointer;transition:transform .12s,filter .15s}
.mps-btn:active{transform:scale(.97)}
.mps-go{flex:1.3;background:var(--forest,#14532D);color:#fff!important}
.mps-go i{color:var(--lime,#A3E635)}
.mps-ic{flex:0 0 46px;padding:0;background:var(--paper-2,#F1EEE6);color:var(--ink,#16201A);font-size:16px}
.mps-more{flex:1;background:var(--paper-2,#F1EEE6);color:var(--ink,#16201A)!important}
.mps-more i{font-size:12px}
.mps-body .pop-trip{margin:10px 0 0;padding:0}
.mps-dots{display:flex;justify-content:center;gap:5px;padding:0 0 10px}
.mps-dots:empty{display:none}
.mps-dots i{width:6px;height:6px;border-radius:3px;background:#D6D3C7;transition:width .2s,background .2s}
.mps-dots i.on{width:18px;background:var(--forest,#14532D)}
@media (min-width:761px){.mps{display:none}}
@media (prefers-reduced-motion:reduce){.mps-card,.mps.open .mps-card,.mps-strip{transition-duration:.01s}.mps-st.is-open .ho-dot{animation:none}}

/* ── Phones ── */
@media (max-width:760px){
  .mpc{top:66px;left:0;right:0;padding:2px 12px 10px;mask-image:none}
  .map-wrap.has-float-search .leaflet-top{top:112px}
  /* list = draggable bottom sheet above the tab bar: peek · half · full */
  .map-page .map-panel{position:fixed;z-index:1005;left:0;right:0;top:auto;bottom:var(--tbh,0px);width:auto;max-height:none;height:min(50dvh,480px);transform:none!important;
    border-radius:26px 26px 0 0;box-shadow:0 -1px 2px rgba(16,24,20,.06),0 -14px 40px -12px rgba(16,24,20,.35);transition:height .38s cubic-bezier(.32,.72,0,1)}
  .map-page .map-panel.collapsed{height:74px}
  .map-page .map-panel.full{height:calc(100dvh - var(--tbh,0px) - 64px - var(--hdr,56px))}
  .map-page .map-panel.dragging{transition:none}
  .map-page .panel-toggle{height:20px}
  .map-page .panel-toggle::before{top:8px;width:38px;height:5px;margin-left:-19px;background:#D6D3C7}
  .map-panel-head{padding:0 18px 8px;touch-action:none}
  .map-page .map-panel.collapsed .mp-title{margin-bottom:0}
  .mp-title h1{font-size:18px!important}
  .mp-count{font-size:13px}
  .map-page .map-panel.collapsed .map-sort,.map-page .map-panel.collapsed .map-list,.map-page .map-panel.collapsed .map-filters{visibility:hidden}
  /* floating buttons → one round "my location" button above the sheet; AI lives in the chips, Add is the tab bar's + */
  .map-page .map-fab{position:fixed;top:auto!important;right:14px;left:auto;bottom:calc(var(--tbh,0px) + 74px + 14px);flex-direction:column;z-index:1004;transition:opacity .2s,transform .2s}
  .map-page .map-fab .ax-fab,.map-page .map-fab .btn-line{display:none}
  .map-page #map-near{width:52px;height:52px;min-height:52px;padding:0;border-radius:50%;justify-content:center;background:#fff;color:#2563EB;font-size:19px;box-shadow:0 2px 4px rgba(16,24,20,.14),0 10px 26px -8px rgba(16,24,20,.4)}
  .map-page #map-near span{display:none}
  .map-wrap.list-up .map-fab,.map-wrap.mps-on .map-fab{opacity:0;transform:translateY(12px);pointer-events:none}
  .mpc{transition:opacity .2s}
  /* the map already ends above the tab bar (.map-wrap height), so only the collapsed sheet (66px) is in the way */
  .map-page .leaflet-bottom.leaflet-right{bottom:66px}
  .map-page .toast{bottom:calc(var(--tbh,0px) + 90px)}
}
/* title + live count: never overlap — desktop wraps the count under the title, phones shrink it with an ellipsis */
.mp-title{flex-wrap:wrap;row-gap:2px}
.mp-count{min-width:0}
@media (min-width:761px){.mp-count{white-space:normal;flex-basis:100%}}
@media (max-width:760px){.mp-title{flex-wrap:nowrap}.mp-title h1{flex:none}.mp-count{flex:1 1 auto;text-align:right}}
@media (max-width:760px){
  /* the sheet's fixed height would squash the handle and header (flex-shrink) — keep them full size */
  .map-page .map-panel .panel-toggle{flex:none;height:24px!important;min-height:24px;margin:0!important;padding:0}
  .map-page .map-panel-head,.map-page .map-sort{flex:none}
  .map-page .map-panel.collapsed{height:66px}
}

/* ♥ Save to favourites on map popups (desktop) and the place card (phones) · 2026-11-09 */
.pop{position:relative}
.pop-fav,.mps-fav{position:absolute;z-index:3;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#6B776F;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:transform .15s,color .15s}
.pop-fav{top:8px;left:8px;width:32px;height:32px;font-size:14px}
.mps-item{position:relative}
.mps-fav{top:12px;right:54px;width:34px;height:34px;font-size:15px}
.pop-fav:hover,.mps-fav:hover{color:#E11D48}
.pop-fav.on,.mps-fav.on{color:#E11D48}
.pop-fav:active,.mps-fav:active{transform:scale(.88)}
.pop-fav.on i,.mps-fav.on i{animation:favPop .32s ease}
@keyframes favPop{40%{transform:scale(1.35)}100%{transform:scale(1)}}

/* the chip row only catches taps on the chips themselves, not on the empty space around them */
.mpc{pointer-events:none}.mpc-c{pointer-events:auto}

/* Fix 2026-11-13: the search results hang below the search field, but the panel clips everything outside its rounded box
   (overflow:hidden), so with a short panel the list was cut off after one result. While results are open the panel lets them out. */
.map-panel:has(.mp-results:not([hidden])){overflow:visible}
.map-panel:has(.mp-results:not([hidden])) .map-list{border-radius:0 0 20px 20px}

/* ── People on the map (2026-11-30): the "People" chip shows members who chose "Show me on the map" as coloured circles,
   an area of about 5 km. ".mpq" = the line under the chips, ".mpp" = the member card at the bottom (computer and phone).
   JS: assets/js/parts/map.js ("People on the map") · server: inc/peoplemap.php ── */
.mpq{position:absolute;z-index:1003;top:64px;left:374px;max-width:calc(100% - 530px);display:flex;align-items:center;gap:10px;min-height:36px;box-sizing:border-box;padding:4px 5px 4px 14px;border-radius:999px;
  background:rgba(255,255,255,.96);color:var(--ink,#16201A);font:600 13px/1.2 var(--ui,system-ui),sans-serif;box-shadow:0 1px 2px rgba(16,24,20,.12),0 4px 14px -4px rgba(16,24,20,.22);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.mpq[hidden]{display:none}
.mpq-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mpq-t i{margin-right:4px;font-size:12px;color:var(--leaf-2,#15803D)}
.mpq-b{flex:none;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border:0;border-radius:999px;background:#F0FDF4;color:var(--leaf-2,#15803D);font:700 12.5px/1 var(--ui,system-ui),sans-serif;white-space:nowrap;cursor:pointer}
.mpq-b i{font-size:12px}
.mpq-go{background:var(--forest,#14532D);color:#fff}
.mpq-go i{color:var(--lime,#A3E635)}
.mpq-b:active{transform:scale(.96)}
.mpq-b:focus-visible,.mpp-nav button:focus-visible{outline:3px solid var(--lime,#A3E635);outline-offset:2px}

.mpp{position:absolute;z-index:1012;left:372px;right:0;bottom:28px;display:flex;justify-content:center;padding:0 16px;pointer-events:none}
.mpp-card{pointer-events:auto;position:relative;width:100%;max-width:420px;box-sizing:border-box;padding:20px 16px 14px;background:#fff;border-radius:24px;
  box-shadow:0 1px 3px rgba(16,24,20,.1),0 18px 50px -12px rgba(16,24,20,.45);
  transform:translate3d(0,calc(100% + 60px),0);visibility:hidden;transition:transform .36s cubic-bezier(.32,.72,0,1),visibility 0s linear .36s}
.mpp.open .mpp-card{transform:translate3d(0,0,0);visibility:visible;transition:transform .42s cubic-bezier(.32,.72,0,1),visibility 0s}
.mpp .mps-x{background:var(--paper-2,#F1EEE6)}
.mpp-head{display:flex;gap:12px;align-items:center;padding-right:40px}
.mpp-av{flex:none;display:block;padding:3px;border-radius:50%;background:var(--c,#15803D);line-height:0}   /* ring in the colour of the member's circle */
.mpp-av .avatar{display:block;width:60px;height:60px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;object-fit:cover}
.mpp-av .avatar-i{display:grid;place-items:center;font-size:25px;line-height:1}
.mpp-ttl{min-width:0}
.mpp-name{font:700 19px/1.2 var(--display,inherit);color:var(--ink,#16201A)!important;text-decoration:none;letter-spacing:-.01em;overflow-wrap:anywhere}
.mpp-you{display:inline-block;margin-left:4px;padding:2px 8px;border-radius:999px;background:var(--forest,#14532D);color:var(--lime,#A3E635);font-size:11px;font-weight:700;vertical-align:2px}
.mpp-place{margin-top:3px;font-size:13.5px;color:var(--muted,#6B776F)}
.mpp-place i{font-size:12px;margin-right:2px}
.mpp-hl{margin:12px 0 0;font-size:14.5px;line-height:1.4;color:var(--ink,#16201A);overflow-wrap:anywhere}
.mpp-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.mpp-tag{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;background:#F0FDF4;color:var(--leaf-2,#15803D);font-size:12.5px;font-weight:700}
.mpp-tag i{font-size:11px}
.mpp-note{display:flex;gap:8px;align-items:flex-start;margin:12px 0 0;padding:9px 12px;border-radius:12px;background:var(--paper,#F7F5EE);font-size:12.5px;line-height:1.35;color:var(--muted,#6B776F)}
.mpp-note i{margin-top:2px;color:var(--leaf-2,#15803D)}
.mpp .mps-acts .mps-btn{flex:1 1 0;min-width:0;padding:0 10px}
.mpp-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:10px}
.mpp-nav[hidden]{display:none}
.mpp-nav button{width:34px;height:34px;border:0;border-radius:50%;background:var(--paper-2,#F1EEE6);color:var(--ink,#16201A);font-size:13px;cursor:pointer}
.mpp-nav button:disabled{opacity:.35;cursor:default}
.mpp-n{min-width:48px;text-align:center;font-size:12.5px;font-weight:700;color:var(--muted,#6B776F)}
.mpp-join{padding:2px 8px 0;text-align:center}
.mpp-join-ico{display:inline-grid;place-items:center;width:52px;height:52px;margin-bottom:8px;border-radius:50%;background:#F0FDF4;color:var(--leaf-2,#15803D);font-size:21px}
.mpp-join b{display:block;font:700 18px/1.25 var(--display,inherit);color:var(--ink,#16201A)}
.mpp-join p{margin:8px 0 0;font-size:14px;line-height:1.45;color:var(--ink,#16201A)}
.mpp-join .mpp-small{font-size:12.5px;color:var(--muted,#6B776F)}
.mpp-ri{overflow:hidden;border-radius:50%!important;font-weight:700}
.mpp-ri img{display:block;width:100%;height:100%;object-fit:cover}
@media (min-width:761px){.mpp .mps-grab{display:none}}
@media (max-width:1180px){.map-wrap.mpp-on .map-fab{opacity:0;pointer-events:none}}   /* narrow window: the card needs the room of the floating buttons */
@media (max-width:760px){
  .mpq{top:112px;left:12px;max-width:calc(100% - 24px)}
  .map-wrap:has(.mpq:not([hidden])) .leaflet-top{top:156px}
  .mpp{position:fixed;left:0;bottom:calc(var(--tbh,0px) + 10px);padding:0 10px}
  .mpp-card{max-width:520px;border-radius:26px;padding-top:24px}
  .map-wrap.mpp-on .map-fab{opacity:0;transform:translateY(12px);pointer-events:none}
  .map-page:has(.mpp.open) .toast{bottom:auto;top:164px}   /* a message must not cover the card's buttons */
}
@media (prefers-reduced-motion:reduce){.mpp-card,.mpp.open .mpp-card{transition-duration:.01s}}

/* 2026-12-02: map popup: walking / driving time next to the distance, and one line that says what kind of place it is */
.pop-go{white-space:nowrap;color:#1D4ED8;font-weight:600}
.pop-go i{font-size:11px;margin-right:1px}
.pop-desc{display:block;margin:2px 0 3px;font-size:12.5px;line-height:1.35;color:var(--ink-2);font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* 2026-12-06: was .mps-go, the class of the Directions button, so the times got its dark green box. Own name now: quiet text with a small icon. */
.mps-trip{white-space:nowrap;color:var(--ink-2,#3F4A43);font-weight:600}
.mps-trip i{font-size:11px;margin-right:2px;color:var(--leaf-2,#15803D)}
.mps-desc{margin:6px 0 0;font-size:13.5px;line-height:1.4;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ── Places | People switch (2026-12-06): the first thing in the chip row. People is a different view of the map (members,
   no places), so it is a two-way switch, not a filter chip. In People view the place filters (chips, Types, 100% vegan) hide. ── */
.mpc-seg{flex:none;display:inline-flex;align-items:center;gap:2px;height:38px;box-sizing:border-box;padding:3px;border-radius:999px;background:rgba(255,255,255,.96);
  box-shadow:0 1px 2px rgba(16,24,20,.12),0 4px 14px -4px rgba(16,24,20,.22);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:auto}
.mpc-s{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px;border:0;border-radius:999px;background:transparent;color:var(--ink,#16201A);
  font:600 13.5px/1 var(--ui,system-ui),sans-serif;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s,transform .12s}
.mpc-s i{font-size:13px;color:var(--leaf-2,#15803D)}
.mpc-s.on{background:var(--forest,#14532D);color:#fff}
.mpc-s.on i{color:var(--lime,#A3E635)}
.mpc-s:active{transform:scale(.96)}
.mpc-s:focus-visible{outline:3px solid var(--lime,#A3E635);outline-offset:2px}
.mpc.is-people .mpc-c{display:none}
.map-wrap.ppl-on .mp-bar,.map-wrap.ppl-on .map-filters{display:none!important}
