/* Styles pour la description tronquée et la popup */
.listing_description_type3 {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: max-height 0.3s ease;
}

.listing_description_type3.expanded {
    max-height: none;
}

.listing_description_type3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.read-more-button {
    display: inline-block;
    background-color: #F2F2F2;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
    border: none;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s ease;
}

.read-more-button:hover {
    background-color: #e0e0e0;
}

/* Styles pour la popup */
.description-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.description-modal.active {
    display: flex;
}

.description-modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.description-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.description-modal-close:hover {
    background-color: #f5f5f5;
}

.description-modal-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-right: 30px;
}

.description-modal-body {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}
