/* =====================================================================
   محجوز — نظام التصميم (Design System)
   هوية خضراء نظيفة، RTL، متجاوب مع كل الشاشات. لا يحتاج أي خطوة بناء.
   ===================================================================== */

:root {
    /* الألوان الأساسية */
    --brand:        #1faa4c;
    --brand-600:    #189a44;
    --brand-700:    #14823a;
    --brand-050:    #eaf8ef;
    --brand-100:    #d6f0de;
    --brand-200:    #b7e6c5;

    --accent-red:   #e23b3b;
    --accent-amber: #f6b21b;
    --whatsapp:     #25d366;
    --call:         #1f2937;

    --ink:          #16241c;
    --muted:        #6b7b71;
    --line:         #e7efe9;
    --bg:           #f4f8f5;
    --card:         #ffffff;

    --radius:       18px;
    --radius-sm:    12px;
    --radius-lg:    26px;
    --shadow-sm:    0 2px 8px rgba(20, 80, 45, .06);
    --shadow:       0 8px 26px rgba(20, 90, 50, .10);
    --shadow-lg:    0 16px 40px rgba(20, 90, 50, .16);
    --container:    1180px;
    --header-h:     68px;
}

* { box-sizing: border-box; }

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Tajawal', 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
    color: var(--ink);
    background: var(--bg);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; -webkit-user-drag: none; -khtml-user-drag: none; user-select: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 18px;
}

/* ===================== الهيدر ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
    height: var(--header-h);
}
.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--brand-700);
}
.brand .logo-mark {
    width: 38px; height: 38px;
    border-radius: 12px;
    
    display: grid; place-items: center;
    color: #fff; font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}
.main-nav a {
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: .18s;
    font-size: .98rem;
}
.main-nav a:hover { background: var(--brand-050); color: var(--brand-700); }
.main-nav a.active { background: var(--brand); color: #fff; }

.header-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--brand-050);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 14px;
    min-width: 230px;
    color: var(--muted);
}
.header-search input {
    border: 0; background: transparent; outline: none;
    font-family: inherit; width: 100%; color: var(--ink);
}

/* ===================== أزرار عامة ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    border: 0; border-radius: 14px;
    padding: 12px 20px;
    font-weight: 700; font-size: 1rem;
    transition: .18s; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary  { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost    { background: #fff; color: var(--brand-700); border: 1.5px solid var(--brand-200); }
.btn-ghost:hover { background: var(--brand-050); }
.btn-danger   { background: var(--accent-red); color: #fff; }
.btn-dark     { background: var(--call); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-block    { width: 100%; }
.btn-sm       { padding: 8px 14px; font-size: .9rem; border-radius: 11px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ===================== الهيرو ===================== */
.hero {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 100%);
    color: #fff;
    padding: 34px 0 64px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; inset: auto -10% -40% -10%;
    height: 220px;
    background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent);
    pointer-events: none;   /* مهم: حتى لا يحجب مربع البحث */
}
.hero .container { position: relative; z-index: 2; }
.hero-search { position: relative; z-index: 3; }
.hero h1 { margin: 0 0 6px; font-size: 2rem; font-weight: 800; }
.hero h1 .hl { color: #d8ffe4; }
.hero p { margin: 0 0 22px; opacity: .92; font-size: 1.05rem; }
.hero-search {
    background: #fff; border-radius: 16px;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 8px 8px 16px;
    box-shadow: var(--shadow);
    max-width: 640px;
}
.hero-search input {
    flex: 1; border: 0; outline: none;
    font-family: inherit; font-size: 1.02rem;
    color: var(--ink); background: transparent;
}
.hero-search .icon { color: var(--brand); font-size: 1.2rem; }

/* ===================== الأقسام ===================== */
.section {
    margin: 30px 0;
}
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.section-head h2 {
    margin: 0; font-size: 1.3rem; font-weight: 800;
    display: flex; align-items: center; gap: 10px;
}
.section-head h2::before {
    content: ''; width: 6px; height: 22px; border-radius: 6px;
    background: var(--brand); display: inline-block;
}
.section-head .more {
    color: var(--brand-700); font-weight: 700; font-size: .95rem;
    display: inline-flex; align-items: center; gap: 4px;
}
.section-head .more:hover { text-decoration: underline; }

/* تمرير أفقي للمعاينات */
.scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 290px;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.scroller > * { scroll-snap-align: start; }

/* شبكة عامة */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid-cats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ===================== بطاقة المزرعة ===================== */
.farm-card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: .2s;
    border: 1px solid var(--line);
    display: flex; flex-direction: column;
}
.farm-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.farm-media {
    position: relative;
    display: block;
    height: 190px;            /* ارتفاع موحّد لكل صور البطاقات */
    background: var(--brand-050);
}
.farm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.farm-badges {
    position: absolute; top: 10px; inset-inline-start: 10px;
    display: flex; gap: 6px;
}
.badge {
    font-size: .72rem; font-weight: 800;
    padding: 4px 9px; border-radius: 9px;
    color: #fff; box-shadow: var(--shadow-sm);
}
.badge-vip   { background: var(--accent-amber); color: #4a3500; }
.badge-offer { background: var(--accent-red); }
.fav-btn {
    position: absolute; top: 10px; inset-inline-end: 10px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: grid; place-items: center;
    border: 0; color: var(--muted);
    box-shadow: var(--shadow-sm); transition: .15s;
    font-size: 1.05rem;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.is-fav { color: var(--accent-red); }
.farm-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.farm-name { font-weight: 800; font-size: 1.05rem; margin: 0; }
.farm-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .85rem; }
.farm-meta span { display: inline-flex; align-items: center; gap: 5px; }
.farm-foot {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px dashed var(--line);
}
.price-tag { font-weight: 800; color: var(--brand-700); font-size: 1.05rem; }
.price-tag small { color: var(--muted); font-weight: 500; font-size: .75rem; }

/* ===================== بطاقة قسم ===================== */
.cat-card {
    position: relative; border-radius: var(--radius);
    overflow: hidden; aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    transition: .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,130,58,.82), rgba(20,130,58,.15) 60%, transparent);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 14px;
}
.cat-card .overlay span {
    color: #fff; font-weight: 800; font-size: 1.15rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ===================== السلايدر/الإعلان ===================== */
.promo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 21 / 7;
    background: var(--brand-100);
    position: relative;
}
.promo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .promo { aspect-ratio: 16 / 9; } }

/* ===================== صفحة التفاصيل ===================== */
.detail-hero {
    position: relative; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow);
    aspect-ratio: 16 / 9; background: var(--brand-050);
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .fav-btn { width: 44px; height: 44px; font-size: 1.2rem; }
.gallery-thumbs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px; margin-top: 14px;
}
.gallery-thumbs img {
    aspect-ratio: 1; object-fit: cover; border-radius: 12px;
    cursor: pointer; border: 2px solid transparent; transition: .15s;
}
.gallery-thumbs img:hover { border-color: var(--brand); }
.gallery-thumbs img.thumb-active { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.detail-card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    padding: 18px;
}

/* التبويبات */
.tabs {
    display: flex; gap: 6px; border-bottom: 2px solid var(--line);
    margin-bottom: 18px; overflow-x: auto;
}
.tab {
    padding: 10px 16px; font-weight: 700; color: var(--muted);
    border: 0; background: transparent; position: relative;
    white-space: nowrap; transition: .15s;
}
.tab.active { color: var(--brand-700); }
.tab.active::after {
    content: ''; position: absolute; bottom: -2px; inset-inline: 8px;
    height: 3px; border-radius: 3px; background: var(--brand);
}

/* لوحات التبويب (vanilla JS — مستقلة عن أي مكتبة) */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* السلايدر */
.promo .slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity .6s ease;
}
.promo .slide.active { opacity: 1; }

/* كاروسيل مركزي: صورة وسطى كبيرة مربّعة + صورتان جانبيتان */
.carousel { position: relative; }
.carousel-viewport {
    position: relative;
    height: clamp(280px, 44vw, 460px);
    overflow: hidden;
}
.carousel-item {
    position: absolute; top: 50%; left: 50%;
    width: clamp(260px, 42vw, 440px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%) scale(.68);
    transition: transform .45s cubic-bezier(.4,.1,.2,1), opacity .45s ease;
    opacity: 0; z-index: 1; cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow);
    background: var(--brand-050);
}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-item.active { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 3; cursor: default; }
.carousel-item.prev   { transform: translate(calc(-50% - 82%), -50%) scale(.72); opacity: .5; z-index: 2; }
.carousel-item.next   { transform: translate(calc(-50% + 82%), -50%) scale(.72); opacity: .5; z-index: 2; }
.carousel-item.prev:hover, .carousel-item.next:hover { opacity: .8; }

.carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5; width: 46px; height: 46px; border-radius: 50%;
    background: #fff; box-shadow: var(--shadow);
    display: grid; place-items: center; border: 0;
    font-size: 1.5rem; color: var(--brand-700); line-height: 1; transition: .15s;
}
.carousel-nav:hover { background: var(--brand); color: #fff; }
.carousel-nav.prev { inset-inline-start: 6px; }
.carousel-nav.next { inset-inline-end: 6px; }

.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.carousel-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: 0;
    background: var(--brand-200); cursor: pointer; transition: .2s; padding: 0;
}
.carousel-dots button.active { background: var(--brand); width: 22px; border-radius: 6px; }

@media (max-width: 640px) {
    .carousel-item.prev { transform: translate(calc(-50% - 70%), -50%) scale(.7); }
    .carousel-item.next { transform: translate(calc(-50% + 70%), -50%) scale(.7); }
    .carousel-nav { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* الأكورديون (تفاصيل العقار) — الحركة معرّفة لاحقاً عبر grid-rows */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: none; }
.acc-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 15px 6px; background: transparent; border: 0;
    font-weight: 700; font-size: 1.02rem; color: var(--ink);
    cursor: pointer; gap: 12px;
}
.acc-head:hover { color: var(--brand-700); }
.acc-item.open .acc-head { color: var(--brand-700); }
.acc-head .lead { display: inline-flex; align-items: center; gap: 10px; flex: 1; }
.acc-head .chev { transition: transform .2s; color: var(--muted); flex-shrink: 0; }
.acc-item.open .chev { transform: rotate(180deg); color: var(--brand); }
.acc-body { color: var(--muted); }

/* جدول الأسعار */
.price-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-table th, .price-table td {
    border: 1px solid var(--line); padding: 9px 6px; text-align: center;
}
.price-table thead th { background: var(--brand-050); color: var(--brand-700); font-weight: 800; }
.price-table tbody th { background: var(--brand-050); font-weight: 800; }
.price-note {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-050); color: var(--brand-700);
    padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: .9rem;
    margin: 6px 6px 0 0;
}

/* لوحة التواصل/الحجز اللاصقة */
.booking-bar {
    position: sticky; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(20,90,50,.08);
    padding: 12px 0; margin-top: 24px;
}
.booking-bar .container { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.book-cta { flex: 1 1 auto; min-width: 150px; }
.book-sec { flex: 0 0 auto; }
.contact-round {
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 1.3rem;
    box-shadow: var(--shadow-sm); flex: 0 0 auto;
}

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stat {
    background: var(--brand-050); border-radius: 14px; padding: 14px 6px;
}
.stat .num { font-weight: 800; font-size: 1.2rem; color: var(--brand-700); }
.stat .lbl { color: var(--muted); font-size: .8rem; }

/* ===================== شريط التنقل السفلي (الموبايل) ===================== */
.bottom-nav { display: none; }
@media (max-width: 860px) {
    .main-nav, .header-search { display: none; }
    .site-header .container { justify-content: center; }
    .bottom-nav {
        position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
        background: #fff; border-top: 1px solid var(--line);
        display: flex; justify-content: space-around;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -6px 20px rgba(20,90,50,.08);
    }
    .bottom-nav a {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        color: var(--muted); font-size: .72rem; font-weight: 700; flex: 1;
    }
    .bottom-nav a .ic { font-size: 1.3rem; }
    .bottom-nav a.active { color: var(--brand); }
    body { padding-bottom: 70px; }
    .booking-bar { bottom: 66px; }
}

/* ===================== متفرقات ===================== */
.skeleton {
    background: linear-gradient(90deg, #eef4f0 25%, #e2ece6 37%, #eef4f0 63%);
    background-size: 400% 100%; animation: shimmer 1.4s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: -100% 0 } }

.empty-state {
    text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty-state .ic { font-size: 3rem; opacity: .5; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-050); color: var(--brand-700);
    border: 1px solid var(--brand-100);
    padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: .88rem;
    cursor: pointer; transition: .15s;
}
.chip.active, .chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.field input, .field select {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
    border-radius: 12px; font-family: inherit; outline: none; background: #fff;
    transition: .15s; color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--brand); }

.toast {
    position: fixed; bottom: 90px; inset-inline-start: 50%; transform: translateX(50%);
    background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 14px;
    box-shadow: var(--shadow-lg); z-index: 100; font-weight: 700;
}

.site-footer {
    background: #0f1c14; color: #cfe6d6; margin-top: 40px;
    padding: 30px 0; text-align: center; font-size: .9rem;
}
.site-footer .brand { color: #fff; justify-content: center; margin-bottom: 8px; }

/* لوحة فلترة جانبية */
.filter-panel {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
    position: sticky; top: calc(var(--header-h) + 14px);
}

.two-col { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
    .hero h1 { font-size: 1.6rem; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .booking-bar .btn span.txt { display: none; }
    /* شريط الحجز على الهواتف: زر «احجز الآن» بعرض كامل أسفل صف الأزرار */
    .booking-bar { padding: 10px 0; }
    .booking-bar .container { gap: 8px; padding-inline: 14px; }
    .book-cta { flex: 1 1 100%; order: 5; min-width: 0; }
    .book-sec { flex: 1 1 0; }
    .contact-round { width: 46px; height: 46px; font-size: 1.15rem; }
    .book-bar-btn { padding: 11px 12px; }

    /* تفاصيل العقار على الهواتف */
    .gallery-main { aspect-ratio: 4 / 3; }
    .gallery-overlay { padding: 32px 14px 14px; }
    .gallery-overlay h1 { font-size: 1.2rem; }
    .info-card { padding: 16px; border-radius: 18px; }
    .info-title { font-size: 1.25rem; }
    .crumbs { font-size: .82rem; }
    .seg { gap: 3px; padding: 4px; }
    .seg .tab { padding: 9px 8px; font-size: .85rem; gap: 5px; }
    .g-btn { width: 40px; height: 40px; }
    .filmstrip img { width: 80px; height: 60px; }
}

/* =====================================================================
   إعادة تصميم صفحة تفاصيل المزرعة — احترافي + أنيميشن
   ===================================================================== */

/* إخفاء أشرطة التمرير القبيحة */
.seg, .filmstrip, .scroller { scrollbar-width: thin; scrollbar-color: var(--brand-200) transparent; }
.filmstrip::-webkit-scrollbar, .scroller::-webkit-scrollbar { height: 7px; }
.filmstrip::-webkit-scrollbar-thumb, .scroller::-webkit-scrollbar-thumb { background: var(--brand-200); border-radius: 10px; }
.filmstrip::-webkit-scrollbar-track, .scroller::-webkit-scrollbar-track { background: transparent; }

/* تخطيط العمودين */
.detail-cols { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 24px; align-items: start; }
.detail-info { position: sticky; top: calc(var(--header-h) + 14px); }
@media (max-width: 1100px) { .detail-cols { grid-template-columns: 330px minmax(0, 1fr); gap: 18px; } }
@media (max-width: 980px) {
    .detail-cols { display: flex; flex-direction: column; gap: 20px; }
    .detail-gallery { order: 1; }
    .detail-info { order: 2; position: static; }
}

/* المسار العلوي */
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); transition: .15s; }
.crumbs a:hover { color: var(--brand-700); }
.crumbs i { font-size: .65rem; opacity: .6; }

