/* ==========================================================================
   نزل — نظام تصميم موقع الزبائن
   الأسلوب: منصّات الحجز العالمية (Booking) — شريط علوي كحلي، صندوق بحث
   بإطار كهرماني، أقسام بيضاء بحواف رفيعة، بطاقات إقامة مضغوطة، تذييل غني.
   ملاحظة: أسماء الأصناف كما هي حتى لا تتأثر أي صفحة أو وظيفة قائمة.
   الألوان تأتي حيّة من لوحة الإدارة عبر متغيّرات تُحقن في <head>.
   ========================================================================== */

:root {
  /* الأزرق التشغيلي (الأزرار والروابط) والكحلي (الشريط العلوي والبطل) */
  --primary: #0071C2;
  --primary-dark: #00487A;
  --primary-soft: rgba(0, 113, 194, 0.10);
  --primary-glow: rgba(0, 113, 194, 0.22);
  --nav: #003580;
  --nav-2: #00224F;
  --accent: #FEBB02;

  --bg: #FFFFFF;
  --card: #FFFFFF;
  --surface-alt: #F5F5F5;
  --border: #E7E7E7;
  --border-strong: #D4D4D4;
  --border-focus: #0071C2;
  --text: #1A1A1A;
  --body: #3D3D3D;
  --muted: #6B6B6B;

  --ok: #008009;      /* أخضر العروض والأسعار المخفّضة */
  --warn: #B25E02;
  --bad: #CC0000;
  --star: #FEBB02;

  --r-card: 10px;
  --r-img: 8px;
  --r-field: 4px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 6px 18px rgba(0, 113, 194, 0.28);

  --header-h: 62px;
  --maxw: 1180px;

  --glass-bg: #FFFFFF;
  --glass-border: #E7E7E7;
}

html[data-theme="dark"] {
  --bg: #101820;
  --card: #182430;
  --surface-alt: #1E2C3A;
  --border: #2C3B4B;
  --border-strong: #3A4C5F;
  --text: #F2F6FA;
  --body: #C9D5E1;
  --muted: #8496A8;

  --nav: #06182F;
  --nav-2: #030F1F;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);

  --glass-bg: #182430;
  --glass-border: #2C3B4B;
}

/* ---------- الأساس ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 .75rem;
  color: var(--body);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

/* شريط تمرير أنيق وفاخر */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--border) 80%, var(--primary));
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- التخطيط ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.page {
  flex: 1;
  padding-block: 30px 50px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.spacer { flex: 1; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }

.hidden { display: none !important; }

/* يُخفى على الشاشات الضيّقة (روابط الشريط العلوي الثانوية) */
@media (max-width: 900px) {
  .d-none-sm { display: none !important; }
}

/* الشبكة المتجاوبة الحديثة */
.grid {
  display: grid;
  gap: 24px;
}

.grid-cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.grid > *, .split > * { min-width: 0; }

/* ---------- الرأس العلوي (Header) ----------
   شريط كحلي داكن يمتد بعرض الشاشة، يحوي الهوية وأزرار الحساب، ويليه
   صف تبويبات دائرية للتنقّل — تماماً كترتيب منصّات الحجز المعروفة. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav);
  color: #fff;
  transition: background 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand:hover { color: #fff; }

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand small {
  font-size: .6rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: .18em;
  font-weight: 700;
  margin-top: 1px;
  text-transform: uppercase;
}

/* صف التبويبات أسفل الشريط الكحلي */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 14px;
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

/* زر نصّي شفاف داخل الشريط الكحلي (العملة، اللغة، المساعدة…) */
.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-field);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-link-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* زر أبيض بارز (تسجيل الدخول / إنشاء حساب) */
.btn-onnav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--r-field);
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: .86rem;
  border: 1px solid #fff;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-onnav:hover { background: #E8F2FB; color: var(--primary-dark); }

/* النصّ الكامل هو الافتراضي؛ المختصر يظهر على الجوال فقط (قواعد الاستجابة أدناه). */
.btn-onnav .label-short { display: none; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-field);
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* الأزرار الأيقونية خارج الشريط الكحلي تبقى على هيئة بطاقة */
.card .icon-btn,
.modal .icon-btn,
.mp-zoom .icon-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--body);
}

