:root {
    --main-color: #b8945e; /* ذهبي عقارات */
    --dark-bg: #1a1a1a;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
header {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-bg);
}

.logo span { color: var(--main-color); }

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-cta {
    background: var(--main-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content { width: 100%; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.hero h1 span { color: var(--main-color); }

/* Search Box */
.search-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    max-width: 900px;
    margin: 40px auto;
    color: var(--dark-bg);
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    text-align: right;
    min-width: 150px;
}

.filter-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.filter-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-btn {
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    padding: 0 40px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Property Cards */
.properties { padding: 80px 0; background: var(--light-bg); }

.section-header { text-align: center; margin-bottom: 50px; }

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.property-card:hover { transform: translateY(-10px); }

.property-card img { width: 100%; height: 220px; object-fit: cover; }

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
}

.rental { background: #2ecc71; }
.sale { background: #e74c3c; }

.card-body { padding: 20px; }

.card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }

.location { color: #777; font-size: 0.9rem; margin-bottom: 15px; }

.details {
    display: flex;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--main-color);
    margin-bottom: 20px;
}

.price span { font-size: 0.9rem; color: #777; }

.wa-contact {
    display: block;
    text-align: center;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
}

/* Footer */
footer { background: var(--dark-bg); color: #ccc; padding: 60px 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about .logo { color: var(--white); margin-bottom: 20px; }

.footer-contact h4 { color: var(--white); margin-bottom: 20px; }

.bottom-bar {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}

/* Mobile */
.menu-icon { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .menu-icon { display: block; }
    nav ul {
        display: none;
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    nav ul.active { display: flex; }
    .search-box { flex-direction: column; margin: 20px; }
    .search-btn { padding: 15px; }
}

.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px; /* في المواقع العربية يفضل جهة اليسار لأن العين تبدأ من اليمين */
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    line-height: 60px;
    z-index: 1000;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.results-info {
    display: none; /* سيقوم الجافا سكريبت بإظهاره عند الحاجة فقط */
}

/* Why Choose Us Styling */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid #eee;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(184, 148, 94, 0.1);
    border-color: var(--main-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

/* Testimonials Styling */
.testimonials {
    padding: 80px 0;
    background: var(--light-bg);
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testi-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    border-right: 5px solid var(--main-color);
}

.testi-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testi-card h4 {
    color: var(--main-color);
    margin-bottom: 5px;
}

.stars {
    color: #f1c40f;
    letter-spacing: 2px;
}