/* ============================================================
   المنصة العقارية | Whitelabel
   تصميم نظيف ومرتب — هوية ذهبية هادئة
   ============================================================ */

:root {
    --bg: #ffffff;
    --bg-soft: #f7f8f9;
    --bg-nav: #122a3e;
    --card: #ffffff;
    --border: #e5e7eb;
    --border-soft: #eef0f2;
    --gold: #b7871f;
    --gold-dark: #96691a;
    --gold-soft: #f7f1e2;
    --navy: #122a3e;
    --navy-2: #1b3a57;
    --fire: #e5484d;
    --text: #1a1f26;
    --text-muted: #5f6a76;
    --text-light: #9aa3ab;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 33, 47, 0.05);
    --shadow-md: 0 14px 40px rgba(16, 33, 47, 0.1);
    --font: 'Tajawal', 'Segoe UI', sans-serif;
    --font-head: 'Alexandria', 'Tajawal', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); }

.container { width: min(1200px, 94%); margin-inline: auto; }

/* ============================================================
   الشريط العلوي
   ============================================================ */
.topbar { background: var(--bg-nav); color: #c3d2df; font-size: 0.8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 0; }
.topbar a { color: #c3d2df; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar i { color: #c9a13a; margin-inline-end: 0.3rem; font-size: 0.75rem; }
.topbar-contact { display: flex; align-items: center; gap: 1.2rem; }
.topbar-sep { width: 1px; height: 13px; background: rgba(255, 255, 255, 0.15); }

/* ============================================================
   الهيدر
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.7rem 0; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 10px;
    overflow: hidden;
    font-size: 1.2rem;
}
.brand-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--text); }
.brand-sub { font-size: 0.7rem; color: var(--gold-dark); font-weight: 700; letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    color: #46525e;
    transition: all 0.2s ease;
}
.nav-link:hover { color: var(--gold-dark); background: var(--gold-soft); }
.nav-link.active { color: var(--gold-dark); background: var(--gold-soft); }
.nav-link i { margin-inline-end: 0.3rem; font-size: 0.85rem; color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ============================================================
   الأزرار
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.62rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.93rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
    white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(183, 135, 31, 0.25); }
.btn-outline { background: transparent; color: var(--gold-dark); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold-soft); }
.btn-ghost { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 1.9rem; font-size: 1rem; border-radius: 10px; }

/* ============================================================
   صفحة الخطأ 404 / 403
   ============================================================ */
.error-page {
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(183, 135, 31, 0.08), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(18, 42, 62, 0.06), transparent 45%),
        var(--bg-soft);
}
.error-inner {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}
.error-badge {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(6rem, 16vw, 9.5rem);
    line-height: 1;
    color: var(--navy);
    letter-spacing: 4px;
    -webkit-text-stroke: 2px rgba(183, 135, 31, 0.35);
    text-shadow: 0 18px 40px rgba(18, 42, 62, 0.12);
}
.error-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text);
    margin: 0.4rem 0 0.9rem;
}
.error-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}
@media (max-width: 480px) {
    .error-badge { font-size: 6.5rem; }
}
.btn-block { width: 100%; }

/* ============================================================
   شريط البحث السريع (صفحة العقارات)
   ============================================================ */
