/* =============================== MARKER FOTO =============================== */ .photo-marker { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; position: relative; box-shadow: 0 2px 6px rgba(0,0,0,0.25); background: #fff; } .photo-marker img { width: 100%; height: 100%; object-fit: cover; } /* =============================== CLUSTER FOTO (rettangolare) =============================== */ .photo-cluster { width: 56px; height: 56px; position: relative; border-radius: 12px; overflow: visible; } .cluster-back { position: absolute; top: 6px; left: 6px; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; opacity: 0.5; filter: blur(1px); transform: scale(0.95); } .cluster-front { position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,0.35); } /* =============================== MARKER CLUSTER FOTO (Leaflet) =============================== */ .marker-cluster-wrapper { background: transparent; border: 0; } /* Wrapper Leaflet — fondamentale per far uscire il badge */ .marker-cluster { overflow: visible !important; /* ← SENZA QUESTA il badge viene tagliato */ } .gp-cluster { position: relative; border-radius: 50%; /* cluster foto circolare */ overflow: visible !important; box-shadow: 0 2px 8px rgba(0,0,0,0.35); border: 3px solid rgba(255,255,255,0.85); transition: width .12s, height .12s, font-size .12s; z-index: 0; /* stacking context */ } .gp-cluster .cluster-collage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(2,1fr); border-radius: 50%; /* ← arrotonda il collage */ overflow: hidden; /* ← ritaglia gli angoli delle foto */ z-index: 1; /* collage sotto */ } /* Ogni quadratino del collage deve ritagliare l'immagine */ .gp-cluster .cluster-collage div { position: relative; overflow: hidden; /* ← fondamentale per il crop */ } /* L'immagine deve riempire e essere centrata */ .gp-cluster .cluster-collage div img { width: 100%; height: 100%; object-fit: cover; /* ← riempie e taglia */ object-position: center; /* ← centra */ display: block; } /* =============================== BADGE NUMERO — mezzo fuori dal cerchio =============================== */ .gp-cluster .gp-count { position: absolute; right: -4px; /* metà fuori */ top: -4px; /* metà fuori */ z-index: 10; /* sopra tutto */ background: rgba(0,0,0,0.55); padding: 4px 7px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); } .leaflet-marker-icon.marker-cluster-wrapper { overflow: visible !important; } .gp-cluster.cluster-sm .gp-count { font-size: 11px; } .gp-cluster.cluster-md .gp-count { font-size: 13px; } .gp-cluster.cluster-lg .gp-count { font-size: 15px; } .gp-cluster.cluster-xl .gp-count { font-size: 17px; }