﻿.ads-card-topcontainer {
    display: flex;
    gap: 2px;
}

.ads-card-container {
    margin-bottom: 6px;
    display: flex;
    position: relative;
    gap: 10px;
    border: 0.2px solid;
    border-color: lightgray;
    background-color: white;
    padding: 5px;
}

    .ads-card-container a {
        -webkit-text-decoration: inherit;
        text-decoration: inherit;
    }

    .ads-card-container:hover {
        background-color: #F9F9F9;
    }



.ads-image-container {
    width: 124px;
    height: 119px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #F6F8FF;
}

    .ads-image-container img{
        object-fit:contain;
        /*max-width:100%;*/
    }

    .ads-card-image {
        width: 124px !important;
        height: 93px !important;
    }
.lazy-img {
    background: url('/images/base/imageloaading.gif') center center no-repeat;
    background-size: cover;
    display: block;
    min-height:50px;
    max-height:93px;
    
}

.ads-price {
    background-color: var(--bbb-secondary);
    width: 100%;
    text-align: center;
    color: white;
    font-weight: 600;
    line-height: 24px;
}

.ads-card-middle {
    display: flex;
    flex-direction: column;
    width: 100%;
   flex:1;
   justify-content:center;
}

    .ads-card-middle h2 {
        color: var(--bbb-primary) !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-bottom: 0;
       /* margin-right: 40px;*/
        flex: 1 1 auto;
        min-width: 0;
        word-break: break-word;
    }

    .ads-card-middle .top-content {
        display: flex;
        gap: 5px;
    }

        .ads-card-middle .top-content .location {
            margin-left: auto;
            font-size: 12px;
            flex: 0 0 auto;
            white-space: nowrap;
        }

            .ads-card-middle .top-content .location i {
                color: var(--bs-primary);
            }

        .ads-card-middle .top-content .location-desc {
            font-size: 12px;
        }
.ads-card-right {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ads-card-right .bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top: auto;
    width: 100%;
    height: 20px;
}


    .ads-card-right .bottom .ads-card-info {
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .ads-card-right .bottom .ads-card-info span {
            color: #666;
            font-size: 0.8rem;
        }

        .ads-card-right .bottom .ads-card-info .seperator {
            height: 20px;
            width: 1px;
            border-right: 0.2px solid;
            border-color: lightgray;
        }

.ads-card-buttons {
    display: flex;
}

.location {
    display: flex;
    flex-direction: column;
}

.listingdate {
    margin-left: auto;
    color: #3AACED;
    display:block;
}

.ads-card-right .bottom .detail {
    /*position: absolute;
    right: 0;*/
    margin-bottom:5px;
}


@media (max-width: 767px) {
    .ads-card-container {
        margin-left: 3px;
        margin-right: 3px;
    }

        .ads-card-container .ads-image {
        }

    .ads-card-middle .top-content {
        flex-direction: column;
        gap: 1px;
    }

        .ads-card-middle .top-content .location {
            margin-left: 0;
        }

    .ads-card-buttons {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content:space-between;       
        padding:5px;
    }

    .ads-card-middle h2 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 0px;
    }

    .location {
        flex-direction: row;
    }

    .listingdate {
        display:none;
    }

    .location-desc {
        font-size: 10px;
    }
}
.ads-card-middle,
.ads-card-right {
    min-width: 0; 
}

    .ads-card-middle h2,
    .ads-card-right .ads-card-info span {
        overflow-wrap: break-word; 
        word-break: break-word;
        overflow: hidden; 
    }
