* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: #0b0e14; color: #fff; }

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: rgba(11, 14, 20, 0.9); position: fixed; width: 100%; top: 0; z-index: 100; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.logo span { color: #d4af37; font-weight: 300; }
nav a { color: #ccc; text-decoration: none; margin-left: 25px; transition: 0.3s; }
nav a:hover { color: #d4af37; }

/* Buttons */
.btn-primary, .btn-gold { background: linear-gradient(135deg, #d4af37, #f3e5ab); color: #000; padding: 12px 24px; border-radius: 4px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-outline { border: 1px solid #d4af37; color: #d4af37; padding: 12px 24px; border-radius: 4px; text-decoration: none; font-weight: 600; margin-left: 10px; }

/* Hero Section */
.hero { height: 100vh; background: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; display: flex; align-items: center; justify-content: center; position: relative; text-align: center; }
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0, 0, 0, 0.65); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.badge { background: rgba(212, 175, 55, 0.2); color: #d4af37; padding: 6px 16px; border-radius: 20px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border: 1px solid #d4af37; }
.hero h1 { font-size: 48px; margin: 20px 0; font-weight: 700; line-height: 1.2; }
.hero p { font-size: 18px; color: #ccc; margin-bottom: 30px; }

/* Highlights Strip */
.highlights { display: flex; justify-content: space-around; background: #131822; padding: 30px 10%; border-bottom: 1px solid rgba(255,255,255,0.05); }
.highlights .item { text-align: center; color: #aaa; font-size: 14px; }
.highlights .item strong { display: block; font-size: 24px; color: #d4af37; margin-bottom: 5px; }

/* Projects Grid */
.projects { padding: 80px 10%; }
.projects h2 { text-align: center; font-size: 32px; margin-bottom: 40px; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.card { background: #131822; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.card:hover { transform: translateY(-8px); border-color: #d4af37; }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card-info { padding: 25px; }
.card-info h3 { font-size: 20px; margin-bottom: 8px; }
.card-info p { color: #888; font-size: 14px; margin-bottom: 15px; }
.price { display: block; color: #d4af37; font-weight: 600; margin-bottom: 5px; }
.sub-price { display: block; color: #aaa; font-size: 13px; margin-bottom: 20px; font-weight: 400; }
.btn-card { display: block; width: 100%; text-align: center; background: transparent; border: 1px solid #d4af37; color: #fff; text-decoration: none; padding: 10px; border-radius: 4px; transition: 0.3s; cursor: pointer; font-size: 14px; }
.btn-card:hover { background: #d4af37; color: #000; }

/* Slider Styles */
.slider-container { position: relative; width: 100%; height: 240px; background: #000; overflow: hidden; }
.slides { width: 100%; height: 100%; }
.slide { width: 100%; height: 240px; object-fit: cover; display: none; cursor: pointer; }
.slide.active { display: block; }

.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(11, 14, 20, 0.7); color: #d4af37; border: 1px solid #d4af37; padding: 8px 12px; cursor: pointer; border-radius: 50%; font-size: 16px; transition: 0.3s; z-index: 10; }
.prev:hover, .next:hover { background: #d4af37; color: #000; }
.prev { left: 10px; }
.next { right: 10px; }

/* Lightbox Modal */
.lightbox-modal { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px); justify-content: center; align-items: center; padding: 20px; }
.lightbox-container { background: #131822; border: 1px solid #d4af37; border-radius: 12px; max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.8); color: #fff; }

.close-lightbox { position: absolute; top: 15px; right: 20px; color: #d4af37; font-size: 32px; font-weight: bold; cursor: pointer; z-index: 100; transition: 0.3s; }
.close-lightbox:hover { color: #fff; }

.lightbox-slider { position: relative; width: 100%; background: #000; display: flex; align-items: center; justify-content: center; min-height: 350px; max-height: 480px; }
.lightbox-img-wrapper { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.lightbox-img-wrapper img { max-width: 100%; max-height: 460px; object-fit: contain; }

.modal-prev, .modal-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(11, 14, 20, 0.8); color: #d4af37; border: 1px solid #d4af37; width: 44px; height: 44px; font-size: 20px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; z-index: 10; }
.modal-prev:hover, .modal-next:hover { background: #d4af37; color: #000; }
.modal-prev { left: 15px; }
.modal-next { right: 15px; }

/* Lightbox Description */
.lightbox-description { padding: 30px; line-height: 1.7; text-align: left; }
.lightbox-description h2 { color: #d4af37; font-size: 26px; margin-bottom: 15px; border-bottom: 1px solid rgba(212, 175, 55, 0.3); padding-bottom: 10px; }
.intro-p { font-size: 15px; color: #ddd; margin-bottom: 25px; }

.features-amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
@media (max-width: 768px) { .features-amenities-grid { grid-template-columns: 1fr; } }

.feature-box { background: #0b0e14; padding: 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
.feature-box h3 { color: #d4af37; font-size: 18px; margin-bottom: 12px; }
.feature-box ul { list-style: none; padding: 0; }
.feature-box ul li { font-size: 14px; color: #ccc; margin-bottom: 8px; position: relative; padding-left: 20px; }
.feature-box ul li::before { content: "✓"; position: absolute; left: 0; color: #d4af37; font-weight: bold; }

.location-community-info p { font-size: 14px; color: #bbb; margin-bottom: 15px; }
.modal-cta { text-align: center; margin-top: 25px; }

/* Contact Form */
.contact-section { padding: 80px 10%; background: #080a0e; display: flex; justify-content: center; }
.form-container { background: #131822; padding: 40px; border-radius: 8px; max-width: 500px; width: 100%; border: 1px solid rgba(212, 175, 55, 0.3); text-align: center; }
.form-container h2 { margin-bottom: 10px; }
.form-container p { color: #888; font-size: 14px; margin-bottom: 25px; }
form input, form select { width: 100%; padding: 14px; margin-bottom: 15px; background: #0b0e14; border: 1px solid #222; color: #fff; border-radius: 4px; }
.btn-gold.block { width: 100%; border: none; cursor: pointer; font-size: 16px; text-align: center; }
/* Offplan Regions Section Styles (3 Columns) */
.offplan-regions {
    padding: 60px 8% 30px;
}

.section-title-wrapper h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.section-title-wrapper p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1rem;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
}

.region-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.region-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.region-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.region-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #8c5b3e; /* اللون البني الحافظ للتصميم */
    color: #ffffff;
    text-align: center;
    padding: 14px 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 1.1rem;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    }
    /* WhatsApp Consultation Button Style & Hover */
.btn-outline,
.hero-btns .btn-outline {
    display: inline-block !important;
    background-color: transparent !important;
    color: #d4af37 !important;
    border: 2px solid #d4af37 !important;
    transition: all 0.3s ease !important;
}

.btn-outline:hover,
.hero-btns .btn-outline:hover {
    background-color: #d4af37 !important;
    color: #000000 !important;
}

.btn-outline *,
.hero-btns .btn-outline * {
    color: inherit !important;
}
/* Freeze rendering off-screen project cards for ultra performance */
.card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}
/* Prevent loading hidden slider images on start */
.slide:not(.active) {
    display: none !important;
}