.search-strip {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 1.1rem 0;
}
.quick-search {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.1fr 1.3fr auto;
    gap: 0.8rem;
    align-items: end;
}
.qs-field { display: flex; flex-direction: column; gap: 0.35rem; }
.qs-field label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }
.qs-field select, .qs-field input {
    width: 100%;
    padding: 0.68rem 0.85rem;
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.93rem;
    outline: none;
    transition: all 0.2s;
}
.qs-field select:focus, .qs-field input:focus { border-color: var(--gold); background: #fff; }
.btn-search { padding: 0.7rem 1.8rem; }

/* ============================================================
   الهيرو — تقسيم نص + صورة
   ============================================================ */
.hero {
    background: linear-gradient(180deg, #f6f7f8 0%, #ffffff 60%);
    border-bottom: 1px solid var(--border-soft);
    padding: 2.8rem 0 3.4rem;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.4rem;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--gold-soft);
    border: 1px solid #e9d9ae;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 1.2rem;
}
.hero-kicker i { font-size: 0.8rem; }

.hero-title {
    font-size: clamp(2.1rem, 4.4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.8rem;
}
.text-gold { color: var(--gold-dark); }

.hero-sub {
    max-width: 480px;
    color: var(--text-muted);
    font-size: 1.06rem;
    margin-bottom: 1.6rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    margin-bottom: 1.7rem;
}
.ht-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #3c4652;
}
.ht-item i { color: var(--gold); font-size: 0.95rem; }

/* إحصائيات داخل عمود النص */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem 1.6rem;
}
.hero-stats .stat {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}
.hero-stats .stat + .stat {
    padding-inline-start: 1.6rem;
    border-inline-start: 1px solid var(--border);
}
.stat-num { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; color: var(--gold-dark); line-height: 1.2; }
.stat-label { color: var(--text-muted); font-weight: 700; font-size: 0.85rem; }

/* العمود البصري */
.hero-visual { position: relative; }
.hero-visual::before {
    content: '';
    position: absolute;
    top: -18px; left: -18px;
    width: 150px; height: 150px;
    background: var(--gold-soft);
    border-radius: 50%;
    z-index: 0;
}
.hero-photo {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(16, 33, 47, 0.16);
    border: 1px solid rgba(16, 33, 47, 0.06);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo-badge {
    position: absolute;
    bottom: 14px; right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #122a3e;
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}
.hero-photo-badge i { color: #e8c15a; }

/* بطاقة البحث */
.hero-search-card {
    margin-top: 2.4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.05rem 1.25rem;
    box-shadow: var(--shadow-md);
}
.hero-search-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr auto; gap: 0.8rem; align-items: end; }
.hs-field { display: flex; flex-direction: column; gap: 0.35rem; }
.hs-field label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }
.hs-field select, .hs-field input {
    width: 100%;
    padding: 0.66rem 0.85rem;
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.93rem;
    outline: none;
    transition: all 0.2s;
}
.hs-field select:focus, .hs-field input:focus { border-color: var(--gold); background: #fff; }
.hs-submit { padding: 0.66rem 1.8rem; }

/* روابط سريعة داخل بطاقة البحث */
.hero-quick {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-soft);
}
.hero-quick-label { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); margin-inline-end: 0.3rem; }
.hero-quick a {
    padding: 0.28rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s;
}
.hero-quick a:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-soft); }
.chips-sep { width: 1px; height: 16px; background: var(--border); margin-inline: 0.25rem; }

/* ============================================================
   الأقسام
   ============================================================ */
