/**
 * Default styling for a map marker. Configure its color via
 * markup using these attributes:
 *      data-toubiz-map-icon-color
 *      data-toubiz-map-icon-background-color
 * (Add them to the equivalent node, will be applied based on specificity)
 */

.tb-map-marker-wrapper {

}

.tb-map-marker {
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: content-box;
    text-align: center;
    padding: 1%;
}

.tb-map-marker__body svg {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    fill: currentColor;
}

.tb-map-marker__icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-map-marker__icon svg {
    height: 1em;
    width: 1em;
    fill: currentColor;
}

.tb-map-marker-wrapper.is-rendered .tb-map-marker {
    animation: markerEntry .3s ease-in;
}

@keyframes markerEntry {
    0% {
        // opacity: 0;
        transform: translateY(-8px);
    }

    50% {
        // opacity: 1;
        transform: translateY(4px);
    }

    100% {
        transform: translateY(0);
    }
}

/**
 * Default styling for a map marker cluster. Configure its color via
 * markup using these attributes:
 *      data-toubiz-map-cluster-color
 *      data-toubiz-map-cluster-background-color
 * (Add them to the equivalent node, will be applied based on specificity)
 */

.tb-map-marker-cluster {
    position: absolute;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 20px 20px rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
}

.tb-map-marker-cluster.is-rendered {
    animation: clusterEntry .3s ease-in;
}

@keyframes clusterEntry {
    0% {
        transform: scale(.9);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

.tb-map-marker-cluster__label {
    margin: auto;
    color: inherit;
    font-size: 14px;
    font-family: sans-serif;
}
