/* ================================================================
   FEF MAPS WIDGET (+ FEF Loop "Map" view)
   Sizes come from CSS variables set by the widget's Elementor controls
   (--fef-*); the older inline --map-h / --list-w / --iw-w stay as fallbacks.
   ================================================================ */
.fef-map-wrap{--fef-h:var(--fef-map-h,var(--map-h,500px));display:flex;width:var(--fef-wrap-w,100%);max-width:100%;overflow:hidden;border-radius:8px;position:relative;box-sizing:border-box}
.fef-map-wrap *,.fef-map-wrap *::before,.fef-map-wrap *::after{box-sizing:border-box}
.fef-map-split_left{flex-direction:row}
.fef-map-split_right{flex-direction:row-reverse}
.fef-map-map_top{flex-direction:column-reverse}
.fef-map-list_top{flex-direction:column}
.fef-map-map_only,.fef-map-list_only{flex-direction:column}

/* map area */
.fef-map-stage{position:relative;isolation:isolate;flex:1 1 auto;min-width:var(--fef-map-minw,0);display:flex;flex-direction:column}
.fef-map-container{position:relative;flex:0 0 var(--map-w,60%);height:var(--fef-h);min-height:var(--fef-map-minh,300px);max-height:var(--fef-map-maxh,none)}
.fef-map-stage>.fef-map-container{flex:none;width:100%}
.fef-map-map_only .fef-map-container{flex:1;width:100%}
.fef-map-map_top .fef-map-container,.fef-map-list_top .fef-map-container{flex:none;width:100%}