.section { padding: 3.2rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .section-title::after { margin-inline: auto; }

.section-index {
    display: inline-grid;
    place-items: center;
    width: 28px; height: 28px;
    border: 1px solid #dccfa6;
    color: var(--gold-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.72rem;
    margin-bottom: 0.55rem;
}
.section-title {
    font-size: clamp(1.5rem, 2.7vw, 1.95rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.3rem;
}
.section-desc { color: var(--text-muted); max-width: 620px; font-size: 0.95rem; }
.section-head.center .section-desc { margin-inline: auto; }

.link-more {
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
    flex: none;
}
.link-more:hover { gap: 0.6rem; }

/* ============================================================
   بطاقات التصنيفات — قائمة أفقية مرتبة
   ============================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.05rem 1.1rem;
    transition: all 0.2s ease;
}
.cat-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-icon {
    width: 46px; height: 46px;
    flex: none;
    display: grid; place-items: center;
    background: var(--gold-soft);
    color: var(--gold-dark);
    border-radius: 10px;
    font-size: 1.05rem;
}
.cat-text { display: flex; flex-direction: column; min-width: 0; }
.cat-label { font-size: 1rem; font-weight: 800; line-height: 1.4; }
.cat-desc { color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; }
.cat-arrow { margin-inline-start: auto; color: var(--text-light); font-size: 0.85rem; flex: none; }
.cat-card:hover .cat-arrow { color: var(--gold-dark); }

/* ============================================================
   بطاقات العقارات
   ============================================================ */
.props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.prop-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}
.prop-card:hover { border-color: #d8cda6; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prop-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.prop-cover img { width: 100%; height: 100%; object-fit: cover; }
.no-image {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: var(--bg-soft);
    color: var(--text-light);
    font-size: 2.2rem;
}
.no-image.big { font-size: 4rem; aspect-ratio: 16 / 10; }

.badge {
    position: absolute;
    top: 0.8rem;
    padding: 0.26rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
}
.badge-sell { right: 0.8rem; background: var(--gold); color: #fff; }
.badge-rent { right: 0.8rem; background: var(--navy); color: #fff; }
.badge-featured { right: auto; left: 0.8rem; background: var(--fire); color: #fff; display: inline-flex; align-items: center; gap: 0.3rem; }
.badge-absolute { top: 1.2rem; right: 1.2rem; font-size: 0.85rem; border-radius: 8px; }
.badge-absolute2 { top: 1.2rem; left: 1.2rem; font-size: 0.85rem; border-radius: 8px; }

.prop-body { padding: 1.05rem 1.15rem 1.15rem; }
.prop-title { font-size: 1rem; font-weight: 800; margin-bottom: 0.3rem; line-height: 1.5; color: var(--text); }
.prop-title a:hover { color: var(--gold-dark); }
.prop-loc { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.35rem; }
.prop-loc i { color: var(--gold); font-size: 0.8rem; }
.prop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0;
    border-block: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}
.prop-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.prop-meta i { color: var(--gold); font-size: 0.78rem; }
.prop-foot { display: flex; align-items: center; justify-content: space-between; }
.prop-price { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--gold-dark); }
.prop-more {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 1rem;
    transition: all 0.2s;
}
.prop-more:hover { background: var(--gold); color: #fff; }

/* ============================================================
   المحافظات
   ============================================================ */
.govs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.gov-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.94rem;
    transition: all 0.2s ease;
}
.gov-card i:first-child { color: var(--gold); }
.gov-card:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }
.gov-arrow { color: var(--text-light); font-size: 0.8rem; transition: all 0.2s; }
.gov-card:hover .gov-arrow { color: var(--gold-dark); }

/* ============================================================
   لماذا نحن — تقسيم تحريري
   ============================================================ */
.why-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.2rem; align-items: start; }
.why-copy .section-title { margin-bottom: 0.9rem; }
.why-copy p { color: var(--text-muted); line-height: 1.9; margin-bottom: 1.5rem; max-width: 460px; }

.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-card {
    display: flex;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem;
    transition: all 0.2s;
}
.why-card:hover { border-color: #d8cda6; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.why-icon {
    width: 42px; height: 42px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 1.05rem;
}
.why-card h3 { font-size: 0.98rem; font-weight: 800; margin-bottom: 0.2rem; }
.why-card p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; }

/* ============================================================
   نداء للتواصل
   ============================================================ */
.cta {
    background: linear-gradient(120deg, #122a3e, #1b3a57);
    padding: 3rem 0;
    color: #fff;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.3rem; }
.cta p { font-weight: 600; opacity: 0.92; }
.cta-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.cta .btn-gold { background: #e8c15a; color: #122a3e; }
.cta .btn-gold:hover { background: #f2d47a; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.cta .btn-wa { background: #25d366; color: #fff; }
.cta .btn-wa:hover { background: #1fb457; }

/* ============================================================
   صفحة تواصل معنا
   ============================================================ */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 2rem;
}
.contact-card-item {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.6rem 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.25s ease;
    color: var(--text);
}
.contact-card-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.contact-card-item strong { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; }
.contact-card-item .cc-value { color: var(--text-muted); font-size: 0.9rem; }
.contact-card-item .cc-value[dir="ltr"] { direction: ltr; }
.cc-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}
.cc-icon.cc-wa { background: rgba(37, 211, 102, 0.14); color: #1fb457; }
.contact-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.contact-box {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.6rem;
}
.contact-box-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.contact-box-title i { color: var(--gold-dark); }
.work-hours-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--border-soft);
    font-size: 0.93rem;
}
.work-hours-list li:last-child { border-bottom: none; }
.work-hours-list span { color: var(--text-muted); }
.work-hours-list strong { color: var(--text); font-weight: 800; }
.contact-social { display: flex; gap: 0.7rem; }
.contact-social a {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    color: var(--navy);
    font-size: 1.15rem;
    border: 1px solid var(--border-soft);
    transition: all 0.2s ease;
}
.contact-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-2px); }
@media (max-width: 900px) {
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .contact-cards { grid-template-columns: 1fr; }
    .contact-extra { grid-template-columns: 1fr; }
}

/* ============================================================
   الفوتر
   ============================================================ */
.site-footer { background: var(--bg-nav); color: #aebdcc; padding-top: 3.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-bottom: 2.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand .brand-logo { background: rgba(255, 255, 255, 0.08); color: #e8c15a; }
.footer-brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff; }
.footer-brand-sub { color: #c9a13a; font-weight: 700; font-size: 0.72rem; }
.footer-about p { font-size: 0.88rem; margin-bottom: 1.2rem; line-height: 1.9; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #c3d2df;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-col h4 { font-size: 0.98rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.88rem; transition: all 0.2s; }
.footer-links a:hover { color: #e8c15a; padding-right: 4px; }
.footer-contact li { font-size: 0.9rem; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.55rem; }
.footer-contact a { color: #aebdcc; }
.footer-contact a:hover { color: #e8c15a; }
.footer-contact i { color: #c9a13a; width: 17px; text-align: center; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.1rem 0; }
.footer-bottom p { text-align: center; font-size: 0.82rem; color: #7e92a3; }

/* ============================================================
   رأس صفحات الفلاتر
   ============================================================ */
.page-hero {
    background: linear-gradient(180deg, #f6f7f8, #ffffff);
    border-bottom: 1px solid var(--border-soft);
    padding: 2.4rem 0;
    text-align: center;
}
.page-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; margin-bottom: 0.3rem; }
.page-sub { color: var(--text-muted); }

/* ============================================================
   شريط النتائج
   ============================================================ */
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.2rem;
    margin-bottom: 1.5rem;
}
.results-bar strong { color: var(--gold-dark); }
.sort-form { display: flex; align-items: center; gap: 0.6rem; }
.sort-form label { color: var(--text-muted); font-size: 0.88rem; }
.sort-form select {
    background: var(--bg-soft);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    font-family: var(--font);
    outline: none;
}

/* ============================================================
   ترقيم الصفحات
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.4rem; flex-wrap: wrap; }
.page-link {
    min-width: 40px; height: 40px;
    display: grid; place-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    padding: 0 0.55rem;
    color: var(--text);
    transition: all 0.2s;
}
.page-link:hover { border-color: var(--gold); color: var(--gold-dark); }
.page-link.active { background: var(--gold); color: #fff; border-color: transparent; }
.page-dots { color: var(--text-muted); align-self: center; }

/* ============================================================
   حالة فارغة
   ============================================================ */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; color: var(--text-light); margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--text); font-size: 1.25rem; margin-bottom: 0.4rem; }
.empty-state p { margin-bottom: 1.5rem; }
.empty-state.big { padding: 4.5rem 1rem; }

/* ============================================================
   صفحة العقار
   ============================================================ */
.prop-page { padding-top: 2rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.8rem; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb i { font-size: 0.7rem; }
.breadcrumb span { color: var(--text); font-weight: 700; }

.prop-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.8rem; align-items: start; }

.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9.5;
    background: var(--bg-soft);
    box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; margin-top: 0.7rem; }
.gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.65;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.gallery-thumb:hover { opacity: 0.95; }
.gallery-thumb.active { opacity: 1; border-color: var(--gold); }

/* ============================================================
   Lightbox — تكبير/تصغير الصور
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 11, 18, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}
.lb-stage:active { cursor: grabbing; }
.lb-img {
    max-width: 92%;
    max-height: 88%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.12s ease;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 6px;
}
.lb-top {
    position: absolute;
    top: 0; right: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    z-index: 2;
}
.lb-counter { color: #cfd8e0; font-weight: 700; font-size: 0.95rem; }
.lb-controls { display: flex; gap: 0.5rem; }
.lb-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}
.lb-nav:hover { background: var(--gold); border-color: var(--gold); }
.lb-prev { right: 1.2rem; }
.lb-next { left: 1.2rem; }
@media (max-width: 480px) {
    .lb-btn { width: 38px; height: 38px; font-size: 0.95rem; }
    .lb-nav { width: 42px; height: 42px; font-size: 1.1rem; }
    .lb-prev { right: 0.6rem; }
    .lb-next { left: 0.6rem; }
}

.prop-section { margin-top: 2.2rem; }
.prop-section-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.prop-section-title i { color: var(--gold); }
.prop-desc { color: var(--text-muted); font-size: 1rem; line-height: 2; white-space: pre-line; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.btn-map-link { margin-top: 1rem; }

/* العمود الجانبي */
.prop-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.1rem; }
.side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
}
.price-card { border-color: rgba(183, 135, 31, 0.35); }
.price-row { margin-bottom: 1rem; }
.price-amount { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--gold-dark); }
.side-card .btn { margin-bottom: 0.65rem; }
.side-card .btn:last-child { margin-bottom: 0; }
.side-title { font-family: var(--font-head); font-size: 1rem; font-weight: 800; margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border-soft); }
.spec-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list span { color: var(--text-muted); }
.spec-list strong { font-weight: 800; }
.spec-list strong i { color: var(--gold); margin-inline-end: 0.2rem; }

