/* سمسار 2: تصميم صاحب المنصة (عمله على ChatGPT، والحقوق إله). فوق app.css: الألوان والترويسة والبطاقات والصفحات الجديدة. */
:root {
  --navy: #13294b; --navy-2: #0d1d38; --navy-3: #1b3a66; --gold: #e9b52f; --gold-2: #f4c84e; --gold-s: #fdf3d6;
  --green: #17945a; --green-s: #e3f5ec; --blue: #1f5aa6; --blue-s: #e5eefa;
  --ink: #14213a; --text: #34425a; --mut: #6b778c; --line: #e4e8ef; --bg: #f5f7fb; --soft: #f8fafc;
  --shadow: 0 8px 24px rgba(19, 41, 75, .08); --shadow-2: 0 14px 34px rgba(19, 41, 75, .14);
}
body { background: var(--bg) }
a { color: var(--blue) }

/* ===== الترويسة ===== */
.top { background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.12) }
.top.clear { position: absolute; inset-inline: 0; background: linear-gradient(rgba(8,18,36,.55), rgba(8,18,36,0)); box-shadow: none }
.top .wrap { max-width: 1240px; height: 72px; gap: 6px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-inline-end: auto; flex: none }
.brand svg { width: 46px; height: 46px; flex: none }
.brand b { display: block; font-size: 23px; font-weight: 700; letter-spacing: .06em; line-height: 1; font-family: 'Segoe UI', Arial, var(--font) }
.brand span { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: .25em; color: #fff }
.brand small { display: block; font-size: 10.5px; color: #c4cfde; line-height: 1.2 }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto }
.nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 11px; border-radius: 10px; position: relative; white-space: nowrap }
.nav a:hover { background: rgba(255,255,255,.08) }
.nav a.on::after { content: ""; position: absolute; inset-inline: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold-2) }
.acts { display: flex; align-items: center; gap: 8px; flex: none }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap }
.hbtn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy-2); box-shadow: 0 6px 14px rgba(233,181,47,.32) }
.hbtn.line { border: 1.5px solid rgba(255,255,255,.55); color: #fff; background: transparent }
.hbtn.navy { background: var(--navy); color: #fff }
.ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; position: relative; background: transparent; border: 0; cursor: pointer }
.ico:hover { background: rgba(255,255,255,.1) }
.ico svg { width: 22px; height: 22px }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-2); color: var(--navy-2); display: grid; place-items: center; font-weight: 700; text-decoration: none; font-size: 17px; flex: none }
.burger { display: none }
@media (max-width: 1100px) { .nav { display: none } .burger { display: grid } }
@media (max-width: 640px) { .acts .hbtn.line, .acts .hide-s { display: none } .acts .hbtn { min-height: 38px; padding: 0 13px; font-size: 14px } .brand small { display: none } .brand svg { width: 40px; height: 40px } .brand b { font-size: 20px } .brand span { font-size: 16px } }

/* القائمة الجانبية (الجوال) */
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(8,18,36,.5); display: flex; justify-content: flex-start }
.drawer > div { width: min(320px, 86vw); background: #fff; height: 100%; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-2) }
.drawer a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px }
.drawer a:hover { background: var(--soft) }
.drawer a svg { width: 22px; height: 22px; color: var(--navy) }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0 }
.drawer .x { align-self: flex-start; border: 0; background: var(--soft); width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; margin-bottom: 6px }

/* الشريط تحت (الجوال) */
.bnav { box-shadow: 0 -4px 18px rgba(19,41,75,.08) }
.bnav a { color: #8a94a6; font-weight: 600 }
.bnav a.on { color: var(--navy) }
.bnav a.on svg { color: var(--navy) }

/* ===== أزرار عامة بنفس روح التصميم ===== */
.btn { border-radius: 12px }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy-2); box-shadow: 0 6px 14px rgba(233,181,47,.3) }
.btn.blue { background: var(--blue) }

/* ===== الرئيسية: صورة كاملة ===== */
.photohero { position: relative; color: #fff; min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; background: #2a2a3a center / cover no-repeat;
  background-image: image-set(url(img/hero-1280.webp) 1x); }
