/* موقع نوّرتنا العام — ألوان الهوية من CLAUDE.md، وترتيب على طريقة Airbnb: نظيف، صور كبيرة، بحث واحد واضح. */
@font-face { font-family: Plex; src: url(/fonts/IBMPlexSansArabic-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/IBMPlexSansArabic-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/IBMPlexSansArabic-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Kufi; src: url(/fonts/ReemKufi-Variable.ttf) format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #FFF4F4;
  --surface: #FFFFFF;
  --border: #FFD6E0;
  --line: #EDE6E8;
  --green: #8BAE46;
  --on-green: #1E3A0C;
  --green-strong: #55752A;
  --sky: #5EABD6;
  --text: #1F2A24;
  --muted: #4A544D;
  --soft: #7A837D;
  --pink: #FB97B5;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(31, 42, 36, .08);
  --shadow-strong: 0 12px 36px rgba(31, 42, 36, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Plex, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Kufi, Plex, sans-serif; font-weight: 700; line-height: 1.3; margin: 0 0 .5em; }
h2 { font-size: clamp(22px, 3vw, 30px); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; padding-top: 80px; padding-bottom: 80px; }
section { margin: 56px auto; }
[hidden] { display: none !important; }

/* ---------- الرأس ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Kufi, sans-serif; font-weight: 700; font-size: 24px; color: var(--green-strong); }
.brand img { border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.nav a:hover { background: #F6F1F2; }
.nav .pill { background: var(--green); color: var(--on-green); }
.nav .pill:hover { background: #7DA03C; }
.lang { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 12px; cursor: pointer; }

/* ---------- البطل ---------- */
.hero { position: relative; margin: 0; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 22, .35), rgba(20, 26, 22, .55)), url(/img/hero.jpg) center/cover;
}
.hero-in { position: relative; color: #fff; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); max-width: 760px; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero p { font-size: clamp(16px, 2vw, 20px); max-width: 640px; margin: 0 0 32px; opacity: .95; }

/* ---------- البحث ---------- */
.search {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr auto; align-items: stretch;
  background: var(--surface); color: var(--text);
  border-radius: 999px; box-shadow: var(--shadow-strong); padding: 8px; gap: 0; max-width: 980px;
}
.search .f { display: flex; flex-direction: column; justify-content: center; padding: 8px 22px; border-radius: 999px; cursor: pointer; min-width: 0; position: relative; }
.search .f + .f::before { content: ''; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.search .f:hover { background: #F6F1F2; }
.search .f span { font-size: 12px; font-weight: 700; }
.search select, .search input { border: 0; background: transparent; padding: 2px 0; outline: none; color: var(--muted); width: 100%; min-width: 0; }
.go {
  display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--green); color: var(--on-green); font-weight: 700;
  border-radius: 999px; padding: 0 26px; min-height: 56px;
}
.go:hover { background: #7DA03C; }

/* ---------- الشرائح والشبكة ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 10px 20px; cursor: pointer; font-weight: 600; min-height: 44px;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.on { background: var(--green); border-color: var(--green); color: var(--on-green); box-shadow: 0 4px 14px rgba(139, 174, 70, .35); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; }
.card { display: block; }
.card .ph { position: relative; aspect-ratio: 20 / 19; border-radius: var(--radius); overflow: hidden; background: #EFE6E8; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .95);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.card .row { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-weight: 700; }
.card .rate { white-space: nowrap; font-weight: 600; }
.card .sub { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .price { margin-top: 4px; }
.card .price b { font-weight: 700; }
.empty { grid-column: 1 / -1; background: var(--surface); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--muted); }
.sk { border-radius: var(--radius); aspect-ratio: 20 / 19; background: linear-gradient(90deg, #F3EAEC 25%, #FBF5F6 50%, #F3EAEC 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- لماذا ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { background: var(--surface); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.why-card h3 { font-size: 19px; margin-top: 14px; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }
.why-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #EEF5E2; color: var(--green-strong); }

/* ---------- المدن ---------- */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.city {
  display: flex; align-items: flex-end; min-height: 92px; padding: 14px 16px; border-radius: 14px;
  font-family: Kufi, sans-serif; font-weight: 700; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 45% 52%), hsl(calc(var(--h) + 40) 50% 38%));
  transition: transform .2s ease, box-shadow .2s ease;
}
.city:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }

/* ---------- المضيف والتطبيق ---------- */
.host { background: var(--surface); margin: 72px 0; padding: 0; }
.host-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.host h2 { font-size: clamp(26px, 4vw, 42px); }
.host p { color: var(--muted); font-size: 18px; max-width: 520px; }
.host img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-strong); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; margin-top: 12px;
  border-radius: 14px; background: var(--green); color: var(--on-green); font-weight: 700;
}
.btn:hover { background: #7DA03C; }
.app { text-align: center; }
.app img { margin: 0 auto 16px; border-radius: 18px; box-shadow: var(--shadow); }
.app p { color: var(--muted); }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.store { background: var(--text); color: #fff; border-radius: 12px; padding: 12px 22px; font-weight: 600; opacity: .9; }

/* ---------- التذييل ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0 24px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; }
.foot p { color: var(--muted); font-size: 14px; max-width: 360px; }
.foot-links, .foot-cities { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.foot-cities { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; align-content: flex-start; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.copy { color: var(--soft); font-size: 13px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- صفحة المدينة ---------- */
.city-hero { margin: 0; padding: 40px 0 8px; }
.city-hero h1 { font-size: clamp(28px, 4.4vw, 46px); }
.city-hero p { color: var(--muted); max-width: 760px; margin-bottom: 28px; }
.crumb { color: var(--green-strong); font-weight: 600; display: inline-block; margin-bottom: 12px; }

/* ---------- صفحة العقار ---------- */
#listing { padding-top: 28px; }
#listing h1 { font-size: clamp(24px, 3.4vw, 34px); }
.meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: 20px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; background: #EFE6E8; }
.gallery img:first-child { grid-row: span 2; }
.gallery.one { grid-template-columns: 1fr; grid-template-rows: 440px; }
.gallery.one img:first-child { grid-row: auto; }
.gallery.three { grid-template-columns: 2fr 1fr; }
.l-body { display: grid; grid-template-columns: 1fr 380px; gap: 56px; margin-top: 36px; align-items: start; }
.l-sec { border-bottom: 1px solid var(--line); padding: 24px 0; }
.l-sec:first-child { padding-top: 0; }
.l-sec h2 { font-size: 22px; }
.l-sec p { white-space: pre-line; margin: 0; }
.host-row { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-weight: 700; font-size: 22px; flex: none; }
.ok { color: var(--green-strong); font-weight: 600; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; padding: 0; margin: 0; list-style: none; }
.feats li { display: flex; align-items: center; gap: 10px; }
.feats li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.box {
  position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow-strong);
}
.box .big { font-size: 24px; font-weight: 700; }
.box .line { display: flex; justify-content: space-between; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.box .btn { width: 100%; margin-top: 18px; }
.box small { display: block; color: var(--muted); margin-top: 12px; font-size: 13px; }
.map { width: 100%; height: 300px; border: 0; border-radius: var(--radius); margin-top: 8px; }
.rev { background: var(--surface); border-radius: 14px; padding: 16px; margin-top: 12px; }
.rev b { display: block; }
.skel { height: 440px; border-radius: 20px; background: linear-gradient(90deg, #F3EAEC 25%, #FBF5F6 50%, #F3EAEC 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: grid; place-items: center; cursor: zoom-out; }
.viewer img { max-width: 94vw; max-height: 90vh; object-fit: contain; }

/* ---------- الشروط والخصوصية ---------- */
.legal { padding: 40px 0; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal h2 { font-size: 21px; margin-top: 28px; }
.legal p { color: var(--muted); margin: 0 0 10px; }

/* ---------- الإنجليزية (يسار←يمين) ---------- */
[dir='ltr'] body { font-family: Plex, system-ui, sans-serif; }
/* Reem Kufi بلا حروف الكردية (ێ ڕ ۆ ڵ): العناوين الكردية بخط النص. */
html[lang='ckb'] h1, html[lang='ckb'] h2, html[lang='ckb'] h3, html[lang='ckb'] .city { font-family: Plex, sans-serif; }

/* ---------- الهاتف ---------- */
@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .l-body { grid-template-columns: 1fr; gap: 0; }
  .box { position: static; margin-top: 24px; }
  .host-in { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  section { margin: 40px auto; }
  .top-in { height: 64px; }
  .nav a:not(.pill) { display: none; }
  .nav .pill { padding: 8px 12px; font-size: 14px; }
  .brand { font-size: 21px; }
  .hero { min-height: 0; }
  .hero-in { padding-top: 40px; padding-bottom: 32px; }
  .search { grid-template-columns: 1fr 1fr; border-radius: 22px; padding: 10px; gap: 6px; }
  .search .f { border-radius: 14px; background: #F7F2F3; padding: 8px 14px; }
  .search .f + .f::before { display: none; }
  .search .f:first-child, .search .f.small { grid-column: 1 / -1; }
  .go { grid-column: 1 / -1; justify-content: center; border-radius: 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 280px; overflow-x: auto; display: flex; scroll-snap-type: x mandatory; border-radius: 16px; }
  .gallery img { flex: 0 0 100%; height: 280px; scroll-snap-align: center; }
  .feats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .search { grid-template-columns: 1fr 1fr; border-radius: 24px; }
  .go { grid-column: 1 / -1; justify-content: center; }
}
