.mls-ad-slot { 
    display: block; 
    border-radius: 4px;
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative; 
    z-index: 3;
}

.mls-ad-slot .mls-ad-image {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 250px;
    z-index: 1;
}

.mls-ad-slot .mls-ad-info {
    position: absolute;
    color: white;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background-color: rgb(0 0 0 / 0.65);
    padding: 10px 14px;
    z-index: 2;
    width: 100%;
}

.mls-ad-slot .mls-ad-info div {
    padding: 0px;
    margin-bottom: 0px;
    line-height: 22px;
}

.mls-ad-slot .mls-ad-title {  
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mls-ad-slot .mls-ad-address { 
    font-size: 12px;
    font-weight: normal;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mls-ad-slot .mls-ad-price { 
    font-size:unset 14px;
    font-weight: normal;
}

.mls-ad-slot .mls-ad-badges {
     position: absolute;
     color: white;
     top: 0;
     display: flex;
     flex-direction: row; 
     padding: 10px 14px;
     z-index: 2;
     width: 100%;
     display: flex;
     justify-content: space-between;
 }

 .mls-ad-slot .mls-ad-badges .mls-ads-badge {
    padding: 0px 12px;
    background-color: rgb(255, 136, 0);
    color: white;
    border-radius: 4px;
    font-size: 12px; 
 }

 .mls-ad-slot .mls-ad-badges .mls-ad-sales-type {
     padding: 0px 12px;
     color: white;
     border-radius: 4px;
     font-size: 12px;
 }

.mls-ad-slot .mls-ad-badges .mls-ad-sales-type.for-sale {
    background-color: rgb(5, 136, 55);
}

.mls-ad-slot .mls-ad-badges .mls-ad-sales-type.for-rent {
    background-color: rgb(39, 12, 161);
}

.mls_ads_modal {
    position: fixed;
    z-index: 100;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); 
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.mls_ads_modal .mls_ads_close_modal {
    position: absolute;
    z-index: 101;
    right: 18px;
    top: 18px;
    font-size: 45px;
    cursor: pointer;
    color: red;
    user-select: none;
    height: 45px;
    width: 45px; 
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    background-color: white;
    border-radius: 100%;
}

.mls_ads_modal .mls_ads_modal_body {
    width: 100%;
    max-width: 900px; 
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
    column-gap: 20px;
}