.photohero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,.45) 0%, rgba(10,20,40,.25) 35%, rgba(10,20,40,.55) 75%, rgba(10,20,40,.78) 100%) }
@media (max-width: 800px) { .photohero { background-image: url(img/hero-800.webp); min-height: 560px } }
@media (max-width: 480px) { .photohero { background-image: url(img/hero-480.webp); min-height: 0; padding-top: 80px } }
.photohero .wrap { position: relative; max-width: 1000px; text-align: center; padding-block: 120px 34px }
@media (max-width: 480px) { .photohero .wrap { padding-block: 40px 24px } }
.photohero h1 { font-size: clamp(32px, 6vw, 58px); font-weight: 700; text-shadow: 0 4px 22px rgba(0,0,0,.35); line-height: 1.25 }
.photohero p.sub { font-size: clamp(17px, 2.4vw, 22px); margin: 10px 0 0; color: #f1f3f8; text-shadow: 0 2px 10px rgba(0,0,0,.4) }
.ptabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px }
.ptabs button { display: inline-flex; align-items: center; gap: 8px; min-width: 132px; justify-content: center; height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 17px;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(13,29,56,.72); color: #fff; cursor: pointer; backdrop-filter: blur(6px) }
.ptabs button svg { width: 22px; height: 22px }
.ptabs button[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy-2); border-color: transparent }
@media (max-width: 480px) { .ptabs { gap: 8px } .ptabs button { min-width: 0; flex: 1 1 40%; height: 46px; font-size: 15px; padding: 0 10px } }
.sbar { display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 8px; margin: 22px auto 0; max-width: 900px; box-shadow: var(--shadow-2); color: var(--ink); text-align: start }
.sbar .f { position: relative; display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 54px }
.sbar .f svg { width: 20px; height: 20px; color: var(--mut); flex: none }
.sbar select, .sbar input { border: 0; background: transparent; font-size: 16px; min-height: 52px; width: 100%; outline: none; color: var(--ink) }
.sbar .f.type { flex: 0 0 190px } .sbar .f.gov { flex: 0 0 190px } .sbar .f.q { flex: 1; min-width: 0 }
.sbar .go { flex: 0 0 64px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center }
.sbar .go svg { width: 24px; height: 24px }
.sbar .sugg { top: calc(100% + 6px) }
@media (max-width: 760px) { .sbar { flex-wrap: wrap } .sbar .f.type, .sbar .f.gov { flex: 1 1 45% } .sbar .f.q { flex: 1 1 100% } .sbar .go { flex: 1 1 100%; height: 52px; background: var(--navy); font-weight: 700; font-size: 17px } .sbar .go::after { content: "بحث"; margin-inline-start: 6px } .sbar .go { display: flex; justify-content: center; align-items: center } }
.feats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 760px; margin: 34px auto 0 }
.feats4 div { display: grid; justify-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-shadow: 0 2px 8px rgba(0,0,0,.5) }
.feats4 svg { width: 34px; height: 34px }
@media (max-width: 480px) { .feats4 { grid-template-columns: repeat(2, 1fr); margin-top: 22px; font-size: 14px } }