/* ── List panel ── */
.fef-map-list{flex:0 0 var(--fef-list-w,var(--list-w,40%));min-width:var(--fef-list-minw,0);max-width:100%;height:var(--fef-h);max-height:var(--fef-list-maxh,none);overflow-y:auto;background:#fff;border:1px solid #e0e0e0;position:relative;z-index:2}
.fef-map-split_left .fef-map-list{border-right:none;border-radius:8px 0 0 8px}
.fef-map-split_right .fef-map-list{border-left:none;border-radius:0 8px 8px 0}
.fef-map-map_top .fef-map-list{height:var(--fef-list-h,auto);max-height:var(--fef-list-maxh,400px);width:100%;flex:none;border-radius:0 0 8px 8px;border-top:none}
.fef-map-list_top .fef-map-list{height:var(--fef-list-h,auto);max-height:var(--fef-list-maxh,400px);width:100%;flex:none;border-radius:8px 8px 0 0;border-bottom:none}
.fef-map-list_only .fef-map-list{height:var(--fef-list-h,auto);max-height:var(--fef-list-maxh,none);width:100%;flex:none;border-radius:8px}
.fef-map-list-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;font-size:13px;font-weight:600;color:#555;border-bottom:1px solid #eee;background:#fafafa;position:sticky;top:0;z-index:3}
.fef-map-list-heading{flex:1 1 auto}
.fef-map-list-count{color:#2e7d32;font-size:16px}
.fef-map-list-items{display:grid;grid-template-columns:repeat(var(--fef-list-cols,1),minmax(0,1fr));gap:0}
.fef-map-list-item{display:flex;gap:10px;padding:10px 12px;border-bottom:1px solid #f0f0f0;cursor:pointer;transition-property:background,box-shadow;transition-duration:.15s;outline-offset:-2px;min-width:0}
.fef-map-list-item[hidden]{display:none}
.fef-map-list-item:hover,.fef-map-list-item.active{background:#f5f5f5}
.fef-map-list-item.is-selected{background:#eff6ff;box-shadow:inset 3px 0 0 #1e40af}
.fef-map-list-item:focus-visible{outline:2px solid #1e40af}
.fef-map-list-item--noloc{cursor:default}
.fef-map-cards--img-right .fef-map-list-item{flex-direction:row-reverse}
.fef-map-cards--img-top .fef-map-list-item{flex-direction:column}
.fef-map-list-thumb{width:var(--fef-card-img-w,60px);aspect-ratio:var(--fef-card-img-ratio,1 / 1);flex-shrink:0;border-radius:6px;overflow:hidden;background:#f1f5f9;align-self:flex-start}
.fef-map-cards--img-top .fef-map-list-thumb{width:var(--fef-card-img-w,100%);aspect-ratio:var(--fef-card-img-ratio,16 / 9)}
.fef-map-wrap .fef-map-list-thumb img{width:100%;height:100%;object-fit:cover;display:block;max-width:none}
.fef-map-list-content{flex:1;min-width:0}
.fef-map-list-title{font-weight:600;font-size:14px;color:#333;text-decoration:none;display:block;line-height:1.3}
.fef-map-list-title:hover{color:#1565c0}
.fef-map-list-text{font-size:12px;color:#777;margin-top:3px;line-height:1.4}
.fef-map-list-text i{margin-right:4px;color:#999;font-size:11px}
.fef-map-list-noloc{font-style:italic;color:#94a3b8}
.fef-map-list-price{font-size:13px;font-weight:600;color:#0f172a;margin-top:4px}
.fef-map-list-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-top:4px;font-size:12px;color:#64748b}
.fef-map-list-dist{font-weight:600;color:#1e40af}
.fef-map-list-dist[hidden]{display:none}
.fef-map-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.fef-map-list-empty{padding:24px 12px;text-align:center;color:#64748b;font-size:13px}
.fef-map-list-empty[hidden]{display:none}
.fef-map-list-pager{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;padding:10px}
.fef-map-list-pager[hidden]{display:none}
.fef-map-list-pager button{min-width:32px;height:32px;padding:0 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;cursor:pointer;font-size:13px}
.fef-map-list-pager button.is-current{background:#1e40af;border-color:#1e40af;color:#fff}
.fef-map-list-pager .fef-map-more{padding:0 16px}
.fef-map-pager-gap{color:#94a3b8;padding:0 2px}

/* stars (the exact average is the accessible name) */
.fef-map-stars{position:relative;display:inline-block;font-size:13px;line-height:1;color:#d1d5db;letter-spacing:1px;white-space:nowrap}
.fef-map-stars::before{content:"★★★★★"}
.fef-map-stars-fill{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:#f59e0b}
.fef-map-stars-fill::before{content:"★★★★★"}
.fef-map-stars-n{margin-left:3px;color:#64748b;font-size:12px}

/* collapsible list */
.fef-map-wrap.is-list-collapsed .fef-map-list-items,.fef-map-wrap.is-list-collapsed .fef-map-list-pager,.fef-map-wrap.is-list-collapsed .fef-map-list-empty{display:none}
.fef-map-wrap.is-list-collapsed.fef-map-split_left .fef-map-list,.fef-map-wrap.is-list-collapsed.fef-map-split_right .fef-map-list{flex:0 0 auto;width:auto;max-width:180px}
.fef-map-wrap.is-list-collapsed .fef-map-list{height:auto}

/* ── Mobile (Elementor's mobile breakpoint; the class is set by fef-maps.js) ── */
@media(max-width:767px){.fef-map-split_left,.fef-map-split_right{flex-direction:column-reverse}.fef-map-list{flex:none;width:100%!important;height:auto;max-height:300px;border-radius:0 0 8px 8px}.fef-map-container{flex:none;width:100%!important;border-radius:8px 8px 0 0}}
.fef-map--mobile.fef-map-split_left,.fef-map--mobile.fef-map-split_right{flex-direction:column-reverse}
.fef-map--mobile .fef-map-list{flex:none;width:100%!important;height:auto;max-height:var(--fef-list-maxh,300px);border-radius:0 0 8px 8px}
.fef-map--mobile.fef-map--m-map .fef-map-list{display:none}
.fef-map--mobile.fef-map--m-list .fef-map-stage{display:none}
.fef-map--mobile.fef-map--m-list .fef-map-list{max-height:var(--fef-list-maxh,none);border-radius:8px}
.fef-map--mobile.fef-map--m-sheet{flex-direction:column}
.fef-map--mobile.fef-map--m-sheet .fef-map-list{position:absolute;left:0;right:0;bottom:0;height:var(--fef-sheet-peek,30%);max-height:none;border-radius:14px 14px 0 0;border:0;box-shadow:0 -6px 24px rgba(0,0,0,.18);transition:height .25s ease}
.fef-map--mobile.fef-map--m-sheet.is-sheet-open .fef-map-list{height:85%}
.fef-map-sheet-handle{display:none}
.fef-map--mobile.fef-map--m-sheet .fef-map-sheet-handle{display:block;position:sticky;top:0;z-index:4;width:100%;height:22px;border:0;background:#fff;cursor:pointer;padding:0}
.fef-map--mobile.fef-map--m-sheet .fef-map-sheet-handle span[aria-hidden]{display:block;width:44px;height:5px;border-radius:3px;background:#cbd5e1;margin:0 auto}
.fef-map--mobile.fef-map--m-sheet .fef-map-list-header{top:22px}
@media (prefers-reduced-motion:reduce){.fef-map--mobile.fef-map--m-sheet .fef-map-list{transition:none}}

/* ── Information box (callout / card) ── */
/* --fef-iw-cap / --fef-iw-hcap: the map's own size, set by fef-maps.js when a box opens — a box never spills out of the map */
.fef-map-iw{width:min(var(--fef-iw-w,var(--iw-w,280px)),var(--fef-iw-cap,calc(100vw - 48px)));max-width:100%;height:var(--fef-iw-h,auto);max-height:min(var(--fef-iw-maxh,100vh),var(--fef-iw-hcap,100vh));overflow:auto;padding:0;font-family:inherit}
.fef-map-iw-img{width:100%;height:120px;object-fit:cover;display:block;border-radius:0}
.fef-map-iw-body{padding:10px 12px}
.fef-map-iw-title{font-weight:700;font-size:14px;color:#333;margin-bottom:4px}
.fef-map-iw-text{font-size:12px;color:#666;margin-bottom:3px;line-height:1.4}
.fef-map-iw-text i{margin-right:4px;color:#999}
.fef-map-iw-text a{color:inherit;text-decoration:underline}
.fef-map-iw-price{font-weight:600;color:#0f172a}
.fef-map-iw-meta-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px}
.fef-map-iw-dist{font-weight:600;color:#1e40af}
.fef-map-iw-metas{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.fef-map-iw-meta{font-size:11px;background:#f5f5f5;padding:2px 6px;border-radius:3px;color:#777}
.fef-map-iw-meta b{font-weight:600}
.fef-map-iw-route{margin-top:6px;font-size:12px;font-weight:600;color:#0f172a;background:#eff6ff;border-radius:6px;padding:5px 8px}
.fef-map-iw-route[hidden]{display:none}
.fef-map-iw-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:8px}
.fef-map-iw-link{display:inline-block;font-size:13px;color:#1565c0;text-decoration:none;font-weight:500}
.fef-map-iw-link:hover{text-decoration:underline}
.fef-map-popup .leaflet-popup-content-wrapper{background:var(--fef-iw-bg,#fff);border-radius:var(--fef-iw-r,12px);padding:0;overflow:hidden}
.fef-map-popup .leaflet-popup-content{margin:0;width:auto!important;line-height:1.4}
.fef-map-popup .leaflet-popup-tip{background:var(--fef-iw-bg,#fff)}
.fef-map-popup a.leaflet-popup-close-button{top:4px;right:4px;width:24px;height:24px;font-size:20px;line-height:22px;background:rgba(255,255,255,.85);border-radius:50%;color:#0f172a}
.fef-map-iw-google .fef-map-iw{background:var(--fef-iw-bg,#fff)}

/* card over the map (also the FEF Loop map view) */
.fef-map-overlay-card{position:absolute;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:16px}
.fef-map-overlay-backdrop{position:absolute;inset:0;background:rgba(15,23,42,0.55)}
.fef-map-card{position:relative;background:var(--fef-iw-bg,#fff);border-radius:var(--fef-iw-r,12px);box-shadow:0 20px 60px rgba(0,0,0,0.25);width:min(var(--fef-iw-w,var(--iw-w,340px)),100%);max-width:100%;height:var(--fef-iw-h,auto);max-height:var(--fef-iw-maxh,85%);overflow:auto}
.fef-map-card .fef-map-iw{width:100%;max-height:none;height:auto}
.fef-map-card-close{position:absolute;top:10px;right:10px;z-index:2;width:30px;height:30px;border:none;border-radius:50%;background:#0f172a;color:#fff;font-size:16px;line-height:1;cursor:pointer}
.fef-map-card-close:hover{background:#334155}
.fef-map-card .fef-map-iw-img{width:100%;height:180px;object-fit:cover;display:block}
.fef-map-card .fef-map-iw-body{padding:14px 16px}
.fef-map-card .fef-map-iw-title{font-weight:700;font-size:16px;color:#0f172a;margin-bottom:6px}
.fef-map-card .fef-map-iw-text{font-size:13px;color:#64748b;margin-bottom:4px}
.fef-map-card .fef-map-iw-link:not(button):not(.fef-map-iw-btn){display:inline-block;margin-top:10px;padding:8px 16px;background:#3b82f6;color:#fff;border-radius:6px;text-decoration:none;font-size:13px;font-weight:600}
.fef-map-card .fef-map-iw-link:not(button):not(.fef-map-iw-btn):hover{background:#2563eb;text-decoration:none}

/* ── On-map controls ── */
.fef-map-search-results{margin-top:6px;background:var(--fef-sb-dd-bg,#fff);border-radius:12px;box-shadow:0 10px 30px rgba(15,23,42,.18);max-height:240px;overflow-y:auto;display:none}
.fef-map-search-result{padding:9px 14px;font-size:13px;color:#1f2937;cursor:pointer;border-bottom:1px solid #f1f5f9}
.fef-map-search-result:last-child{border-bottom:none}
.fef-map-search-result:hover,.fef-map-search-result:focus{background:#f5f5f5}
.fef-map-locate.is-busy svg{animation:fefMapSpin 1s linear infinite}
@keyframes fefMapSpin{to{transform:rotate(360deg)}}
.fef-map-status{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);z-index:1002;max-width:calc(100% - 24px);background:#0f172a;color:#fff;font-size:12px;padding:7px 12px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.25);text-align:center}
.fef-map-status[hidden]{display:none}
.fef-map-diag{position:absolute;top:56px;left:50%;transform:translateX(-50%);z-index:1003;width:min(520px,calc(100% - 24px));background:#fffbeb;border:1px solid #f59e0b;color:#78350f;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.5;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.fef-map-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── "+ Add Location" button + panel ── */
.fef-map-add-btn{position:absolute;bottom:16px;right:16px;z-index:1001;display:inline-flex;align-items:center;gap:6px;padding:9px 16px;background:#0f172a;color:#fff;border:none;border-radius:999px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,0.25)}
.fef-map-add-btn:hover{background:#1e293b}
.fef-map-add-panel{position:absolute;bottom:16px;right:16px;z-index:1002;width:280px;max-width:calc(100% - 24px);max-height:calc(100% - 32px);overflow-y:auto;background:#fff;border-radius:10px;box-shadow:0 10px 40px rgba(0,0,0,0.25);padding:14px}
.fef-map-add-panel[hidden]{display:none}
.fef-map-add-panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.fef-map-add-panel-header strong{font-size:14px;color:#0f172a}
.fef-map-add-cancel{border:none;background:none;font-size:14px;cursor:pointer;color:#64748b;line-height:1}
.fef-map-add-hint{font-size:11px;color:#64748b;margin:0 0 10px}
.fef-map-add-panel label{display:block;font-size:11px;font-weight:600;color:#475569;margin-bottom:8px}
.fef-map-add-panel input{width:100%;box-sizing:border-box;margin-top:3px;padding:7px 9px;border:1px solid #d1d5db;border-radius:5px;font-size:12px;font-weight:400}
.fef-map-add-coords{font-size:11px;color:#0f172a;background:#f1f5f9;border-radius:5px;padding:7px 9px;margin-bottom:10px}
.fef-map-add-actions{display:flex;align-items:center;gap:10px}
.fef-map-add-status{font-size:11px;color:#16a34a}
.fef-map-add-status.is-error{color:#dc2626}


/* ── Map could not load (no network / bad key) ── */
.fef-map-failed{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;font-size:14px;color:#475569;background:#f1f5f9;z-index:5}

/* ================================================================
   MARKERS — Leaflet divIcon: .fef-map-pin (positioned by Leaflet with
   transform) > .fef-pin-inner (free to animate).
   ================================================================ */
.fef-map-pin{background:none;border:0}
.fef-map-pin .fef-pin-inner{position:absolute;inset:0;transform-origin:50% 100%;transition:scale .15s ease,translate .15s ease;filter:var(--fef-pin-shadow,none)}
.fef-map-pin--dot .fef-pin-inner{transform-origin:50% 50%}
.fef-map-wrap .fef-pin-img{position:absolute;left:0;top:0;display:block;width:100%;height:100%;max-width:none!important;max-height:none!important;margin:0;padding:0;border:0}
.fef-map-wrap .fef-map-pin--std .fef-pin-img{width:25px;height:41px}
.fef-map-wrap .fef-map-pin--std .fef-pin-shadow{position:absolute;left:0;top:0;width:41px;height:41px;max-width:none!important;max-height:none!important;margin:0}
.fef-map-pin--std .fef-pin-inner{filter:none}
.fef-pin-svg{display:block;width:100%;height:100%;overflow:visible}
.fef-pin-body{fill:var(--fef-pin-fill,#e53935);stroke:var(--fef-pin-stroke,#fff);transition:fill .15s}
.fef-pin-hole{fill:var(--fef-pin-dot,#fff)}
.fef-pin-dot{position:absolute;inset:0;border-radius:50%;background:var(--fef-pin-fill,#e53935);border:2px solid var(--fef-pin-stroke,#fff);transition:background .15s}
.fef-pin-tint{position:absolute;inset:0;background:var(--fef-pin-fill,#e53935);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center bottom;mask-position:center bottom;transition:background .15s}
.fef-map-pin:hover .fef-pin-body,.fef-map-pin.is-hover .fef-pin-body{fill:var(--fef-pin-fill-hover,var(--fef-pin-fill,#e53935))}
.fef-map-pin:hover .fef-pin-dot,.fef-map-pin.is-hover .fef-pin-dot,.fef-map-pin:hover .fef-pin-tint,.fef-map-pin.is-hover .fef-pin-tint{background:var(--fef-pin-fill-hover,var(--fef-pin-fill,#e53935))}
.fef-map-pin.is-selected .fef-pin-inner{scale:var(--fef-pin-scale-sel,1.25)}
.fef-map-pin.is-selected .fef-pin-body{fill:var(--fef-pin-fill-sel,#1e40af)}
.fef-map-pin.is-selected .fef-pin-dot,.fef-map-pin.is-selected .fef-pin-tint{background:var(--fef-pin-fill-sel,#1e40af)}
.fef-map--hover-grow .fef-map-pin:hover .fef-pin-inner{scale:1.18}
.fef-map--hover-grow .fef-map-pin.is-selected:hover .fef-pin-inner{scale:calc(var(--fef-pin-scale-sel,1.25) * 1.08)}
.fef-map--hover-lift .fef-map-pin:hover .fef-pin-inner{translate:0 -5px}
.fef-map--hover-bounce .fef-map-pin:hover .fef-pin-inner{animation:fefPinBounce .6s ease}

/* clusters: Leaflet.markercluster colours unless Style → 📍 Markers sets them */
.fef-map-cluster div{font-weight:700}

/* "You are here" + route */
.fef-map-user{background:none;border:0}
.fef-map-user-dot{display:block;width:20px;height:20px;border-radius:50%;background:var(--fef-user-color,#2563eb);border:3px solid #fff;box-shadow:0 0 0 2px var(--fef-user-color,#2563eb),0 2px 6px rgba(0,0,0,.35);animation:fefUserPulse 2s ease-out infinite}
@keyframes fefUserPulse{0%{box-shadow:0 0 0 2px var(--fef-user-color,#2563eb),0 0 0 0 rgba(37,99,235,.45)}100%{box-shadow:0 0 0 2px var(--fef-user-color,#2563eb),0 0 0 16px rgba(37,99,235,0)}}

/* entrance (plays once; paused until the map scrolls into view) */
.fef-pin--in-drop{animation:fefPinInDrop var(--fef-anim-in-dur,600ms) cubic-bezier(.2,.8,.3,1) both}
.fef-pin--in-rise{animation:fefPinInRise var(--fef-anim-in-dur,600ms) cubic-bezier(.2,.8,.3,1) both}
.fef-pin--in-slide_left{animation:fefPinInLeft var(--fef-anim-in-dur,600ms) cubic-bezier(.2,.8,.3,1) both}
.fef-pin--in-slide_right{animation:fefPinInRight var(--fef-anim-in-dur,600ms) cubic-bezier(.2,.8,.3,1) both}
.fef-pin--in-zoom_in{animation:fefPinInZoomIn var(--fef-anim-in-dur,600ms) cubic-bezier(.3,1.4,.5,1) both}
.fef-pin--in-zoom_out{animation:fefPinInZoomOut var(--fef-anim-in-dur,600ms) ease-out both}
.fef-pin--in-fade{animation:fefPinInFade var(--fef-anim-in-dur,600ms) ease-out both}
.fef-map--anim-wait .fef-pin-inner[class*="fef-pin--in-"]{animation-play-state:paused}
@keyframes fefPinInDrop{0%{transform:translateY(-220px);opacity:0}55%{transform:translateY(6px);opacity:1}75%{transform:translateY(-4px)}100%{transform:none;opacity:1}}
@keyframes fefPinInRise{0%{transform:translateY(140px);opacity:0}70%{transform:translateY(-4px);opacity:1}100%{transform:none;opacity:1}}
@keyframes fefPinInLeft{0%{transform:translateX(-180px);opacity:0}100%{transform:none;opacity:1}}
@keyframes fefPinInRight{0%{transform:translateX(180px);opacity:0}100%{transform:none;opacity:1}}
@keyframes fefPinInZoomIn{0%{transform:scale(0);opacity:0}100%{transform:none;opacity:1}}
@keyframes fefPinInZoomOut{0%{transform:scale(2.6);opacity:0}100%{transform:none;opacity:1}}
@keyframes fefPinInFade{0%{opacity:0}100%{opacity:1}}

/* repeating ("every N seconds") + list-hover highlight */
.fef-pin--loop-bounce,.fef-pin--hl{animation:fefPinBounce .8s ease}
.fef-pin--loop-wobble{animation:fefPinWobble .9s ease}
.fef-pin--loop-shiver{animation:fefPinShiver .5s linear}
.fef-pin--loop-shake{animation:fefPinShake .7s ease}
.fef-pin--loop-pulse{animation:fefPinPulse .8s ease}
.fef-pin--loop-swing{animation:fefPinSwing 1s ease;transform-origin:50% 0}
@keyframes fefPinBounce{0%,100%{transform:none}25%{transform:translateY(-12px)}50%{transform:none}70%{transform:translateY(-6px)}}
@keyframes fefPinWobble{0%,100%{transform:none}20%{transform:rotate(-12deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-6deg)}80%{transform:rotate(3deg)}}
@keyframes fefPinShiver{0%,100%{transform:none}10%,30%,50%,70%,90%{transform:translateX(-1.5px)}20%,40%,60%,80%{transform:translateX(1.5px)}}
@keyframes fefPinShake{0%,100%{transform:none}15%,45%,75%{transform:translateX(-6px)}30%,60%,90%{transform:translateX(6px)}}
@keyframes fefPinPulse{0%,100%{transform:none}50%{transform:scale(1.25)}}
@keyframes fefPinSwing{0%,100%{transform:none}20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}}

/* kept for older markup: the highlight that used to move the whole marker */
.fef-map-marker-bounce{animation:fefMapMarkerBounce .4s ease 2}
@keyframes fefMapMarkerBounce{0%,100%{translate:0 0}50%{translate:0 -10px}}

@media (prefers-reduced-motion:reduce){
  .fef-map-wrap [class*="fef-pin--in-"],.fef-map-wrap [class*="fef-pin--loop-"],.fef-map-wrap .fef-pin--hl,.fef-map-marker-bounce,.fef-map-user-dot,.fef-map--hover-bounce .fef-map-pin:hover .fef-pin-inner{animation:none!important}
  .fef-map-pin .fef-pin-inner{transition:none}
}

/* ═══ Phase 5 — search results bar, filters button, filters drawer ═══ */
.fef-map-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
.fef-map-top[hidden],.fef-map-sbar[hidden],.fef-map-fbtn[hidden],.fef-map-fbtn-badge[hidden],.fef-map-fd[hidden]{display:none!important}
.fef-map-sbar{display:inline-flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;padding:8px 12px;border-radius:8px;background:#eef2ff;color:#1e293b;font-size:14px}
.fef-map-sbar-text{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.fef-map-sbar-clear{flex:none;display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:4px 10px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.fef-map-sbar-clear:hover,.fef-map-sbar-clear:focus-visible{background:rgba(0,0,0,.07)}
.fef-map-fbtn{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:8px 14px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;font:inherit;font-size:14px;cursor:pointer;justify-content:center}
.fef-map-fbtn:focus-visible,.fef-map-fd-panel :is(button,a,input,select):focus-visible,.fef-map-sbar-clear:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.fef-map-fbtn-icon{display:inline-flex;font-size:16px;line-height:1}
.fef-map-fbtn-icon svg{width:1em;height:1em;fill:currentColor}
.fef-map-fbtn-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#2563eb;color:#fff;font-size:12px;line-height:1}
.fef-map-fbtn--on-map{position:absolute;z-index:1002;--fef-fbtn-off:10px}
.fef-map-fbtn--map_tl{top:var(--fef-fbtn-off);left:var(--fef-fbtn-off)}
.fef-map-fbtn--map_tr{top:var(--fef-fbtn-off);right:var(--fef-fbtn-off)}
.fef-map-fbtn--map_bl{bottom:calc(var(--fef-fbtn-off) + 14px);left:var(--fef-fbtn-off)}
.fef-map-fbtn--map_br{bottom:calc(var(--fef-fbtn-off) + 14px);right:var(--fef-fbtn-off)}
.fef-map-wrap.is-search-loading .fef-map-stage{cursor:progress}
.fef-map-wrap.is-search-loading .fef-map-list-items{opacity:.55;transition:opacity .15s}
.fef-map-search-group{padding:6px 12px 2px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b;background:#fff;position:sticky;top:0}
.fef-map-search-result--rec{display:flex;flex-direction:column;gap:1px}
.fef-map-search-title{font-weight:600}
.fef-map-search-sub{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fef-map-search-result--all{font-weight:600;color:#1d4ed8}
.fef-map-search-result.is-active{background:#eff6ff}
.fef-map-search-none{padding:10px 12px;font-size:12px;color:#64748b}

/* Filters drawer: fixed over the page; the FEF Filters widgets sit in its body while it is open. */
html.fef-map-fd-lock{overflow:hidden}
.fef-map-fd{position:fixed;inset:0;z-index:100000;--fef-fd-dur:250ms;--fef-fd-bg:#fff;--fef-fd-color:#1e293b;--fef-fd-overlay:rgba(15,23,42,.5);--fef-fd-pad:16px;--fef-fd-radius:0px;--fef-fd-apply:#2563eb;--fef-fd-apply-text:#fff}
.fef-map-fd-overlay{position:absolute;inset:0;background:var(--fef-fd-overlay);opacity:0;transition:opacity var(--fef-fd-dur) ease}
.fef-map-fd-panel{position:absolute;display:flex;flex-direction:column;background:var(--fef-fd-bg);color:var(--fef-fd-color);box-shadow:0 10px 40px rgba(0,0,0,.3);outline:none;max-width:100vw;max-height:100vh;max-height:100dvh;overflow:hidden;transition:transform var(--fef-fd-dur) ease,opacity var(--fef-fd-dur) ease}
.fef-map-fd--left .fef-map-fd-panel{top:0;bottom:0;left:0;width:var(--fef-fd-size,min(360px,92vw));border-radius:0 var(--fef-fd-radius) var(--fef-fd-radius) 0}
.fef-map-fd--right .fef-map-fd-panel{top:0;bottom:0;right:0;width:var(--fef-fd-size,min(360px,92vw));border-radius:var(--fef-fd-radius) 0 0 var(--fef-fd-radius)}
.fef-map-fd--bottom .fef-map-fd-panel{left:0;right:0;bottom:0;height:var(--fef-fd-size,auto);max-height:85vh;max-height:85dvh;border-radius:var(--fef-fd-radius) var(--fef-fd-radius) 0 0}
.fef-map-fd--top .fef-map-fd-panel{left:0;right:0;top:0;height:var(--fef-fd-size,auto);max-height:85vh;max-height:85dvh;border-radius:0 0 var(--fef-fd-radius) var(--fef-fd-radius)}
.fef-map-fd--anim-slide.fef-map-fd--left .fef-map-fd-panel{transform:translateX(-100%)}
.fef-map-fd--anim-slide.fef-map-fd--right .fef-map-fd-panel{transform:translateX(100%)}
.fef-map-fd--anim-slide.fef-map-fd--bottom .fef-map-fd-panel{transform:translateY(100%)}
.fef-map-fd--anim-slide.fef-map-fd--top .fef-map-fd-panel{transform:translateY(-100%)}
.fef-map-fd--anim-fade .fef-map-fd-panel{opacity:0}
.fef-map-fd--anim-none .fef-map-fd-panel,.fef-map-fd--anim-none .fef-map-fd-overlay{transition:none}
.fef-map-fd.is-open .fef-map-fd-overlay{opacity:1}
.fef-map-fd.is-open .fef-map-fd-panel{transform:none;opacity:1}
.fef-map-fd-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:var(--fef-fd-pad);border-bottom:1px solid rgba(100,116,139,.25)}
.fef-map-fd-title{font-size:17px}
.fef-map-fd-close{min-width:44px;min-height:44px;border:0;border-radius:8px;background:transparent;color:inherit;font-size:18px;cursor:pointer}
.fef-map-fd-body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:var(--fef-fd-pad);-webkit-overflow-scrolling:touch}
.fef-map-fd-body .elementor-widget,.fef-map-fd-body form{max-width:100%}
.fef-map-fd-none{color:#64748b;font-size:14px}
.fef-map-fd-foot{display:flex;gap:10px;padding:var(--fef-fd-pad);border-top:1px solid rgba(100,116,139,.25)}
.fef-map-fd-foot button{flex:1 1 0;min-height:44px;padding:8px 14px;border-radius:8px;font:inherit;font-size:15px;cursor:pointer}
.fef-map-fd-reset{border:1px solid #cbd5e1;background:transparent;color:inherit}
.fef-map-fd-apply{border:1px solid var(--fef-fd-apply);background:var(--fef-fd-apply);color:var(--fef-fd-apply-text)}
@media (prefers-reduced-motion:reduce){.fef-map-fd-panel,.fef-map-fd-overlay{transition:none}}
@media (max-width:480px){.fef-map-sbar{flex-basis:100%}.fef-map-sbar-clear-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.fef-map-sbar-clear{min-width:44px;justify-content:center}}


/* ═══════════════════════════════════════════════════════════════════════════
   Phase 6 — a calmer default look, fullscreen, "Near me" numbers, directions on the map, 📂 groups.
   Every colour / size below is a CSS variable the Style tab can set; the value after the comma is the default.
   ═══════════════════════════════════════════════════════════════════════════ */
.fef-map-wrap{--fef-ink:#111827;--fef-muted:#64748b;--fef-line:rgba(17,24,39,.1);--fef-shadow:0 1px 2px rgba(17,24,39,.08),0 6px 18px rgba(17,24,39,.14);font-family:inherit}
.fef-map-wrap .fef-map-ico{flex:none;display:inline-block;vertical-align:-3px}
/* map buttons: zoom, fullscreen, locate — one family */
.fef-map-wrap .leaflet-bar{border:1px solid var(--fef-ctl-border,var(--fef-line))!important;border-radius:var(--fef-ctl-radius,10px);box-shadow:var(--fef-shadow);overflow:hidden;background:var(--fef-ctl-bg,#fff)}
.fef-map-wrap.fef-map-wrap .leaflet-bar a{width:var(--fef-ctl-size,38px);height:var(--fef-ctl-size,38px);line-height:var(--fef-ctl-size,38px);display:flex;align-items:center;justify-content:center;background:var(--fef-ctl-bg,#fff);color:var(--fef-ctl-color,#1f2937);border-bottom:1px solid var(--fef-ctl-border,var(--fef-line));font:400 calc(var(--fef-ctl-icon,18px) + 4px)/1 system-ui,sans-serif;text-indent:0;transition:background .15s,color .15s}
.fef-map-wrap .leaflet-bar a:last-child{border-bottom:0}
.fef-map-wrap .leaflet-bar a:hover,.fef-map-wrap .leaflet-bar a:focus-visible{background:var(--fef-ctl-bg-h,#f3f4f6);color:var(--fef-ctl-color-h,#0f172a)}
.fef-map-wrap .leaflet-bar a.leaflet-disabled{background:var(--fef-ctl-bg,#fff);color:#cbd5e1;cursor:default}
.fef-map-wrap .leaflet-bar a .fef-map-ico{width:var(--fef-ctl-icon,18px);height:var(--fef-ctl-icon,18px);vertical-align:0}
.fef-map-wrap .leaflet-control-attribution{background:rgba(255,255,255,.82)!important;border-radius:8px 0 0 0;font-size:10px;padding:2px 8px;color:#475569}
.fef-map-wrap .fef-map-locate{position:absolute;left:10px;top:calc(10px + 2 * var(--fef-ctl-size,38px) + 12px);z-index:1001;width:var(--fef-ctl-size,38px);height:var(--fef-ctl-size,38px);display:flex;align-items:center;justify-content:center;border:1px solid var(--fef-ctl-border,var(--fef-line));border-radius:var(--fef-ctl-radius,10px);background:var(--fef-ctl-bg,#fff);color:var(--fef-ctl-color,#1f2937);cursor:pointer;padding:0;box-shadow:var(--fef-shadow);transition:background .15s,color .15s}
.fef-map-wrap .fef-map--no-zoom .fef-map-locate{top:10px}
.fef-map-wrap .fef-map-locate:hover,.fef-map-wrap .fef-map-locate:focus-visible{background:var(--fef-ctl-bg-h,#f3f4f6);color:var(--fef-ctl-color-h,#0f172a)}
.fef-map-wrap .fef-map-locate .fef-map-ico{width:var(--fef-ctl-icon,18px);height:var(--fef-ctl-icon,18px);vertical-align:0}
.fef-map-wrap .has-origin .fef-map-locate{color:#15803d}
/* search box on the map */
.fef-map-wrap .fef-map-search-box{position:absolute;top:10px;left:calc(10px + var(--fef-ctl-size,38px) + 10px);z-index:1001;width:300px;max-width:calc(100% - var(--fef-ctl-size,38px) * 2 - 56px)}
.fef-map-wrap .fef-map--no-zoom .fef-map-search-box{left:10px}
.fef-map-wrap>.fef-map-search-box{left:12px;max-width:calc(100% - 24px)}
.fef-map-wrap .fef-map-search-box::before{content:"";position:absolute;left:13px;top:calc(var(--fef-sb-h,var(--fef-ctl-size,38px)) / 2 - 8px);width:16px;height:16px;background:var(--fef-sb-icon,#94a3b8);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none;z-index:1}
.fef-map-wrap .fef-map-search-input{width:100%;height:var(--fef-sb-h,var(--fef-ctl-size,38px));padding:0 14px 0 38px;border:1px solid var(--fef-sb-border,var(--fef-line));border-radius:var(--fef-sb-radius,10px);font-size:14px;color:var(--fef-sb-color,#111827);background:var(--fef-sb-bg,#fff);box-shadow:var(--fef-shadow);outline:none;transition:border-color .15s,box-shadow .15s}
.fef-map-wrap .fef-map-search-input::placeholder{color:var(--fef-sb-ph,#94a3b8);opacity:1}
.fef-map-wrap .fef-map-search-input:focus{border-color:#94a3b8;box-shadow:0 0 0 3px rgba(100,116,139,.2),var(--fef-shadow)}
/* list header + buttons */
.fef-map-wrap .fef-map-list-header{background:var(--fef-lh-bg,#fff);color:var(--fef-lh-color,#475569);border-bottom:1px solid var(--fef-line);padding:12px 14px;font-weight:500}
.fef-map-wrap .fef-map-list-count{color:var(--fef-lh-count,var(--fef-ink));font-size:17px;font-weight:700}
.fef-map-wrap .fef-map-nearme,.fef-map-wrap .fef-map-list-toggle,.fef-map-wrap .fef-map-more{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border-radius:var(--fef-btn-radius,10px);font:inherit;font-size:13px;font-weight:600;line-height:1;cursor:pointer;border:1px solid transparent;transition:background .15s,color .15s,border-color .15s,box-shadow .15s}
.fef-map-wrap .fef-map-nearme{background:var(--fef-nm-bg,#111827);color:var(--fef-nm-color,#fff);border-color:var(--fef-nm-border,#111827)}
.fef-map-wrap .fef-map-nearme:hover,.fef-map-wrap .fef-map-nearme:focus-visible{background:var(--fef-nm-bg-h,#1f2937);color:var(--fef-nm-color-h,#fff);border-color:var(--fef-nm-border-h,#1f2937)}
.fef-map-wrap .fef-map-list-toggle{background:var(--fef-lt-bg,#fff);color:var(--fef-lt-color,#334155);border-color:var(--fef-lt-border,#d5dbe3)}
.fef-map-wrap .fef-map-list-toggle:hover,.fef-map-wrap .fef-map-list-toggle:focus-visible{background:var(--fef-lt-bg-h,#f3f4f6);color:var(--fef-lt-color-h,#0f172a);border-color:var(--fef-lt-border-h,#b8c1cd)}
.fef-map-wrap .fef-map-nearme.is-busy{opacity:.65;cursor:progress}
.fef-map-wrap .fef-map-nearme .fef-map-ico{width:15px;height:15px;vertical-align:0}
.fef-map-wrap .fef-map-nearme:focus-visible,.fef-map-wrap .fef-map-list-toggle:focus-visible,.fef-map-wrap .fef-map-card-btn:focus-visible,.fef-map-wrap .fef-map-iw-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.fef-map-wrap .fef-map-list-pager button{border-radius:8px;border-color:#d5dbe3;color:#334155}
.fef-map-wrap .fef-map-list-pager button.is-current{background:#111827;border-color:#111827}
/* list cards — directions + route buttons */
.fef-map-wrap .fef-map-card-actions{gap:8px}
.fef-map-wrap .fef-map-card-btn{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:var(--fef-cb-radius,9px);font:inherit;font-size:12.5px;font-weight:600;line-height:1;text-decoration:none;cursor:pointer;border:1px solid var(--fef-cbs-border,#cbd5e1);background:var(--fef-cbs-bg,#fff);color:var(--fef-cbs-color,#1f2937);transition:background .15s,color .15s,border-color .15s}
.fef-map-wrap .fef-map-card-btn:hover,.fef-map-wrap .fef-map-card-btn:focus-visible{background:var(--fef-cbs-bg-h,#f3f4f6);color:var(--fef-cbs-color-h,#0f172a);border-color:var(--fef-cbs-border-h,#94a3b8)}
.fef-map-wrap .fef-map-card-btn--route{background:var(--fef-cbp-bg,#111827);color:var(--fef-cbp-color,#fff);border-color:var(--fef-cbp-bg,#111827)}
.fef-map-wrap .fef-map-card-btn--route:hover,.fef-map-wrap .fef-map-card-btn--route:focus-visible{background:var(--fef-cbp-bg-h,#1f2937);color:var(--fef-cbp-color-h,#fff);border-color:var(--fef-cbp-bg-h,#1f2937)}
.fef-map-wrap .fef-map-card-btn .fef-map-ico{width:14px;height:14px;vertical-align:0}
.fef-map-wrap .fef-map-list-item{position:relative}
.fef-map-wrap .fef-map-list-num,.fef-map-wrap .fef-map-list-item.has-num .fef-map-list-num{position:absolute;top:10px;right:12px;display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--fef-num-bg,#111827);color:var(--fef-num-color,#fff);font-size:12px;font-weight:700;line-height:1;box-sizing:border-box}
.fef-map-wrap .fef-map-list-num[hidden]{display:none}
.fef-map-wrap .fef-map-list-item.has-num .fef-map-list-content{padding-right:34px}
.fef-map-wrap .fef-map-list-item.is-out{display:none}
.fef-map-wrap .fef-map-list-item.is-group-collapsed{display:none}
.fef-map-wrap .fef-map-list-dist{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--fef-ink)}
/* information box buttons */
.fef-map-wrap .fef-map-iw-actions{gap:8px}
.fef-map-wrap .fef-map-iw-btn{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:var(--fef-cb-radius,9px);font:inherit;font-size:12.5px;font-weight:600;line-height:1;text-decoration:none;cursor:pointer;border:1px solid transparent;transition:background .15s,color .15s,border-color .15s}
.fef-map-wrap .fef-map-iw-btn:hover{text-decoration:none}
.fef-map-wrap .fef-map-iw-btn .fef-map-ico{width:14px;height:14px;vertical-align:0}
.fef-map-wrap .fef-map-iw-link.fef-map-iw-btn--main{background:var(--fef-cbp-bg,#111827);color:var(--fef-cbp-color,#fff);border-color:var(--fef-cbp-bg,#111827)}
.fef-map-wrap .fef-map-iw-link.fef-map-iw-btn--main:hover,.fef-map-wrap .fef-map-iw-link.fef-map-iw-btn--main:focus-visible{background:var(--fef-cbp-bg-h,#1f2937);color:var(--fef-cbp-color-h,#fff)}
.fef-map-wrap .fef-map-iw-link.fef-map-iw-btn--ghost{background:var(--fef-cbs-bg,#fff);color:var(--fef-cbs-color,#1f2937);border-color:var(--fef-cbs-border,#cbd5e1)}
.fef-map-wrap .fef-map-iw-link.fef-map-iw-btn--ghost:hover,.fef-map-wrap .fef-map-iw-link.fef-map-iw-btn--ghost:focus-visible{background:var(--fef-cbs-bg-h,#f3f4f6);color:var(--fef-cbs-color-h,#0f172a);border-color:var(--fef-cbs-border-h,#94a3b8)}
.fef-map-wrap .fef-map-card .fef-map-iw-link.fef-map-iw-btn{margin-top:10px;padding:0 14px}
.fef-map-wrap .fef-map-card .fef-map-iw-link.fef-map-iw-btn--main{background:var(--fef-cbp-bg,#111827);color:var(--fef-cbp-color,#fff)}
.fef-map-wrap .fef-map-iw-group{display:inline-block;margin-bottom:6px;padding:2px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:600}
.fef-map-wrap .fef-map-popup .leaflet-popup-content-wrapper{box-shadow:0 12px 36px rgba(15,23,42,.22)}
/* directions on the map: summary, steps, start-point form */
.fef-map-wrap .fef-map-iw-route{margin-top:8px;padding:8px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-weight:400}
.fef-map-wrap .fef-map-route-sum{display:flex;align-items:center;gap:7px;font-size:13px;color:#0f172a}
.fef-map-wrap .fef-map-route-sum .fef-map-ico{color:var(--fef-route-color,#2563eb)}
.fef-map-wrap .fef-map-route-steps{margin-top:6px;font-size:12px;color:#334155}
.fef-map-wrap .fef-map-route-steps summary{cursor:pointer;font-weight:600;color:#1f2937;padding:3px 0}
.fef-map-wrap .fef-map-route-steps ol{margin:6px 0 0;padding:0 0 0 18px;max-height:150px;overflow:auto}
.fef-map-wrap .fef-map-route-steps li{margin:0 0 5px;line-height:1.35}
.fef-map-wrap .fef-map-route-d{color:#64748b;white-space:nowrap}
.fef-map-wrap .fef-map-route-clear{margin-top:6px;border:0;background:none;padding:0;font:inherit;font-size:12px;font-weight:600;color:#b91c1c;cursor:pointer;text-decoration:underline}
.fef-map-wrap .fef-map-iw-busy,.fef-map-wrap .fef-map-iw-err{display:block;font-size:12.5px;color:#475569}
.fef-map-wrap .fef-map-iw-err{color:#b91c1c;margin-bottom:6px}
.fef-map-wrap .fef-map-iw-start{display:flex;gap:6px;margin:0}
.fef-map-wrap .fef-map-iw-start input{flex:1 1 auto;min-width:0;height:34px;padding:0 10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;font-size:13px}
.fef-map-wrap .fef-map-iw-start button{height:34px;padding:0 14px;border:0;border-radius:8px;background:#111827;color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
/* "Near me" numbers on the markers (centred in the pin's head, or on the corner of other markers) */
.fef-map-wrap .fef-pin-num{position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:var(--fef-num-size,18px);height:var(--fef-num-size,18px);padding:0 4px;border-radius:999px;background:var(--fef-num-bg,#111827);color:var(--fef-num-color,#fff);border:2px solid var(--fef-num-border,#fff);font:700 11px/1 system-ui,sans-serif;box-shadow:0 1px 3px rgba(0,0,0,.4);pointer-events:none}
.fef-map-wrap .fef-pin-num--std{left:50%;top:13px;transform:translate(-50%,-50%)}
.fef-map-wrap .fef-pin-num--pin{left:50%;top:36%;transform:translate(-50%,-50%)}
.fef-map-wrap .fef-pin-num--corner{right:-9px;top:-7px}
/* 📂 group markers */
.fef-map-wrap .fef-map-gpin{background:none;border:0}
.fef-map-wrap .fef-gpin{position:relative;width:100%;height:100%;cursor:pointer}
.fef-map-wrap .fef-gpin-c{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;background:var(--fef-gp-bg,#111827);color:var(--fef-gp-color,#fff);border:3px solid var(--fef-gp-ring,#fff);box-shadow:0 2px 6px rgba(0,0,0,.28),0 8px 18px rgba(0,0,0,.18);box-sizing:border-box;transition:transform .15s ease}
.fef-map-wrap .fef-gpin-c b{font:700 15px/1 system-ui,sans-serif}
.fef-map-wrap .fef-gpin-i{width:58%;height:58%;object-fit:contain;display:block;border-radius:4px}
.fef-map-wrap .fef-gpin-n{position:absolute;right:-8px;top:-8px;min-width:20px;height:20px;padding:0 5px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:#fff;color:#111827;font:700 11px/1 system-ui,sans-serif!important;box-shadow:0 1px 3px rgba(0,0,0,.35);box-sizing:border-box}
.fef-map-wrap .fef-gpin-l{position:absolute;left:50%;top:calc(100% + 5px);transform:translateX(-50%);white-space:nowrap;padding:3px 9px;border-radius:999px;background:var(--fef-gp-label-bg,#fff);color:var(--fef-gp-label-color,#111827);font:600 12px/1.2 system-ui,sans-serif;box-shadow:0 1px 4px rgba(0,0,0,.25);pointer-events:none}
.fef-map-wrap .fef-map-gpin:hover .fef-gpin-c,.fef-map-wrap .fef-map-gpin:focus-visible .fef-gpin-c{transform:scale(1.1)}
.fef-map-wrap .fef-map-tip{border:0;border-radius:10px;padding:7px 10px;font-size:12px;line-height:1.35;box-shadow:0 6px 20px rgba(15,23,42,.25)}
.fef-map-wrap .fef-map-group-back{position:absolute;top:calc(10px + var(--fef-sb-h,var(--fef-ctl-size,38px)) + 8px);left:calc(10px + var(--fef-ctl-size,38px) + 10px);z-index:1002;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 16px 0 10px;border:1px solid var(--fef-line);border-radius:999px;background:var(--fef-gb-bg,#fff);color:var(--fef-gb-color,#111827);font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:var(--fef-shadow);transition:background .15s,color .15s}
.fef-map-wrap .fef-map-group-back:hover,.fef-map-wrap .fef-map-group-back:focus-visible{background:var(--fef-gb-bg-h,#f3f4f6);color:var(--fef-gb-color-h,#0f172a)}
.fef-map-wrap .fef-map-group-back[hidden]{display:none}
.fef-map-wrap .fef-map-group-back .fef-map-ico{width:15px;height:15px;vertical-align:0}
/* group headings in the list */
.fef-map-wrap .fef-map-list-group{grid-column:1/-1}
.fef-map-wrap .fef-map-gh{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:11px 14px;border:0;border-bottom:1px solid var(--fef-line);background:var(--fef-gh-bg,#f8fafc);color:var(--fef-gh-color,#111827);font:inherit;font-size:14px;font-weight:700;text-align:left;cursor:pointer}
.fef-map-wrap button.fef-map-gh:hover,.fef-map-wrap button.fef-map-gh:focus-visible{background:#eef2f7}
.fef-map-wrap .fef-map-gh--static{cursor:default;color:#475569}
.fef-map-wrap .fef-map-gh-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.fef-map-wrap .fef-map-gh-near{font-size:12px;font-weight:500;color:var(--fef-muted)}
.fef-map-wrap .fef-map-gh-count{flex:none;min-width:24px;height:24px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--fef-gh-count-bg,#111827);color:#fff;font-size:12px;font-weight:700;box-sizing:border-box}
.fef-map-wrap .fef-map-gh-chev{flex:none;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-4px 2px 0 0;transition:transform .15s}
.fef-map-wrap .fef-map-list-group.is-open .fef-map-gh-chev{transform:rotate(-135deg);margin-top:3px}
/* fullscreen (the whole widget): the browser's Fullscreen API, or a page-covering layer (.is-pseudo-fs) */
.fef-map-wrap.is-fs{--fef-h:100vh;width:100%!important;max-width:none;height:100%;border-radius:0;background:#fff}
.fef-map-wrap.is-pseudo-fs{position:fixed;inset:0;z-index:2147483000;height:100vh;height:100dvh}
.fef-map-wrap.is-fs .fef-map-container{height:100%!important;max-height:none;min-height:0}
.fef-map-wrap.is-fs .fef-map-stage{align-self:stretch}
.fef-map-wrap.is-fs .fef-map-stage>.fef-map-container{flex:1 1 auto}
.fef-map-wrap.is-fs .fef-map-list{height:auto;max-height:none;border-radius:0}
.fef-map-wrap.is-fs.fef-map-map_top .fef-map-list,.fef-map-wrap.is-fs.fef-map-list_top .fef-map-list{height:auto;max-height:36%}
.fef-map-wrap.is-fs.fef-map-map_only .fef-map-container{flex:1}
.fef-map-wrap.is-fs .leaflet-popup{max-width:calc(100vw - 32px)}
html.fef-map-fs-lock{overflow:hidden}
.fef-map-wrap:fullscreen{background:#fff}

@media (max-width:480px){.fef-map-wrap .fef-map-search-box{width:calc(100% - var(--fef-ctl-size,38px) - 28px);max-width:none}.fef-map-wrap .fef-map-nearme,.fef-map-wrap .fef-map-list-toggle{min-height:40px}}
@media (prefers-reduced-motion:reduce){.fef-map-wrap .fef-gpin-c,.fef-map-wrap .fef-map-group-back,.fef-map-wrap .fef-map-nearme,.fef-map-wrap .fef-map-list-toggle{transition:none}}

/* ── Phase 7: marker tooltip (Content → 🎯 Selecting, Zoom & Hover; Style → 💬 Marker Tooltip) ── */
.fef-map-wrap .fef-map-tip--marker{background:var(--fef-tip-bg,#111827);color:var(--fef-tip-color,#fff);border:1px solid var(--fef-tip-border,rgba(255,255,255,.12));border-radius:var(--fef-tip-r,8px);padding:6px 10px;max-width:var(--fef-tip-w,240px);white-space:normal;font:500 13px/1.35 system-ui,sans-serif;box-shadow:0 8px 24px rgba(15,23,42,.28);pointer-events:none}
.fef-map-wrap .fef-map-tip--marker.leaflet-tooltip-top:before{border-top-color:var(--fef-tip-bg,#111827)}
.fef-map-wrap .fef-map-tip--marker.leaflet-tooltip-bottom:before{border-bottom-color:var(--fef-tip-bg,#111827)}
.fef-map-wrap .fef-map-tip--marker.leaflet-tooltip-left:before{border-left-color:var(--fef-tip-bg,#111827)}
.fef-map-wrap .fef-map-tip--marker.leaflet-tooltip-right:before{border-right-color:var(--fef-tip-bg,#111827)}
.fef-map-wrap .fef-map-tip-in{display:flex;flex-direction:column;gap:2px}
.fef-map-wrap .fef-map-tip-t{font-weight:600}
.fef-map-wrap .fef-map-tip-s{color:var(--fef-tip-sub,#cbd5e1);font-size:.92em}
.fef-map-wrap .fef-map-tip-img{display:block;width:100%;max-width:180px;height:90px;object-fit:cover;border-radius:6px;margin-bottom:5px}
