/* rent-modal-widget.css */
.rent-modal-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.rent-modal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.rent-content-inner {
    padding: 15px;
}

.rent-modal-title {
    margin: 0 0 0px 0 !important;
    font-size: 1.2em;
    line-height: 1.3em;
}

.rent-head {
    margin-bottom: 15px;
}

.rent-head .rent-status {
    color: #b79770;
    font-size: 84%;
    font-weight: bold;
}

p.rent-modal-price {
    margin: 0;
}

.rent-features {
    display: flex;
    gap: 16px;
    margin-bottom: 15px;
}

.rent-features .icon-box img {
    width: 24px;
}

.rent-content-inner button.rent-btn {
    background: #ddaf6a;
    color: #fff;
    width: 100%;
    border-radius: 4px;
}

.title-head {
    display: flex
;
    align-items: center;
    gap: 10px;
}

.rent-modal-description {
    margin: 0;
    color: #666;
}

/* Modal Styles */
.rent-property-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rent-property-modal.show {
    display: block;
    opacity: 1;
}

.rent-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {transform: translateY(-20px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.rent-modal-close {
    position: absolute;
    left: 8px;
    top: 8px;
    color: #f3f3f3;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: #000000;
    width: 40px;
    line-height: 36px;
    height: 40px;
    text-align: center;
    border-radius: 30px;
}

.rent-modal-close:hover {
    color: #333;
}

.rent-modal-body .rent-features {
    flex-wrap: wrap;
}

.rent-modal-body .rent-features .icon-box {
    width: 30%;
    flex: 0 0 30%;
}

.rent-modal-head .price-row {
    display: flex;
    flex-direction: row;
    margin: 20px 0;
    gap: 20px;
}

.price-row .price-col {
    background: #f2f2f1;
    padding: 10px 20px;
    border: 1px solid #d8d8d8;
}

.price-row .price-col p {
    margin: 0;
    font-size: 20px;
    line-height: 1;
}

.price-row .price-col h4 {
    font-size: 20px;
    margin: 0;
}


/* Gallery Styles */
.rent-modal-gallery {
    margin-bottom: 30px;
}

.gallery-main-slider {
    margin-bottom: 15px;
}

.gallery-main-slider .gallery-slide {
    display: none;
}

.gallery-main-slider .gallery-slide img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.gallery-main-slider .gallery-slide.active {
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb {
    min-width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}