/* Modern map: pins, clusters, name tags and the place sheet (all widths), then phone controls. Loaded last. */
.map-frame .leaflet-tile-pane{filter:none}
.leaflet-container{background:#eef0ea}
html[data-theme=dark] .leaflet-container{background:#1b2025}
html[data-theme=dark] #map.map-osm .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9)}

/* Clusters: red bubbles that grow with the number of places */
.fv-cluster{background:none;border:0;cursor:pointer}
.fv-cluster>span{display:grid;place-items:center;width:100%;height:100%;box-sizing:border-box;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ea4a3b,#c52132 62%,#a3152a);color:#fff;border:3px solid #fff;box-shadow:0 0 0 6px rgba(197,33,50,.2),0 6px 16px rgba(80,10,20,.35);font:800 15px/1 Manrope,sans-serif;transition:transform .15s ease}
.fv-cluster:hover>span{transform:scale(1.07)}
.fv-cluster:active>span{transform:scale(.94)}
.fv-cluster.is-hot>span{transform:scale(1.12);background:radial-gradient(circle at 35% 30%,#2c5a4a,#173b30 70%);box-shadow:0 0 0 6px rgba(23,59,48,.25),0 6px 16px rgba(0,0,0,.35)}

/* Single place further out: a pin whose tip sits on the point */
.fv-pin{background:none;border:0;cursor:pointer}
.fv-pin::before{content:'';position:absolute;inset:-6px -5px 0}
.fv-pin>span{position:absolute;left:3px;top:4px;display:grid;place-items:center;width:28px;height:28px;box-sizing:border-box;border-radius:50% 50% 50% 0;transform:rotate(-45deg);transform-origin:0 100%;background:#c52132;border:2.5px solid #fff;box-shadow:-2px 4px 10px rgba(60,10,20,.35);transition:transform .15s ease,background .15s}
.fv-pin svg{width:14px;height:14px;transform:rotate(45deg);fill:none;stroke:#fff;stroke-width:2.2}
.fv-pin.selected>span,.fv-pin.is-hot>span{transform:rotate(-45deg) scale(1.3);background:#173b30}

/* Close up: a tag with the video thumbnail and the name */
.fv-tag{background:none;border:0;cursor:pointer;overflow:visible}
.fv-tag>span{position:absolute;left:0;bottom:0;transform:translate(-50%,-9px);display:flex;align-items:center;gap:7px;max-width:200px;padding:4px 12px 4px 4px;border-radius:999px;background:var(--paper);color:var(--ink);box-shadow:0 0 0 1px rgba(0,0,0,.07),0 5px 14px rgba(20,20,20,.24);white-space:nowrap;font:800 12.5px/1.1 Manrope,sans-serif;transition:transform .15s ease}
.fv-tag>span::after{content:'';position:absolute;left:50%;bottom:-5px;width:10px;height:10px;background:inherit;transform:translateX(-50%) rotate(45deg);border-radius:0 0 3px 0;box-shadow:2px 2px 3px rgba(0,0,0,.08)}
.fv-tag img{position:relative;z-index:1;width:28px;height:28px;flex:none;border-radius:50%;object-fit:cover;border:2px solid #c52132}
.fv-tag b{position:relative;z-index:1;overflow:hidden;text-overflow:ellipsis;font-weight:800}
.fv-tag i{position:relative;z-index:1;font-style:normal;color:#a8740a;font-size:11.5px}
.fv-tag.selected>span,.fv-tag.is-hot>span{background:#c52132;color:#fff;transform:translate(-50%,-9px) scale(1.08)}
.fv-tag.selected img,.fv-tag.is-hot img{border-color:#fff}
.fv-tag.selected i,.fv-tag.is-hot i{color:#ffe08a}
.fv-cluster:focus-visible>span,.fv-pin:focus-visible>span,.fv-tag:focus-visible>span{outline:3px solid #173b30;outline-offset:3px}

/* Place sheet */
.map-frame .map-selection{gap:12px;padding:10px 16px 14px;border-radius:22px;border:1px solid var(--line);box-shadow:0 18px 50px rgba(0,0,0,.25);transition:transform .2s ease}
.map-frame .map-selection.is-dragging{transition:none}
.fv-handle{flex:none;width:44px;height:5px;margin:0 auto 2px;border-radius:99px;background:color-mix(in srgb,var(--ink) 22%,var(--paper));touch-action:none;cursor:grab}
.map-frame .map-selection .map-selection-close{top:12px;right:12px;width:38px;height:38px;min-width:38px;min-height:38px;font-size:22px}
.map-frame .map-selection .map-place-heading{align-items:flex-start;gap:12px;padding-right:46px;touch-action:none}
.map-frame .map-selection .map-video-preview{width:92px;height:70px;border-radius:12px}
.map-frame .map-selection .map-video-preview img{border-radius:12px}
.map-frame .map-selection .map-place-eyebrow{display:block;margin:2px 0 3px;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#c52132}
.map-frame .map-selection .map-place-title{font-family:'Barlow Condensed',sans-serif;font-size:27px;line-height:1.02;font-weight:800}
.map-frame .map-selection .map-place-meta{display:flex;align-items:flex-start;gap:5px;margin-top:5px;font-size:12.5px;line-height:1.4;color:var(--muted)}
.map-place-meta svg{width:14px;height:14px;flex:none;margin-top:2px;fill:none;stroke:currentColor;stroke-width:2}
.map-place-meta span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.map-place-rating{display:inline-block;margin-top:5px;font-size:13px;font-weight:800;color:#a8740a}
.map-place-rating small{display:inline!important;font-size:12px;color:var(--muted)}
.map-frame .map-selection .map-route-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:var(--soft);border-radius:14px}
.map-frame .map-selection .map-route-modes>button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 4px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-size:12.5px;font-weight:800}
.map-frame .map-selection .map-route-modes>button svg{width:17px;height:17px;flex:none}
.map-frame .map-selection .map-route-modes>button[aria-pressed=true]{background:var(--paper);color:var(--ink);box-shadow:0 2px 6px rgba(0,0,0,.14)}
.map-quick{display:flex;gap:8px}
.map-frame .map-selection .map-quick .map-route-start{flex:1;flex-wrap:nowrap;margin:0;min-height:54px;border-radius:14px;font-size:16px}
.map-frame .map-selection .map-quick .map-route-start svg{width:20px;height:20px;flex:none}
.map-frame .map-selection .map-quick .map-route-start>span{font-size:11px;opacity:.85}
.map-quick-detail{min-height:54px;padding:0 20px;border:2px solid var(--ink);border-radius:14px;background:var(--paper);color:var(--ink);font-size:15px;font-weight:800}
.map-frame .map-selection .map-target-note{font-size:11.5px;line-height:1.5;text-align:center;color:var(--muted)}
.map-frame .map-selection .map-target-note a{font-weight:800;color:var(--ink);text-decoration:underline;text-underline-offset:2px}

@media(min-width:900px){
 .map-frame .map-selection{top:60px;bottom:12px;left:12px;right:auto;width:min(340px,calc(100% - 24px));max-height:none}
 .map-frame .map-selection .fv-handle{display:none}
 .map-frame .map-selection .map-route-modes>button{flex-direction:column;gap:3px;min-height:52px;font-size:11.5px}
 .map-frame:has(.map-selection:not([hidden])) .map-caption{display:none}
 .map-frame .map-selection .map-quick .map-route-start>span{display:none}
 .map-frame .map-tools{right:70px;bottom:20px}
 .map-frame .map-tools button{min-height:44px;border-radius:12px}
}

/* Phone map: search and categories on top, round buttons on the right, cards at the bottom */
.fv-mapbar{display:none}
@media(max-width:899px){
 /* The map runs under the rounded bottom bar, so no page content peeks through its corners. */
 body.explorer-map .map-panel.is-mobile-open{inset:64px 0 0!important;height:auto!important;box-sizing:border-box;padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
 body.explorer-map .fv-mapbar{display:flex;flex-direction:column;gap:8px;position:absolute;top:10px;left:0;right:0;z-index:720;pointer-events:none}
 body.explorer-map .fv-mapbar>*{pointer-events:auto}
 .fv-search{display:flex;align-items:center;gap:8px;height:52px;margin:0 12px;padding:0 5px 0 14px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 6px 22px rgba(0,0,0,.16)}
 .fv-search>svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--ink);stroke-width:2.2}
 .fv-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font:600 16px Manrope,sans-serif}
 .fv-search input::placeholder{color:var(--muted);opacity:1}
 .fv-search input::-webkit-search-cancel-button{display:none}
 .fv-clear{flex:none;width:34px;height:34px;border-radius:50%;background:var(--soft);color:var(--ink);font-size:20px;line-height:1}
 .fv-clear[hidden]{display:none}
 .fv-search #mapFilterToggle{display:flex;position:relative;flex:none;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;padding:0;border:0;border-radius:12px;background:var(--soft);color:var(--ink);font-size:0;box-shadow:none}
 .fv-search #mapFilterToggle svg{width:20px;height:20px}
 .fv-search #mapFilterToggle b{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:#c52132;color:#fff;font-size:11px;line-height:19px}
 .fv-chips{display:flex;gap:6px;overflow-x:auto;padding:2px 12px 8px;scrollbar-width:none;overscroll-behavior-x:contain}
 .fv-chips::-webkit-scrollbar{display:none}
 .fv-chips button{flex:none;min-height:40px;padding:0 15px;border:1px solid var(--line);border-radius:99px;background:var(--paper);color:var(--ink);font:800 13px Manrope,sans-serif;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.12)}
 .fv-chips button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}

 body.explorer-map .map-top,body.explorer-map .map-exit{display:none!important}
 body.explorer-map .map-unlocated{top:122px;right:12px;max-width:calc(100% - 24px)}
 body.explorer-map .live-status:not(:empty){top:122px;bottom:auto;left:12px;right:72px;max-width:max-content}

 body.explorer-map .map-tools{left:auto!important;right:12px!important;bottom:146px!important;flex-direction:column!important;align-items:center!important;gap:10px!important}
 body.explorer-map .map-frame.has-destination .map-tools{bottom:calc(var(--destination-height) + 34px)!important}
 body.explorer-map .map-tools button{display:flex;align-items:center;justify-content:center;width:48px!important;min-width:48px!important;height:48px;min-height:48px;padding:0!important;border:1px solid var(--line);border-radius:50%!important;background:var(--paper);color:var(--ink);font-size:0!important;box-shadow:0 6px 18px rgba(0,0,0,.18)}
 body.explorer-map .map-tools button[hidden]{display:none}
 body.explorer-map .map-tools button svg{width:22px;height:22px}
 body.explorer-map .map-tools #livePosition[aria-pressed=true]{background:#176cbd;border-color:#176cbd;color:#fff}
 body.explorer-map .leaflet-bottom.leaflet-right{bottom:128px!important;right:0}
 body.explorer-map .leaflet-control-zoom{margin-bottom:150px!important;margin-right:12px!important}
 body.explorer-map .leaflet-control-attribution{border-radius:6px 0 0 6px;opacity:.85}
 body.explorer-map .map-frame.has-destination .leaflet-bottom.leaflet-right{bottom:calc(var(--destination-height) + 10px)!important}
 body.explorer-map .map-frame.has-destination .leaflet-control-zoom{display:none!important}

 body.explorer-map .map-card-rail{bottom:12px;gap:10px;padding:4px 14px 6px;scroll-padding:0 14px;scrollbar-width:none}
 body.explorer-map .map-card-rail::-webkit-scrollbar{display:none}
 body.explorer-map .map-card-rail>button{min-width:min(80vw,310px);max-width:min(80vw,310px);height:112px;padding:8px;gap:12px;border:2px solid transparent;border-radius:18px;box-shadow:0 8px 24px rgba(0,0,0,.18);transition:border-color .15s}
 body.explorer-map .map-card-rail>button.is-hot{border-color:#c52132}
 body.explorer-map .map-card-rail img{width:92px;height:92px;flex:none;border-radius:12px}
 body.explorer-map .map-card-rail>button>span{display:flex;flex-direction:column;gap:3px;min-width:0}
 body.explorer-map .map-card-rail strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:none;white-space:normal;font-family:'Barlow Condensed',sans-serif;font-size:21px;line-height:1.05}
 body.explorer-map .map-card-rail small{font-size:12px;line-height:1.3;color:var(--muted)}
 body.explorer-map .map-card-rail em{font-style:normal;font-size:12px;font-weight:800;color:#c52132}

 body.explorer-map .map-selection{left:8px;right:8px;bottom:8px;max-height:calc(100% - 76px)}
}
@media(max-width:899px) and (hover:none) and (pointer:coarse){body.explorer-map .leaflet-control-zoom{display:none!important}}
@media(prefers-reduced-motion:reduce){.fv-cluster>span,.fv-pin>span,.fv-tag>span,.map-frame .map-selection{transition:none}}
