.hover-photo-controls,.hover-card-footer,.hover-photo-motion{display:none}
.leaflet-container .is-photo-preview .hover-photo-motion{display:block;position:absolute;left:var(--hover-padding,8px);top:var(--hover-padding,8px);width:var(--hover-photo-width);height:var(--hover-photo-height);border-radius:calc(14px * var(--hover-gallery-scale,1));overflow:hidden;pointer-events:none}
/* Override Leaflet's marker-image width:auto for the animated photo layers. */
.leaflet-container .hover-photo-motion .gallery-motion-image{width:100%;height:100%;object-fit:cover}
.leaflet-container .is-photo-preview>.photo-pin:has(>.hover-photo-motion.has-gallery-motion)>img:last-of-type,.leaflet-container .is-photo-preview>.photo-stack:has(>.hover-photo-motion.has-gallery-motion)>img:last-of-type{opacity:0!important}
.leaflet-container .is-photo-preview .hover-photo-controls{display:block;position:absolute;left:var(--hover-padding,8px);top:var(--hover-padding,8px);width:var(--hover-photo-width);height:var(--hover-photo-height);pointer-events:none}
.hover-photo-controls button{pointer-events:auto}
.hover-photo-arrow{position:absolute;top:50%;translate:0 -50%;display:grid;place-items:center;width:calc(24px * var(--hover-gallery-scale,1));height:calc(24px * var(--hover-gallery-scale,1));margin:0;padding:0;border:1px solid #fff8;border-radius:50%;background:#fffffff0;color:#111;box-shadow:0 1px 5px #0002;cursor:pointer}
.hover-photo-arrow>.icon{width:calc(13px * var(--hover-gallery-scale,1));height:calc(13px * var(--hover-gallery-scale,1));stroke-width:1.8}
.hover-photo-previous{left:calc(5px * var(--hover-gallery-scale,1))}.hover-photo-next{right:calc(5px * var(--hover-gallery-scale,1))}
.hover-photo-dots{position:absolute;bottom:calc(7px * var(--hover-gallery-scale,1));left:50%;translate:-50% 0;display:flex;align-items:center;gap:0;max-width:calc(100% - 12px * var(--hover-gallery-scale,1));height:calc(18px * var(--hover-gallery-scale,1));padding:calc(2px * var(--hover-gallery-scale,1)) calc(4px * var(--hover-gallery-scale,1));border:0;border-radius:999px;background:#0008;backdrop-filter:blur(6px);pointer-events:auto}
.hover-photo-dot{display:grid;place-items:center;width:calc(14px * var(--hover-gallery-scale,1));height:calc(14px * var(--hover-gallery-scale,1));padding:0;border:0;background:none;cursor:pointer}
.hover-photo-dot:before{content:"";width:calc(3px * var(--hover-gallery-scale,1));height:calc(3px * var(--hover-gallery-scale,1));border-radius:999px;background:#ffffff80}
.hover-photo-dot[aria-current=true]:before{width:calc(10px * var(--hover-gallery-scale,1));background:#fff}
.leaflet-container .is-photo-preview .hover-card-footer{
 display:flex;flex:0 0 auto;align-items:center;gap:calc(7px * var(--hover-ui-scale,1));
 margin-top:auto;padding:0;
}
.hover-card-actions{
 display:flex;flex-wrap:wrap;align-items:center;gap:calc(8px * var(--hover-ui-scale,1));
 padding:4px max(4px,calc(5px * var(--hover-ui-scale,1)));
}
.hover-card-action{display:inline-flex;align-items:center;justify-content:center;gap:calc(4px * var(--hover-ui-scale,1));min-width:0;max-width:100%;min-height:calc(28px * var(--hover-ui-scale,1));margin:0;padding:calc(5px * var(--hover-ui-scale,1)) calc(8px * var(--hover-ui-scale,1));border:1px solid #ddd;border-radius:999px;background:#fff;color:#111;font-family:inherit;font-size:calc(11px * var(--hover-ui-scale,1));font-weight:500;line-height:1.2;cursor:pointer}
.hover-card-action>span{min-width:0;overflow-wrap:anywhere}
.hover-card-footer .hover-card-action{width:calc(28px * var(--hover-ui-scale,1));padding:0}
.hover-card-action>.icon{flex:none;width:calc(14px * var(--hover-ui-scale,1));height:calc(14px * var(--hover-ui-scale,1));stroke-width:1.7}.hover-card-action:hover{background:#f5f5f5}.hover-card-action:disabled{opacity:.5;cursor:default}
.hover-card-action.is-liked>.icon{fill:#ff385c;stroke:#ff385c}.hover-card-action.is-in-route{border-color:#111}
.hover-route-control{display:inline-flex;align-items:stretch;min-width:0;max-width:100%;min-height:calc(28px * var(--hover-ui-scale,1));border:1px solid #ddd;border-radius:999px;background:#fff}
.hover-route-control.is-in-route{border-color:#111}
.hover-route-control>.hover-card-action{border:0;border-radius:0;min-height:calc(26px * var(--hover-ui-scale,1));background:transparent}
.hover-route-control>.hover-route-main{border-radius:999px}
.hover-route-control.is-in-route>.hover-route-main{border-radius:999px 0 0 999px}
.hover-route-control>.hover-route-add{position:relative;flex:0 0 calc(27px * var(--hover-ui-scale,1));width:calc(27px * var(--hover-ui-scale,1));padding:calc(4px * var(--hover-ui-scale,1)) calc(6px * var(--hover-ui-scale,1));border-radius:0 999px 999px 0}
.hover-route-control>.hover-route-add::before{
 position:absolute;inset-block:var(--split-divider-inset,17.5%);inset-inline-start:0;width:1px;
 background:var(--split-divider-color,#d6d6d6);content:"";pointer-events:none;
}
.hover-route-control>.hover-route-add[hidden]{display:none!important}
.hover-route-control>.hover-card-action:hover{background:#f5f5f5}
.hover-route-main.is-in-route>.route-action-icon{--route-endpoint-fill:currentColor;color:#111;stroke-width:2.2}
.hover-photo-controls button:focus-visible,.hover-card-action:focus-visible{outline:2px solid #111;outline-offset:2px}