/* أقسام الرئيسية */
.sec { max-width: 1240px; margin: 0 auto; padding: 38px 16px 6px }
.sec h2 { font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 12px }
.sec h2 a { margin-inline-start: auto; font-size: 15px; font-weight: 700; text-decoration: none }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px }
.cat { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); color: #fff; text-decoration: none; background: #ccd }
.cat img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s }
.cat:hover img { transform: scale(1.05) }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,18,36,.72)) }
.cat b { position: absolute; bottom: 12px; inset-inline-start: 14px; z-index: 1; font-size: 20px }
.cat small { position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 1; font-size: 13px; color: #e6eaf2 }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 560px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 10px } .cat b { font-size: 17px } }
@media (prefers-reduced-motion: reduce) { .cat img { transition: none } }

/* ===== بطاقة العقار ===== */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px }
.pcard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid #eef1f6; transition: box-shadow .2s, transform .2s }
.pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px) }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none } .pcard:hover { transform: none } }
.pph { position: relative; aspect-ratio: 16 / 10; background: #dfe5ee; overflow: hidden }
.pph img { width: 100%; height: 100%; object-fit: cover; display: block }
.pph .demo { position: absolute; bottom: 8px; inset-inline-end: 8px; font-size: 11.5px; background: rgba(8,18,36,.62); color: #fff; padding: 1px 8px; border-radius: 6px }
.ptag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--green) }
.ptag.rent { background: var(--blue) } .ptag.daily { background: var(--gold); color: var(--navy-2) } .ptag.rto { background: #6b46c1 }
.pfav { 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; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.15) }
.pfav svg { width: 20px; height: 20px }
.pbody { padding: 14px 16px 16px; display: grid; gap: 6px }
.pbody h3 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45 }
.pprice { font-size: 22px; font-weight: 700; color: var(--green); direction: ltr; text-align: right; font-family: 'Segoe UI', Arial, var(--font) }
.pprice small { font-size: 15px; font-weight: 600; font-family: var(--font) }
.pfacts { display: flex; gap: 8px; flex-wrap: wrap; color: var(--text); font-size: 14px }
.pfacts span { display: inline-flex; align-items: center; gap: 5px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 2px 9px }
.pfacts svg { width: 16px; height: 16px; color: var(--navy) }
.ploc { display: flex; align-items: center; gap: 5px; color: var(--mut); font-size: 14px }
.ploc svg { width: 15px; height: 15px; flex: none }
.pbadges { display: flex; gap: 5px; flex-wrap: wrap }
.pbadges span { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--green-s); color: var(--green) }
.pbadges span.b { background: var(--blue-s); color: var(--blue) } .pbadges span.r { background: #fde8e6; color: #b42318 } .pbadges span.g { background: var(--gold-s); color: #8a6200 }

/* ===== صفحة العقارات ===== */
.shead { background: #fff; border-bottom: 1px solid var(--line) }
/* الخريطة أول عمود (يمين) بالوضعين، زي التصميم */
.slay { max-width: 1400px; margin: 0 auto; padding: 18px 16px 24px; display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 20px; align-items: start }
.slay.mapmode { grid-template-columns: minmax(0, 1fr) 310px }
.mcard { position: absolute; bottom: 52px; inset-inline: 12px; z-index: 6; max-width: 420px; margin-inline-start: auto }
.mcard .pcard { flex-direction: row } .mcard .pph { aspect-ratio: auto; width: 130px; flex: none } .mcard .pbody { padding: 10px 12px } .mcard .pbody h3 { font-size: 15px } .mcard .pprice { font-size: 18px } .mcard .pfacts, .mcard .pbadges { display: none }
.mcard .x { position: absolute; top: -10px; inset-inline-end: -6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer }
.stitle { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px }
.stitle h1 { font-size: 22px; font-weight: 700 }
.stitle span { color: var(--mut) }
.stabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; box-shadow: var(--shadow) }
.stabs button { border: 0; background: transparent; border-radius: 10px; padding: 8px 20px; font-weight: 700; cursor: pointer; color: var(--text); font-size: 15px; display: inline-flex; gap: 6px; align-items: center }
.stabs button[aria-pressed="true"] { background: var(--navy); color: #fff }
.stools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 16px }
.ssort { display: flex; align-items: center; gap: 6px; color: var(--mut); font-size: 14px }
.ssort select { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px 10px; font-size: 14px }
.smap { position: sticky; top: 88px; height: calc(100vh - 110px); min-height: 460px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #e8ece4 }
.slay.mapmode .smap { height: calc(100vh - 110px) }
.smap .mv { position: absolute; inset: 0 }
.mtog { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 5; display: grid; gap: 8px }
.mtog button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; color: var(--navy); box-shadow: var(--shadow) }
.mtog button.on { background: var(--navy); color: #fff }
.mtog svg { width: 18px; height: 18px }
.mtog .mob { display: none }
@media (max-width: 980px) { .mtog #toMap, .mtog #toList { display: none } .mtog .mob { display: inline-flex } }
.mleg { position: absolute; bottom: 0; inset-inline: 0; z-index: 5; background: rgba(255,255,255,.95); display: flex; justify-content: center; gap: 18px; padding: 10px; font-size: 13px; font-weight: 600; flex-wrap: wrap }
.mleg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 5px; vertical-align: 0 }
.fside { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 16px; position: sticky; top: 88px }
.fside h2 { font-size: 18px }
.fside .grp { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px }
.fside .grp > b { font-size: 15px }
.fside label.cb { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer }
.fside label.cb input { width: 20px; height: 20px; accent-color: var(--navy) }
.fside .two { display: flex; gap: 8px }
.fside .two input, .fside select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 15px; background: #fff; min-width: 0 }
.fside .sq { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px }
.fside .sq input { border: 0; padding: 10px 0; outline: none; width: 100%; font-size: 15px; background: transparent }
.fside .sq svg { width: 18px; height: 18px; color: var(--mut) }
.fside .btns { display: flex; gap: 8px }
.fside .btns .btn { flex: 1; min-height: 46px }
.range { position: relative; height: 28px }
.range input { position: absolute; inset: 0; width: 100%; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; margin: 0 }
.range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer }
.range .tr { position: absolute; top: 12px; inset-inline: 0; height: 4px; border-radius: 4px; background: var(--line) }
.range .fill { position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--navy) }
.rvals { display: flex; justify-content: space-between; color: var(--mut); font-size: 13.5px; direction: ltr }
.fopen { display: none }
@media (max-width: 980px) {
  .slay, .slay.mapmode { grid-template-columns: minmax(0, 1fr) }
  .slay .smap { display: none } .slay.mapmode .smap { display: block; position: relative; top: 0; height: 70vh }
  .slay.mapmode .pgrid, .slay.mapmode .more { display: none }
  .fside { position: static } .fside[data-closed] { display: none } .fopen { display: inline-flex }
}
.mobtog { display: none }
@media (max-width: 980px) { .mobtog { display: inline-flex; position: fixed; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; margin: auto; width: max-content; z-index: 25 } }

