/* SPG Real Estate - Pro Clean UI
   -------------------------------------------------------------- */
:root{
  --primary:#0c305b;
  --primary-600:#114274;
  --accent:#28cb69;
  --bg:#f7f9fc;
  --card:#ffffff;
  --txt:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;
  --ring:#e2e8f0;
  --shadow:0 3px 8px rgba(16,24,40,.06);
  --radius:16px;
  --radius-lg:20px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--txt);
  font:15.5px/1.65 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{text-decoration:none;color:var(--primary)}
a:hover{color:var(--primary-600)}
img{max-width:100%;display:block}

/* Utils */
.bg{background:var(--bg)}
.muted{color:#64748b}
.elevated{box-shadow:var(--shadow);background:#fff}
.align-end{display:flex;justify-content:flex-end}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* Cards */
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow)
}

/* Topbar */
.topbar{
  position:sticky;top:0;z-index:50;border-bottom:1px solid var(--line);
  background:#fff;backdrop-filter:saturate(180%) blur(8px)
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:14px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px}
.brand img{display:block}
.nav{display:flex;gap:18px;align-items:center}
.nav a{color:#0b1324;opacity:.92;font-weight:700;padding:6px 8px;border-radius:10px}
.nav a.active,.nav a:hover{background:#f1f5f9}

/* Buttons & Inputs */
button,.btn{
  background:var(--primary);color:#fff;border:1px solid var(--primary);
  padding:11px 14px;border-radius:12px;cursor:pointer;font-weight:800;transition:filter .15s ease, transform .02s
}
button:active,.btn:active{transform:translateY(1px)}
button:hover,.btn:hover{filter:brightness(.96)}
.btn-outline{background:#fff;color:var(--primary);border:1px solid var(--primary)}
.btn-whatsapp{background:#25D366;border-color:#25D366}
label{display:block;margin:8px 0 6px;font-weight:700}
input[type=text],input[type=number],input[type=password],select,textarea{
  width:100%;padding:12px;border:1px solid #d1d5db;border-radius:12px;background:#fff;font-size:14px;outline:none
}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 4px var(--ring)}

/* Language dropdown */
.lang-dropdown{position:relative}
.lang-btn{
  border:1px solid var(--line);border-radius:12px;width:40px;height:40px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#0b1324
}
.lang-menu{
  position:absolute;right:0;top:110%;min-width:180px;background:#fff;border:1px solid var(--line);
  border-radius:12px;box-shadow:var(--shadow);padding:8px;list-style:none;margin:0;display:none;z-index:20
}
.lang-menu.open{display:block}
.lang-menu button{display:block;width:100%;padding:8px 10px;border-radius:10px;color:#0b1324;border:none;background:#fff;cursor:pointer;text-align:left;font-weight:700}
.lang-menu button:hover{background:#f3f4f6}

/* Hero */
.hero{
  padding:20px;background:linear-gradient(180deg,#ffffff, #f5f7fb);border-radius:16px;border:1px solid var(--line)
}
.hero h1{margin:0 0 6px;font-size:28px}
.hero p{margin:6px 0 0;color:#64748b}

/* Grid & Cards for listings */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px;margin:18px 0}
.hoverable{transition:transform .15s ease, box-shadow .15s ease}
.hoverable:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.title{font-size:17px;margin:8px 0 6px;font-weight:800;color:#0b1324}
.meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12px}
.price{font-weight:800}
.price.big{font-size:20px}

.listing-card{display:flex;flex-direction:column}
.listing-card .thumb{width:100%;height:200px;object-fit:cover;background:#f1f5f9;border-bottom:1px solid var(--line)}
.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}

/* Country section */
.country-section{margin-bottom:26px}
.country-heading-row{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin:8px 0 6px;
}
.country-heading{
  display:flex;align-items:center;gap:10px;margin:0;font-size:20px;font-weight:800;color:#0b1324;
}
.country-heading img{
  width:22px;height:22px;border-radius:50%;object-fit:cover;border:1px solid var(--line);background:#f8fafc
}
.view-more-link{white-space:nowrap}

/* Country picker dialog (optional shared styles) */
.country-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}
.country-card{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;background:#fff;border:1px solid var(--line);
  border-radius:14px;cursor:pointer;transition:transform .12s ease, box-shadow .12s ease
}
.country-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.flag-big{width:56px;height:56px;border-radius:50%;object-fit:cover;border:1px solid #e5e7eb;background:#f8fafd}
.country-name{font-weight:800;text-align:center}
.country-count{font-size:12px;color:#64748b}

/* Dialog (modal) */
dialog.dialog{border:none;border-radius:16px;padding:0}
dialog::backdrop{background:rgba(16,24,40,.35)}
.dialog .card{margin:0}

/* Listing page - Gallery */
.gallery{position:relative;width:100%;height:480px;background:#f3f4f6;border-radius:16px;overflow:hidden;border:1px solid var(--line)}
.gallery .slide{position:absolute;inset:0;opacity:0;transition:opacity .25s}
.gallery .slide.active{opacity:1}
.gallery .slide img{width:100%;height:100%;object-fit:cover}
.gallery .arrow{
  position:absolute;top:50%;transform:translateY(-50%);border:none;background:rgba(255,255,255,.92);color:#111;
  width:38px;height:38px;border-radius:999px;display:grid;place-items:center;cursor:pointer;border:1px solid #e2e8f0
}
.gallery .prev{left:10px}
.gallery .next{right:10px}
.dots{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.dot{width:8px;height:8px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;opacity:.7}
.dot.active{background:#0c305b;opacity:1}

/* Footer */
.footer{margin-top:40px;background:#f3f4f6;border-top:1px solid var(--line)}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px;padding:24px 0}
.footer-brand{font-weight:800;font-size:18px;color:var(--primary)}
.footer-title{font-weight:800;margin-bottom:8px}
.footer-links{list-style:none;margin:0;padding:0}
.footer-links li{margin:6px 0}
.footer-links a{color:#0b1324}
.footer-bottom{text-align:center;border-top:1px solid var(--line);padding:12px;color:#64748b;font-size:14px}

/* Responsive */
@media (max-width:1024px){
  .gallery{height:380px}
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .gallery{height:260px}
  .grid{grid-template-columns:1fr}
  .topbar-inner{gap:8px;align-items:flex-start}
}

/* ===== Mobile slider behavior ===== */
.grid.grid--mobile-slider { /* desktop: keep grid */
}
@media (max-width: 640px){
  .grid.grid--mobile-slider{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding: 4px 4px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .grid.grid--mobile-slider .listing-card{
    min-width: 220px;
    max-width: 240px;
    scroll-snap-align: start;
    flex: 0 0 auto;
    border-radius: 14px;
  }
  .grid.grid--mobile-slider .listing-card .thumb{
    height: 140px;
    object-fit: cover;
  }
  .grid.grid--mobile-slider .desc-snippet{font-size:13px}
  .grid.grid--mobile-slider::-webkit-scrollbar{ display:none }
  .grid.grid--mobile-slider{ scrollbar-width: none }
  .country-heading-row{ gap:10px }
  .view-more-link{ padding:9px 12px; font-size:14px }
}

/* ===================================================================
   RTL OVERRIDES — لما الجسم عليه كلاس .rtl كلشي ينعكس
   =================================================================== */
.rtl { direction: rtl; text-align: right; }

/* التوب بار: بدّل الترتيب ليصير الماركة يسار والأزرار يمين */
.rtl .topbar-inner{ flex-direction: row-reverse; }
.rtl .nav{ flex-direction: row-reverse; }
.rtl .nav a{ text-align: right; }

/* زر واختيارات اللغة */
.rtl .lang-menu{ right:auto; left:0; }
.rtl .lang-menu button{ text-align:right; }

/* عناوين الأقسام + زر عرض المزيد */
.rtl .country-heading-row{ flex-direction: row-reverse; } /* زر عرض المزيد يضل على اليسار */
.rtl .country-heading{ flex-direction: row; }            /* العلم يطلع قبل النص بالعربي */
.rtl .view-more-link{ order:-1; }
     /* زر عرض المزيد يجي على اليسار بعربي */
.rtl .country-heading img{ margin-left:0; }

/* بطاقات وأسفل البطاقة */
.rtl .card-bottom{ flex-direction: row-reverse; }

/* سلوك السلايدر بالموبايل: من اليمين لليسار */
.rtl .grid.grid--mobile-slider{ direction: rtl; }
.rtl .grid.grid--mobile-slider .listing-card{ direction: rtl; }

/* الـ Gallery arrows */
.rtl .gallery .prev{ right:10px; left:auto; }
.rtl .gallery .next{ left:10px; right:auto; }

/* الفوتر */
.rtl .footer-inner{ direction: rtl; }

/* تحسينات حواف على الموبايل بالعربي */
@media (max-width: 640px){
  .rtl .container{ padding: 0 16px; }
}

/* =======================================================
   RTL Header Layout — Desktop: Brand Right | Nav Center | Lang Left
   ======================================================= */

[dir="rtl"] .topbar-inner,
body.rtl .topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto; /* يمين - وسط - يسار */
  align-items: center;
  justify-content: space-between;
}

/* البراند يمين */
[dir="rtl"] .brand,
body.rtl .brand {
  grid-column: 1;
  justify-self: start; /* يمين */
}

/* الروابط بالنص */
[dir="rtl"] .desktop-nav,
body.rtl .desktop-nav {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

/* زر اللغة يسار */
[dir="rtl"] .actions,
body.rtl .actions {
  grid-column: 3;
  justify-self: end; /* يسار */
  display: flex;
  align-items: center;
  gap: 10px;
}

/* زر اللغة يفتح قائمته من اليسار */
[dir="rtl"] .lang-dropdown .lang-menu,
body.rtl .lang-dropdown .lang-menu {
  right: auto;
  left: 0;
  text-align: right;
}

/* القوائم المنسدلة للموبايل بالعربي */
[dir="rtl"] #mobileMenu,
body.rtl #mobileMenu {
  right: auto !important;
  left: 0 !important;
  text-align: right;
}

/* === موبايل === */
@media (max-width: 768px) {
  [dir="rtl"] .topbar-inner,
  body.rtl .topbar-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  /* بالموبايل: البراند يمين → اللغة → زر القائمة */
  [dir="rtl"] .actions,
  body.rtl .actions {
    order: 1;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  [dir="rtl"] .lang-dropdown,
  body.rtl .lang-dropdown {
    order: 0;
  }

  [dir="rtl"] .menu-wrap,
  body.rtl .menu-wrap {
    order: 1;
  }

  [dir="rtl"] .desktop-nav,
  body.rtl .desktop-nav {
    display: none;
  }
}

/* === تحسينات شكلية === */
[dir="rtl"] .nav a,
body.rtl .nav a {
  text-align: center;
  padding: 8px 10px;
}
[dir="rtl"] .lang-btn i,
body.rtl .lang-btn i {
  color: var(--primary);
}

/* === تثبيت الهيدر + توحيد الارتفاع بين اللغتين (70px) === */
:root{
  --topbar-h: 70px;   /* ارتفاع موحّد للكمبيوتر والموبايل */
}

.topbar {
  position: fixed;      /* الهيدر ثابت */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--topbar-h);
}

.topbar-inner{
  min-height: var(--topbar-h);
  align-items: center;
  padding-top: 0;       /* نلغي تأثير البادنغ القديم */
  padding-bottom: 0;
}

/* تأكد إن اللوغو ما يطلع من الهيدر */
.brand img{
  max-height: calc(var(--topbar-h) - 16px); /* سماحية 8px فوق وتحت */
  height: auto;
}

/* إزاحة المحتوى تحت الهيدر الثابت */
body {
  padding-top: var(--topbar-h);
}
/***************/
/* لما تكون الصفحة بالعربي (rtl) خَلّي العنوان والعلم عاليمين */
body.rtl .country-heading-row {
  flex-direction: row-reverse; /* يعكس الترتيب */
  justify-content: flex-end;   /* يحطّ الكل عاليمين */
  text-align: right;
}

/* خَلّي العلم قبل النص */
body.rtl .country-heading {
  flex-direction: row-reverse;
}

/* خَلّي العلم يبعد شوي عن النص */
body.rtl .country-heading img {
  margin-left: 8px;
  margin-right: 0;
}
body.rtl .view-more-link {
  order: -1;
  margin-right: auto;
}
.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.view-more-link::after {
  content: "→";
  font-size: 15px;
  transition: transform 0.25s ease;
  opacity: 0.8;
}

.view-more-link:hover {
  background: #f3f7fb;
  border-color: #cdd8e6;
  color: var(--primary-600);
  box-shadow: 0 2px 6px rgba(12,48,91,0.08);
  transform: translateY(-1px);
}

.view-more-link:hover::after {
  transform: translateX(3px);
}

/* وقت الضغط */
.view-more-link:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(12,48,91,0.05);
}

/* بالصفحة العربية نعكس اتجاه السهم */
body.rtl .view-more-link::after {
  content: "←";
}

body.rtl .view-more-link:hover::after {
  transform: translateX(-3px);
}


/* ✅ مسافة عمودية بين الكروت */
.country-section {
    margin: 26px 0 58px !important;
}
/* ✅ خلفية ناعمة جدًا وشفافة خلف اسم الدولة والزر */
.country-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 48, 91, 0.025); /* خففناها كتير */
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(12, 48, 91, 0.04); /* حدود خفيفة جدًا */
}

/* ✅ العنوان */
.country-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #0b1324;
  margin: 0;
}

/* ✅ العلم */
.country-heading img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ✅ الزر */
.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(12, 48, 91, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0c305b;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ✅ السهم */
.view-more-link::after {
  content: "→";
  transition: transform 0.2s ease;
  font-size: 14px;
}

/* ✅ الهوفر */
.view-more-link:hover {
  background: #0c305b;
  color: #fff;
  border-color: #0c305b;
  transform: translateY(-1px);
}

.view-more-link:hover::after {
  transform: translateX(4px);
}

/* ✅ بالعربي — نعكس السهم */
[dir="rtl"] .view-more-link::after {
  content: "←";
}
[dir="rtl"] .view-more-link:hover::after {
  transform: translateX(-4px);
}
/* ==== Footer grid + mirroring RTL ==== */
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-areas: "brand nav contact"; /* ترتيب ديسكتوب بالإنكليزي */
  gap:24px;
  padding:16px 0;
}

.footer-brand-col   { grid-area: brand; }
.footer-nav-col     { grid-area: nav; }
.footer-contact-col { grid-area: contact; }

.footer-brand-row{ display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; }
.footer-logo{ width:38px; height:38px; object-fit:contain; }
.footer-brand{ font-weight:800; font-size:18px; color:var(--primary); }

.footer-title{ font-weight:800; color:#0b1324; }
.footer-links{ list-style:none; margin:0; padding:0; }
.footer-links li{ margin:6px 0; }
.footer-links a{ color:#0b1324; text-decoration:none; }
.footer-links a:hover{ color: var(--primary-600); }

/* أيقونات تواصل (صف أفقي) */
.footer-social-inline{
  display:flex; align-items:center; gap:14px; padding-top:4px;
}
.footer-social-inline a{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  color:#0b1324; text-decoration:none;
}
.footer-social-inline i{ font-size:22px; line-height:1; }

/* ==== RTL: اقلب الأعمدة والترتيب والاتجاه ==== */
[dir="rtl"] .footer-grid{
  direction: rtl;
  grid-template-areas: "contact nav brand"; /* بالعربي: البراند يصير أقصى اليمين */
}
[dir="rtl"] .footer-brand-row{ flex-direction: row-reverse; }
[dir="rtl"] .footer-links a{ text-align:right; }

/* اقلب ترتيب الأيقونات */
[dir="rtl"] .footer-social-inline{ flex-direction: row-reverse; }

/* Responsive — موبايل عمود واحد */
@media (max-width: 640px){
  .footer-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "contact";
    gap:12px;
  }
  [dir="rtl"] .footer-grid{
    grid-template-areas:
      "brand"
      "nav"
      "contact"; /* بالموبايل نخلي نفس الترتيب للوضوح */
  }
  .footer-brand{ font-size:17px; }
}
/* ===== FIX: RTL footer exact behavior ===== */

/* أوقف قلب الاتجاه القديم على الفوتر بهالحالة */
[dir="rtl"] .footer-inner.footer-grid{
  direction: initial !important;
}

/* بالعربي: رتب الأعمدة يمين←يسار: اتصال | تصفّح | البراند */
[dir="rtl"] .footer-grid{
  grid-template-areas: "contact nav brand" !important;
  grid-template-columns: 1fr 1fr 1fr; /* ثابتة وواضحة */
}

/* محاذاة يمين لكل محتوى الأعمدة بالعربي */
[dir="rtl"] .footer-grid .footer-col{
  text-align: right;
}

/* البراند: خليه يمين وواضح */
[dir="rtl"] .footer-brand-row{
  flex-direction: row-reverse;        /* اللوغو يسار النص بالعربي */
  justify-content: flex-start;
}

/* روابط الناف: يمين */
[dir="rtl"] .footer-links a{
  text-align: right;
}

/* الأيقونات: حافظ على نفس ترتيب (واتساب، إنستغرام، فيسبوك) بس محاذاة يمين */
[dir="rtl"] .footer-social-inline{
  flex-direction: row !important;     /* لا تعكس الترتيب */
  justify-content: flex-end;          /* محاذاة يمين */
  gap: 14px;
}

/* موبايل: نفس ترتيب الأعمدة (براند → تصفّح → تواصل) للتناسق */
@media (max-width: 640px){
  .footer-grid{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "nav"
      "contact" !important;
    gap: 12px;
  }
  [dir="rtl"] .footer-grid{
    grid-template-areas:
      "brand"
      "nav"
      "contact" !important;
  }
}
/* ===== Center Footer Entirely ===== */

/* وسط كل الأعمدة داخل الحاوية */
.footer-grid{
  justify-content: center; /* وسط الأعمدة */
  text-align: center;
}

/* خفّف عرض الحاوية شوي لتوسّطها فعلاً */
.footer-inner{
  max-width: 1000px;
  margin: 0 auto; /* وسّط الحاوية نفسها */
}

/* كل الأعمدة تصير بالنص */
.footer-col{
  justify-self: center;
}

/* خفف الهوامش للفوتر تحت */
.footer-bottom{
  text-align: center;
  padding: 10px 0 20px;
}

/* بالعربي كمان وسّط العناصر بدون ما تنقلب */
[dir="rtl"] .footer-grid{
  justify-content: center;
  text-align: center;
}
[dir="rtl"] .footer-col{
  text-align: center;
}
[dir="rtl"] .footer-social-inline{
  justify-content: center;
  flex-direction: row; /* حافظ على ترتيب الأيقونات */
}

/* Responsive لموبايل: كل شي بالنص */
@media (max-width: 640px){
  .footer-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "contact";
    gap: 16px;
    text-align: center;
  }
}
/* ===== Neo Footer — clean, centered, RTL-safe ===== */
.footer { background:#f3f4f6; border-top:1px solid var(--line); padding-top:15px; }
.footer-inner { max-width:1000px; margin:0 auto; }

/* Grid: brand | nav | contact — الوسط بالنص */
.footer-grid-neo{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "brand nav contact";
  gap:24px;
  align-items:start;
  justify-items:center;
  text-align:center;
}

/* حياد اتّجاه داخل الفوتر لو في قواعد قديمة عاملة RTL */
[dir="rtl"] .footer .footer-inner { direction: initial !important; }

.brand-col   { grid-area:brand; }
.nav-col     { grid-area:nav; }
.contact-col { grid-area:contact; }

.brand-center{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-decoration:none; }
.footer-logo-neo{ width:72px; height:auto; object-fit:contain; margin-bottom:10px; transition:transform .25s ease; }
.footer-logo-neo:hover{ transform:scale(1.04); }

/* ✅ سطر واحد حسب اللغة */
.tagline-one{ margin:0 auto; font-weight:700; color:#0b1324; line-height:1.6; max-width:520px; }

/* Titles + links */
.footer-title-neo{ font-weight:800; color:#0b1324; margin-bottom:10px; }
.footer-links-neo{ list-style:none; margin:0; padding:0; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.footer-links-neo a{ color:#0b1324; text-decoration:none; }
.footer-links-neo a:hover{ color:var(--primary-600); }

/* Social */
.social-inline-neo{ display:flex; align-items:center; justify-content:center; gap:14px;  }
.social-inline-neo a{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  color:#0b1324; text-decoration:none; border:1px solid #e5e7eb; background:#fff;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.social-inline-neo a:hover{ transform:translateY(-1px); background:#f9fbff; border-color:#dfe5ee; box-shadow:var(--shadow); }
.social-inline-neo i{ font-size:20px; line-height:1; }

/* === RTL: بدّل أماكن الأعمدة، خلّي الناف بالنص، لا تعكس ترتيب الأيقونات === */
[dir="rtl"] .footer-grid-neo{
  grid-template-areas: "contact nav brand";
  grid-template-columns: 1fr auto 1fr;
}
[dir="rtl"] .footer-title-neo,
[dir="rtl"] .footer-links-neo a,
[dir="rtl"] .tagline-one { text-align:center; }
[dir="rtl"] .social-inline-neo{ flex-direction:row; justify-content:center; }

/* Mobile */
@media (max-width:640px){
  .footer-grid-neo{
    grid-template-columns:1fr;
    grid-template-areas:
      "brand"
      "nav"
      "contact";
    gap:18px;
  }
  .footer-logo-neo{ width:64px; }
  .tagline-one{ font-size:14px; padding:0 10px; }
  .footer-links-neo{ gap:12px; }
}

/* Bottom row */
.footer-bottom{ text-align:center; border-top:1px solid var(--line); padding:12px; color:#64748b; font-size:14px; }
/* ===== RTL MOBILE HARD FIX (paste at the very end) ===== */
@media (max-width:640px){
  /* حيّد أي RTL قديم على الفوتر */
  [dir="rtl"] .footer .footer-inner,
  body.rtl .footer .footer-inner{
    direction: initial !important;
  }

  /* نخلي الفوتر عمود واحد: لوجو > نافيجات > تواصل — وكلّه بالنص */
  .footer-grid-neo{
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "nav"
      "contact" !important;
    gap: 16px !important;
    justify-items: center !important;
    text-align: center !important;
  }
  [dir="rtl"] .footer-grid-neo,
  body.rtl .footer-grid-neo{
    grid-template-areas:
      "brand"
      "nav"
      "contact" !important;
  }

  /* وسّط كل الأعمدة */
  .footer-grid-neo .footer-col{
    justify-self: center !important;
    text-align: center !important;
  }

  /* اللوجو فوق النص وبحجم مناسب */
  .brand-center{ display:flex !important; flex-direction:column !important; align-items:center !important; }
  .footer-logo-neo{ width:64px !important; height:auto !important; margin-bottom:8px !important; }

  /* سطر التعريف */
  .tagline-one{
    font-size:14px !important;
    line-height:1.6 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  /* نافيجات بالنص */
  .footer-title-neo{ text-align:center !important; }
  .footer-links-neo{
    display:flex !important;
    justify-content:center !important;
    gap:12px !important;
    flex-wrap:wrap !important;
  }
  .footer-links-neo a{ display:inline-block !important; }

  /* أيقونات التواصل: لا تعكس الترتيب، خلّيها بالنص */
  .social-inline-neo{
    display:flex !important;
    flex-direction: row !important;   /* حافظ على الترتيب */
    justify-content: center !important;
    gap: 14px !important;
  }
}
.footer{
  position: sticky;
  top: 100vh;     /* هي السحر: لما الصفحة أقصر من الشاشة، بيندفع لتحت */
  width: 100%;
  z-index: 1;     /* احتياطي إذا في عناصر فوقه */
}
.price {
    color: #0c305b !important;
}