/* سمسار: كحلي وذهبي (عائلة gisplatform). القاعدة الأولى السهولة: خط كبير، أزرار كبيرة، مهمة وحدة بكل شاشة. */
@import url(fonts.css);
:root {
  --navy: #0b3a55; --navy-2: #072a3e; --navy-3: #0e4766; --gold: #b7821a; --gold-2: #d4a23d; --gold-s: #f8edd4;
  --olive: #4c7a37; --olive-s: #e6f0de; --red: #b42318; --red-s: #fde8e6; --wa: #1f8f4e;
  --ink: #12222e; --text: #2c3e4a; --mut: #5f6f78; --line: #e2e8e6; --bg: #f3f5f4; --card: #fff; --soft: #f8faf9;
  --r: 18px; --shadow: 0 6px 20px rgba(16, 40, 55, .08);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --tatreez: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' fill='%23e2b65a' fill-opacity='.2'%3E%3Cpath d='M20.5 6h3v3h-3zM16.5 10h3v3h-3zM24.5 10h3v3h-3zM12.5 14h3v3h-3zM20.5 14h3v3h-3zM28.5 14h3v3h-3zM8.5 20.5h3v3h-3zM16.5 20.5h3v3h-3zM20.5 20.5h3v3h-3zM24.5 20.5h3v3h-3zM32.5 20.5h3v3h-3zM12.5 27h3v3h-3zM20.5 27h3v3h-3zM28.5 27h3v3h-3zM16.5 31h3v3h-3zM24.5 31h3v3h-3zM20.5 35h3v3h-3z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) }
a { color: var(--navy) }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px }
[hidden] { display: none !important }
.num { font-variant-numeric: tabular-nums }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px }
h1, h2, h3 { line-height: 1.35; margin: 0; text-wrap: balance }

/* الترويسة */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px) }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 60px }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 24px; margin-inline-end: auto }
.logo svg { width: 34px; height: 34px }
.logo i { font-style: normal; color: var(--gold-2) }
.top a.tb { color: #fff; text-decoration: none; font-weight: 600; padding: 7px 12px; border-radius: 12px; position: relative; font-size: 15px }
.top a.tb:hover { background: rgba(255,255,255,.08) }
.top a.add { background: linear-gradient(145deg, var(--gold-2), var(--gold)); }
.dot { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; font-weight: 700 }

/* شريط تحت للجوال: خمس كبسات بس */
.bnav { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: flex; align-items: flex-end; padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)); backdrop-filter: blur(8px) }
.bnav a { flex: 1; text-align: center; text-decoration: none; color: var(--mut); font-size: 12.5px; font-weight: 600; display: grid; justify-items: center; gap: 1px; position: relative }
.bnav a svg { width: 24px; height: 24px }
.bnav a.on { color: var(--navy) }
.bnav a.plus svg { width: 54px; height: 54px; padding: 14px; margin-top: -30px; border-radius: 50%; background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 6px 14px rgba(183,130,26,.45), 0 0 0 4px #fff }
.bnav a.plus { color: var(--gold) }
.bnav .dot { inset-inline-end: calc(50% - 22px) }
@media (min-width: 820px) { .bnav { display: none } body { padding-bottom: 0 } }
@media (max-width: 819px) { .top .tb { display: none } }

/* أزرار */
.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: 17px; cursor: pointer; text-decoration: none; background: var(--navy); color: #fff; min-height: 50px }
.btn.gold { background: linear-gradient(145deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 14px rgba(183,130,26,.3) }
.btn.wa { background: var(--wa) }
.btn.light { background: #e8eef2; color: var(--navy) }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line) }
.btn.block { width: 100% }
.btn:disabled { opacity: .5; cursor: default }
.btn.sm { padding: 7px 14px; min-height: 40px; font-size: 15px; border-radius: 12px }

/* الواجهة الرئيسية */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding-block: 26px 34px }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--tatreez); background-size: 44px; -webkit-mask-image: linear-gradient(to left, #000, transparent 80%); mask-image: linear-gradient(to left, #000, transparent 80%) }
.hero .wrap { position: relative }
.hero h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 700 }
.hero h1 em { font-style: normal; color: var(--gold-2) }
.hero p { margin: 6px 0 0; color: #c9d7de }
.ask { margin-top: 18px; display: grid; gap: 12px }
.ask .q { font-weight: 700; color: var(--gold-2); font-size: 16px }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px }
.tile { border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 16px; padding: 12px 10px; font-weight: 700; cursor: pointer; text-align: center; font-size: 16px; line-height: 1.4 }
.tile span { display: block; font-size: 26px; line-height: 1.2 }
.tile[aria-pressed="true"] { border-color: var(--gold-2); background: var(--gold-2); color: var(--navy-2) }
.where { display: flex; gap: 10px; flex-wrap: wrap }
.where .field { flex: 1 1 260px }

/* حقول */
.field { position: relative }
.field input, .field select, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 11px 14px; background: #fff; font-size: 17px; min-height: 52px; color: var(--ink) }
.field textarea { min-height: 110px; resize: vertical }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none }
.field label, .lbl { display: block; font-weight: 700; margin-bottom: 4px; font-size: 16px }
.hint { color: var(--mut); font-size: 14.5px; margin-top: 3px }
.sugg { position: absolute; top: 100%; inset-inline: 0; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-top: 4px; max-height: 300px; overflow-y: auto; color: var(--ink) }
.sugg button { display: block; width: 100%; text-align: start; border: 0; background: none; padding: 10px 14px; cursor: pointer; font-size: 16px }
.sugg button small { color: var(--mut) }
.sugg button:hover, .sugg button.on { background: var(--soft) }