.contact-card { text-align: center; }
.contact-office { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.contact-office .brand-logo.small { width: 42px; height: 42px; font-size: 1.05rem; }
.contact-office strong { display: block; text-align: right; }
.contact-office small { color: var(--text-muted); display: block; text-align: right; }
.contact-note { color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; }

/* ============================================================
   حركات الظهور
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   استجابة الشاشات
   ============================================================ */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
    .hero-visual { max-width: 560px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .props-grid { grid-template-columns: repeat(2, 1fr); }
    .govs-grid { grid-template-columns: repeat(3, 1fr); }
    .why-split { grid-template-columns: 1fr; gap: 2.2rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .prop-layout { grid-template-columns: 1fr; }
    .prop-side { position: static; }
    .hero-search-form { grid-template-columns: repeat(2, 1fr); }
    .hs-submit { grid-column: 1 / -1; }
    .quick-search { grid-template-columns: repeat(2, 1fr); }
    .btn-search { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .topbar-tagline { display: none; }
    .nav-toggle { display: block; }
    .btn-header { display: none; }
    .main-nav {
        position: fixed;
        inset: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .main-nav.open { opacity: 1; pointer-events: auto; }
    .nav-link { font-size: 1.1rem; padding: 0.75rem 1.3rem; }
    .hero { padding: 2.4rem 0 3.2rem; }
    .props-grid { grid-template-columns: 1fr; }
    .govs-grid { grid-template-columns: repeat(2, 1fr); }
    .why-list { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 3rem 0; }
    .cta-inner { flex-direction: column; text-align: center; }
    .hero-search-form { grid-template-columns: 1fr; }
    .hs-submit { grid-column: auto; }
    .quick-search { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .quick-search { grid-template-columns: 1fr; }
}
