/* ===== GENERAL ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 1rem;
    background: #1e3a8a;
    color: white;
}

header h1 {
    font-size: 2rem;
}

/* ===== NAV ===== */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    background: #374151;
    padding: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
}

nav a:hover {
    color: #10b981;
}

/* ===== CONTENT ===== */
.content {
    padding: 2rem;
}

.section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== PROPERTY ===== */
.property-container {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.property-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
}

.property-details {
    flex: 1;
}

.price {
    font-size: 22px;
    font-weight: bold;
}

/* ===== BUTTON ===== */
.inquire-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #10b981;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

.inquire-btn:hover {
    background: #059669;
}

/* ===== CAROUSEL ===== */
.carousel {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    text-align: center;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img,
.slide video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

/* BUTTONS */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #10b981;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* ===== GALLERY ===== */
.gallery img {
    width: 550px;
    height: 475px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 5rem auto 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery video {
    width: 550px;
    height: 375px;
    margin: 5rem auto;
    display: block;
}

.caption {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

/* ===== MARQUEE ===== */
.marquee {
    background: #28a745;
    color: white;
    padding: 10px;
    overflow: hidden;
}

.marquee p {  
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
}
 /* promo running font inndex html center location */
 
#promo{
color: yellow;
white-space: nowrap; 
animation: scrollText 30s linear infinite; 
}

.marquee p: hover {
    animation-play-state: paused;
}

@keyframes scrollText {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ===== FOOTER ===== */
.footer-dark {
    background: #0f172a;
    color: #e5e7eb;
    padding: 40px 0;
    text-align: center;
}

/* ===== 📱 MOBILE ===== */
@media (max-width: 768px) {
    .marquee-content {
        font-size: 15px;
        animation: scrollText 14s linear infinite; /* slightly faster */
    }
}

    header h1 {
        font-size: 2.5rem;
    }

    nav {
        flex-direction: column;
        gap: 5px;
    }

    .property-container {
        flex-direction: column;
    }

    .gallery img,
    .gallery video {
        width: 100%;
        height: auto;
        margin: 2rem auto;
    }

    /* 🔥 FIXED CAROUSEL MOBILE */
    .slide img,
    .slide video {
        max-height: 280px;
    }

    /* 🔥 BUTTONS BELOW IMAGE */
    .prev,
    .next {
        position: static;
        transform: none;
        display: inline-block;
        margin: 8px;
        padding: 8px 12px;
    }
}