/* ===== صفحة الإعلان ===== */
.dwrap { max-width: 1240px; margin: 0 auto; padding: 16px }
.dback svg { width: 20px; height: 20px }
.dback { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 600; margin-bottom: 12px }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start }
.dleft { display: grid; gap: 16px; min-width: 0 }
/* الجوال: الصور، بعدها العنوان والسعر، بعدها الموقع وبطاقة الأرض */
@media (max-width: 900px) { .dgrid { grid-template-columns: minmax(0, 1fr) } .dleft { display: contents } .dgal { order: 1 } .dside { order: 2 } .dleft > .dcard { order: 3 } }
.dmain { position: relative; border-radius: 18px; overflow: hidden; background: #dfe5ee; aspect-ratio: 16 / 10; box-shadow: var(--shadow) }
.dmain img { width: 100%; height: 100%; object-fit: cover; display: block }
.dmain .nx { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; font-size: 20px; color: var(--navy) }
.dmain .nx.p { inset-inline-start: 10px } .dmain .nx.n { inset-inline-end: 10px }
.dthumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px }
.dthumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: #dfe5ee }
.dthumbs button[aria-current="true"] { border-color: var(--gold) }
.dthumbs img { width: 100%; height: 100%; object-fit: cover; display: block }
.dside { display: grid; gap: 16px }
.dhead { display: flex; align-items: flex-start; gap: 12px }
.dhead h1 { font-size: 27px; font-weight: 700; margin-inline-end: auto }
.dhead .ptag { position: static; flex: none; border-radius: 999px; padding: 4px 16px; font-size: 14px }
.dprice { font-size: 30px; font-weight: 700; color: var(--gold); direction: ltr; text-align: right; font-family: 'Segoe UI', Arial, var(--font) }
.dprice small { font-size: 17px; font-family: var(--font) }
.dfacts { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.dfacts div { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px; font-weight: 600; border-inline-end: 1px solid var(--line); font-size: 15px }
.dfacts div:last-child { border-inline-end: 0 }
.dfacts svg { width: 22px; height: 22px; color: var(--navy) }
.dfacts b { font-size: 19px }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow) }
.dcard h2 { font-size: 18px; margin-bottom: 8px }
.dfeat { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px }
.dfeat div { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 14px; font-weight: 600; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px }
.dfeat svg { width: 26px; height: 26px; color: var(--blue) }
.dbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.dbtns .btn { min-height: 54px; font-size: 17px }
.dloc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch }
.dloc .mini { margin: 0; height: 100%; min-height: 180px; border-radius: 12px; position: relative }
.dloc .mini a { position: absolute; bottom: 10px; inset-inline: 10px; z-index: 3; text-align: center; background: #fff; border-radius: 10px; padding: 6px; font-size: 13.5px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow) }
@media (max-width: 560px) { .dloc { grid-template-columns: 1fr } .dfacts b { font-size: 16px } .dhead h1 { font-size: 22px } .dprice { font-size: 26px } }
.contact-sheet { display: grid; gap: 10px; margin-top: 4px }

/* ===== المكاتب ومن نحن ===== */
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px }
.ocard { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 8px; text-decoration: none; color: inherit; border: 1px solid #eef1f6 }
.ocard .av { width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-size: 24px; font-weight: 700 }
.ocard b { font-size: 18px }
.pagehead { background: var(--navy); color: #fff; padding: 34px 0 30px }
.pagehead h1 { font-size: 30px }
.kick { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--gold-2); margin-bottom: 6px }
.company { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff; border-radius: 16px; padding: 22px 22px 24px; box-shadow: var(--shadow) }
.company h2 { font-size: 24px; margin-bottom: 10px; color: #fff } .company h2 em { font-style: normal; color: var(--gold-2) }
.company p { color: #dbe3ef } .company a:not(.btn) { color: var(--gold-2) } .pagehead p { margin: 6px 0 0; color: #c9d4e4 }

/* الفوتر */
.foot2 { background: var(--navy-2); color: #c9d4e4; margin-top: 46px; padding: 34px 16px 24px }
.foot2 .in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px }
.foot2 a { color: #e6ecf5; text-decoration: none; display: block; padding: 3px 0; font-size: 15px }
.foot2 b { color: #fff; display: block; margin-bottom: 6px }
.foot2 .cp { max-width: 1240px; margin: 22px auto 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; font-size: 13.5px }
@media (max-width: 760px) { .foot2 .in { grid-template-columns: 1fr 1fr } .foot2 .in > :first-child { grid-column: 1 / -1 } }

/* الصفحات القديمة بالترويسة الجديدة: الهيرو الكحلي بلا نقشة */
.hero { background: var(--navy) }
.hero::before { opacity: .55 }
.tile[aria-pressed="true"] { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy-2) }

/* الجوال: آخر نوع (لما العدد فردي) بياخد السطر كله، وعنوان القسم ما بينكسر */
@media (max-width: 560px) { .cats .cat:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 8 / 3 } .sec h2 { flex-wrap: wrap; font-size: 22px } .sec h2 a { font-size: 14px } }
@media (min-width: 820px) { .assist { inset-inline-start: auto; inset-inline-end: 24px } }
/* خريطة الرئيسية */
.hmap { position: relative; height: 440px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #e8ece4 }
.hmap .mv { position: absolute; inset: 0 }
.hhint { margin: 10px 0 0; color: var(--mut); font-size: 15px }
@media (max-width: 640px) { .hmap { height: 400px } }
/* بطاقة الأرض: تنبيه (أوامر الاحتلال، جوّا مستعمرة) */
.land .warn { color: #b42318; font-weight: 700 }
.land dd small { color: var(--mut); font-weight: 500 }
/* سطر عن البلد بالبحث */
.tline { color: var(--mut); font-size: 14.5px; margin: -4px 0 10px }