/* ---- المعرض ---- */
.gallery-main {
    position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow); background: var(--brand-050);
}
.gallery-main > img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s ease, opacity .35s ease;
}
.gallery-main:hover > img { transform: scale(1.04); }
.gallery-main.fading > img { opacity: 0; }
.gallery-overlay {
    position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
    background: linear-gradient(to top, rgba(8,30,16,.78), transparent);
    color: #fff; pointer-events: none;
}
.gallery-overlay h1 { margin: 0; font-size: 1.5rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.gallery-overlay .loc { opacity: .92; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }

.g-btn {
    position: absolute; z-index: 4; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--ink); border: 0;
    display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
    transition: .18s; font-size: 1rem;
}
.g-btn:hover { background: #fff; transform: scale(1.08); }
.g-fav   { top: 14px; inset-inline-start: 14px; }
.g-share { top: 14px; inset-inline-start: 66px; }
.g-fav.is-fav { color: var(--accent-red); }
.g-fav.is-fav i { animation: pop .3s ease; }
@keyframes pop { 0%{transform:scale(.6)} 60%{transform:scale(1.25)} 100%{transform:scale(1)} }
.g-prev { top: 50%; transform: translateY(-50%); inset-inline-end: 12px; }
.g-next { top: 50%; transform: translateY(-50%); inset-inline-start: 12px; }
.g-prev:hover, .g-next:hover { transform: translateY(-50%) scale(1.08); }
.g-count {
    position: absolute; top: 14px; inset-inline-end: 14px; z-index: 4;
    background: rgba(8,30,16,.6); color: #fff; border-radius: 999px;
    padding: 6px 12px; font-size: .82rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center;
    backdrop-filter: blur(4px);
}
.badges-top { position: absolute; top: 56px; inset-inline-start: 14px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }

/* شريط المصغّرات */
.filmstrip { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 4px; scroll-snap-type: x mandatory; }
.filmstrip img {
    width: 92px; height: 70px; object-fit: cover; border-radius: 12px; cursor: pointer;
    border: 2px solid transparent; opacity: .7; transition: .2s; scroll-snap-align: start; flex: 0 0 auto;
    -webkit-user-drag: none; user-select: none; pointer-events: auto;
}
.gallery-main img, .filmstrip img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    user-select: none;
}
.filmstrip img:hover { opacity: 1; }
.filmstrip img.thumb-active { opacity: 1; border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* الفيديو */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.video-grid video { width: 100%; aspect-ratio: 16/9; border-radius: 14px; box-shadow: var(--shadow-sm); }

/* ---- بطاقة المعلومات ---- */
.info-card {
    background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 20px; animation: rise .5s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.info-title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; }
.trust-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #e6f9ee; color: #1a7a3f;
    border: 1px solid #a8e6bf;
    border-radius: 20px; padding: 4px 12px;
    font-size: .82rem; font-weight: 700;
    margin-bottom: 10px;
}
.trust-badge i { color: #1faa4c; font-size: .9rem; }
.info-sub { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.info-sub span { display: inline-flex; align-items: center; gap: 6px; }

/* بطاقات الإحصاء */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-pill {
    text-align: center; background: var(--brand-050); border: 1px solid var(--brand-100);
    border-radius: 16px; padding: 14px 6px; transition: .2s; animation: rise .5s ease both;
}
.stat-pill:nth-child(2){ animation-delay: .06s; } .stat-pill:nth-child(3){ animation-delay: .12s; }
.stat-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat-pill .ic { color: var(--brand); font-size: 1.15rem; margin-bottom: 6px; }
.stat-pill .num { font-weight: 800; font-size: 1.25rem; color: var(--brand-700); line-height: 1; }
.stat-pill .lbl { color: var(--muted); font-size: .78rem; margin-top: 4px; }

.price-block {
    background: linear-gradient(135deg, var(--brand-050), #fff);
    border: 1px solid var(--brand-100); border-radius: 16px;
    padding: 14px 18px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between;
}
.price-block .lbl { color: var(--muted); font-size: .9rem; display: inline-flex; gap: 7px; align-items: center; }
.price-block .val { font-weight: 800; font-size: 1.5rem; color: var(--brand-700); }
.price-block .val small { font-size: .85rem; font-weight: 700; }

/* ---- التبويبات المقسّمة ---- */
.seg { display: flex; gap: 4px; background: var(--brand-050); border: 1px solid var(--line);
    border-radius: 16px; padding: 5px; margin-bottom: 18px; flex-wrap: wrap; }
.seg .tab {
    flex: 1; min-width: max-content; border: 0; background: transparent; cursor: pointer;
    padding: 11px 14px; border-radius: 12px; font-weight: 700; font-size: .95rem; color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center; 
    transition: .25s cubic-bezier(.4,.1,.2,1); white-space: nowrap;
}
.seg .tab i { font-size: .95rem; transition: .25s; }
.seg .tab.active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.seg .tab.active i { color: var(--brand); transform: scale(1.12); }
.seg .tab::after { display: none; }

/* انتقال اللوحات */
.tab-panel.active { animation: panelIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.block-title { font-size: 1.05rem; font-weight: 800; margin: 6px 0 12px; display: flex; align-items: center; gap: 9px; }
.block-title i { color: var(--brand); }

/* ---- شبكة تفاصيل العقار (تفاعلية) ---- */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 480px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-tile {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.spec-tile.has-desc { cursor: pointer; }
.spec-tile.has-desc:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.spec-tile.open { border-color: var(--brand); }
.spec-head { width: 100%; border: 0; background: transparent; cursor: inherit;
    display: flex; align-items: center; gap: 12px; padding: 14px; text-align: start; }
.spec-ico {
    width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px;
    background: var(--brand-050); color: var(--brand); display: grid; place-items: center; font-size: 1.1rem;
    transition: .25s;
}
.spec-tile.open .spec-ico, .spec-tile.has-desc:hover .spec-ico { background: var(--brand); color: #fff; }
.spec-label { font-weight: 700; flex: 1; }
.spec-count {
    background: var(--brand-050); color: var(--brand-700); font-weight: 800;
    min-width: 30px; height: 26px; padding: 0 9px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .9rem;
}
.spec-chev { color: var(--muted); transition: transform .3s ease; }
.spec-tile.open .spec-chev { transform: rotate(180deg); color: var(--brand); }

/* جسم الأكورديون — حركة موثوقة عبر max-height يديرها الـ JS */
.acc-body { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.acc-body-inner { overflow: hidden; }
.spec-tile .acc-body-inner { margin: 0 14px; padding: 11px 0 14px; color: var(--muted); font-size: .88rem;
    display: flex; gap: 8px; border-top: 1px dashed var(--line); line-height: 1.5; }
.spec-tile .acc-body-inner i { color: var(--brand); margin-top: 3px; flex: 0 0 auto; }

/* ---- المرافق والخدمات ---- */
.amenities { display: flex; flex-wrap: wrap; gap: 9px; }
.amenity {
    display: inline-flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid var(--brand-100); border-radius: 999px; padding: 8px 14px 8px 10px;
    font-weight: 700; font-size: .88rem; transition: .2s; animation: rise .4s ease both;
}
.amenity:hover { background: var(--brand-050); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.amenity .ico { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
    display: grid; place-items: center; font-size: .78rem; flex: 0 0 auto; }

/* ---- قائمة تفاصيل الحجز ---- */
.book-list { display: flex; flex-direction: column; gap: 2px; }
.book-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 4px; border-bottom: 1px dashed var(--line); }
.book-row:last-child { border-bottom: 0; }
.book-row .ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; background: var(--brand-050);
    color: var(--brand); display: grid; place-items: center; font-size: 1rem; }
.book-row .txt { flex: 1; }
.book-row .txt b { display: block; font-size: .82rem; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.book-row .txt span { font-weight: 700; }
.book-note { background: #fff7e6; color: #8a6d1f; border-radius: 14px; padding: 12px 14px;
    display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 600; }
.book-note i { margin-top: 3px; }

/* ---- شريط الحجز السفلي ---- */
.book-bar-btn i { font-size: 1.05rem; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(31,170,76,.4);} 50%{ box-shadow: 0 0 0 10px rgba(31,170,76,0);} }

/* جدول الأسعار المحسّن */
.price-table thead th i, .price-table tbody th i { margin-inline-end: 5px; }

/* ---- صفوف الإعدادات + أزرار التواصل ---- */
.set-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px; border-bottom: 1px solid var(--line); transition: .15s;
}
.set-row:hover { color: var(--brand-700); }
.set-row span { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.set-row > i { color: var(--muted); font-size: .8rem; }
.social-btn {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--brand-050); color: var(--brand-700); font-size: 1.2rem;
    border: 1px solid var(--brand-100); transition: .2s;
}
.social-btn:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* أزرار التواصل في الفوتر */
.footer-social { display: flex; justify-content: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.1); color: #fff; transition: .2s; font-size: 1.05rem;
}
.footer-social a:hover { background: var(--brand); transform: translateY(-2px); }
.footer-apps { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.footer-apps a {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14); color: #fff; padding: 9px 16px; border-radius: 12px;
    font-weight: 700; transition: .2s;
}
.footer-apps a:hover { background: var(--brand); border-color: var(--brand); }

/* ---- نافذة المشاركة ---- */
.share-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px; }
.share-modal[hidden] { display: none; }
.share-backdrop { position: absolute; inset: 0; background: rgba(8,20,12,.55); backdrop-filter: blur(4px); }
.share-dialog {
    position: relative; z-index: 1;
    background: var(--card); border-radius: 20px; padding: 22px 20px 20px;
    width: 100%; max-width: 360px; box-shadow: 0 24px 60px rgba(0,0,0,.22);
    animation: rise .3s ease both;
}
.share-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; font-weight: 800; font-size: 1.05rem;
}
.share-close {
    background: var(--brand-050); border: 0; border-radius: 10px;
    width: 32px; height: 32px; display: grid; place-items: center;
    cursor: pointer; color: var(--muted);
}
.share-name { font-size: .92rem; color: var(--muted); margin: 0 0 16px; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.share-platform {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 14px; font-weight: 700; font-size: .95rem;
    text-decoration: none; transition: .18s;
}
.share-platform:hover { opacity: .88; transform: translateY(-1px); }
.share-wa { background: #e8fdf0; color: #25d366; }
.share-fb { background: #e8f0fe; color: #1877f2; }
.share-tw { background: #f0f0f0; color: #000; }
.share-tg { background: #e8f6fd; color: #229ed9; }
.share-copy {
    width: 100%; padding: 11px; border-radius: 12px; border: 1.5px solid var(--line);
    background: var(--bg); color: var(--ink); font-weight: 700; font-size: .92rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: .18s;
}
.share-copy:hover { background: var(--brand-050); border-color: var(--brand); color: var(--brand-700); }

/* ---- مودال بنود الحجز ---- */
.terms-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px; }
.terms-modal[hidden] { display: none; }
.terms-backdrop { position: absolute; inset: 0; background: rgba(8,20,12,.6); backdrop-filter: blur(3px); animation: fadeIn .25s ease; }
.terms-dialog {
    position: relative; z-index: 1; width: min(560px, 96vw); max-height: 90vh;
    background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; animation: tourIn .3s cubic-bezier(.2,.8,.2,1);
}
.terms-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; font-weight: 800; font-size: 1.1rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff;
}
.terms-head i { margin-inline-end: 4px; }
.terms-close { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.18); color: #fff; font-size: 1rem; transition: .18s; }
.terms-close:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }
.terms-intro { padding: 14px 18px 4px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.terms-body { overflow-y: auto; padding: 8px 18px 4px; }
.terms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.terms-list li {
    display: flex; gap: 12px; align-items: flex-start; background: var(--brand-050);
    border: 1px solid var(--brand-100); border-radius: 14px; padding: 12px 14px; line-height: 1.6;
    animation: termIn .4s ease both; animation-delay: calc(var(--i) * .05s);
}
@keyframes termIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.terms-list .num {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.terms-list .txt { font-weight: 600; font-size: .92rem; color: var(--ink); }
.terms-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: #fff; }
.terms-agree { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; margin-bottom: 12px; font-weight: 700; }
.terms-agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.terms-agree .box {
    width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; border: 2px solid var(--brand-200);
    display: grid; place-items: center; color: #fff; transition: .18s; background: #fff;
}
.terms-agree .box i { opacity: 0; transform: scale(.5); transition: .18s; font-size: .8rem; }
.terms-agree input:checked + .box { background: var(--brand); border-color: var(--brand); }
.terms-agree input:checked + .box i { opacity: 1; transform: scale(1); }
.terms-agree input:focus-visible + .box { box-shadow: 0 0 0 3px var(--brand-100); }
.terms-continue[aria-disabled="true"] { opacity: .5; pointer-events: none; filter: grayscale(.3); }
.terms-continue { transition: .2s; }

/* ---- نافذة الجولة الافتراضية ---- */
.tour-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; }
.tour-modal[hidden] { display: none; }
.tour-backdrop { position: absolute; inset: 0; background: rgba(8,20,12,.72); backdrop-filter: blur(3px); animation: fadeIn .25s ease; }
.tour-dialog {
    position: relative; z-index: 1; width: min(1100px, 96vw); height: min(86vh, 760px);
    background: #0f1c14; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; animation: tourIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes tourIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.tour-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; color: #fff; font-weight: 800; background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.tour-head i { color: var(--brand); }
.tour-close {
    width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; transition: .18s;
}
.tour-close:hover { background: var(--accent-red); transform: rotate(90deg); }
.tour-body { position: relative; flex: 1; background: #0f1c14; }
.tour-loading {
    position: absolute; inset: 0; display: grid; place-content: center; gap: 8px;
    color: #cfe6d6; font-weight: 700; text-align: center;
}
.tour-frame { width: 100%; height: 100%; border: 0; display: block; position: relative; z-index: 1; background: transparent; }
body.tour-open { overflow: hidden; }
@media (max-width: 640px) { .tour-dialog { width: 100vw; height: 92vh; border-radius: 14px; } }

/* =====================================================================
   تحسينات الصفحة الرئيسية — حركة خفيفة وممتعة
   ===================================================================== */

/* دخول الهيرو */
.hero h1 { animation: heroUp .6s cubic-bezier(.2,.7,.2,1) both; }
.hero p { animation: heroUp .6s cubic-bezier(.2,.7,.2,1) .12s both; }
.hero-search { animation: heroUp .6s cubic-bezier(.2,.7,.2,1) .22s both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ظهور الأقسام عند التمرير (مفعّل فقط عند توفّر JavaScript) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* دخول متدرّج للبطاقات داخل القسم الظاهر */
.js .reveal :is(.scroller, .grid, .grid-cats) > * { opacity: 0; transform: translateY(18px) scale(.98); }
.reveal.in :is(.scroller, .grid, .grid-cats) > * { animation: cardIn .55s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.in :is(.scroller, .grid, .grid-cats) > *:nth-child(1) { animation-delay: .04s; }
.reveal.in :is(.scroller, .grid, .grid-cats) > *:nth-child(2) { animation-delay: .10s; }
.reveal.in :is(.scroller, .grid, .grid-cats) > *:nth-child(3) { animation-delay: .16s; }
.reveal.in :is(.scroller, .grid, .grid-cats) > *:nth-child(4) { animation-delay: .22s; }
.reveal.in :is(.scroller, .grid, .grid-cats) > *:nth-child(5) { animation-delay: .28s; }
.reveal.in :is(.scroller, .grid, .grid-cats) > *:nth-child(6) { animation-delay: .34s; }
.reveal.in :is(.scroller, .grid, .grid-cats) > *:nth-child(7) { animation-delay: .40s; }
.reveal.in :is(.scroller, .grid, .grid-cats) > *:nth-child(n+8) { animation-delay: .46s; }
@keyframes cardIn { to { opacity: 1; transform: none; } }

/* تكبير ناعم لصورة البطاقة عند المرور */
.farm-media img { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.farm-card:hover .farm-media img { transform: scale(1.07); }
.cat-card img { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.cat-card:hover img { transform: scale(1.08); }

/* عنوان القسم: أيقونة + خط متحرّك */
.section-head h2 i { color: var(--brand); margin-inline-start: 2px; font-size: .95em; }
.section-head h2::before { transition: height .3s ease; }
.reveal.in .section-head h2::before { animation: barGrow .5s ease both; }
@keyframes barGrow { from { height: 0; } to { height: 22px; } }

/* رابط "مشاهدة الكل" — سهم ينزلق */
.section-head .more i { transition: transform .25s ease; }
.section-head .more:hover i { transform: translateX(-5px); }

/* تلميع شريط التمرير الأفقي */
.scroller { scrollbar-width: thin; scrollbar-color: var(--brand-200) transparent; }
.scroller::-webkit-scrollbar { height: 7px; }
.scroller::-webkit-scrollbar-thumb { background: var(--brand-200); border-radius: 10px; }

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .hero h1, .hero p, .hero-search,
    .reveal, .reveal.in :is(.scroller, .grid, .grid-cats) > * {
        animation: none !important; transition: none !important;
        opacity: 1 !important; transform: none !important;
    }
}

/* =====================================================================
   استجابة صفحة التفاصيل — تابلت وموبايل (شاملة)
   ===================================================================== */

/* ---- تابلت (641px → 980px) ---- */
@media (min-width: 641px) and (max-width: 980px) {
    .gallery-main { aspect-ratio: 16 / 9; }
    .info-card { padding: 20px; max-width: 700px; margin-inline: auto; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .filmstrip img { width: 96px; height: 74px; }
    .spec-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { gap: 12px; }
    .booking-bar .container { max-width: 700px; margin-inline: auto; }
}

/* ---- موبايل — تحسينات إضافية (≤ 640px) ---- */
@media (max-width: 640px) {
    /* هوامش الحاوية */
    .container { padding-inline: 14px; }
    .detail-cols { gap: 14px; }

    /* الإحصاءات */
    .stats-row { gap: 7px; margin-bottom: 12px; }
    .stat-pill { padding: 10px 4px; border-radius: 12px; }
    .stat-pill .num { font-size: 1.05rem; }
    .stat-pill .lbl { font-size: .7rem; }
    .stat-pill .ic { font-size: 1rem; margin-bottom: 3px; }

    /* كتلة السعر: تكديس رأسي */
    .price-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 14px;
        margin-bottom: 14px;
    }
    .price-block .val { font-size: 1.3rem; }

    /* عناوين الأقسام */
    .block-title { font-size: .95rem; margin: 4px 0 10px; }

    /* تفاصيل المواصفات */
    .spec-head { padding: 11px 12px; gap: 9px; }
    .spec-ico { width: 36px; height: 36px; border-radius: 10px; font-size: .95rem; }
    .spec-count { min-width: 26px; height: 24px; font-size: .82rem; }

    /* المرافق */
    .amenities { gap: 7px; }
    .amenity { padding: 6px 11px 6px 8px; font-size: .82rem; gap: 6px; }
    .amenity .ico { width: 22px; height: 22px; font-size: .7rem; }

    /* صفوف تفاصيل الحجز */
    .book-row { padding: 11px 2px; gap: 10px; }
    .book-row .ico { width: 34px; height: 34px; font-size: .9rem; border-radius: 10px; }
    .book-row .txt b { font-size: .78rem; }
    .book-note { padding: 10px 12px; font-size: .86rem; margin-top: 10px; }

    /* جدول الأسعار */
    .price-table { font-size: .8rem; }
    .price-table th, .price-table td { padding: 7px 4px; }

    /* الفيديوهات: عمود واحد */
    .video-grid { grid-template-columns: 1fr; gap: 10px; }

    /* الـ filmstrip */
    .filmstrip { padding: 10px 0 4px; gap: 8px; }

    /* المعرض */
    .gallery-main { border-radius: var(--radius); }
    .g-fav { top: 10px; inset-inline-start: 10px; }
    .g-count { top: 10px; inset-inline-end: 10px; padding: 4px 10px; font-size: .75rem; }
    .badges-top { top: 48px; }
    .gallery-overlay { padding: 28px 12px 12px; }
    .gallery-overlay h1 { font-size: 1.1rem; }
    .gallery-overlay .loc { font-size: .8rem; }

    /* مودال شروط الحجز */
    .terms-head { padding: 14px 16px; font-size: 1rem; }
    .terms-body { padding: 6px 14px 4px; }
    .terms-foot { padding: 12px 14px 14px; }
    .terms-list li { padding: 10px 12px; gap: 10px; }
    .terms-list .txt { font-size: .88rem; }

    /* صفحة الأسئلة الشائعة — موبايل */
    .faq-wrap .detail-card { padding: 4px 10px; border-radius: 14px; }
    .faq-wrap .acc-head {
        padding: 14px 4px;
        font-size: .95rem;
        align-items: flex-start;
        gap: 10px;
    }
    .faq-wrap .acc-head .chev { margin-top: 3px; }
    .faq-wrap .acc-body-inner { font-size: .9rem; padding: 0 4px 14px; }
    .faq-wrap .section-head h2 { font-size: 1.15rem; }
}

/* ---- شاشات صغيرة جداً (≤ 390px) ---- */
@media (max-width: 390px) {
    .info-title { font-size: 1.05rem; }
    .info-sub { font-size: .78rem; }
    .stat-pill .num { font-size: .95rem; }
    .stat-pill .lbl { font-size: .65rem; }
    .seg .tab { font-size: .78rem; padding: 8px 6px; }
    .seg .tab i { font-size: .88rem; }
    .price-block .val { font-size: 1.18rem; }
    .contact-round { width: 40px; height: 40px; font-size: 1rem; }
    .book-bar-btn { padding: 9px 8px; }
    .filmstrip img { width: 66px; height: 52px; }
    .spec-head { padding: 10px; gap: 8px; }
    .spec-ico { width: 32px; height: 32px; font-size: .88rem; }
    .block-title { font-size: .9rem; }
}

/* =====================================================================
   detail-layout — تخطيط الصفحة متجاوب (موبايل / تابلت / كمبيوتر)
   ===================================================================== */

/* ---- الكمبيوتر: معرض فوق صف كامل + المعلومات أسفله ---- */
.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.dl-gallery        { order: 1; width: 100%; min-width: 0; }
.dl-sidebar        { order: 2; position: static; width: 100%; min-width: 0; }
.dl-mobile-actions { display: none; }
.dl-tour           { display: none; }
.dl-tour-desktop   { display: block; }

/* info-card على الكمبيوتر: عمودان داخليان (ملخص | تابات + محتوى) */
.dl-sidebar .info-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 28px;
}
.dl-summary {
    grid-column: 1;
    grid-row: 1 / 3;
    border-inline-end: 1px solid var(--line);
    padding-inline-end: 28px;
}
.dl-tabs    { grid-column: 2; grid-row: 1; }
.dl-content { grid-column: 2; grid-row: 2; }

/* ---- موبايل وتابلت (≤ 980px): عمود واحد بترتيب مخصص ---- */
@media (max-width: 980px) {

    .detail-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch; /* يلغي align-items:start الموروث من الـ Grid */
        gap: 14px;
    }

    /* الترتيب الخارجي — width:100% يضمن الامتداد الكامل */
    .dl-gallery        { order: 1; width: 100%; min-width: 0; }
    .dl-sidebar        { order: 2; position: static; width: 100%; min-width: 0; }
    .dl-mobile-actions { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }

    /* تحويل info-card لحاوية flex لإعادة الترتيب الداخلي */
    .dl-sidebar .info-card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        animation: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* إلغاء grid-placement الداخلي من الكمبيوتر */
    .dl-summary {
        grid-column: unset; grid-row: unset;
        border-inline-end: none; padding-inline-end: 0;
    }
    .dl-tabs    { grid-column: unset; grid-row: unset; }
    .dl-content { grid-column: unset; grid-row: unset; }

    /* الترتيب الداخلي: تابات → ملخص → جولة → محتوى */
    .dl-tabs    { order: 1; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 10px; }
    .dl-summary { order: 2; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 16px; }
    .dl-tour    { order: 3; display: block; }
    .dl-content { order: 4; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 16px; }

    /* إزالة الهوامش الزائدة عند آخر عنصر في كل قسم */
    .dl-tabs .seg        { margin-bottom: 0; }
    .dl-summary .price-block { margin-bottom: 0; }

    /* إخفاء زر الجولة من المعرض (يظهر في dl-tour) */
    .dl-tour-desktop { display: none; }

    /* إخفاء الشريط اللاصق السفلي */
    .booking-bar { display: none !important; }

    /* المعرض: عرض كامل ونسبة مناسبة للتابلت */
    .gallery-main { width: 100%; aspect-ratio: 16 / 9; }
}

/* ---- أزرار الإجراءات الإنلاين ---- */
.dma-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
    border: 0;
    cursor: pointer;
    transition: .18s;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    text-align: center;
}
.dma-btn:active { transform: translateY(1px); }
.dma-btn--whatsapp  { background: var(--whatsapp); color: #fff; }
.dma-btn--call      { background: var(--call); color: #fff; }
.dma-btn--recommend { background: var(--brand-050); color: var(--brand-700); border: 1.5px solid var(--brand-200); }
.dma-btn--report    { background: #fff1f0; color: var(--accent-red); border: 1.5px solid #fcd0ce; }
.dma-btn--share     { background: #eef6ff; color: #1877f2; border: 1.5px solid #c3dafe; }
.dma-btn--book {
    grid-column: 1 / -1;
    background: var(--brand);
    color: #fff;
    font-size: 1.05rem;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.dma-btn--book:hover { background: var(--brand-600); }

/* ---- موبايل صغير (≤ 640px) ---- */
@media (max-width: 640px) {
    .detail-layout { gap: 12px; }
    .dl-sidebar .info-card { gap: 10px; }
    .dl-summary { padding: 14px; }
    .dl-content { padding: 14px; }
    .dl-mobile-actions { gap: 8px; }
    .dma-btn { padding: 12px 10px; font-size: .88rem; }
    .dma-btn--book { padding: 14px; font-size: 1rem; }
    /* الموبايل: 4:3 يظل كما هو (يتجاوز قاعدة 16:9 للتابلت) */
    .gallery-main { aspect-ratio: 4 / 3; }
}

/* ---- شاشات صغيرة جداً (≤ 390px) ---- */
@media (max-width: 390px) {
    .dl-mobile-actions { grid-template-columns: 1fr 1fr; gap: 6px; }
    .dma-btn { padding: 11px 8px; font-size: .82rem; gap: 6px; }
    .dma-btn--book { padding: 13px; }
}

/* =====================================================================
   ✨ Premium UI — تحسينات الواجهة الفخمة وتجربة المستخدم
   ===================================================================== */

/* ---- متغيرات تصميم إضافية ---- */
:root {
    --shadow-soft:  0 2px 12px rgba(20,90,50,.07), 0 6px 28px rgba(20,90,50,.05);
    --shadow-card:  0 4px 20px rgba(20,90,50,.09), 0 1px 3px rgba(20,90,50,.05);
    --shadow-hover: 0 20px 54px rgba(20,90,50,.15), 0 4px 14px rgba(20,90,50,.07);
    --shadow-green: 0 4px 18px rgba(31,170,76,.32);
    --transition:   .28s cubic-bezier(.2,.7,.2,1);
    --radius-xl:    22px;
}

/* ===========================================================
   1. HERO — منطقة الترحيب والبحث
   =========================================================== */
.hero {
    background: linear-gradient(
        148deg,
        #0c4a1f 0%,
        #167539 28%,
        #1faa4c 62%,
        #157d38 100%
    );
    padding: 50px 0 88px;
}

/* دائرة ضوئية زخرفية في الزاوية العليا */
.hero::before {
    content: '';
    position: absolute;
    top: -130px; inset-inline-end: -90px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

/* ضبط شفافية التأثير السفلي */
.hero::after {
    background: radial-gradient(closest-side, rgba(255,255,255,.11), transparent);
}

/* توسيط محتوى الهيرو */
.hero .container { text-align: center; }
.hero-search { margin-inline: auto; }

/* زر الفلترة في الهيرو */
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--brand-700);
    padding: 14px 32px; border-radius: 16px; font-size: 1.05rem; font-weight: 800;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    transition: transform .2s, box-shadow .2s;
    animation: heroUp .6s cubic-bezier(.2,.7,.2,1) .22s both;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,.22); color: var(--brand); }

/* زر الفلترة في الهيدر (بديل مربع البحث) */
.header-filter-btn { flex-shrink: 0; }
@media (max-width: 860px) { .header-filter-btn { display: none; } }

/* عنوان الهيرو */
.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -.5px;
    text-shadow: 0 2px 18px rgba(0,0,0,.14);
}

/* نص "محجوز" بتدرج لوني */
.hero h1 .hl {
    color: #c8ffd8; /* fallback */
    background: linear-gradient(135deg, #d4ffdd, #a8ffc0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p { font-size: 1.1rem; opacity: .88; }

/* شريط البحث: زجاجي + مرفوع + تأثير عند الكتابة */
.hero-search {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px) saturate(1.4);
    border-radius: 22px;
    padding: 8px 8px 8px 18px;
    box-shadow:
        0 24px 64px rgba(0,0,0,.18),
        0 0 0 1px rgba(255,255,255,.5) inset;
    max-width: 680px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.hero-search:focus-within {
    box-shadow:
        0 28px 72px rgba(0,0,0,.2),
        0 0 0 3px rgba(31,170,76,.22),
        0 0 0 1px rgba(255,255,255,.7) inset;
    transform: translateY(-2px);
}
.hero-search .icon { color: var(--brand); font-size: 1.15rem; }
.hero-search input { font-size: 1rem; font-weight: 500; }
.hero-search input::placeholder { color: #9dbaaa; font-weight: 400; }
.hero-search .btn {
    border-radius: 16px;
    padding: 12px 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    box-shadow: var(--shadow-green);
    transition: box-shadow var(--transition), transform var(--transition);
}
.hero-search .btn:hover {
    box-shadow: 0 6px 22px rgba(31,170,76,.5);
    transform: translateY(-1px);
}

/* أنيميشن دخول الهيرو — ناعم ومتدرّج */
.hero h1     { animation: heroUp .72s cubic-bezier(.15,.65,.25,1) both; }
.hero p      { animation: heroUp .72s cubic-bezier(.15,.65,.25,1) .11s both; }
.hero-search { animation: heroUp .72s cubic-bezier(.15,.65,.25,1) .22s both; }
@keyframes heroUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

/* ===========================================================
   2. FARM CARDS — بطاقات العقارات
   =========================================================== */
.farm-card {
    border-radius: var(--radius-xl);
    border-color: rgba(231,239,233,.6);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.farm-card:hover {
    transform: translateY(-8px) scale(1.006);
    box-shadow: var(--shadow-hover);
    border-color: rgba(31,170,76,.06);
}

.farm-media { height: 200px; }
.farm-media img { transition: transform .68s cubic-bezier(.15,.65,.25,1); }
.farm-card:hover .farm-media img { transform: scale(1.09); }

.farm-name { font-size: 1.07rem; line-height: 1.4; }
.farm-name a { transition: color .18s; }
.farm-name a:hover { color: var(--brand-700); }

/* معلومات البطاقة: بيلز ناعمة */
.farm-meta { gap: 6px 8px; }
.farm-meta span {
    background: var(--brand-050);
    border: 1px solid var(--brand-100);
    padding: 3px 8px 3px 8px;
    border-radius: 20px;
    font-size: .81rem;
    gap: 4px;
    color: var(--muted);
    transition: background .18s, border-color .18s;
}
.farm-meta span:hover { background: var(--brand-100); border-color: var(--brand-200); }
.farm-meta i { color: var(--brand); font-size: .78rem; }

/* السعر */
.price-tag { font-size: 1.15rem; line-height: 1.2; }
.price-tag small { display: block; font-size: .7rem; color: var(--muted); font-weight: 500; }

/* شارات VIP والعروض */
.badge-vip {
    background: linear-gradient(135deg, #f6c021, #e09a0c);
    box-shadow: 0 2px 8px rgba(230,155,12,.3);
}
.badge-offer {
    background: linear-gradient(135deg, #e84040, #c41e1e);
    box-shadow: 0 2px 8px rgba(220,40,40,.27);
}

/* ===========================================================
   3. CAROUSEL — البانرات الإعلانية
   =========================================================== */
.carousel-nav {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 22px rgba(0,0,0,.13), 0 0 0 1px rgba(255,255,255,.7) inset;
    font-size: 1.6rem;
    transition: all var(--transition);
}
.carousel-nav:hover {
    background: var(--brand); color: #fff;
    box-shadow: 0 8px 28px rgba(31,170,76,.42);
}
.carousel-nav.prev:hover { transform: translateY(-50%) scale(1.12); }
.carousel-nav.next:hover { transform: translateY(-50%) scale(1.12); }

.carousel-dots { margin-top: 16px; gap: 8px; }
.carousel-dots button {
    width: 8px; height: 8px;
    background: var(--brand-200);
    transition: all .38s cubic-bezier(.2,.7,.2,1);
}
.carousel-dots button.active {
    background: var(--brand); width: 30px; border-radius: 5px;
    box-shadow: 0 2px 10px rgba(31,170,76,.38);
}
.carousel-dots button:hover:not(.active) {
    background: var(--brand-600);
    transform: scale(1.25);
}

/* ===========================================================
   4. CATEGORY CARDS — بطاقات الأقسام
   =========================================================== */
.cat-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 18px 46px rgba(20,90,50,.18);
}
.cat-card .overlay {
    background: linear-gradient(
        to top,
        rgba(6,26,14,.88) 0%,
        rgba(10,48,24,.32) 46%,
        transparent 100%
    );
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 16px 18px;
    padding-top: 0;
}
.cat-card .overlay span {
    font-size: 1.08rem; font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

/* ===========================================================
   5. HEADER — الهيدر
   =========================================================== */
.site-header {
    background: rgba(255,255,255,.93);
    backdrop-filter: saturate(1.8) blur(16px);
    box-shadow: 0 1px 0 rgba(20,90,50,.07), 0 2px 16px rgba(20,90,50,.04);
}
.main-nav a { border-radius: 14px; transition: background var(--transition), color var(--transition); }
.main-nav a.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    box-shadow: 0 3px 10px rgba(31,170,76,.28);
}

/* ===========================================================
   6. SECTIONS — عناوين الأقسام
   =========================================================== */
.section { margin: 36px 0; }
.section-head h2 { font-size: 1.38rem; font-weight: 900; }

/* ===========================================================
   7. FOOTER — الفوتر
   =========================================================== */
.site-footer {
    background: linear-gradient(155deg, #091a0e 0%, #0f1c14 58%, #0b180e 100%);
    margin-top: 50px;
    padding: 44px 0 32px;
}
.site-footer .brand { font-size: 1.45rem; font-weight: 900; margin-bottom: 10px; }
.site-footer .brand .logo-mark {
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    box-shadow: 0 3px 12px rgba(31,170,76,.3);
}
.footer-logo {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; font-size: 1.5rem; font-weight: 900;
    text-decoration: none; margin-bottom: 16px;
}
.footer-logo-img { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; }
.show-all-banner {
    margin: 32px 0 16px;
    text-align: center;
}
.show-all-banner a { display: block; }
.show-all-banner img {
    width: 100%; border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.show-all-banner img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
    .show-all-banner img {
        width: 45%;
        max-width: 650px;
        display: block;
        margin: 0 auto;
    }
}

.footer-tagline {
    margin: 16px auto 4px;
    max-width: 400px;
    color: rgba(207,230,214,.80);
    font-size: .95rem;
    line-height: 1.6;
}
.site-footer .container > p { color: rgba(207,230,214,.72); }
.footer-social a {
    width: 44px; height: 44px; border-radius: 14px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    font-size: 1.1rem; transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--brand); border-color: var(--brand);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 22px rgba(31,170,76,.38);
}
.footer-apps a {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; padding: 10px 18px; font-size: .92rem;
    transition: all var(--transition);
}
.footer-apps a:hover {
    background: var(--brand); border-color: transparent;
    transform: translateY(-2px); box-shadow: 0 4px 16px rgba(31,170,76,.35);
}
.site-footer a:not([class]) { color: rgba(207,230,214,.62); }
.site-footer a:not([class]):hover { color: #c8ffd8; }

/* ===========================================================
   8. SCROLL ANIMATIONS — تأثيرات التمرير
   =========================================================== */
.js .reveal {
    opacity: 0; transform: translateY(28px);
    transition:
        opacity .76s cubic-bezier(.15,.65,.25,1),
        transform .76s cubic-bezier(.15,.65,.25,1);
}
.js .reveal.in { opacity: 1; transform: none; }

.reveal.in :is(.scroller,.grid,.grid-cats) > * {
    animation: cardRise .65s cubic-bezier(.15,.65,.25,1) forwards;
}
@keyframes cardRise {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

/* ===========================================================
   9. BUTTONS
   =========================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    box-shadow: 0 3px 12px rgba(31,170,76,.26);
    transition: box-shadow var(--transition), transform var(--transition);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    box-shadow: 0 5px 18px rgba(31,170,76,.4);
    transform: translateY(-1px);
}

/* ===========================================================
   10. TOAST — الإشعار
   =========================================================== */
.toast {
    background: linear-gradient(135deg, #0d3d1d, #185e2e);
    border: 1px solid rgba(31,170,76,.2);
    box-shadow: 0 10px 32px rgba(0,0,0,.2);
    border-radius: 16px;
    font-size: .95rem;
}

/* ===========================================================
   11. BOTTOM NAV — شريط التنقل السفلي
   =========================================================== */
@media (max-width: 860px) {
    .bottom-nav {
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(16px) saturate(1.5);
        border-top: 1px solid rgba(231,239,233,.7);
        box-shadow: 0 -4px 20px rgba(20,90,50,.08);
    }
    .bottom-nav a {
        border-radius: 14px; padding: 5px 10px;
        transition: background var(--transition), color var(--transition);
    }
    .bottom-nav a.active { background: var(--brand-050); color: var(--brand); }
}

/* ===========================================================
   تقليل الحركة — إمكانية الوصول
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero h1, .hero p, .hero-search,
    .farm-card, .farm-card:hover,
    .cat-card, .cat-card:hover,
    .carousel-nav:hover,
    .js .reveal, .reveal.in :is(.scroller,.grid,.grid-cats) > * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* =====================================================================
   Search Filter — صفحة البحث والفلترة
   ===================================================================== */

.sf-container { padding-top: 24px; padding-bottom: 80px; }

/* ---- Layout (Desktop) ---- */
.sf-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    align-items: start;
}

/* ---- Panel ---- */
.sf-panel {
    position: sticky;
    top: calc(var(--header-h) + 14px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    max-height: calc(100vh - var(--header-h) - 28px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-200) transparent;
}

.sf-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 2;
}

.sf-panel-title { font-size: 1.05rem; font-weight: 800; gap: 8px; display: flex; align-items: center; }
.sf-panel-title i { color: var(--brand); }

.sf-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: 1rem;
    color: var(--muted);
    transition: background .18s, color .18s;
}
.sf-close:hover { background: var(--brand-050); color: var(--brand); }

/* ---- Section ---- */
.sf-section {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.sf-section:last-child { border-bottom: none; }

/* ---- Label ---- */
.sf-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .4px;
    margin-bottom: 10px;
}

/* ---- Search Input ---- */
.sf-search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 10px 14px;
    transition: border-color .18s, background .18s;
}
.sf-search-input:focus-within {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31,170,76,.1);
}
.sf-search-input i { color: var(--muted); flex-shrink: 0; }
.sf-search-input input {
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: .95rem;
    width: 100%;
    color: var(--ink);
}

/* ---- Day Pills ---- */
.sf-days {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.sf-day {
    padding: 7px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    font-size: .86rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    line-height: 1;
}
.sf-day.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(31,170,76,.3); }
.sf-day:hover:not(.active) { background: var(--brand-050); border-color: var(--brand-200); color: var(--brand-700); }

/* ---- Select ---- */
.sf-select-wrap { position: relative; }
.sf-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px 12px 40px;
    font-family: inherit;
    font-size: .93rem;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.sf-select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(31,170,76,.1); }
.sf-chevron {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .78rem;
    pointer-events: none;
}

/* ---- Price Range ---- */
.sf-price-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.sf-price-vals {
    font-size: .88rem;
    color: var(--brand-700);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.sf-range-wrap {
    position: relative;
    height: 40px;
    margin: 0 4px;
}
.sf-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0; right: 0;
    height: 5px;
    background: var(--brand-100);
    border-radius: 3px;
    pointer-events: none;
}
.sf-range-fill {
    position: absolute;
    top: 0; bottom: 0;
    background: linear-gradient(90deg, var(--brand), var(--brand-700));
    border-radius: 3px;
}
.sf-range {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: none;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
    outline: none;
}
.sf-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand);
    border: 2.5px solid #fff;
    box-shadow: 0 2px 10px rgba(31,170,76,.4);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.sf-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 14px rgba(31,170,76,.55);
}
.sf-range::-moz-range-thumb {
    pointer-events: all;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand);
    border: 2.5px solid #fff;
    box-shadow: 0 2px 10px rgba(31,170,76,.4);
    cursor: pointer;
}
.sf-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--muted);
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

/* ---- Features Grid ---- */
.sf-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}
.sf-feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 6px 8px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    cursor: pointer;
    font-family: inherit;
    font-size: .7rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    line-height: 1.3;
    transition: all .18s;
}
.sf-feat.active {
    border-color: var(--brand);
    background: var(--brand-050);
    color: var(--brand-700);
}
.sf-feat:hover:not(.active) {
    border-color: var(--brand-200);
    background: var(--brand-050);
}
.sf-feat-img {
    width: 28px; height: 28px;
    object-fit: contain;
    display: block;
}
.sf-feat-ico {
    font-size: 1.3rem;
    color: var(--brand-200);
}
.sf-feat.active .sf-feat-ico { color: var(--brand); }

/* ---- Actions ---- */
.sf-actions {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sf-apply {
    width: 100%;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}
.sf-reset {
    width: 100%;
    text-align: center;
    font-size: .92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ---- Results ---- */
.sf-results { min-width: 0; }
.sf-count {
    color: var(--muted);
    margin: 0 0 14px;
    font-size: .9rem;
}

/* ---- FAB (موبايل) ---- */
.sf-fab {
    display: none;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 18px;
    z-index: 150;
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 13px 20px;
    font-family: inherit;
    font-weight: 700;
    font-size: .93rem;
    box-shadow: var(--shadow-green);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.sf-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(31,170,76,.5); }
.sf-fab-badge {
    background: #fff;
    color: var(--brand-700);
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* ---- Overlay ---- */
.sf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

/* =====================================================================
   Responsive — موبايل (≤ 860px)
   ===================================================================== */
@media (max-width: 860px) {
    .sf-container { padding-bottom: 32px; }

    .sf-layout { display: flex; flex-direction: column; gap: 20px; }

    /* الفلتر دائماً ظاهر */
    .sf-panel {
        position: static;
        transform: none;
        max-height: none;
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .sf-panel-head { padding-top: 0; }
    .sf-panel-head::before { display: none; }

    /* أيام أصغر حجماً */
    .sf-day { padding: 6px 10px; font-size: .82rem; }

    /* Features — 5 في الصف على موبايل */
    .sf-features { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .sf-feat { padding: 8px 4px 6px; font-size: .65rem; }
    .sf-feat-img { width: 24px; height: 24px; }
    .sf-feat-ico { font-size: 1.15rem; }
}

/* الشاشات الضيقة جداً: 4 خدمات في الصف حتى لا تتزاحم */
@media (max-width: 420px) {
    .sf-features { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   ✨ لمسات سحرية — تفاصيل تجميلية دقيقة (Magic Touches)
   ===================================================================== */

/* تحديد النص بلون الهوية */
::selection { background: var(--brand-100); color: var(--brand-700); }

/* حلقة تركيز موحّدة لإمكانية الوصول */
:focus-visible {
    outline: 3px solid rgba(31,170,76,.45);
    outline-offset: 2px;
    border-radius: 6px;
}

/* شريط تمرير الصفحة — نحيف وأنيق */
html { scrollbar-width: thin; scrollbar-color: var(--brand-200) transparent; }
body::-webkit-scrollbar { width: 9px; }
body::-webkit-scrollbar-thumb { background: var(--brand-200); border-radius: 8px; }
body::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---- الهيرو: فقاعات ضوئية عائمة ---- */
.hero .container::before,
.hero .container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
}
.hero .container::before {
    width: 130px; height: 130px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), rgba(255,255,255,.03));
    top: -10px; inset-inline-start: -40px;
    animation: floatY 7s ease-in-out infinite;
}
.hero .container::after {
    width: 70px; height: 70px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(255,255,255,.04));
    bottom: -16px; inset-inline-end: 6%;
    animation: floatY 9s ease-in-out 1.2s infinite reverse;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}

/* ---- لمعان يمر فوق بطاقة المزرعة عند المرور ---- */
.farm-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
    transform: translateX(-130%);
    pointer-events: none;
    z-index: 2;
}
.farm-card:hover .farm-media::after { animation: shine .9s ease; }
@keyframes shine { to { transform: translateX(130%); } }

/* ---- نبضة قلب المفضلة ---- */
.fav-btn.is-fav i, .g-fav.is-fav i { animation: heartPop .35s cubic-bezier(.2,.8,.3,1.4); }
@keyframes heartPop {
    0% { transform: scale(.5); } 60% { transform: scale(1.3); } 100% { transform: scale(1); }
}

/* ---- شارة VIP: وميض ذهبي خفيف ---- */
.badge-vip { position: relative; overflow: hidden; }
.badge-vip::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
    transform: translateX(-130%);
    animation: shine 3.2s ease 1s infinite;
}

/* ---- روابط الهيدر: خط سفلي ينمو ---- */
.main-nav a { position: relative; }
.main-nav a:not(.active)::after {
    content: '';
    position: absolute; bottom: 4px; inset-inline: 14px;
    height: 2px; border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.main-nav a:not(.active):hover::after { transform: scaleX(1); }

/* ---- مؤشر تحميل أنيق لنتائج البحث (Livewire) ---- */
.sf-loading {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 18px; margin-bottom: 14px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    color: var(--brand-700); font-weight: 700;
}
.sf-loading .dots { display: inline-flex; gap: 5px; }
.sf-loading .dots span {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--brand);
    animation: dotBounce 1s ease-in-out infinite;
}
.sf-loading .dots span:nth-child(2) { animation-delay: .15s; }
.sf-loading .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce {
    0%, 100% { transform: translateY(0); opacity: .5; }
    50%      { transform: translateY(-7px); opacity: 1; }
}

/* خفوت النتائج القديمة أثناء التحميل */
.sf-results .grid { transition: opacity .25s ease; }
.sf-results.is-loading .grid { opacity: .45; pointer-events: none; }

/* ---- زر العودة لأعلى ---- */
.to-top {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 18px;
    z-index: 140;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    color: #fff; font-size: 1.05rem;
    box-shadow: var(--shadow-green);
    display: grid; place-items: center;
    opacity: 0; transform: translateY(16px) scale(.8);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 8px 26px rgba(31,170,76,.5); transform: translateY(-3px); }
@media (max-width: 860px) {
    .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- تكبير خفيف لرقاقة الشهر النشطة ---- */
.sf-day { will-change: transform; }
.sf-day.active { transform: scale(1.06); }
.sf-day:active { transform: scale(.95); }

/* =====================================================================
   إصلاحات تجاوب إضافية
   ===================================================================== */

/* تابلت 861px → 1100px: منع تزاحم الهيدر (6 روابط + بحث) */
@media (min-width: 861px) and (max-width: 1100px) {
    .site-header .container { gap: 10px; }
    .brand { font-size: 1.2rem; gap: 7px; }
    .brand .logo-mark { width: 32px; height: 32px; }
    .main-nav a { padding: 8px 9px; font-size: .86rem; border-radius: 10px; }
    .header-search { min-width: 150px; padding: 7px 11px; }
}

/* الهيرو على الموبايل: مساحات وأحجام أهدأ */
@media (max-width: 640px) {
    .hero { padding: 36px 0 60px; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: .95rem; }
    .hero-search { padding: 6px 6px 6px 13px; border-radius: 18px; }
    .hero-search .btn { padding: 11px 16px; border-radius: 13px; font-size: .92rem; }
    .hero .container::before, .hero .container::after { display: none; }
}

/* شاشات ضيقة جداً (≤ 360px) */
@media (max-width: 360px) {
    .container { padding-inline: 12px; }
    .hero h1 { font-size: 1.5rem; }
    .grid { grid-template-columns: 1fr; }
    .scroller { grid-auto-columns: 86%; }
    .sf-fab { padding: 12px 16px; font-size: .88rem; }
}

/* شاشات عريضة جداً: تكبير الحاوية قليلاً */
@media (min-width: 1600px) {
    :root { --container: 1280px; }
}

/* احترام تقليل الحركة للمسات الجديدة */
@media (prefers-reduced-motion: reduce) {
    .hero .container::before, .hero .container::after,
    .farm-card:hover .farm-media::after,
    .badge-vip::after,
    .sf-loading .dots span,
    .fav-btn.is-fav i, .g-fav.is-fav i {
        animation: none !important;
    }
    .to-top { transition: opacity .2s; transform: none; }
}
