.fmaps-wrap{position:relative;width:100%;max-width:100%;margin:1em 0;font-size:15px}
.fmaps-body{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.fmaps-map{flex:1 1 420px;min-width:0;width:100%;background:#e5e3df;z-index:0;border-radius:6px}
.fmaps-map img{max-width:none!important}
.fmaps-side:empty{display:none}
.fmaps-side{flex:0 0 280px;max-width:100%;max-height:100%}
.fmaps-has-list .fmaps-body{flex-wrap:nowrap}
.fmaps-has-list .fmaps-side{overflow:auto;border:1px solid #dcdcde;border-radius:6px;background:#fff}
@media (max-width:700px){
	.fmaps-has-list .fmaps-body{flex-wrap:wrap}
	.fmaps-side{flex:1 1 100%;max-height:260px;overflow:auto}
}
.fmaps-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}
.fmaps-toolbar:empty{display:none}
.fmaps-search{position:relative;display:flex;gap:6px;flex:1 1 260px;max-width:480px}
.fmaps-search input{flex:1;min-width:0;padding:8px 10px;border:1px solid #8c8f94;border-radius:6px;font-size:15px}
.fmaps-sbtn{padding:8px 14px;border:0;border-radius:6px;background:#1a73e8;color:#fff;cursor:pointer;font-size:15px}
.fmaps-sbtn:disabled{opacity:.6}
.fmaps-results{position:absolute;top:100%;left:0;right:0;z-index:1001;margin:4px 0 0;padding:4px 0;list-style:none;background:#fff;border:1px solid #c3c4c7;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.18);max-height:280px;overflow:auto}
.fmaps-results li{margin:0;padding:0}
.fmaps-results button{display:block;width:100%;text-align:left;background:none;border:0;padding:8px 12px;cursor:pointer;font-size:14px;line-height:1.35;color:#1d2327}
.fmaps-results button:hover,.fmaps-results button:focus{background:#f0f6fc}
.fmaps-res-h{padding:6px 12px 2px!important;font-size:12px;font-weight:700;color:#646970;text-transform:uppercase}
.fmaps-chips{display:flex;flex-wrap:wrap;gap:6px}
.fmaps-chip{padding:6px 12px;border:1px solid #c3c4c7;border-radius:999px;background:#fff;cursor:pointer;font-size:14px;color:#1d2327}
.fmaps-chip.on{background:#1a73e8;border-color:#1a73e8;color:#fff}
.fmaps-msg{margin:0 0 8px;padding:8px 12px;border-radius:6px;background:#e8f0fe;color:#174ea6;font-size:14px}
.fmaps-ctl a{font-size:18px;line-height:30px;text-align:center;text-decoration:none}
.fmaps-list{list-style:none;margin:0;padding:0}
.fmaps-list li{margin:0;border-bottom:1px solid #f0f0f1}
.fmaps-item{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;cursor:pointer;color:#1d2327;font-size:14px}
.fmaps-item:hover,.fmaps-item:focus{background:#f0f6fc}
.fmaps-item strong{display:block}
.fmaps-item span{display:block;color:#646970;font-size:13px}
.fmaps-info{min-width:150px;max-width:260px}
.fmaps-info h4{margin:0 0 6px;font-size:16px}
.fmaps-info p{margin:0 0 6px}
.fmaps-img{display:block;width:100%;height:auto;max-height:150px;object-fit:cover;border-radius:4px;margin:0 0 8px}
.fmaps-district{font-weight:600}
.fmaps-address{color:#50575e}
.fmaps-programs{font-style:italic;color:#555}
.fmaps-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px!important}
.fmaps-btn{display:inline-block;padding:5px 10px;border-radius:5px;background:#1a73e8;color:#fff!important;text-decoration:none!important;font-size:13px}
.fmaps-btn-alt{background:#fff;color:#1a73e8!important;border:1px solid #1a73e8}
/* full screen */
.fmaps-fs{position:fixed;inset:0;z-index:99999;margin:0;max-width:none!important;width:auto!important;background:#fff;padding:8px;display:flex;flex-direction:column}
.fmaps-fs .fmaps-body{flex:1;flex-wrap:nowrap;min-height:0}
.fmaps-fs .fmaps-map{height:100%!important;flex:1 1 auto}
.fmaps-fs .fmaps-side{max-height:none;overflow:auto}
.fmaps-noscroll{overflow:hidden}

/* markers: pulse ring + blink */
.fmaps-wrap{min-width:0}
.fmaps-pin{background:none!important;border:0!important;overflow:visible}
.fmaps-pin img{display:block;width:100%;height:100%;max-width:none!important;pointer-events:none}
.fmaps-pulse{position:absolute;left:50%;bottom:0;width:26px;height:26px;margin:0 0 -13px -13px;border-radius:50%;background:rgba(229,57,53,.55);pointer-events:none;transform:scale(.2);opacity:0}
.fmaps-blink .fmaps-pulse{animation:fmaps-ring 1.8s ease-out infinite}
.fmaps-blink img{animation:fmaps-blink 1.2s ease-in-out infinite}
@keyframes fmaps-ring{0%{transform:scale(.2);opacity:.9}70%{transform:scale(1.9);opacity:0}100%{transform:scale(1.9);opacity:0}}
@keyframes fmaps-blink{0%,100%{opacity:1}50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.fmaps-blink .fmaps-pulse,.fmaps-blink img{animation:none}.fmaps-pulse{display:none}}

/* ===== Modern look (v2.5) ===== */
.fmaps-wrap{--fmaps-accent:#2563eb;--fmaps-ink:#0f172a;--fmaps-muted:#64748b;--fmaps-line:#e2e8f0;font-family:inherit}
.fmaps-body{gap:16px}
.fmaps-map{border-radius:20px;overflow:hidden;background:#eef2f6;box-shadow:0 10px 30px -10px rgba(15,23,42,.28),0 0 0 1px rgba(15,23,42,.06);isolation:isolate}
.fmaps-map .leaflet-tile-pane{filter:saturate(.82) contrast(1.03) brightness(1.02)}
.fmaps-map .leaflet-container{font-family:inherit}

/* controls */
.fmaps-map .leaflet-bar,.fmaps-map .leaflet-control-layers{border:0!important;border-radius:14px!important;box-shadow:0 4px 14px rgba(15,23,42,.18)!important;overflow:hidden}
.fmaps-map .leaflet-bar a{width:38px;height:38px;line-height:38px;border:0;border-bottom:1px solid var(--fmaps-line);color:var(--fmaps-ink);background:#fff;transition:background .15s,color .15s}
.fmaps-map .leaflet-bar a:last-child{border-bottom:0}
.fmaps-map .leaflet-bar a:hover,.fmaps-map .leaflet-bar a:focus{background:var(--fmaps-accent);color:#fff}
.fmaps-ctl a{font-size:18px;line-height:38px!important}
.fmaps-map .leaflet-control-layers{background:#fff}
.fmaps-map .leaflet-control-layers-toggle{width:38px;height:38px;background-size:22px}
.fmaps-map .leaflet-control-layers-expanded{padding:10px 14px;color:var(--fmaps-ink);font-size:14px}
.fmaps-map .leaflet-control-attribution{background:rgba(255,255,255,.78)!important;backdrop-filter:blur(6px);border-radius:10px 0 0 0;font-size:10px;padding:2px 8px;color:var(--fmaps-muted)}
.fmaps-map .leaflet-control-scale-line{border-radius:0 6px 6px 0;background:rgba(255,255,255,.8);border-color:#94a3b8;color:var(--fmaps-muted)}

/* markers */
.fmaps-pin img{filter:drop-shadow(0 3px 3px rgba(15,23,42,.35))}
.fmaps-pin-in{position:relative;width:100%;height:100%;transform-origin:50% 100%;transition:transform .18s ease;animation:fmaps-drop .55s cubic-bezier(.34,1.56,.64,1) backwards}
.fmaps-pin:hover .fmaps-pin-in{transform:scale(1.18)}
.fmaps-pulse{background:rgba(37,99,235,.5);background:color-mix(in srgb,var(--fmaps-accent) 55%,transparent)}
@keyframes fmaps-drop{0%{opacity:0;transform:translateY(-26px) scale(.8)}100%{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fmaps-pin-in{animation:none}}

/* popup card */
.fmaps-popup .leaflet-popup-content-wrapper{padding:0;border-radius:18px;overflow:hidden;box-shadow:0 18px 40px -12px rgba(15,23,42,.45);color:var(--fmaps-ink)}
.fmaps-popup .leaflet-popup-content{margin:0;font-size:14px;line-height:1.5;width:auto!important}
.fmaps-popup .leaflet-popup-tip{box-shadow:0 6px 12px rgba(15,23,42,.18)}
.fmaps-popup a.leaflet-popup-close-button{top:10px;right:10px;width:28px;height:28px;padding:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--fmaps-ink);font:20px/28px Arial,sans-serif;text-align:center;box-shadow:0 2px 6px rgba(15,23,42,.25);transition:background .15s,color .15s}
.fmaps-popup a.leaflet-popup-close-button:hover{background:var(--fmaps-accent);color:#fff}
.fmaps-info{min-width:0;max-width:none;padding:16px 18px 18px}
.fmaps-info .fmaps-img{width:calc(100% + 36px);max-width:none;height:auto;max-height:170px;margin:-16px -18px 14px;border-radius:0}
.fmaps-info h4{margin:0 34px 8px 0;font-size:17px;line-height:1.3;font-weight:700;color:var(--fmaps-ink)}
.fmaps-info .fmaps-img + h4{margin-right:0}
.fmaps-info p{margin:0 0 8px;color:var(--fmaps-muted)}
.fmaps-district{display:inline-block;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--fmaps-accent) 12%,#fff);color:var(--fmaps-accent)!important;font-size:12px;font-weight:700}
.fmaps-address{color:var(--fmaps-muted)}
.fmaps-programs{font-style:normal;font-size:12px;letter-spacing:.02em;color:var(--fmaps-muted)}
.fmaps-text{color:#334155}
.fmaps-text p{color:inherit}
.fmaps-links{gap:8px;margin-top:12px!important}
.fmaps-btn{padding:8px 16px;border-radius:999px;background:var(--fmaps-accent);color:#fff!important;font-weight:600;font-size:13px;border:1px solid var(--fmaps-accent);transition:transform .15s,box-shadow .15s,background .15s}
.fmaps-btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px -4px color-mix(in srgb,var(--fmaps-accent) 70%,transparent)}
.fmaps-btn-alt{background:#fff;color:var(--fmaps-accent)!important}
.fmaps-btn-alt:hover{background:color-mix(in srgb,var(--fmaps-accent) 8%,#fff)}

/* toolbar, chips, search */
.fmaps-toolbar{margin-bottom:12px;gap:10px}
.fmaps-chip{padding:7px 16px;border:1px solid var(--fmaps-line);border-radius:999px;background:#fff;color:var(--fmaps-ink);font-weight:600;font-size:13px;box-shadow:0 1px 2px rgba(15,23,42,.06);transition:all .15s}
.fmaps-chip:hover{border-color:var(--fmaps-accent);color:var(--fmaps-accent)}
.fmaps-chip.on{background:var(--fmaps-accent);border-color:var(--fmaps-accent);color:#fff;box-shadow:0 6px 14px -6px color-mix(in srgb,var(--fmaps-accent) 80%,transparent)}
.fmaps-search input{padding:11px 16px;border:1px solid var(--fmaps-line);border-radius:999px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.08);font-size:14px}
.fmaps-search input:focus{outline:0;border-color:var(--fmaps-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--fmaps-accent) 22%,transparent)}
.fmaps-sbtn{padding:11px 20px;border-radius:999px;background:var(--fmaps-accent);font-weight:600}
.fmaps-results{border:0;border-radius:16px;box-shadow:0 18px 40px -12px rgba(15,23,42,.35)}
.fmaps-msg{border-radius:12px;background:color-mix(in srgb,var(--fmaps-accent) 10%,#fff);color:var(--fmaps-ink)}

/* list panel */
.fmaps-has-list .fmaps-side{border:0;border-radius:20px;background:#fff;box-shadow:0 10px 30px -10px rgba(15,23,42,.28),0 0 0 1px rgba(15,23,42,.06)}
.fmaps-item{padding:12px 16px;transition:background .15s}
.fmaps-item strong{font-weight:700}
.fmaps-item:hover,.fmaps-item:focus{background:color-mix(in srgb,var(--fmaps-accent) 8%,#fff)}
.fmaps-list li{border-bottom:1px solid #f1f5f9}

@media (max-width:600px){.fmaps-map,.fmaps-has-list .fmaps-side{border-radius:14px}.fmaps-popup .leaflet-popup-content-wrapper{border-radius:14px}}

/* ===== v2.7: legend, clusters, 3D ===== */
.fmaps-legend{position:absolute;left:12px;bottom:30px;z-index:800;max-width:min(240px,60%);padding:10px 14px 8px;border-radius:14px;background:rgba(255,255,255,.94);backdrop-filter:blur(6px);box-shadow:0 6px 18px rgba(15,23,42,.22);font-size:13px;line-height:1.3;color:var(--fmaps-ink,#0f172a)}
.fmaps-legend-h{display:block;margin-bottom:6px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--fmaps-muted,#64748b)}
.fmaps-legend-row{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.fmaps-legend-row img{width:20px;height:24px;object-fit:contain;flex:none}
.fmaps-cluster{background:none!important;border:0!important}
.fmaps-cluster span{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--fmaps-accent);color:#fff;font-weight:700;font-size:15px;border:3px solid #fff;box-shadow:0 0 0 6px color-mix(in srgb,var(--fmaps-accent) 28%,transparent),0 6px 14px rgba(15,23,42,.35);cursor:pointer;transition:transform .15s}
.fmaps-cluster:hover span{transform:scale(1.1)}

/* 3D (MapLibre) */
.fmaps-map.maplibregl-map{font-family:inherit}
.fmaps-map .maplibregl-ctrl-group{border-radius:14px;box-shadow:0 4px 14px rgba(15,23,42,.18);overflow:hidden;background:#fff}
.fmaps-map .maplibregl-ctrl-group button{width:38px;height:38px;border-top:1px solid var(--fmaps-line,#e2e8f0)}
.fmaps-map .maplibregl-ctrl-group button:first-child{border-top:0}
.fmaps-map .maplibregl-ctrl-group button:hover{background:var(--fmaps-accent);}
.fmaps-map .maplibregl-ctrl-group button:hover .maplibregl-ctrl-icon{filter:invert(1)}
.fmaps-tilt-btn{font:700 13px/38px inherit;color:var(--fmaps-ink,#0f172a);cursor:pointer;background:transparent;border:0}
.fmaps-tilt-btn:hover{color:#fff}
.fmaps-map .maplibregl-ctrl-attrib{background:rgba(255,255,255,.78);border-radius:10px 0 0 0;font-size:10px}
.fmaps-map .maplibregl-marker{cursor:pointer}
.fmaps-map .maplibregl-marker.fmaps-pin{background:none;border:0}
.fmaps-popup.maplibregl-popup .maplibregl-popup-content{padding:0;border-radius:18px;overflow:hidden;box-shadow:0 18px 40px -12px rgba(15,23,42,.45);font-size:14px;line-height:1.5;color:var(--fmaps-ink,#0f172a)}
.fmaps-popup.maplibregl-popup .maplibregl-popup-close-button{top:10px;right:10px;width:28px;height:28px;padding:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--fmaps-ink,#0f172a);font:20px/28px Arial,sans-serif;box-shadow:0 2px 6px rgba(15,23,42,.25)}
.fmaps-popup.maplibregl-popup .maplibregl-popup-close-button:hover{background:var(--fmaps-accent);color:#fff}
.fmaps-popup.maplibregl-popup .maplibregl-popup-tip{filter:drop-shadow(0 4px 4px rgba(15,23,42,.15))}
.maplibregl-cooperative-gesture-screen{border-radius:20px;font-size:15px}

/* dark theme */
.fmaps-theme-dark{--fmaps-ink:#e2e8f0;--fmaps-muted:#94a3b8;--fmaps-line:#334155}
.fmaps-theme-dark .fmaps-map{background:#0b1220;box-shadow:0 10px 30px -10px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.06)}
.fmaps-theme-dark .fmaps-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55)}
.fmaps-theme-dark .fmaps-map .maplibregl-canvas{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6)}
.fmaps-theme-dark .fmaps-map .leaflet-bar a,.fmaps-theme-dark .fmaps-map .leaflet-control-layers,.fmaps-theme-dark .fmaps-map .maplibregl-ctrl-group{background:#1e293b;color:#e2e8f0;border-color:#334155}
.fmaps-theme-dark .fmaps-map .leaflet-bar a{border-bottom-color:#334155}
.fmaps-theme-dark .fmaps-map .maplibregl-ctrl-group button{border-color:#334155}
.fmaps-theme-dark .fmaps-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:invert(1)}
.fmaps-theme-dark .fmaps-map .maplibregl-ctrl-group button:hover .maplibregl-ctrl-icon{filter:none}
.fmaps-theme-dark .fmaps-tilt-btn{color:#e2e8f0}
.fmaps-theme-dark .fmaps-map .leaflet-control-layers-toggle{filter:invert(1)}
.fmaps-theme-dark .fmaps-map .leaflet-control-attribution,.fmaps-theme-dark .fmaps-map .maplibregl-ctrl-attrib{background:rgba(15,23,42,.78)!important;color:#94a3b8}
.fmaps-theme-dark .fmaps-map .leaflet-control-attribution a,.fmaps-theme-dark .fmaps-map .maplibregl-ctrl-attrib a{color:#cbd5e1}
.fmaps-theme-dark .fmaps-map .leaflet-control-scale-line{background:rgba(15,23,42,.8);color:#cbd5e1;border-color:#64748b}
.fmaps-theme-dark .fmaps-popup .leaflet-popup-content-wrapper,.fmaps-theme-dark .fmaps-popup .leaflet-popup-tip,.fmaps-theme-dark .fmaps-popup.maplibregl-popup .maplibregl-popup-content{background:#1e293b;color:#e2e8f0}
.fmaps-theme-dark .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,.fmaps-theme-dark .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,.fmaps-theme-dark .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#1e293b}
.fmaps-theme-dark .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip,.fmaps-theme-dark .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,.fmaps-theme-dark .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-bottom-color:#1e293b}
.fmaps-theme-dark .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-right-color:#1e293b}
.fmaps-theme-dark .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#1e293b}
.fmaps-theme-dark .fmaps-popup a.leaflet-popup-close-button,.fmaps-theme-dark .fmaps-popup.maplibregl-popup .maplibregl-popup-close-button{background:#334155;color:#e2e8f0}
.fmaps-theme-dark .fmaps-text,.fmaps-theme-dark .fmaps-text p{color:#cbd5e1}
.fmaps-theme-dark .fmaps-district{background:color-mix(in srgb,var(--fmaps-accent) 28%,#1e293b)}
.fmaps-theme-dark .fmaps-btn-alt{background:#1e293b}
.fmaps-theme-dark .fmaps-chip{background:#1e293b;border-color:#334155;color:#e2e8f0}
.fmaps-theme-dark .fmaps-chip.on{color:#fff}
.fmaps-theme-dark .fmaps-search input{background:#1e293b;border-color:#334155;color:#e2e8f0}
.fmaps-theme-dark .fmaps-results{background:#1e293b}
.fmaps-theme-dark .fmaps-results button{color:#e2e8f0}
.fmaps-theme-dark .fmaps-results button:hover,.fmaps-theme-dark .fmaps-results button:focus{background:#334155}
.fmaps-theme-dark .fmaps-msg{background:#1e293b;color:#e2e8f0}
.fmaps-theme-dark .fmaps-has-list .fmaps-side{background:#1e293b;box-shadow:0 10px 30px -10px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.06)}
.fmaps-theme-dark .fmaps-item{color:#e2e8f0}
.fmaps-theme-dark .fmaps-item:hover,.fmaps-theme-dark .fmaps-item:focus{background:#334155}
.fmaps-theme-dark .fmaps-item span{color:#94a3b8}
.fmaps-theme-dark .fmaps-list li{border-bottom-color:#334155}
.fmaps-theme-dark .fmaps-legend{background:rgba(30,41,59,.94);color:#e2e8f0}
.fmaps-theme-dark .fmaps-cluster span{border-color:#1e293b}
@media (prefers-color-scheme:dark){
.fmaps-theme-auto{--fmaps-ink:#e2e8f0;--fmaps-muted:#94a3b8;--fmaps-line:#334155}
.fmaps-theme-auto .fmaps-map{background:#0b1220;box-shadow:0 10px 30px -10px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.06)}
.fmaps-theme-auto .fmaps-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55)}
.fmaps-theme-auto .fmaps-map .maplibregl-canvas{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6)}
.fmaps-theme-auto .fmaps-map .leaflet-bar a,.fmaps-theme-auto .fmaps-map .leaflet-control-layers,.fmaps-theme-auto .fmaps-map .maplibregl-ctrl-group{background:#1e293b;color:#e2e8f0;border-color:#334155}
.fmaps-theme-auto .fmaps-map .leaflet-bar a{border-bottom-color:#334155}
.fmaps-theme-auto .fmaps-map .maplibregl-ctrl-group button{border-color:#334155}
.fmaps-theme-auto .fmaps-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:invert(1)}
.fmaps-theme-auto .fmaps-map .maplibregl-ctrl-group button:hover .maplibregl-ctrl-icon{filter:none}
.fmaps-theme-auto .fmaps-tilt-btn{color:#e2e8f0}
.fmaps-theme-auto .fmaps-map .leaflet-control-layers-toggle{filter:invert(1)}
.fmaps-theme-auto .fmaps-map .leaflet-control-attribution,.fmaps-theme-auto .fmaps-map .maplibregl-ctrl-attrib{background:rgba(15,23,42,.78)!important;color:#94a3b8}
.fmaps-theme-auto .fmaps-map .leaflet-control-attribution a,.fmaps-theme-auto .fmaps-map .maplibregl-ctrl-attrib a{color:#cbd5e1}
.fmaps-theme-auto .fmaps-map .leaflet-control-scale-line{background:rgba(15,23,42,.8);color:#cbd5e1;border-color:#64748b}
.fmaps-theme-auto .fmaps-popup .leaflet-popup-content-wrapper,.fmaps-theme-auto .fmaps-popup .leaflet-popup-tip,.fmaps-theme-auto .fmaps-popup.maplibregl-popup .maplibregl-popup-content{background:#1e293b;color:#e2e8f0}
.fmaps-theme-auto .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,.fmaps-theme-auto .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,.fmaps-theme-auto .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#1e293b}
.fmaps-theme-auto .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip,.fmaps-theme-auto .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,.fmaps-theme-auto .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-bottom-color:#1e293b}
.fmaps-theme-auto .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-right-color:#1e293b}
.fmaps-theme-auto .fmaps-popup.maplibregl-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#1e293b}
.fmaps-theme-auto .fmaps-popup a.leaflet-popup-close-button,.fmaps-theme-auto .fmaps-popup.maplibregl-popup .maplibregl-popup-close-button{background:#334155;color:#e2e8f0}
.fmaps-theme-auto .fmaps-text,.fmaps-theme-auto .fmaps-text p{color:#cbd5e1}
.fmaps-theme-auto .fmaps-district{background:color-mix(in srgb,var(--fmaps-accent) 28%,#1e293b)}
.fmaps-theme-auto .fmaps-btn-alt{background:#1e293b}
.fmaps-theme-auto .fmaps-chip{background:#1e293b;border-color:#334155;color:#e2e8f0}
.fmaps-theme-auto .fmaps-chip.on{color:#fff}
.fmaps-theme-auto .fmaps-search input{background:#1e293b;border-color:#334155;color:#e2e8f0}
.fmaps-theme-auto .fmaps-results{background:#1e293b}
.fmaps-theme-auto .fmaps-results button{color:#e2e8f0}
.fmaps-theme-auto .fmaps-results button:hover,.fmaps-theme-auto .fmaps-results button:focus{background:#334155}
.fmaps-theme-auto .fmaps-msg{background:#1e293b;color:#e2e8f0}
.fmaps-theme-auto .fmaps-has-list .fmaps-side{background:#1e293b;box-shadow:0 10px 30px -10px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.06)}
.fmaps-theme-auto .fmaps-item{color:#e2e8f0}
.fmaps-theme-auto .fmaps-item:hover,.fmaps-theme-auto .fmaps-item:focus{background:#334155}
.fmaps-theme-auto .fmaps-item span{color:#94a3b8}
.fmaps-theme-auto .fmaps-list li{border-bottom-color:#334155}
.fmaps-theme-auto .fmaps-legend{background:rgba(30,41,59,.94);color:#e2e8f0}
.fmaps-theme-auto .fmaps-cluster span{border-color:#1e293b}
}

/* ===== v2.8: modern edition ===== */
.fmaps-wrap{color-scheme:light;-webkit-tap-highlight-color:transparent}
.fmaps-theme-dark{color-scheme:dark}
@media (prefers-color-scheme:dark){.fmaps-theme-auto{color-scheme:dark}}
.fmaps-wrap :focus-visible{outline:3px solid color-mix(in srgb,var(--fmaps-accent) 70%,#fff);outline-offset:2px}
.fmaps-map{border-radius:24px}

/* frosted-glass controls */
.fmaps-map .leaflet-bar a,.fmaps-map .maplibregl-ctrl-group,.fmaps-map .leaflet-control-layers{background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:blur(14px) saturate(1.6);backdrop-filter:blur(14px) saturate(1.6)}
.fmaps-map .leaflet-bar a:hover,.fmaps-map .leaflet-bar a:focus{background:var(--fmaps-accent)!important}
.fmaps-map .maplibregl-ctrl-group{border-radius:14px}
.fmaps-map .maplibregl-ctrl-group button:hover{background:var(--fmaps-accent)}
.fmaps-legend{-webkit-backdrop-filter:blur(14px) saturate(1.6);backdrop-filter:blur(14px) saturate(1.6);background:rgba(255,255,255,.82)}
.fmaps-home-btn{font-size:20px!important}

/* loading shimmer while tiles arrive */
.fmaps-map.fmaps-loading::after{content:"";position:absolute;inset:0;z-index:900;pointer-events:none;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%) 0 0/200% 100%;animation:fmaps-shimmer 1.3s linear infinite}
@keyframes fmaps-shimmer{to{background-position:-200% 0}}

/* "you are here" dot */
.fmaps-me{background:none!important;border:0!important}
.fmaps-me span{position:relative;display:block;width:22px;height:22px;border-radius:50%;background:#1a73e8;border:3px solid #fff;box-shadow:0 2px 8px rgba(15,23,42,.45)}
.fmaps-me span::after{content:"";position:absolute;inset:-3px;border-radius:50%;background:rgba(26,115,232,.45);animation:fmaps-me-ring 2s ease-out infinite}
@keyframes fmaps-me-ring{0%{transform:scale(1);opacity:.9}100%{transform:scale(3);opacity:0}}

/* popups open with a soft pop */
.fmaps-popup .leaflet-popup-content-wrapper,.fmaps-popup.maplibregl-popup .maplibregl-popup-content{animation:fmaps-pop .22s cubic-bezier(.2,.9,.3,1.2) both;transform-origin:50% 100%}
@keyframes fmaps-pop{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:none}}
.fmaps-popup .leaflet-popup-content-wrapper,.fmaps-popup.maplibregl-popup .maplibregl-popup-content{box-shadow:0 24px 48px -16px rgba(15,23,42,.5),0 0 0 1px rgba(15,23,42,.05)}

/* search: clear button */
.fmaps-search input{padding-right:42px}
.fmaps-sclear{flex:none;width:30px;height:30px;align-self:center;margin-left:-44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--fmaps-muted);font-size:13px;cursor:pointer}
.fmaps-sclear[hidden]{display:none}
.fmaps-sclear:hover{background:color-mix(in srgb,var(--fmaps-accent) 12%,transparent);color:var(--fmaps-accent)}
.fmaps-results button{border-radius:10px;margin:0 4px;width:calc(100% - 8px)}

/* list panel: filter box + place cards */
.fmaps-has-list .fmaps-side{display:flex;flex-direction:column}
.fmaps-listfilter{flex:none;margin:12px 12px 4px;padding:9px 14px;border:1px solid var(--fmaps-line);border-radius:999px;background:transparent;color:var(--fmaps-ink);font-size:14px;width:calc(100% - 24px);box-sizing:border-box}
.fmaps-listfilter:focus{outline:0;border-color:var(--fmaps-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--fmaps-accent) 22%,transparent)}
.fmaps-has-list .fmaps-list{overflow:auto;flex:1;padding:4px 8px 8px}
.fmaps-has-list .fmaps-list li{border:0;margin:2px 0}
.fmaps-has-list .fmaps-item{border-radius:12px}

/* clusters are real buttons now */
button.fmaps-cluster{padding:0;cursor:pointer}
.fmaps-cluster span{pointer-events:none}

/* chips scroll sideways on phones instead of wrapping into a wall */
@media (max-width:600px){
.fmaps-chips{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -2px;padding:2px}
.fmaps-chips::-webkit-scrollbar{display:none}
.fmaps-chip{flex:none;scroll-snap-align:start;min-height:40px}
.fmaps-search{flex-basis:100%;max-width:none}
.fmaps-map .leaflet-bar a,.fmaps-map .maplibregl-ctrl-group button{width:42px;height:42px;line-height:42px}
.fmaps-legend{bottom:36px;max-width:55%}
.fmaps-map{border-radius:18px}
}

/* dark theme for the new parts */
.fmaps-theme-dark .fmaps-map .leaflet-bar a,.fmaps-theme-dark .fmaps-map .maplibregl-ctrl-group,.fmaps-theme-dark .fmaps-map .leaflet-control-layers,.fmaps-theme-dark .fmaps-legend{background:rgba(30,41,59,.82)!important}
.fmaps-theme-dark .fmaps-map.fmaps-loading::after{background:linear-gradient(100deg,transparent 30%,rgba(148,163,184,.18) 50%,transparent 70%) 0 0/200% 100%}
.fmaps-theme-dark .fmaps-listfilter{color:#e2e8f0}
@media (prefers-color-scheme:dark){
.fmaps-theme-auto .fmaps-map .leaflet-bar a,.fmaps-theme-auto .fmaps-map .maplibregl-ctrl-group,.fmaps-theme-auto .fmaps-map .leaflet-control-layers,.fmaps-theme-auto .fmaps-legend{background:rgba(30,41,59,.82)!important}
.fmaps-theme-auto .fmaps-map.fmaps-loading::after{background:linear-gradient(100deg,transparent 30%,rgba(148,163,184,.18) 50%,transparent 70%) 0 0/200% 100%}
.fmaps-theme-auto .fmaps-listfilter{color:#e2e8f0}
}

/* respect reduced-motion everywhere */
@media (prefers-reduced-motion:reduce){
.fmaps-map.fmaps-loading::after,.fmaps-me span::after,.fmaps-popup .leaflet-popup-content-wrapper,.fmaps-popup.maplibregl-popup .maplibregl-popup-content{animation:none}
}

/* ===== v2.9: signature look ===== */
/* frame: accent-tinted glow, soft vignette */
.fmaps-map{box-shadow:0 34px 60px -26px color-mix(in srgb,var(--fmaps-accent) 50%,rgba(15,23,42,.65)),0 12px 24px -12px rgba(15,23,42,.25),0 0 0 1px rgba(15,23,42,.06)}
.fmaps-map::before{content:"";position:absolute;inset:0;z-index:850;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 90px rgba(15,23,42,.12),inset 0 0 0 1px rgba(255,255,255,.35)}
.fmaps-theme-dark .fmaps-map::before{box-shadow:inset 0 0 110px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.06)}
@media (prefers-color-scheme:dark){.fmaps-theme-auto .fmaps-map::before{box-shadow:inset 0 0 110px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.06)}}

/* place-count badge */
.fmaps-badge{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:860;display:inline-flex;align-items:center;gap:8px;padding:7px 16px 7px 12px;border-radius:999px;background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(14px) saturate(1.6);backdrop-filter:blur(14px) saturate(1.6);box-shadow:0 8px 20px -8px rgba(15,23,42,.4),0 0 0 1px rgba(15,23,42,.06);color:var(--fmaps-ink,#0f172a);font-size:13px;font-weight:700;letter-spacing:.01em;pointer-events:none;white-space:nowrap}
.fmaps-badge::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--fmaps-accent);box-shadow:0 0 0 0 color-mix(in srgb,var(--fmaps-accent) 60%,transparent);animation:fmaps-live 2.2s ease-out infinite}
@keyframes fmaps-live{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--fmaps-accent) 60%,transparent)}100%{box-shadow:0 0 0 10px transparent}}
.fmaps-theme-dark .fmaps-badge{background:rgba(30,41,59,.82)}
@media (prefers-color-scheme:dark){.fmaps-theme-auto .fmaps-badge{background:rgba(30,41,59,.82)}}

/* markers: grounded shadow, staggered drop-in, glow when selected */
.fmaps-pin-in::before{content:"";position:absolute;left:50%;bottom:-3px;width:62%;height:9px;margin-left:-31%;border-radius:50%;background:radial-gradient(closest-side,rgba(15,23,42,.38),transparent);transition:transform .2s,opacity .2s}
.fmaps-pin:hover .fmaps-pin-in::before{transform:scale(.8);opacity:.7}
.fmaps-pin.is-active{z-index:1000!important}
.fmaps-pin.is-active .fmaps-pin-in{transform:scale(1.28) translateY(-3px)}
.fmaps-pin.is-active img{filter:drop-shadow(0 0 10px var(--fmaps-accent)) drop-shadow(0 6px 6px rgba(15,23,42,.4))}

/* popup: accent ribbon + stronger type */
.fmaps-info::before{content:"";display:block;height:5px;margin:-16px -18px 14px;background:linear-gradient(90deg,var(--fmaps-accent),color-mix(in srgb,var(--fmaps-accent) 35%,#22d3ee))}
.fmaps-info:has(.fmaps-img)::before{display:none}
.fmaps-info h4{font-weight:800;letter-spacing:-.01em;font-size:18px}
.fmaps-btn{background:linear-gradient(135deg,var(--fmaps-accent),color-mix(in srgb,var(--fmaps-accent) 65%,#7c3aed));border-color:transparent}
.fmaps-btn-alt{background:transparent;border:1.5px solid var(--fmaps-accent);color:var(--fmaps-accent)!important}
.fmaps-popup .leaflet-popup-tip,.fmaps-popup.maplibregl-popup .maplibregl-popup-tip{box-shadow:none}

/* clusters, chips, search button */
.fmaps-cluster span{background:radial-gradient(circle at 30% 25%,color-mix(in srgb,var(--fmaps-accent) 65%,#fff),var(--fmaps-accent) 70%);animation:fmaps-glow 2.6s ease-in-out infinite}
@keyframes fmaps-glow{0%,100%{box-shadow:0 0 0 6px color-mix(in srgb,var(--fmaps-accent) 24%,transparent),0 6px 14px rgba(15,23,42,.35)}50%{box-shadow:0 0 0 11px color-mix(in srgb,var(--fmaps-accent) 12%,transparent),0 6px 14px rgba(15,23,42,.35)}}
.fmaps-chip.on,.fmaps-sbtn{background:linear-gradient(135deg,var(--fmaps-accent),color-mix(in srgb,var(--fmaps-accent) 65%,#7c3aed))}

/* 3D: calmer controls, rounder cards */
.fmaps-map .maplibregl-ctrl-top-left{margin:6px}
.fmaps-map .maplibregl-ctrl-group{margin:6px 0 0 6px}

@media (max-width:600px){.fmaps-badge{top:8px;font-size:12px;padding:6px 12px 6px 10px}}
@media (prefers-reduced-motion:reduce){.fmaps-badge::before,.fmaps-cluster span{animation:none}.fmaps-pin.is-active .fmaps-pin-in{transform:none}}

/* ===== v2.10: labels, tour, vector dark ===== */
.fmaps-label{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:4px;padding:2px 9px;border-radius:999px;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 3px 8px -2px rgba(15,23,42,.35);color:var(--fmaps-ink,#0f172a);font:700 11px/1.45 inherit;white-space:nowrap;pointer-events:none}
.fmaps-theme-dark .fmaps-label{background:rgba(30,41,59,.92);color:#e2e8f0}
@media (prefers-color-scheme:dark){.fmaps-theme-auto .fmaps-label{background:rgba(30,41,59,.92);color:#e2e8f0}}
.fmaps-tour-btn.is-on{background:var(--fmaps-accent)!important;color:#fff!important}
.fmaps-tour-btn{font-size:14px}
/* real dark vector map: no colour-flip filter needed */
.fmaps-map.fmaps-vdark .maplibregl-canvas{filter:none!important}