.card .icon-btn:hover,
.modal .icon-btn:hover,
.mp-zoom .icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--card);
}

.icon-btn .badge {
  position: absolute;
  top: 1px;
  inset-inline-end: 1px;
  min-width: 18px;
  height: 18px;
  background: var(--bad);
  color: #fff;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--nav);
}

/* القائمة المنسدلة للبروفايل */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 12px);
  min-width: 250px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  z-index: 120;
  animation: dropdown-fade-in 0.2s ease;
  transform-origin: top left;
}

@keyframes dropdown-fade-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a, .dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--body);
  font-size: .9rem;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: start;
  transition: all 0.15s ease;
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
  background: var(--surface-alt);
  color: var(--primary);
  transform: translateX(-3px);
}

html[dir="ltr"] .dropdown-menu a:hover, html[dir="ltr"] .dropdown-menu button:hover {
  transform: translateX(3px);
}

.dropdown-menu .sep {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.dropdown-head {
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  background: var(--surface-alt);
  border-radius: 14px;
}

.dropdown-head strong {
  display: block;
  font-size: .98rem;
  color: var(--text);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--nav);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}

.avatar:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }

/* الصور الرمزية خارج الشريط الكحلي (صفحة الحساب مثلاً) */
.page .avatar,
.card .avatar {
  background: var(--primary-soft);
  color: var(--primary);
  border: 2px solid var(--border);
}

.avatar-lg {
  width: 104px;
  height: 104px;
  font-size: 2.2rem;
  border-width: 3px;
  box-shadow: var(--shadow);
}

/* ---------- الأزرار (Buttons) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--r-field);
  border: 1px solid transparent;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  line-height: 1.25;
  text-align: center;
}

.btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.btn:active { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.18); }

.btn:disabled, .btn.disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none !important;
}

.btn-ghost {
  background: var(--card);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 800;
}

.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #A30000; }

.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #006607; }

/* زر كهرماني للنداءات البارزة (نفس لون إطار صندوق البحث) */
.btn-accent {
  background: var(--accent);
  color: #1A1A1A;
  font-weight: 800;
}

.btn-accent:hover { background: #E5A800; color: #1A1A1A; }

.btn-sm {
  padding: 8px 16px;
  font-size: .82rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ---------- البطاقات (Cards) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-flat {
  box-shadow: none;
}

.card-pad-0 {
  padding: 0;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 18px;
}

.section-head h2, .section-head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
}

/* سطر وصفي تحت عنوان القسم */
.section-head .sub {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.section-head > div { min-width: 0; }

/* روابط «عرض الكل» فقط — استثناء الأزرار وإلا غلب لون النص الأخضر على خلفية
   الزر الخضراء (تخصيص .section-head a أعلى من .btn) فصار النص غير مقروء. */
.section-head a:not(.btn) {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-head a:not(.btn):hover {
  text-decoration: underline;
}

/* ---------- الشارات والحبوب (Chips & Badges) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--body);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.chip.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.chip-static { cursor: default; }
.chip-static:hover { border-color: var(--border-strong); color: var(--body); background: var(--card); }

.chips-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.chips-scroll::-webkit-scrollbar { display: none; }

.badge-tone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 800;
}

.badge-tone.ok { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-tone.warn { background: rgba(245, 158, 11, 0.14); color: #D97706; }
.badge-tone.bad { background: rgba(239, 68, 68, 0.12); color: #DC2626; }
.badge-tone.muted { background: var(--surface-alt); color: var(--muted); }
.badge-tone.info { background: var(--primary-soft); color: var(--primary); }

/* شارة التقييم: مربّع أزرق صريح بزاوية واحدة مستقيمة كما في منصّات الحجز */
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--nav);
  color: #ffffff;
  padding: 5px 9px;
  border-radius: 6px 6px 6px 0;
  font-size: .82rem;
  font-weight: 800;
  border: 0;
}

html[data-theme="dark"] .rating-pill { color: #fff; }

/* ---------- التبويبات (Tabs) ---------- */
.tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--surface-alt);
  padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.tabs a {
  padding: 9px 22px;
  border-radius: var(--r-pill);
  font-size: .88rem;
  font-weight: 700;
  color: var(--body);
  transition: all 0.2s ease;
}

.tabs a.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tabs a:hover {
  color: var(--primary);
}

/* ---------- الحقول والمدخلات (Inputs & Fields) ---------- */
.field { margin-bottom: 18px; }

.field > label, .label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.input, input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--r-field);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: var(--shadow-sm);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--card);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.75;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: left 18px center;
  padding-inline-start: 18px;
  padding-inline-end: 44px;
}

