.leaflet-control-zoom{
    margin-bottom: 3.5rem !important;
}


.custom-div-icon {
    background: transparent;
    border: none;
}

.marker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-wrapper:hover {
    transform: scale(1.1);
}

.marker-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--marker-color, #3498db);
    box-sizing: border-box;
}

.marker-icon img {
    height: 100%;
    object-fit: contain;
    margin: auto;
}

.marker-pin {    
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--marker-color, #3498db);
    -webkit-mask-image: radial-gradient(36px 100% at top, transparent 0, transparent 7px, black 0px);
    mask-image: radial-gradient(36px 100% at top, transparent 0, transparent 9px, black 0px);
}

.group-circle {
    background: #007bff;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}


/* geolocalosation */

#geolocalisation_button {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 5px 1px;
    border: none;
    cursor: pointer;
    height: 3rem;
    width: 3rem;
    overflow: hidden;
    background: white;
    z-index: 5;
    color: red;
    transition: all 0.3s;

    & input{display: none;}
    & img{
        width: 2.5rem;
        margin: 0.25rem;
    }

    &:has(input:checked){
        background-color: #35c539;
        color: #35c539;
    }
    &:hover{
        background-color: #007bff !important;
    }
}

/*
==================
   Animations markers (wrapper interne)
======================= */
.leaflet-marker-icon .marker-anim-wrap {
  will-change: transform, opacity;
}

.marker-anim-wrap.marker-enter {
  animation: markerEnter 180ms ease-out both;
}
@keyframes markerEnter {
  from { transform: scale(0.8) translate3d(var(--pos-x),var(--pos-y),0); opacity: 0;}
  to   { transform: scale(1) translate3d(0,0,0); opacity: 1;}
}

.marker-anim-wrap.marker-exit {
  animation: markerExit 180ms ease-in both;
  pointer-events: none; /* évite les clics pendant la sortie */
}
@keyframes markerExit {
  from { transform: scale(1) translate3d(0,0,0); opacity: 1;}
  to   { transform: scale(0.85) translate3d(var(--pos-x),var(--pos-y),0); opacity: 0;}
}