/* Tree cutouts share the saved ground anchor; no extra map/WebGL renderer. */
.memory-map-pin.tree>span{position:relative}
.memory-map-pin.tree .map-tree-cutout,.world-tree-marker .map-tree-cutout,.world-tree-marker.is-own .map-tree-cutout,.world-tree-marker.is-public .map-tree-cutout{position:relative;display:block;width:100%;height:100%;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:none;isolation:isolate;text-shadow:none}
.memory-map-pin.tree .map-tree-cutout .tree-art,.world-tree-marker .map-tree-cutout .tree-art{position:relative;z-index:1;display:block;width:100%;height:calc(100% - 2px);object-fit:contain;object-position:center bottom;background:none;border:0;border-radius:0;box-shadow:none}
.map-tree-cutout .tree-contact{position:absolute;z-index:0;left:26%;bottom:0;width:48%;height:6px;background:radial-gradient(ellipse,#243c2650 0,transparent 72%);pointer-events:none}
.world-tree-marker{background:none!important;border:0!important}
.world-tree-marker .world-tree-count{position:absolute;top:1px;right:-5px;z-index:2;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border:1px solid #fffdf3;border-radius:10px;background:#536c47;color:#fff;font:700 11px sans-serif;box-shadow:0 1px 3px #20331b33}
.world-tree-marker::after{content:"";position:absolute;bottom:0;right:1px;width:7px;height:7px;border:1px solid #fffdf3;border-radius:50%;background:#55794e}
.world-tree-marker.is-public::after{background:#c29c53}
.world-legend-trees::before{content:"";display:inline-block;width:18px;height:23px;margin-right:5px;vertical-align:middle;background:url('assets/map-trees/camphor.webp?v=tree-realism-1') center/contain no-repeat}

/* Street-map tree artwork shrinks with zoom; its saved ground point is unchanged. */
.memory-map-pin.tree>span[data-tree-id]{width:100%;height:100%}
.memory-map-pin.tree .map-tree-cutout .tree-art{height:100%}
.memory-map-pin.tree .tree-contact{height:var(--map-tree-shadow,3px)}
.memory-map-pin.tree.tree-overview .wish-pin-count{display:none}

/* Flowers use their native vector art within the zoom-sized marker. */
.memory-map-pin.flower .flower-art{width:100%;height:100%;filter:none}

/* Bounded footprint circles keep readable labels without the old 14px public-label override. */
#footprint-map .world-footprint-count,#footprint-map .world-player-count{font-size:10px!important;line-height:1!important;letter-spacing:0!important;white-space:nowrap;color:#355d42!important;text-shadow:-1px 0 #fff,1px 0 #fff,0 -1px #fff,0 1px #fff}

#footprint-map .world-footprint-count.world-count-compact{font-size:9px!important}

#footprint-map .world-footprint-count::before{display:none!important}

/* The phone world overview follows the Mercator world square instead of a tall empty frame. */
#footprint-map .footprint-world{background:#b7d7e8}
@media(max-width:850px){#footprint-map .footprint-world{height:auto;min-height:0;aspect-ratio:1/1}}

/* Footprints remain the overview focus; the tree legend is shown only at street zoom. */
#footprint-map .world-legend-trees[hidden]{display:none!important}

#footprint-map .world-popup-shifted .leaflet-popup-tip-container{visibility:hidden}