html[dir="ltr"] select {
  background-position: right 18px center;
}

.hint {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 6px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  user-select: none;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex-shrink: 0;
  border-radius: 6px;
  cursor: pointer;
}

.phone-field {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.phone-field .cc {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--body);
  direction: ltr;
  border-start-start-radius: var(--r-field);
  border-end-start-radius: var(--r-field);
  border-inline-end: 0;
}

.phone-field input {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  direction: ltr;
  text-align: start;
}

/* حقول رمز التحقق OTP */
.otp-boxes {
  display: flex;
  gap: 12px;
  justify-content: center;
  direction: ltr;
}

.otp-boxes input {
  width: 56px;
  height: 64px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: var(--r-field);
  padding: 0;
}

/* ---------- بطاقة الاستراحة الاحترافية (Resort Card) ---------- */
.resort-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.resort-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.resort-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-alt);
  overflow: hidden;
  display: block;
}

.resort-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resort-card:hover .thumb img {
  transform: scale(1.06);
}

.resort-card .thumb .ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 2.2rem;
}

.resort-card .fav {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.resort-card .fav:hover { background: rgba(0, 0, 0, 0.55); color: #fff; }
.resort-card .fav.on,
.resort-card .fav[aria-pressed="true"] { color: #FF3B30; }

/* شارة العرض/التمييز — أزرق صريح كشارات المنصّات */
.resort-card .flag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 10;
}

.resort-card .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.resort-card .title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  display: block;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.resort-card .title:hover { color: var(--primary-dark); text-decoration: underline; }

.resort-card .loc {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.resort-card .foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.price {
  font-weight: 800;
  color: var(--text);
  font-size: 1.12rem;
}

.price small {
  font-weight: 600;
  color: var(--muted);
  font-size: .72rem;
}

/* ---------- البانر الرئيسي (Hero & Searchbar) ----------
   البطل امتداد للشريط الكحلي بعرض الشاشة، وصندوق البحث يتدلّى من حافته
   السفلية بإطار كهرماني سميك — العنصر الأشهر في منصّات الحجز. */
.hero {
  background: var(--nav);
  color: #ffffff;
  padding: 34px 0 62px;
  margin-bottom: 46px;
  position: relative;
}

/* يمتد لعرض النافذة كاملاً حتى لو كان داخل .container */
.hero.hero-bleed {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
}

/* البطل أول عنصر في الصفحة: يُلغى الفراغ العلوي ليلتحم بالشريط الكحلي */
.page > .container > .hero:first-child { margin-top: -30px; }

.hero h1 {
  color: #ffffff;
  font-size: 2.3rem;
  margin-bottom: .35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 640px;
}

.hero .hero-inner { max-width: var(--maxw); margin-inline: auto; }

/* صورة خلفية اختيارية تُضبط من لوحة الإدارة */
.hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: .32;
  pointer-events: none;
}

.hero.has-image > * { position: relative; z-index: 1; }

.searchbar {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  background: var(--accent);
  padding: 4px;
  border-radius: 8px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-lg);
}

/* الصندوق يتدلّى من حافة البطل السفلية مع مسافة واضحة تفصله عن الكتلة الكحلية فوقه */
.hero + .searchbar,
.searchbar.searchbar-float {
  margin-top: -8px;
  margin-bottom: 32px;
}

.searchbar .grow { flex: 1 1 280px; }
.searchbar .cell { flex: 1 1 200px; }

.searchbar input,
.searchbar select {
  background: #ffffff;
  color: #1A1A1A;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  height: 52px;
  margin: 0;
}

.searchbar input:focus,
.searchbar select:focus {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.searchbar .btn {
  height: 52px;
  padding-inline: 34px;
  font-size: 1.02rem;
  font-weight: 800;
  flex: 0 0 auto;
}

html[data-theme="dark"] .searchbar input,
html[data-theme="dark"] .searchbar select {
  background: var(--card);
  color: var(--text);
}

@media (max-width: 768px) {
  .page > .container > .hero:first-child { margin-top: -20px; }
}

@media (max-width: 700px) {
  .hero { padding: 26px 0 48px; margin-bottom: 34px; }
  .hero h1 { font-size: 1.65rem; }
  .searchbar .btn { width: 100%; }
}

/* البانر الترويجي Carousel */
.banner-carousel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow);
}

