/* Property Modal Styles */
.property-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

/* Property images slider */
.property-images-slider {
    position: relative;
    width: 100%;
    height: 300px;
}

@media (min-width: 768px) {
    .property-images-slider {
        width: 50%;
        height: 400px;
    }
}

.slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-slide.active {
    opacity: 1;
}

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

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-nav button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-nav button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Property modal details */
.property-modal-details {
    padding: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .property-modal-details {
        width: 50%;
        padding: 30px;
    }
}

.modal-property-title {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.modal-property-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    margin-bottom: 15px;
}

.modal-property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f9f9f9;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.modal-property-features {
    margin-bottom: 20px;
}

.modal-property-features h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.features-list li i {
    color: #4CAF50;
}

.modal-property-description {
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

@media (max-width: 480px) {
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-property-title {
        font-size: 1.5rem;
    }
    
    .property-images-slider {
        height: 250px;
    }
}
