.image-card {
    overflow: hidden;
}

    .image-card .details {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.8);
        transform: translateY(65%);
        transition: transform 0.3s ease-in-out;
    }

    /* Hover effect to slide in details */
    .image-card:hover .details {
        transform: translateY(0);
    }

/* Demo ribbon */

.ribbon {
    width: 90px;
    height: 90px;
    overflow: hidden;
    position: absolute;
    cursor: pointer;
}

.ribbon-top-right {
    top: 0px;
    right: 0px;
}

.ribbon-bottom-right {
    bottom: -4px;
    right: -4px;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 160px;
    padding: 10px 0;
    background-color: #d71d1d;
    box-shadow: 10px 5px 10px rgba(0, 0, 0, .01);
    color: #fff;
    font: 600 10px / 1 'Lato', sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-transform: uppercase;
    text-align: center;
}

.ribbon:hover span {
    position: absolute;
    display: block;
    width: 160px;
    padding: 10px 0;
    background-color: #df2828;
    box-shadow: 10px 5px 10px rgba(0, 0, 0, .01);
    color: #fff;
    font: 700 10px / 1 'Lato', sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-transform: uppercase;
    text-align: center;
}

.ribbon-top-right span {
    left: -20px;
    top: 18px;
    transform: rotate(45deg);
}

.ribbon-bottom-right span {
    left: -20px;
    bottom: 10px;
    transform: rotate(-45deg);
}


/* Interaction effects */

.interaction-editable {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

    .interaction-editable i {
        margin-left: 5px;
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }

    .interaction-editable:hover i {
        opacity: 1;
    }

/* Map styles and effects */
.custom-marker {
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.custom-marker-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: lightgrey;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.pulse {
    z-index: -2;
}

.pulse::after {
    content: "";
    border-radius: 50%;
    height: 40px;
    width: 40px;
    position: absolute;
    margin: -12px 0 0 -12px;
    animation: pulsate 1s ease-out infinite;
    opacity: 0.0;
    box-shadow: 0 0 1px 2px #c2c2c2;
    animation-delay: 1.1s;
}

@keyframes pulsate {
    0% {
        transform: scale(0.1, 0.1);
        opacity: 0.0;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        transform: scale(1.2, 1.2);
        opacity: 0;
    }
}

@keyframes bounce {
    0% {
        opacity: 0;
        transform: translateY(-2000px) rotate(-45deg);
    }

    60% {
        opacity: 1;
        transform: translateY(30px) rotate(-45deg);
    }

    80% {
        transform: translateY(-10px) rotate(-45deg);
    }

    100% {
        transform: translateY(0) rotate(-45deg);
    }
}