.banner-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 21 / 7;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide .cap {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  padding: 32px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.4) 60%, transparent);
  color: #ffffff;
}

.banner-slide .cap h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.banner-slide .cap .small {
  color: rgba(255, 255, 255, 0.85);
  font-size: .92rem;
}

.banner-dots {
  position: absolute;
  bottom: 14px;
  inset-inline: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 10;
}

.banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dots span.on {
  background: #ffffff;
  width: 28px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 700px) {
  .banner-slide { aspect-ratio: 16 / 9; }
  .banner-slide .cap { padding: 20px; }
  .banner-slide .cap h3 { font-size: 1.15rem; }
}

/* ---------- معرض الصور (Gallery & Lightbox) ---------- */
.gallery {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 12px;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery .main { aspect-ratio: 16 / 10; }

.gallery .side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  background: var(--surface-alt);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.gallery .more { position: relative; overflow: hidden; }

.gallery .more span {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gallery .side img { aspect-ratio: 1; }
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-radius: var(--r-field);
  border: 1px solid var(--border);
}

.facility-item .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- التقويم التفاعلي (Calendar) ---------- */
.calendar { user-select: none; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 800;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-grid .dow {
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
  color: var(--muted);
  padding: 6px 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--surface-alt);
  color: var(--text);
  transition: all 0.15s ease;
}

.cal-day.empty { background: transparent; cursor: default; }

.cal-day.off {
  color: var(--muted);
  background: transparent;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: .45;
}

.cal-day:not(.off):not(.empty):hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.cal-day.sel {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.cal-day.in-range {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 6px;
}

.cal-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 14px;
}

.cal-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  margin-inline-end: 6px;
  vertical-align: -1px;
}

/* ---------- خريطة اختيار الموقع (OpenStreetMap Picker) ---------- */
/* نفس تقنية `MapPickerScreen` في تطبيق فلاتر: بلاطات OSM مباشرةً بلا مفتاح API.
   الدبّوس ثابت في المنتصف والخريطة تتحرّك تحته. */
