/* Image Slider */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.slider-btn:hover,
.slider-btn:active {
    background: rgba(0,0,0,0.8);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

.dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Property Details */
.property-detail {
    margin-bottom: 40px;
}

/* Video Section */
.video-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.video-section h2 {
    font-size: 1.6em;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
    width: 100%;
    display: block;
    min-height: 400px;
}

.video-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    text-align: center;
    margin-top: 16px;
}

.property-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-brokerage-badge {
    background: linear-gradient(135deg, #25D366 0%, #1fa35c 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    letter-spacing: 0.5px;
}

.property-info h1 {
    font-size: clamp(1.8em, 5vw, 2.2em);
    color: #667eea;
    margin-bottom: 8px;
}

.price-large {
    font-size: clamp(1.8em, 5vw, 2.4em);
    color: #764ba2;
    font-weight: bold;
    margin-bottom: 24px;
}

.period {
    font-size: 0.5em;
    color: #999;
}

/* Property Stats */
.property-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
}

/* Sections */
.description-section,
.amenities-section,
.features-section,
.contact-section {
    margin-bottom: 30px;
}

.description-section h2,
.amenities-section h2,
.features-section h2,
.contact-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 16px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.description-section p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95em;
}

/* Amenities List */
.amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.amenities-list li {
    padding: 12px;
    background: #f0f4ff;
    border-radius: 6px;
    color: #667eea;
    font-weight: 500;
}

/* Features List */
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.features-list li {
    padding: 12px;
    background: #fff3cd;
    border-radius: 6px;
    color: #856404;
    font-weight: 500;
    border-left: 4px solid #764ba2;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.contact-section h2 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    font-size: 1.8em;
    margin-bottom: 16px;
    font-weight: 700;
}

.contact-section p {
    margin-bottom: 24px;
    font-size: 1.05em;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    opacity: 0.95;
}

.btn-large {
    font-size: 1.1em;
    padding: 16px 40px;
    min-height: 48px;
}

/* WhatsApp Link */
.contact-section .whatsapp {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 12px 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 1em;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-section .whatsapp:hover,
.contact-section .whatsapp:active {
    background: #1fa35c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.contact-section .btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
    color: white;
    padding: 14px 32px;
    margin: 12px 8px;
    position: relative;
    z-index: 1;
    font-size: 1.05em;
    min-height: 48px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.contact-section .btn-primary:hover,
.contact-section .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

/* Tablet Responsiveness */
@media (max-width: 768px) {
    .video-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .video-section h2 {
        font-size: 1.4em;
        margin-bottom: 16px;
    }

    .video-container iframe {
        min-height: 300px;
    }

    .video-description {
        font-size: 0.9em;
    }

    .property-info {
        padding: 20px;
    }

    .no-brokerage-badge {
        font-size: 0.9em;
        padding: 10px 14px;
        margin-bottom: 14px;
    }

    .property-info h1 {
        font-size: 1.6em;
    }

    .price-large {
        font-size: 1.8em;
    }

    .property-stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .amenities-list,
    .features-list {
        grid-template-columns: 1fr;
    }

    .amenities-list li,
    .features-list li {
        padding: 10px;
        font-size: 0.9em;
    }

    .contact-section {
        padding: 28px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .video-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .video-section h2 {
        font-size: 1.2em;
        margin-bottom: 14px;
    }

    .video-container iframe {
        min-height: 220px;
    }

    .video-description {
        font-size: 0.85em;
        margin-top: 12px;
    }

    .property-info {
        padding: 16px;
    }

    .no-brokerage-badge {
        font-size: 0.85em;
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .property-info h1 {
        font-size: 1.4em;
    }

    .price-large {
        font-size: 1.6em;
    }

    .property-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .slider-btn {
        padding: 10px 12px;
        font-size: 1.2em;
    }

    .slider-btn.prev {
        left: 5px;
    }

    .slider-btn.next {
        right: 5px;
    }

    .description-section h2,
    .amenities-section h2,
    .features-section h2,
    .contact-section h2 {
        font-size: 1.2em;
    }

    .amenities-list li,
    .features-list li {
        padding: 8px;
        font-size: 0.85em;
    }

    .contact-section {
        padding: 20px;
    }

    .contact-section h2 {
        font-size: 1.4em;
    }

    .contact-section .whatsapp,
    .contact-section .btn-primary {
        display: flex;
        width: 100%;
        justify-content: center;
        margin: 10px 0;
        padding: 14px 20px;
    }

    .btn-large {
        font-size: 1em;
        padding: 14px 30px;
    }
}let currentSlideIndex = 0;

function changeSlide(n) {
    showSlide(currentSlideIndex += n);
}

function currentSlide(n) {
    showSlide(currentSlideIndex = n);
}

function showSlide(n) {
    const slides = document.querySelectorAll('.slide');
    const dots = document.querySelectorAll('.dot');

    if (n >= slides.length) {
        currentSlideIndex = 0;
    }
    if (n < 0) {
        currentSlideIndex = slides.length - 1;
    }

    slides.forEach(slide => slide.classList.remove('active'));
    dots.forEach(dot => dot.classList.remove('active'));

    slides[currentSlideIndex].classList.add('active');
    dots[currentSlideIndex].classList.add('active');
}