/* JazGo — نظام أنماط الموقع.
   ألوان العلامة مأخوذة من صفحة الهبوط القائمة (web_public/index.html)
   حتى لا يصير الموقع الجديد علامةً ثانية. خصائص منطقية (inline-start/end)
   لا يمين/يسار: نفس الملف يخدم RTL وLTR بلا نسخة ثانية. */

:root {
  --teal: #0d7377;
  --teal-dark: #0a5c5f;
  --teal-tint: #e3f2f1;
  --gold: #d4a24c;
  --ink: #111827;
  --muted: #5b6472;
  --bg: #f7faf9;
  /* دفء مقصود بالواجهة وحدها: الخلفية الباردة تجعل الصور تبدو غريبة عنها،
     والدافئة تدمجها. التركوازي يبقى لون العلامة — نغيّر الأرضية لا الهوية. */
  --warm: #fbf6ef;
  --warm-2: #f6efe4;
  --card: #ffffff;
  --line: #e7ebee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
  --font-ar: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* 🔴 **إلزامية.** خاصية `hidden` بالـHTML ليست إلا `display:none` من ورقة
   أنماط المتصفح — وأي قاعدة نكتبها نحن تتغلّب عليها. و`.dest` عندها
   `display:flex`، فكانت البطاقات **تبقى ظاهرة** رغم `el.hidden = true`:
   تصفية التبويبات تحسب العدد صح («٤ وجهة») وتعرض الـ١٥٧ كلها. نفس الفخ
   ينتظر `.tabs` (flex) وأي عنصر نخفيه لاحقاً، فالقاعدة عامة لا موضعية. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en);
  line-height: 1.65;
  font-size: 16px;
}
html[lang="ar"] body { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* ── الترويسة ── */
.site-head {
  background: var(--card);
  border-block-end: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.head-spacer { flex: 1; }
.head-links { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.head-links a { color: var(--muted); }

/* ── أزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--line); }

/* ── البطل ── */
/* ── البطل ── */
.hero-band { background: linear-gradient(180deg, var(--warm) 0%, var(--warm-2) 62%, var(--bg) 100%); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px; align-items: center; padding-block: 52px 46px;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.18; margin: 0 0 14px;
  letter-spacing: -.02em; font-weight: 800;
}
.hero p.lede { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
.hero-search { margin-block-end: 14px; max-width: 460px; }
.hero-search .search { box-shadow: var(--shadow); border-color: #e2d9cc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-ghost { background: rgba(255,255,255,.7); }

/* الفسيفساء: ثلاثة أعمدة، الأوسط منزاح لأسفل ليكسر شبكيّة الصف */
.hero-art {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  align-items: start; min-width: 0;
}
.hero-art img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17,24,39,.10); background: var(--teal-tint);
}
.hero-art img:nth-child(3n+2) { margin-block-start: 26px; }
.hero-art img:nth-child(n+7) { opacity: .96; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 28px 24px; }
  /* على الجوال: شريط أفقي بدل شبكة — أقصر بالارتفاع وأصدق بالحركة */
  .hero-art {
    display: flex; gap: 10px; overflow-x: auto; padding-block-end: 6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .hero-art::-webkit-scrollbar { display: none; }
  .hero-art img { width: 140px; flex: none; scroll-snap-align: start; margin-block-start: 0 !important; }
  .hero-search { max-width: none; }
}

.country-hero {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-block-end: 26px;
}
.country-hero img.flag {
  width: 84px; height: 63px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line); flex: none;
}
.country-hero .meta { flex: 1; min-width: 220px; }
.country-hero h1 { margin: 0 0 6px; font-size: clamp(23px, 4.4vw, 32px); }
.from-price { font-size: 15px; color: var(--muted); }
.from-price strong { color: var(--teal); font-size: 21px; font-weight: 800; }

/* ── منتقي العملة ── */
.cur-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-block-end: 14px; font-size: 14px; }
.cur-bar span { color: var(--muted); }
.cur-btn {
  padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
}
.cur-btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ── جدول الباقات ── */
.plans { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.plans table { width: 100%; border-collapse: collapse; }
.plans th, .plans td { padding: 13px 16px; text-align: start; border-block-end: 1px solid var(--line); }
.plans thead th { background: #fbfdfd; font-size: 13px; color: var(--muted); font-weight: 700; }
.plans tbody tr:last-child td { border-block-end: 0; }
.plans td.price { font-weight: 800; color: var(--teal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plans td.vol { font-weight: 700; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; background: var(--teal-tint); color: var(--teal-dark); margin-inline-start: 7px;
}

/* ── شبكة الوجهات ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
/* صفٌّ لا بطاقة: علم · اسم · سعر — الثلاثة بمحاذاة واحدة عبر كل الصفوف،
   فتمسحها العين عمودياً بدل ما تقرأ كل بطاقة وحدها. */
.dest {
  background: var(--card); border: 1px solid transparent; border-radius: 12px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(17,24,39,.05);
}
.dest:hover { text-decoration: none; border-color: var(--teal); }
.dest img { width: 34px; height: 26px; border-radius: 5px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.dest-n { font-weight: 700; font-size: 15px; line-height: 1.3; min-width: 0; }
.dest-p {
  margin-inline-start: auto; font-weight: 800; font-size: 15px; color: var(--teal-dark);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ── أقسام ── */
/* ٣٢ لا ٤٠: ستة أقسام × ٨px فرق = نصف شاشة جوال مستردّة بلا خسارة تنفّس. */
section { margin-block: 32px; }
h2 { font-size: clamp(20px, 3.4vw, 26px); margin: 0 0 16px; }
h3 { font-size: 17px; margin: 0 0 6px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step .n {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-tint);
  color: var(--teal-dark); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-block-end: 10px;
}
.step p { margin: 0; color: var(--muted); font-size: 14px; }

details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; margin-block-end: 9px;
}
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; float: inline-end; color: var(--teal); font-weight: 800; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; border-radius: var(--radius); padding: 30px; text-align: center;
}
.cta h2 { color: #fff; margin-block-end: 8px; }
.cta p { color: rgba(255,255,255,.86); margin: 0 0 18px; }
.cta .btn-primary { background: #fff; color: var(--teal-dark); }
.cta .btn-primary:hover { background: #f0f0f0; }

.note { font-size: 13px; color: var(--muted); margin-block-start: 10px; }

nav.crumbs { font-size: 13px; color: var(--muted); padding-block: 16px 0; }
nav.crumbs a { color: var(--muted); }

.site-foot {
  border-block-start: 1px solid var(--line); background: var(--card);
  margin-block-start: 50px; padding-block: 26px; font-size: 14px; color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.site-foot a { color: var(--muted); }

@media (max-width: 560px) {
  .plans th, .plans td { padding: 11px 12px; font-size: 14px; }
  .hero { padding-block: 32px 24px; }
  .head-links { gap: 10px; font-size: 13px; }
}

/* أضيف مع فصل جداول المحدودة/غير المحدودة */
p.lede { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
h3.tbl-h { font-size: 16px; margin: 22px 0 10px; display: flex; align-items: center; gap: 4px; }
.plans + .plans, .note + .plans { margin-block-start: 12px; }

/* ── الشعار ── */
.brand-logo { width: 38px; height: 36px; object-fit: contain; flex: none; }

/* ── بطاقات الوجهات المطلوبة (صورة معلم حقيقية) ── */
/* 🔴 **شريط أفقي لا شبكة.**
   القياس: ١٨ بطاقة مربعة بشبكة = ٨٠٠px بسطح المكتب و**١٦٢٠px بالجوال** —
   أي شاشتان كاملتان لقسم واحد، فيهجر الزائر الصفحة قبل أن يصل «كل الوجهات»
   أصلاً. الشريط يعرض نفس الـ١٨ بارتفاع صفٍّ واحد مهما زاد عددها، والتمرير
   الأفقي إيماءة طبيعية بالجوال. */
.dstrip {
  display: flex; gap: 12px; overflow-x: auto; padding-block-end: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.dstrip::-webkit-scrollbar { height: 6px; }
.dstrip::-webkit-scrollbar-thumb { background: #cfd8d7; border-radius: 999px; }
.dstrip > .dcard { flex: 0 0 186px; scroll-snap-align: start; }
.dcard {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: #fff;
}
.dcard:hover { text-decoration: none; border-color: var(--teal); }
/* ⚠️ **مربّع، لا 3:2.** كل صور المعالم مربعة أصلاً (800×800 أو 1254×1254)،
   وإطارٌ بنسبة 3:2 كان يقصّ **ثلث الارتفاع** فتنقطع رؤوس الأبراج والقباب.
   الإطار يتبع مقاس الصورة، لا العكس. */
.dcard-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--teal-tint); }
.dcard-body {
  position: absolute; inset-block-end: 0; inset-inline: 0; padding: 12px 14px;
  background: linear-gradient(to top, rgba(6,28,30,.9) 12%, rgba(6,28,30,.55) 55%, rgba(6,28,30,0));
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dcard-flag { width: 26px; height: 20px; border-radius: 4px; object-fit: cover; flex: none; }
.dcard-n { font-weight: 800; font-size: 16px; color: #fff; }
.dcard-p { font-size: 13px; color: rgba(255,255,255,.9); margin-inline-start: auto; font-weight: 700; }

/* ── البحث ── */
.search-row { display: flex; gap: 10px; flex-wrap: wrap; margin-block-end: 12px; }
.search {
  flex: 1 1 260px; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: 15px;
}
.search:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.search::-webkit-search-cancel-button { cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dest-globe { width: 34px; height: 26px; display: grid; place-items: center; flex: none; }
#toggleAll { flex: none; }

@media (max-width: 560px) {
  .dstrip > .dcard { flex-basis: 150px; }
  .dcard-n { font-size: 14px; }
  .dcard-p { font-size: 12px; }
}

/* ── تنبيه التوافق قبل الشراء ── */
.compat {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--teal-tint); border: 1px solid #cfe6e4;
  border-radius: var(--radius); padding: 18px 20px;
}
.compat-txt { flex: 1; min-width: 220px; }
.compat h3 { margin: 0 0 4px; color: var(--teal-dark); }
.compat p { margin: 0; color: #33565a; font-size: 14px; }
.compat .btn-ghost { background: var(--card); border-color: #bcdedb; }

/* ── الصفحات القانونية ── */
.legal { max-width: 74ch; margin-block: 10px 40px; }
.legal h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 20px; }
.legal h2 { font-size: 19px; margin: 30px 0 10px; padding-block-end: 7px; border-block-end: 1px solid var(--line); }
.legal h3 { font-size: 16px; margin: 20px 0 6px; color: var(--teal-dark); }
.legal p { margin: 0 0 12px; color: #313a47; }
.legal ul { margin: 0 0 14px; padding-inline-start: 22px; color: #313a47; }
.legal li { margin-block-end: 5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }


/* ── قسم الوجهات: أرضية ملوّنة تفصله عن بقية الصفحة ── */
.dest-band { background: linear-gradient(180deg, #e8f2f0 0%, #dcebe8 100%); margin-block: 34px 0; }
.dest-band section { margin-block: 0; padding-block: 32px 36px; }
.dest-band .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dest-band .note { color: #33565a; }

.sec-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-block-end: 18px; }
.sec-head h2 { margin: 0 0 4px; }
.sec-head .sec-sub { margin: 0; color: #33565a; font-size: 14px; }
.sec-head .btn { margin-inline-start: auto; background: var(--card); border-color: #c5ded9; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 16px; }
.tab {
  border: 1px solid #c5ded9; background: rgba(255,255,255,.6); color: #2f5a5c;
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.tab-n {
  font-size: 12px; font-weight: 700; opacity: .75;
  background: rgba(0,0,0,.06); border-radius: 999px; padding: 1px 7px;
}
.tab[aria-selected="true"] .tab-n { background: rgba(255,255,255,.22); opacity: 1; }

@media (max-width: 560px) {
  .dest-band .grid { grid-template-columns: 1fr; }
  .sec-head .btn { margin-inline-start: 0; }
}

/* ── الأسئلة + الدعم: عمودان بدل قسمين متتاليين ── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.faq-list { min-width: 0; }
.faq-list h2 { margin-block-end: 14px; }

.support {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); text-align: center; position: sticky; top: 78px;
}
/* الرسمة تجي بخلفيتها الزخرفية من Storyset — فلا نضيف لها إطاراً ولا ظلاً،
   وإلا صار شكلان متداخلان: خلفيتها هي وحدود البطاقة. */
.support-art { width: 100%; max-width: 230px; margin: 0 auto 12px; height: auto; object-fit: contain; }
.support h3 { margin: 0 0 6px; font-size: 18px; }
.support p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.support-actions { display: flex; flex-direction: column; gap: 9px; }
.support-actions .btn { width: 100%; }

@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 20px; }
  .support { position: static; }
  .support-art { max-width: 180px; }
  .support-actions { flex-direction: row; flex-wrap: wrap; }
  .support-actions .btn { width: auto; flex: 1 1 140px; }
}

/* ── الظهور عند الوصول ──
   الإخفاء مشروط بـ`.reveal-on` اللي تضيفها جافاسكربت: بلا جافاسكربت لا
   إخفاء أصلاً، فالمحتوى ظاهر للزاحف ولمن عطّلها. */
.reveal-on .reveal { opacity: 0; transform: translateY(14px); }
.reveal-on .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
/* تتابع خفيف بين الخطوات الثلاث — تُقرأ كتسلسل لا كوميض واحد */
.reveal-on .steps .reveal:nth-child(2).in { transition-delay: .09s; }
.reveal-on .steps .reveal:nth-child(3).in { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── رسمة الخطوة ──
   ⚠️ **`contain` لا `cover`.** رسمات Storyset مربعة (`viewBox 0 0 500 500`)،
   و`cover` بإطار عريض يقصّها — والقصّ برسمة أسوأ منه بصورة: الصورة تحتمل
   قصّ حوافّها، والرسمة **مؤلَّفة** ليُرى كلّها، فقصّها يقطع رأس الطائرة أو
   قدم الشخصية. الإطار يتبع الرسمة، لا العكس (نفس درس بطاقات المعالم). */
.step-art {
  width: 100%; aspect-ratio: 1/1; object-fit: contain;
  margin-block-end: 8px; max-height: 190px;
}
.step.has-art { padding-block-start: 14px; }

/* ── قائمة الإكمال التلقائي بالبطل ── */
.hero-search { position: relative; }
.qbox {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(17,24,39,.14); overflow: hidden; max-height: 340px; overflow-y: auto;
}
.qbox-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  color: var(--ink); border-block-end: 1px solid var(--line); font-size: 15px; font-weight: 600;
}
.qbox-row:hover, .qbox-row:focus { background: var(--teal-tint); text-decoration: none; }
.qbox-p { margin-inline-start: auto; color: var(--teal-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.qbox-all { display: block; padding: 11px 16px; font-weight: 700; font-size: 14px; text-align: center; }
.qbox-none { margin: 0; padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }

/* شبكة صفحة الوجهات — ثلاثة أعمدة مثل المتاجر المنافسة */
.dest-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-block-end: 30px; }
.dest-grid .dest { border-color: var(--line); }
#destinations .sec-head h2 { margin-block-end: 0; }

/* ── رسمة فحص التوافق ── */
.compat-art { width: 108px; height: 108px; flex: none; object-fit: contain; }

/* ── حالة «ما فيه نتائج» ──
   الرسمة تحمل الرسالة أسرع من سطر نصّي: يقرأ المستخدم «فاضي» بلمحة قبل أن
   يقرأ الكلمات، فيدرك أن المشكلة ببحثه لا بالصفحة. */
.empty-state { text-align: center; padding-block: 26px 34px; }
.empty-art { width: 100%; max-width: 230px; height: auto; margin: 0 auto 10px; object-fit: contain; }
.empty-state p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 560px) {
  .compat-art { width: 84px; height: 84px; }
  .empty-art { max-width: 180px; }
}

/* ── إسناد الرسمات ──
   شرط رخصة Storyset المجانية: «يجب دائماً إضافة الإسناد». بالتذييل لا بصفحة
   رخص، لأن التذييل يظهر بالصفحات الـ٣٢٢ كلها — والشرط على كل استخدام.
   ورابط عادي بلا nofollow: الإسناد المقصود منه أن يصلهم، لا أن يُبطَل. */
.foot-credit { margin-block-start: 10px; padding-block-start: 10px; border-block-start: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-credit a { color: var(--muted); text-decoration: underline; }
