
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f1eb 0%, #ede4d3 100%);
    color: #8b4513;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(90deg, #d2b48c 0%, #deb887 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #8b0000;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.contact-btn {
    background: linear-gradient(45deg, #8b0000, #a0522d);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 69, 19, 0.8);
}

.modal-content {
    background: linear-gradient(135deg, #f5f1eb, #ede4d3);
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #8b0000;
    border-radius: 15px;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    color: #8b0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #a0522d;
}

.contact-info {
    margin-top: 20px;
}

.phone {
    display: inline-block;
    background: linear-gradient(45deg, #8b0000, #a0522d);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    margin: 10px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone:hover {
    transform: scale(1.05);
}

.listing-link {
    display: inline-block;
    background: linear-gradient(45deg, #d2b48c, #deb887);
    color: #8b0000;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    margin: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.listing-link:hover {
    transform: scale(1.05);
}

/* Gallery Container */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.gallery-info {
    text-align: center;
    margin-bottom: 5px;
}

.gallery-info h2 {
    color: #8b0000;
    font-size: 28px;
    margin-bottom: 10px;
}

.gallery-info p {
    color: #a0522d;
    font-size: 16px;
    margin: 5px 0;
}

/* Slider */
#gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-content {
    flex: 1;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
   min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: none;
    display: block;
}

.slide-counter {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(139, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Navigation buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(139, 0, 0, 1);
}

.nav-btn.prev {
    left: -70px;
    border-radius: 25px;
}

.nav-btn.next {
    right: -70px;
    border-radius: 25px;
}

/* Dots navigation */
.dots-container {
    text-align: center;
    padding: 20px 0;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #deb887;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #8b0000;
    transform: scale(1.2);
}

/* Image overlay */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-overlay img {
    max-width: 95%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.loading {
    text-align: center;
    color: #a0522d;
    font-size: 18px;
    padding: 20px;
}

.error {
    text-align: center;
    color: #8b0000;
    font-size: 18px;
    padding: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .gallery-container {
        height: auto;
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
    
    .slider-container {
        max-width: 100%;
    }
    
    .slide img {
        height: 250px;
        object-fit: contain;
        background: #f5f1eb;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .nav-btn.prev {
        left: -50px;
    }
    
    .nav-btn.next {
        right: -50px;
    }
    
    .slide-counter {
        top: -40px;
    }
    
    .image-overlay img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .image-overlay .close-overlay {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .slide img {
        height: 200px;
    }
    
    .nav-btn.prev {
        left: -40px;
    }
    
    .nav-btn.next {
        right: -40px;
    }
}