/* النتائج */
.bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 10px }
.bar h2 { font-size: 20px; margin-inline-end: auto }
.bar .cnt { color: var(--mut); font-size: 15px; display: block; font-weight: 500 }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none }
.chips::-webkit-scrollbar { display: none }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff }
.hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff }
.hero .chip[aria-pressed="true"] { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy-2) }
.notify { display: flex; align-items: center; gap: 12px; background: var(--gold-s); border-radius: var(--r); padding: 12px 16px; margin: 6px 0 14px }
.notify b { display: block }
.notify span { color: var(--text); font-size: 15px }
.notify .btn { margin-inline-start: auto; flex: none }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px }
.card { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit }
.card .ph { position: relative; aspect-ratio: 16 / 10; background: #dfe6e3; overflow: hidden }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block }
.card .ph .noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 54px; background: linear-gradient(160deg, #e9eee9, #d9e2dd) }
.badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap }
.bdg { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--navy) }
.bdg.gold { background: var(--gold); color: #fff }
.bdg.olive { background: var(--olive); color: #fff }
.bdg.red { background: var(--red); color: #fff }
.card .in { padding: 12px 14px 14px; display: grid; gap: 2px }
.price { font-size: 22px; font-weight: 700; color: var(--navy) }
.price small { font-size: 14px; color: var(--gold); font-weight: 600 }
.meta { color: var(--mut); font-size: 15px }
.facts { display: flex; gap: 12px; flex-wrap: wrap; font-size: 15px }
.empty { text-align: center; padding: 40px 16px; color: var(--mut) }
.empty b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px }
.more { display: flex; justify-content: center; margin: 18px 0 }
.mapbox { height: 62vh; min-height: 380px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #e9ece6 }
.tog { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; margin: auto; width: max-content; z-index: 25; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.2) }
@media (min-width: 820px) { .tog { bottom: 24px } }

/* صفحة الإعلان */
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0 0 22px 22px; background: #dfe6e3; scrollbar-width: none }
.gal::-webkit-scrollbar { display: none }
.gal img, .gal .noimg { flex: none; width: 100%; aspect-ratio: 16 / 10; max-height: 460px; object-fit: cover; scroll-snap-align: center }
.gal .noimg { display: grid; place-items: center; font-size: 80px }
.det { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; margin-top: 16px }
@media (max-width: 819px) { .det { grid-template-columns: minmax(0, 1fr) } }
.box { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow) }
.box h2 { font-size: 19px; margin-bottom: 8px }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 }
.kv dt { color: var(--mut) }
.kv dd { margin: 0; font-weight: 600 }
.land { background: linear-gradient(160deg, #fff, #f8f3e6); border: 1px solid #ecdcb4 }
.land h2 { color: var(--navy) }
.note { background: var(--gold-s); border-radius: 12px; padding: 10px 12px; font-size: 15px; margin-top: 10px }
.src { color: var(--mut); font-size: 13.5px; margin-top: 8px }
.contact { display: grid; gap: 10px }
.sticky { position: sticky; top: 76px; display: grid; gap: 14px; align-self: start }
.mini { height: 220px; border-radius: 14px; overflow: hidden; margin-top: 10px; background: #e9ece6 }

/* أضف إعلان: خطوة بكل شاشة */
.steps { display: flex; gap: 6px; margin: 16px 0 }
.steps i { flex: 1; height: 6px; border-radius: 6px; background: var(--line) }
.steps i.on { background: var(--gold) }
.step h1 { font-size: 26px; margin-bottom: 4px }
.step > p { color: var(--mut); margin: 0 0 14px }
.big { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px }
.big button { border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 8px; font-weight: 700; cursor: pointer; font-size: 16px; line-height: 1.35 }
.big button span { display: block; font-size: 30px }
.big button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff }
.pickmap { height: 52vh; min-height: 340px; border-radius: 20px; overflow: hidden; position: relative; background: #e9ece6 }
.maphint { position: absolute; top: 10px; inset-inline: 10px; z-index: 5; background: rgba(11,58,85,.92); color: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; font-size: 15px; pointer-events: none }
.found { background: var(--olive-s); border-radius: 16px; padding: 12px 14px; margin-top: 12px }
.found b { color: var(--olive) }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px }
.seg { display: inline-flex; background: #e6ebe9; border-radius: 14px; padding: 4px; gap: 4px; flex-wrap: wrap }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: 16px }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px }
.shots .s { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #dfe6e3 }
.shots .s img { width: 100%; height: 100%; object-fit: cover }
.shots .s button { position: absolute; top: 4px; inset-inline-end: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer }
.shots label.cam { aspect-ratio: 1; border: 2px dashed var(--navy); border-radius: 14px; display: grid; place-items: center; text-align: center; font-weight: 700; color: var(--navy); cursor: pointer; line-height: 1.3; background: #fff }
.shots label.cam input { display: none }
.feats { display: flex; flex-wrap: wrap; gap: 8px }
.check { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; font-weight: 600 }
.check input { width: 22px; height: 22px; accent-color: var(--navy) }
.nav2 { display: flex; gap: 10px; margin: 20px 0 10px }
.nav2 .btn { flex: 1 }
.sumry { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow) }

/* الحساب */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0; scrollbar-width: none }
.tabs::-webkit-scrollbar { display: none }
.tabs button { flex: none; border: 0; background: #fff; border-radius: 12px; padding: 9px 16px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.05); position: relative }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff }
.list { display: grid; gap: 10px }
.item { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; flex-wrap: wrap }
.item .t { flex: 1 1 220px; min-width: 0 }
.item .t b { display: block }
.item .t span { color: var(--mut); font-size: 15px }
.item.new { border-inline-start: 5px solid var(--gold) }
.login { max-width: 440px; margin: 30px auto; display: grid; gap: 14px }
.google { background: #fff; color: var(--ink); border: 2px solid var(--line) }
.or { text-align: center; color: var(--mut); font-size: 15px }
.code { letter-spacing: 10px; text-align: center; font-size: 26px !important; font-weight: 700 }
.pill { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--mut); white-space: nowrap }
.pill.ok { background: var(--olive-s); color: var(--olive) }
.pill.wait { background: var(--gold-s); color: var(--gold) }
.pill.no { background: var(--red-s); color: var(--red) }
fieldset { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 12px }
legend { font-weight: 700; font-size: 18px; margin-bottom: 6px; padding: 0 }
.lock { background: var(--soft); border: 1px dashed var(--line); border-radius: 16px; padding: 12px 14px }

/* رسالة سريعة */
.toast { position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); inset-inline: 16px; margin: auto; max-width: 440px; z-index: 60; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 600 }
.toast.ok { background: var(--olive) }
.toast.err { background: var(--red) }
.foot { color: var(--mut); font-size: 14px; text-align: center; padding: 30px 16px }
.foot a { color: var(--mut) }

/* المساعد: فقاعات وكبسات */
.assist { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 16px; z-index: 26; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.2) }
@media (min-width: 820px) { .assist { bottom: 24px } }
.askbox { position: fixed; z-index: 50; inset-inline: 0; bottom: 0; margin: auto; max-width: 480px; height: min(82vh, 640px); background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden }
@media (min-width: 820px) { .askbox { inset-inline: auto 24px; bottom: 24px; border-radius: 22px } }
.askhd { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 8px }
.askhd span { color: #c9d7de; font-size: 13px; margin-inline-end: auto }
.askhd button { border: 0; background: none; color: #fff; font-size: 20px; cursor: pointer; padding: 4px 8px }
.asklog { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; line-height: 1.6 }
.msg.bot { background: #fff; align-self: flex-start; border-start-start-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06) }
.msg.me { background: var(--navy); color: #fff; align-self: flex-end; border-start-end-radius: 4px }
.qr { display: flex; flex-wrap: wrap; gap: 6px }
.qr > button { border: 2px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: 15px }
.askin { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); background: #fff; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) }
.askin input { flex: 1; border: 2px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 16px; min-width: 0 }
.askin button { border: 0; background: var(--gold); color: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer }

/* روابط الواجهة: «بدّي»، سكن الطلاب، دليل السعر، اشتري أرض بأمان */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 18px 0 6px }
.lk { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); border: 0; text-align: start; cursor: pointer; font: inherit }
.lk span { font-size: 30px }
.lk b { display: block; color: var(--navy) }
.lk small { color: var(--mut); font-size: 14px; line-height: 1.5; display: block }
.big-n { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.1 }
.tbl { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow) }
.tbl table { border-collapse: collapse; width: 100%; min-width: 420px }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start }
.tbl th { color: var(--mut); font-size: 14px; background: var(--soft) }
.stepl { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px }
.stepl li { counter-increment: s; background: #fff; border-radius: 18px; padding: 14px 16px 14px 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 40px 1fr; gap: 10px }
.stepl li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-weight: 700 }
.stepl b { display: block; font-size: 18px }
.stepl p { margin: 4px 0 0 }
.pay { display: flex; gap: 6px; flex-wrap: wrap }
.pay span { font-size: 13px; padding: 3px 9px; border-radius: 10px; background: var(--soft); white-space: nowrap }
.pay .paid { background: var(--olive-s); color: var(--olive) }
.pay .late { background: var(--red-s); color: var(--red); font-weight: 700 }
.pay .soon { background: var(--gold-s); color: var(--gold) }
.pay button { border: 0; cursor: pointer; font: inherit; background: none; padding: 0 }
