body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #f4f4f9, #e8eaf6);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.5s ease;
}

.container {
    max-width: 1000px;
    margin: 20px;
    background: linear-gradient(to bottom right, #fff, #f0f0f0);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

.animated {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.animated-btn {
    background: linear-gradient(90deg, #007BFF, #00A3FF);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.animated-btn:hover {
    background: linear-gradient(90deg, #00A3FF, #007BFF);
}

/* Gallery Section */
.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideIn 0.8s ease;
}

.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

.main-image:hover {
    transform: scale(1.05);
}

.thumbnails {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.thumbnail.active {
    border: 4px solid #00A3FF;
    transform: scale(1.1);
}

.thumbnail:hover {
    transform: scale(1.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.modal-content {
    position: relative;
    max-width: 80%;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.enlarged-image {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease-in-out;
}

.enlarged-image:hover {
    transform: scale(1.05);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ccc;
}

/* Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: color 0.3s ease;
    user-select: none;
}

.prev:hover, .next:hover {
    color: #ccc;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Property Info */
.property-info {
    margin-top: 30px;
    animation: fadeIn 0.8s ease;
}

.property-info h2 {
    color: #333;
    background: linear-gradient(to right, #007BFF, #00A3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.property-info ul {
    list-style: none;
    padding: 0;
}

.property-info li {
    padding: 10px 0;
    font-size: 18px;
    background: linear-gradient(45deg, #e0e0e0, #ffffff);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-section {
    margin-top: 20px;
}

.contact-btn {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.back-to-catalog {

   
    margin-top: -39px;
text-align: right;

}



/* Responsive Design */
@media (max-width: 768px) {
    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }

    .modal-content {
        max-width: 100%;
    }

    .prev, .next {
        font-size: 30px;
    }

    .close {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .enlarged-image {
        max-height: 70vh;
    }

    .prev, .next {
        font-size: 25px;
    }

    .close {
        font-size: 25px;
    }
}