/* إطار الخريطة مشترك بين خريطة Google ومنتقي OSM البديل */
.map-frame,
.map-picker {
  position: relative;
  height: 340px;
  border-radius: var(--r-img);
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* إيماءات السحب الخاصة بمنتقي OSM فقط — خرائط Google تدير إيماءاتها بنفسها */
.map-picker {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.map-picker.dragging { cursor: grabbing; }

.mp-tiles { position: absolute; inset: 0; }

/* بكسل زائد يخفي الخطوط الشعرية بين البلاطات */
.mp-tiles img {
  position: absolute;
  width: 257px;
  height: 257px;
  pointer-events: none;
  max-width: none;
}

.mp-pin {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--primary);
  opacity: .45;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}

/* الدبّوس يصير كامل الوضوح فور تحديد موقع فعلي */
.map-picker.is-set .mp-pin { opacity: 1; }

/* طرف الدبّوس (أسفل الأيقونة) هو ما يقف على مركز الخريطة */
.mp-pin svg { transform: translateY(-16px); }

.mp-zoom {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp-zoom .icon-btn {
  width: 34px;
  height: 34px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.mp-attr {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  z-index: 2;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: .62rem;
  text-align: center;
  padding: 3px;
}

.mp-readout {
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 760px) {
  .map-frame,
  .map-picker { height: 280px; }
}

/* ---------- الجداول (Tables) ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--card);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.data th, table.data td {
  padding: 14px 18px;
  text-align: start;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}

table.data th {
  background: var(--surface-alt);
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--surface-alt) 70%, transparent); }

/* ---------- صفوف الإعدادات (Settings Rows) ---------- */
.settings-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  width: 100%;
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
  text-align: start;
  transition: all 0.15s ease;
}

.settings-row:last-child { border-bottom: 0; }

.settings-row:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.settings-row .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-row .txt { flex: 1; min-width: 0; }
.settings-row .txt b { display: block; font-weight: 800; color: var(--text); font-size: .95rem; }
.settings-row .txt span { display: block; font-size: .8rem; color: var(--muted); }
.settings-row .arrow { color: var(--muted); flex-shrink: 0; }

/* ---------- المحادثة والدعم (Chat Box) ---------- */
.chat-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px;
}

.msg {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: .9rem;
  line-height: 1.75;
  white-space: pre-wrap;
  box-shadow: var(--shadow-sm);
}

.msg.me {
  background: var(--primary);
  color: #ffffff;
  align-self: flex-start;
  border-end-start-radius: 4px;
  box-shadow: var(--shadow-glow);
}

.msg.ai {
  background: var(--surface-alt);
  color: var(--text);
  align-self: flex-end;
  border-end-end-radius: 4px;
  border: 1px solid var(--border);
}

.msg time {
  display: block;
  font-size: .68rem;
  opacity: .75;
  margin-top: 5px;
}

/* ---------- الحالات الفارغة (Empty State) ---------- */
.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}

