$color_hover: #0074e4;
$primary_color: #0074e4;
$secondary_color: #0052a2;
$text_color: #161616;

.wdk-locations-card-cover {
    & {
        position: relative;
        height: 370px;
        display: flex;
        align-items: flex-end;
        overflow: hidden; 
    } 

    > a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    .wdk-image {
        position: absolute;
        object-fit: cover;
        height: 100%;
        object-position: center center;
        width: 100%;
    }

    .wdk-icon {
        position: absolute;
        object-fit: contain;
        height: auto;
        object-position: center center;
        width: 100%;
        margin: 0 auto;
    }
     
    .wdk-locations-card-body {
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        
       .wdk-left-content {
            flex: 1 2;
            padding: 0 0 22px 24px;
        }


        .wdk-action-left,
        .wdk-action-right {
            display: flex;
            align-content: center;
            justify-content: center;
            align-items: center;
        }

        .wdk-action-left {
            display: none;
            padding: 5px 10px;
            img {
               max-width: 100%; 
            }
        }
        .wdk-location-btn {
            border: 1px solid #e0e1e6;
            padding: 12px 12px;
            color: #fff;
            border-radius: 100%;
            height: 40px;
            width: 40px;
            font-size: 14px;
            text-align: center;
            display: inline-block;
            margin: 15px;
        }

        .wdk-title {
            color: #fff;
            margin-bottom: 0;
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .wdk-listings-count {
            color: #fff;
            margin: 0px;
            display: inline-block;
            font-size: 12px;
            text-transform: uppercase;
            font-family: "Poppins", sans-serif;
        }

    }

    &:hover .wdk-location-btn, 
    &:focus .wdk-location-btn {
        background: #fff;
        color: #aeb4b6;
        border-color: transparent;
    }


    /* animation */ 
    &:before,
    &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: rgba(0, 82, 162, 0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
        z-index: 1;
    }

    &:after {
        right: 0;
        left: auto;
    }

    .mask {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        transition: all 0.4s ease-in-out;
    }

    .overlay {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 82, 162, 0.7);
        opacity: 0;
        transition: all 0.4s ease-in-out;
    }

    &:hover::before,
    &:hover::after {
        opacity: 1;
        visibility: visible;
        width: 0;
    }

    &:hover .overlay {
        opacity: 1;
    }

    .wdk-locations-card-body .wdk-location-btn {
        transition: all 0.4s linear;
        will-change: all;
    }

}   