/* =====================================================================
   PLAN — main.css (مشترك بين كل الصفحات)
   ألوان اللوجو: كحلي رمادي + بيج
   ===================================================================== */
:root{
  --navy:#3d4f5c; --navy-dark:#2a3640; --navy-soft:#5b6c78;
  --sand:#a89a85; --sand-dark:#8c7e69; --sand-light:#e6dfd3; --sand-bg:#f6f3ee;
  --bg:#ffffff; --surface:#ffffff; --line:#e4e1db; --text:#26323a; --muted:#6b7780;
  --sale:#3d4f5c; --rent:#8c7e69; --ok:#2f7d5b; --err:#b4483c;
  --radius:14px; --shadow:0 6px 24px rgba(42,54,64,.08); --shadow-lg:0 18px 48px rgba(42,54,64,.14);
  --container:1240px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Cairo',system-ui,sans-serif;color:var(--text);background:var(--bg);line-height:1.7;-webkit-font-smoothing:antialiased}
body.nav-open{overflow:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
svg{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:16px}
.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- أزرار ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:2px solid transparent;
  border-radius:10px;padding:10px 20px;font-weight:700;font-size:15px;cursor:pointer;transition:.2s;white-space:nowrap}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--navy-dark)}
.btn-sand{background:var(--sand);color:#fff}
.btn-sand:hover{background:var(--sand-dark)}
.btn-ghost{border-color:var(--line);color:var(--navy);background:#fff}
.btn-ghost:hover{border-color:var(--navy)}
.btn-light{background:#fff;color:var(--navy)}
.btn-light:hover{background:var(--sand-light)}
.btn-lg{padding:14px 28px;font-size:16px}
.btn[disabled]{opacity:.6;cursor:wait}

/* ---------- الهيدر ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;gap:24px;height:72px}
.brand{display:flex;align-items:center;flex-shrink:0}
.brand img{height:48px;width:auto}
.brand-text{font-size:30px;font-weight:800;letter-spacing:3px;color:transparent;-webkit-text-stroke:1.6px var(--navy);font-family:system-ui,sans-serif}
.main-nav{display:flex;gap:4px;flex:1}
.main-nav a{padding:8px 12px;border-radius:8px;font-weight:600;color:var(--navy-soft);transition:.2s}
.main-nav a:hover,.main-nav a.active{color:var(--navy);background:var(--sand-bg)}
.header-actions{display:flex;gap:10px;align-items:center}
.menu-toggle{display:none;background:none;border:0;width:42px;height:42px;cursor:pointer;color:var(--navy)}
.menu-toggle svg{width:26px;height:26px}

/* ---------- الهيرو + البحث ---------- */
.hero{position:relative;background:linear-gradient(160deg,var(--sand-bg) 0%,#fff 70%);padding:56px 0 64px;overflow:hidden}
.hero-skyline{position:absolute;inset-inline-end:0;bottom:0;height:100%;width:44%;opacity:.13;pointer-events:none;
  display:flex;align-items:flex-end;gap:10px;padding-inline-end:4%}
.hero-skyline i{display:block;border:3px solid var(--sand);border-bottom:0;
  background:repeating-linear-gradient(0deg,transparent 0 14px,var(--sand) 14px 17px),repeating-linear-gradient(90deg,transparent 0 12px,var(--sand) 12px 15px)}
.hero-skyline i:nth-child(1){width:16%;height:48%}.hero-skyline i:nth-child(2){width:22%;height:86%}
.hero-skyline i:nth-child(3){width:18%;height:100%}.hero-skyline i:nth-child(4){width:20%;height:62%}
.hero .container{position:relative}
.hero h1{font-size:clamp(28px,4.6vw,48px);font-weight:800;line-height:1.35;color:var(--navy-dark);max-width:720px}
.hero h1 span{color:var(--sand-dark)}
.hero-sub{margin-top:12px;font-size:clamp(15px,2vw,18px);color:var(--muted);max-width:620px}

.search-box{margin-top:32px;background:#fff;border-radius:18px;box-shadow:var(--shadow-lg);max-width:1040px}
.search-tabs{display:flex;gap:4px;padding:10px 10px 0}
.search-tabs button{background:none;border:0;padding:10px 22px;font-weight:700;color:var(--muted);cursor:pointer;border-radius:10px 10px 0 0;position:relative}
.search-tabs button.active{color:var(--navy)}
.search-tabs button.active::after{content:"";position:absolute;inset-inline:16px;bottom:0;height:3px;border-radius:3px;background:var(--sand)}
.search-fields{display:grid;grid-template-columns:1.4fr 1.2fr .9fr 1.3fr 1.5fr auto;gap:10px;padding:16px;border-top:1px solid var(--line)}
.field{display:flex;flex-direction:column;gap:4px;min-width:0}
.field>span{font-size:12px;font-weight:700;color:var(--muted);padding-inline-start:4px}
.field select,.field input,.field textarea{width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;outline:none;transition:.2s;min-width:0}
.field select:focus,.field input:focus,.field textarea:focus{border-color:var(--navy)}
.field .pair{display:flex;gap:6px}
.btn-search{align-self:end;height:46px;padding-inline:30px}
.search-box.agencies-mode .search-fields{grid-template-columns:1fr auto}
.search-box.agencies-mode [data-hide-agencies]{display:none}

/* ---------- عناوين الأقسام ---------- */
.section{padding:64px 0}
.section-alt{background:var(--sand-bg)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.section-head h2{font-size:clamp(22px,3vw,30px);font-weight:800;color:var(--navy-dark)}
.section-head p{color:var(--muted);margin-top:4px}
.link-more{font-weight:700;color:var(--sand-dark)}
.link-more:hover{color:var(--navy)}
.seg{display:inline-flex;background:var(--sand-bg);border-radius:10px;padding:4px}
.seg button{border:0;background:none;padding:6px 18px;border-radius:8px;font-weight:700;color:var(--muted);cursor:pointer}
.seg button.active{background:#fff;color:var(--navy);box-shadow:0 2px 6px rgba(0,0,0,.06)}

/* ---------- أنواع العقارات ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.cat-card{border:1.5px solid var(--line);border-radius:var(--radius);padding:20px;background:#fff;transition:.2s}
.cat-card:hover{border-color:var(--sand);box-shadow:var(--shadow)}
.cat-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.cat-icon{width:52px;height:52px;border-radius:12px;background:var(--sand-bg);color:var(--navy);display:grid;place-items:center;flex-shrink:0}
.cat-icon svg{width:30px;height:30px;stroke-width:1.8}
.cat-head a{font-weight:800;font-size:17px;color:var(--navy-dark)}
.cat-head a:hover{color:var(--sand-dark)}
.cat-links{display:flex;flex-wrap:wrap;gap:6px}
.cat-links a{font-size:13px;padding:4px 10px;border-radius:999px;background:var(--sand-bg);color:var(--navy-soft);transition:.2s}
.cat-links a:hover{background:var(--navy);color:#fff}

/* ---------- كروت العقارات ---------- */
.prop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.prop-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.25s}
.prop-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.prop-media{position:relative;aspect-ratio:4/3;background:var(--sand-bg)}
.prop-media img{width:100%;height:100%;object-fit:cover}
.prop-noimg{width:100%;height:100%;display:grid;place-items:center;color:var(--sand)}
.prop-noimg svg{width:64px;height:64px;stroke-width:1.4}
.prop-tag{position:absolute;top:12px;inset-inline-start:12px;color:#fff;font-size:12px;font-weight:700;padding:3px 12px;border-radius:999px}
.prop-tag.sale{background:var(--sale)}.prop-tag.rent{background:var(--rent)}
.prop-verified{position:absolute;top:12px;inset-inline-end:12px;display:flex;align-items:center;gap:4px;background:#fff;color:var(--ok);font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px}
.prop-verified svg{width:14px;height:14px;stroke-width:3}
.prop-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:4px;flex:1}
.prop-price{font-size:19px;font-weight:800;color:var(--navy-dark)}
.prop-price small{font-size:13px;font-weight:600;color:var(--muted)}
.prop-title{font-size:15px;font-weight:600;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prop-type{font-size:13px;color:var(--sand-dark);font-weight:700}
.prop-specs{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-top:4px}
.prop-specs>span{display:flex;align-items:center;gap:4px}
.prop-specs svg{width:16px;height:16px}
.prop-foot{display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px;border-top:1px dashed var(--line);font-size:12.5px;color:var(--muted)}
.prop-loc{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.prop-loc svg{width:15px;height:15px;flex-shrink:0}
.prop-time{white-space:nowrap}

/* هيكل تحميل */
.skeleton{border-radius:var(--radius);background:linear-gradient(90deg,var(--sand-bg) 25%,#efebe4 50%,var(--sand-bg) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;min-height:320px}
@keyframes shimmer{to{background-position:-200% 0}}
.empty{grid-column:1/-1;text-align:center;padding:48px 16px;border:2px dashed var(--line);border-radius:var(--radius);color:var(--muted)}
.empty h3{color:var(--navy);font-size:20px;margin-bottom:6px}
.empty .btn{margin-top:16px}

/* ---------- قسم التشطيبات ---------- */
.finishing{background:var(--navy-dark);color:#fff;padding:80px 0;position:relative;overflow:hidden}
.finishing::before{content:"";position:absolute;inset:0;opacity:.05;
  background:repeating-linear-gradient(90deg,#fff 0 1px,transparent 1px 48px),repeating-linear-gradient(0deg,#fff 0 1px,transparent 1px 48px)}
.finishing-inner{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:start}
.eyebrow{display:inline-block;background:rgba(168,154,133,.2);color:var(--sand-light);font-weight:700;font-size:14px;padding:4px 14px;border-radius:999px;margin-bottom:14px}
.finishing h2{font-size:clamp(26px,4vw,42px);font-weight:800;line-height:1.35}
.finishing h2 span{color:var(--sand)}
.finishing-lead{color:#c9d1d6;margin-top:12px;font-size:17px;max-width:560px}
.services{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:28px}
.service{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:16px;transition:.2s}
.service:hover{background:rgba(255,255,255,.1);border-color:var(--sand)}
.service h3{font-size:16px;font-weight:700;color:#fff}
.service p{font-size:13.5px;color:#aeb9c0;margin-top:2px}
.steps{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:32px;counter-reset:s}
.steps li{counter-increment:s;font-size:14px;color:#c9d1d6}
.steps li::before{content:counter(s);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--sand);color:#fff;font-weight:800;margin-bottom:8px}
.steps b{display:block;color:#fff;font-size:15px}

.lead-form{background:#fff;color:var(--text);border-radius:18px;padding:28px;box-shadow:var(--shadow-lg);display:grid;gap:12px}
.lead-form h3{font-size:22px;font-weight:800;color:var(--navy-dark)}
.lead-form>p{color:var(--muted);font-size:14px;margin-top:-8px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.form-msg{font-size:14px;font-weight:600;padding:10px 12px;border-radius:10px}
.form-msg.ok{background:#e7f3ed;color:var(--ok)}
.form-msg.err{background:#f8e9e6;color:var(--err)}
.hp{position:absolute!important;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%);pointer-events:none;inset-inline-start:0}

/* ---------- اعرض عقارك ---------- */
.cta-band{background:linear-gradient(120deg,var(--sand) 0%,var(--sand-dark) 100%);border-radius:22px;padding:40px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta-band h2{font-size:clamp(22px,3vw,32px);font-weight:800}
.cta-band p{opacity:.92;margin-top:4px;max-width:560px}

/* ---------- الوكالات والمقالات ---------- */
.agency-row{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.agency{border:1px solid var(--line);border-radius:12px;padding:16px;text-align:center;background:#fff;transition:.2s}
.agency:hover{box-shadow:var(--shadow)}
.agency img,.agency .agency-ph{width:64px;height:64px;border-radius:12px;object-fit:contain;margin:0 auto 8px;background:var(--sand-bg);display:grid;place-items:center;font-weight:800;color:var(--navy);font-size:22px}
.agency b{font-size:14px;display:block}
.agency small{color:var(--muted)}
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.article{border-radius:var(--radius);overflow:hidden;background:#fff;border:1px solid var(--line);transition:.2s}
.article:hover{box-shadow:var(--shadow)}
.article .cover{aspect-ratio:16/9;background:var(--sand-bg);object-fit:cover;width:100%}
.article div{padding:16px}
.article h3{font-size:16px;line-height:1.6;color:var(--navy-dark)}
.article p{font-size:14px;color:var(--muted);margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article time{font-size:12px;color:var(--sand-dark);font-weight:700;display:block;margin-top:10px}

/* ---------- عمليات بحث شائعة ---------- */
.popular{display:grid;grid-template-columns:repeat(5,1fr);gap:24px}
.popular h3{font-size:16px;font-weight:800;color:var(--navy-dark);margin-bottom:10px}
.popular ul{list-style:none;display:grid;gap:4px}
.popular a{font-size:14px;color:var(--muted)}
.popular a:hover{color:var(--navy);text-decoration:underline}

/* ---------- الفوتر ---------- */
.site-footer{background:var(--navy-dark);color:#c9d1d6;padding:56px 0 24px;margin-top:0}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1.1fr;gap:28px}
.footer-brand .brand-text{-webkit-text-stroke-color:#fff}
.footer-brand img{height:52px;filter:brightness(0) invert(1);opacity:.95}
.footer-brand p{margin-top:12px;font-size:14px;max-width:340px}
.footer-brand .slogan{color:var(--sand);font-weight:700}
.site-footer h4{color:#fff;font-size:16px;margin-bottom:12px}
.site-footer ul{list-style:none;display:grid;gap:6px;font-size:14px}
.site-footer a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:40px;padding-top:20px;font-size:13px;text-align:center}

.wa-float{position:fixed;bottom:20px;inset-inline-end:20px;z-index:60;width:56px;height:56px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 8px 24px rgba(37,211,102,.4);transition:.2s}
.wa-float:hover{transform:scale(1.08)}
.wa-float svg{width:30px;height:30px;fill:#fff;stroke:none}

/* ---------- الريسبونسيف ---------- */
@media (max-width:1100px){
  .search-fields{grid-template-columns:repeat(3,1fr)}
  .btn-search{grid-column:1/-1;align-self:stretch}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .prop-grid{grid-template-columns:repeat(3,1fr)}
  .agency-row{grid-template-columns:repeat(4,1fr)}
  .finishing-inner{grid-template-columns:1fr}
}
@media (max-width:900px){
  .menu-toggle{display:grid;place-items:center;order:3}
  .header-actions .btn-ghost{display:none}
  .header-inner{justify-content:space-between}
  .main-nav{position:fixed;inset:72px 0 0 0;background:#fff;flex-direction:column;padding:16px;gap:2px;
    transform:translateX(100%);transition:transform .25s;z-index:49}
  .main-nav.open{transform:none}
  .main-nav a{padding:14px 12px;font-size:17px;border-bottom:1px solid var(--line);border-radius:0}
  .main-nav .nav-mobile-only{display:block}
  .popular{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .article-grid{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:repeat(2,1fr)}
}
.nav-mobile-only{display:none}
@media (max-width:640px){
  .section{padding:44px 0}
  .hero{padding:36px 0 44px}
  .hero-skyline{width:90%;opacity:.07}
  .search-tabs button{padding:10px 14px}
  .search-fields{grid-template-columns:1fr 1fr;padding:12px}
  .search-fields .field-wide{grid-column:1/-1}
  .search-fields .range{grid-column:1/-1}
  .cat-grid{grid-template-columns:1fr}
  .prop-grid{grid-template-columns:1fr}
  .services,.form-row{grid-template-columns:1fr}
  .agency-row{grid-template-columns:repeat(2,1fr)}
  .article-grid,.footer-grid{grid-template-columns:1fr}
  .cta-band{padding:28px}
  .brand img{height:40px}
  .header-actions .btn-sand{padding:8px 12px;font-size:14px}
  .finishing{padding:56px 0}
  .lead-form{padding:20px}
}
@media (max-width:900px){.header-actions .btn-primary{display:none}.header-inner{gap:10px}}