.empty .ico {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.empty h3 { color: var(--text); font-weight: 800; }

/* ---------- التنبيهات والتوست (Alerts & Toasts) ---------- */
.alert {
  padding: 14px 20px;
  border-radius: var(--r-field);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.alert.ok { background: rgba(16, 185, 129, 0.1); color: #059669; border-color: rgba(16, 185, 129, 0.25); }
.alert.bad { background: rgba(239, 68, 68, 0.1); color: #DC2626; border-color: rgba(239, 68, 68, 0.25); }
.alert.info { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.alert.warn { background: rgba(245, 158, 11, 0.1); color: #D97706; border-color: rgba(245, 158, 11, 0.25); }

.toast-host {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 14px 24px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  background: var(--ok);
  animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: min(92vw, 420px);
}

.toast.bad { background: var(--bad); }
.toast.info { background: var(--primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .toast-host { inset-inline: 16px; bottom: calc(76px + 16px); }
}

/* ---------- النوافذ المنبثقة (Modals) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: backdrop-fade-in 0.25s ease;
}

@keyframes backdrop-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- المعرض المنبثق (تصفّح كل صور الاستراحة) ---------- */
/* الأبعاد الدنيا ضرورية: الصورة بلا مقاس ضمني قبل اكتمال تحميلها، فلولاها
   انكمشت الحاوية إلى صفر وتكدّست أزرار التنقّل فوق بعضها لحظة الفتح. */
.lightbox-body {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(560px, 92vw);
  min-height: min(340px, 60vh);
}

.lightbox-body img {
  max-width: min(1000px, 94vw);
  max-height: 88vh;
  border-radius: 18px;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  cursor: pointer;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(15, 23, 42, 0.85); }

.lightbox-close {
  top: 10px;
  inset-inline-end: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
}

.lightbox-nav.prev { inset-inline-start: 10px; }
.lightbox-nav.next { inset-inline-end: 10px; }

.lightbox-count {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: .85rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.6rem; }
}

.modal {
  background: var(--card);
  border-radius: 28px;
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid var(--border);
  animation: modal-slide-up 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal h3 { margin-top: 0; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-start; margin-top: 22px; flex-wrap: wrap; }

/* ---------- المفتاح (Switch Toggle) ---------- */
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }

.switch .track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.switch .track::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  top: 3px;
  inset-inline-start: 3px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.switch input:checked + .track { background: var(--primary); }

.switch input:checked + .track::before {
  transform: translateX(-20px);
}

html[dir="ltr"] .switch input:checked + .track::before {
  transform: translateX(20px);
}

/* ---------- الإحصائيات (Stats Cards) ---------- */
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat .k { font-size: .84rem; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 1.7rem; font-weight: 900; color: var(--text); line-height: 1.25; margin-top: 6px; }
.stat .v.primary { color: var(--primary); }

.stat .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* ---------- تفاصيل السعر (Price Summary) ---------- */
.price-lines { display: flex; flex-direction: column; gap: 10px; }
.price-line { display: flex; justify-content: space-between; font-size: .92rem; color: var(--body); }

.price-line.total {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
}

.price-line.total span:last-child { color: var(--primary); }

/* ---------- الشريط السفلي للهاتف (Bottom Navbar) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 110;
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  position: relative;
  transition: all 0.2s ease;
}

.bottom-nav a.active {
  color: var(--primary);
  font-weight: 900;
}

.bottom-nav a.active svg {
  transform: translateY(-2px);
}

.bottom-nav .badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 24%;
  min-width: 17px;
  height: 17px;
  background: var(--bad);
  color: #ffffff;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--card);
}

/* ---------- التذيل (Footer) ---------- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 26px;
  margin-top: 54px;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.site-footer h4 { font-size: .95rem; margin-bottom: 10px; font-weight: 800; }
.site-footer a { display: block; color: var(--primary); font-size: .84rem; padding: 4px 0; font-weight: 600; }
.site-footer a:hover { color: var(--primary-dark); text-decoration: underline; }

/* شريط بيانات التواصل — يظهر فقط إن ضبط الأدمن شيئاً منها */
.site-footer .foot-contact {
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 18px;
}

.site-footer .foot-about {
  font-size: .85rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 10px;
  line-height: 1.9;
}

.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.site-footer .foot-links a,
.site-footer .foot-links span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  padding: 0;
}

.site-footer .foot-links span { color: var(--muted); }

.site-footer .copy {
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 18px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .site-footer .cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 440px) {
  .site-footer .cols { grid-template-columns: 1fr; }
}

/* ---------- التوافقية والتجاوبية (Responsive Overrides) ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
    font-size: 14.5px;
  }
  .bottom-nav { display: flex; }
  .container { padding-inline: 16px; }
  .page { padding-block: 20px 30px; }

  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: .95rem; }

  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  .section-head h2, .section-head h3 { font-size: 1.18rem; }

  .card { padding: 18px; }
  .grid { gap: 16px; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .resort-card .body { padding: 11px 12px 13px; gap: 4px; }
  .resort-card .title { font-size: .92rem; }
  .price { font-size: .98rem; }

  .modal { padding: 20px; }
  .otp-boxes input { width: 46px; height: 54px; font-size: 1.3rem; }
  .brand small { display: none; }
  .site-footer { margin-bottom: 0; }

  /* ---------- الشريط العلوي على الجوال ----------
     كان صفّ العنوان (الشعار + أزرار اللغة والدخول) أعرض من الشاشة فيدفع الصفحة
     يميناً ويساراً. نُضيّق كل عنصر ونستبدل النصوص الطويلة بمختصرة حتى يتّسع الصفّ
     ضمن 360px دون تمرير أفقي. */
  .site-header .container { gap: 8px; }
  .header-actions { gap: 4px; min-width: 0; }
  .header-actions .nav-link-btn { padding-inline: 8px; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .header-actions .btn-onnav { padding-inline: 11px; font-size: .82rem; height: 36px; }
  .nav-link-btn .nlb-label { display: none; }        /* زر اللغة أيقونة فقط */
  .btn-onnav .label-full { display: none; }
  .btn-onnav .label-short { display: inline; }
  .brand { min-width: 0; font-size: 1.12rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { min-width: 0; }
}

@media (max-width: 420px) {
  .grid-cards { grid-template-columns: 1fr; }
  .cal-grid { gap: 4px; }
  .card { padding: 15px; }
  .container { padding-inline: 14px; }
  .otp-boxes { gap: 8px; }
  .otp-boxes input { width: 40px; height: 50px; }
  .searchbar { padding: 8px; }
  .btn { padding: 12px 20px; font-size: .88rem; }
}

/* ==========================================================================
   أقسام الصفحة الرئيسية — محتواها كله يُدار من لوحة الإدارة
   ========================================================================== */

/* ---------- بطاقات المزايا («لماذا تحجز معنا») ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.feature-card .ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card b {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.feature-card span {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- بطاقات مصوّرة (أنواع الإقامة والوجهات) ---------- */
.tile-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.tile-row.tile-row-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.tile {
  display: block;
  color: var(--text);
  border-radius: var(--r-img);
  overflow: hidden;
}

/* بلا صورة يبقى المربّع بلون الهوية بدل فراغ رمادي */
.tile .ph {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-img);
  overflow: hidden;
  background: linear-gradient(135deg, var(--nav), var(--primary));
  position: relative;
}

.tile .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile:hover .ph img { transform: scale(1.05); }

.tile b {
  display: block;
  margin-top: 9px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
}

.tile span {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}

/* بطاقة وجهة: الاسم فوق الصورة كما في قوائم المدن */
.tile-dest .ph { aspect-ratio: 16 / 10; }

/* تظليل علوي يضمن قراءة الاسم فوق أي صورة */
.tile-dest .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 55%);
  z-index: 1;
  pointer-events: none;
}

.tile-dest .cap {
  position: absolute;
  inset-inline-start: 14px;
  top: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.tile-dest .cap .flag-dot {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- شريط ترويجي عريض ---------- */
.promo-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: var(--r-card);
  padding: 20px 22px;
  flex-wrap: wrap;
}

.promo-strip .art {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card);
}

.promo-strip .txt { flex: 1 1 260px; min-width: 0; }
.promo-strip .txt b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.promo-strip .txt span { display: block; font-size: .88rem; color: var(--body); margin-top: 3px; }

/* ---------- شريط دعوة المُلّاك ---------- */
.host-cta {
  background: var(--nav);
  border-radius: var(--r-card);
  padding: 30px 28px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.host-cta h2 { color: #fff; margin-bottom: .35rem; font-weight: 900; }
.host-cta p { color: rgba(255, 255, 255, 0.9); margin: 0; max-width: 620px; }

/* شريط الثقة أسفل صندوق البحث */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
}

.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--ok); flex-shrink: 0; }

/* فاصل بين أقسام الصفحة الرئيسية */
.home-section { margin-bottom: 40px; }

@media (max-width: 700px) {
  .host-cta { padding: 22px 18px; }
  /* ‎.tile-row-4 أعلى تخصيصاً، فيلزم ذكره صراحةً هنا وإلا بقي عموداً واحداً */
  .tile-row,
  .tile-row.tile-row-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* رمز تأكيد الدخول في بطاقة حجز المالك — يطابقه مع ما يعرضه الضيف */
.access-code {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
}

.access-code .strong { color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

.access-code code {
  /* الرمز لاتيني دائماً، فيُثبَّت اتجاهه حتى داخل صفحة RTL */
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .07em;
}

/* اختيار طريقة شحن المحفظة — الأيقونات يرفعها الأدمن من «بوابات الدفع» */
.pay-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 4px 0 16px;
}

.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}

.pay-method:hover { border-color: var(--primary); transform: translateY(-1px); }

.pay-method.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* الأيقونة صورة يرفعها الأدمن بأي أبعاد — نحصرها في مربّع ثابت بلا اقتصاص */
.pay-method img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.pay-method-fallback { color: var(--primary); display: inline-flex; }

.pay-method-name { font-size: .88rem; font-weight: 700; text-align: center; }

/* طباعة تذكرة الحجز */
@media print {
  .site-header, .bottom-nav, .site-footer, .no-print { display: none !important; }
  body { background: #ffffff; padding: 0; }
  .card { box-shadow: none; border-color: #e2e8f0; }
}
