﻿/* ══════════════════════════════════════════════════════════════════════════════
   🏛️ AMMARI Unified Smart Header & Mega-Panels (Dark Emerald & Luxury Gold)
   Designed for desktop hover precision, mobile fluidity, and cinematic elegance.
   ══════════════════════════════════════════════════════════════════════════════ */

header[data-unified-header],
header#siteHeader,
#siteHeader,
.site-header {
  position: sticky !important;
  inset-block-start: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100000 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  display: block !important;
  border: 0 !important;
  border-block-end: 1px solid rgba(220, 185, 115, 0.14) !important;
  /* 🌟 خلفية القائمة الافتراضية شفافة زجاجية فائقة النقاء لعكس جمال الخلفية المعمارية خلفها 🌟 */
  background: linear-gradient(180deg, rgba(6, 18, 16, 0.28) 0%, rgba(6, 18, 16, 0.08) 60%, rgba(6, 18, 16, 0.02) 100%) !important;
  backdrop-filter: blur(8px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(125%) !important;
  overflow: visible !important;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease !important;
}

/* 🌟 عند تحويم الماوس بدون فتح تشعب وبدون سكرول: تظل القائمة شفافة زجاجية ببريق أنيق خفيف دون تعتيم 🌟 */
header[data-unified-header]:not(.is-open):not(.is-scrolled):hover,
header#siteHeader:not(.is-open):not(.is-scrolled):hover,
#siteHeader:not(.is-open):not(.is-scrolled):hover,
.site-header:not(.is-open):not(.is-scrolled):hover {
  background: linear-gradient(180deg, rgba(6, 18, 16, 0.38) 0%, rgba(6, 18, 16, 0.14) 100%) !important;
  border-block-end-color: rgba(220, 185, 115, 0.26) !important;
  backdrop-filter: blur(12px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(135%) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* 🌟 عند التمرير لأسفل الصفحة: تتحول لخامة زمردية زجاجية تحمي وضوح قراءة النصوص فوق عناصر المحتوى 🌟 */
header[data-unified-header].is-scrolled:not(.is-open),
header#siteHeader.is-scrolled:not(.is-open),
#siteHeader.is-scrolled:not(.is-open),
.site-header.is-scrolled:not(.is-open) {
  background: rgba(6, 20, 18, 0.85) !important;
  border-block-end-color: rgba(220, 185, 115, 0.32) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
}

/* 🌟 عند فتح أي قائمة تشعب أو بحث: يتحول الهيدر فورياً لنفس لون وخامة القائمة الزمردية الفاخرة ليتكاملا ككتلة واحدة متصلة دون أي فواصل 🌟 */
header[data-unified-header].is-open,
header#siteHeader.is-open,
header.site-header.is-open,
#siteHeader.is-open,
.site-header.is-open {
  position: sticky !important;
  inset-block-start: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100000 !important;
  background: rgba(7, 24, 21, 0.94) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-block-end: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: background 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 💎 تخصيص تناغم ألوان الهيدر بدقة حسب تشعب القائمة المفتوح حالياً 💎 */
header[data-active-branch="offers"].is-open {
  background: rgba(8, 26, 22, 0.95) !important;
}
header[data-active-branch="requests"].is-open {
  background: rgba(7, 24, 23, 0.95) !important;
}
header[data-active-branch="hub"].is-open {
  background: rgba(8, 26, 24, 0.95) !important;
}
header[data-active-branch="services"].is-open {
  background: rgba(6, 25, 23, 0.95) !important;
}
header[data-active-branch="search"].is-open {
  background: rgba(9, 28, 25, 0.96) !important;
}

.aheader-shell {
  width: min(1680px, 100%);
  min-height: 84px;
  margin-inline: auto;
  padding: 12px 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ─── Brand Identity ─── */
.aheader-brand {
  flex: 0 0 auto;
}

header[data-unified-header] .brand-link {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  text-decoration: none !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

header[data-unified-header] .brand-link:hover {
  transform: scale(1.05) !important;
  filter: drop-shadow(0 0 16px rgba(228, 170, 50, 0.6)) !important;
}

header[data-unified-header] .brand-logo-img {
  width: auto !important;
  height: 72px !important;
  max-height: 74px !important;
  object-fit: contain !important;
  display: block !important;
  aspect-ratio: 1/1 !important;
}

@media (max-width: 768px) {
  header[data-unified-header] .brand-logo-img {
    height: 52px !important;
    max-height: 54px !important;
  }
}

header[data-unified-header] .brand-text-col > span {
  margin: 0 !important;
  padding: 0 !important;
}

header[data-unified-header] .brand-name-ar {
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  color: #E4AA32 !important;
  text-shadow: 0 0 14px rgba(228, 170, 50, 0.25);
}

header[data-unified-header] .brand-name-en {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 2px;
  line-height: 1.3 !important;
  color: #E6EBEA !important;
}

header[data-unified-header] .brand-slogan {
  font-size: 9.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #9BAEA8 !important;
  white-space: nowrap;
}

/* ─── Navigation Groups ─── */
.aheader-nav {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.aheader-group {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  white-space: nowrap;
  padding: 4px 0;
}

header[data-unified-header] .aheader-primary {
  gap: 7px !important;
  display: inline-flex !important;
  align-items: center;
  border: 0 !important;
  background: none !important;
  color: #B7C6C1 !important;
  font: 700 14px/1.6 Cairo, sans-serif !important;
  text-decoration: none;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.2s ease;
}

header[data-unified-header] .aheader-primary:is(:hover, :focus-visible, .active) {
  color: #efd39c !important;
  text-shadow: 0 0 15px rgba(221, 179, 99, 0.2);
}

/* ─── الخط الذهبي الراقي لروابط التنقل (مستوحى بدقة من ammari.app الأصلي بسماكة 1px ونقاء تام بدون بلور) ─── */
.aheader-group::after {
  content: '';
  position: absolute;
  inset-inline: 8px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5c58c, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  pointer-events: none;
}

.aheader-group:is(:hover, :focus-within, .is-expanded)::after {
  transform: scaleX(1);
}

.aheader-group.is-expanded .aheader-primary {
  color: #efd39c !important;
  text-shadow: 0 0 15px rgba(221, 179, 99, 0.2);
}

/* 🌟 الحالة النشطة للصفحة الحالية: الخط الذهبي مستقر تحت الصفحة الحالية */
.aheader-group.is-current-page::after {
  transform: scaleX(1);
}

.aheader-group.is-current-page .aheader-primary {
  color: #efd39c !important;
  text-shadow: 0 0 15px rgba(221, 179, 99, 0.2);
}

/* 🌟 عند تحويم أو فتح أي قائمة أخرى غير الصفحة الحالية: يختفي الخط من الصفحة الحالية وينتقل للعنصر النشط */
.aheader-nav:has(.aheader-group:not(.is-current-page):is(:hover, :focus-within, .is-expanded)) .aheader-group.is-current-page::after,
.aheader-nav.has-other-active .aheader-group.is-current-page::after,
header.is-open .aheader-group.is-current-page::after {
  transform: scaleX(0) !important;
}

.aheader-nav:has(.aheader-group:not(.is-current-page):is(:hover, :focus-within, .is-expanded)) .aheader-group.is-current-page .aheader-primary,
.aheader-nav.has-other-active .aheader-group.is-current-page .aheader-primary,
header.is-open .aheader-group.is-current-page .aheader-primary {
  color: #B7C6C1 !important;
  text-shadow: none !important;
}

.aheader-mobile-direct.is-current-page {
  background: rgba(228, 170, 50, 0.12) !important;
  border-color: rgba(228, 170, 50, 0.4) !important;
  color: #efd39c !important;
}

/* ─── Disclosure Chevron ─── */
.aheader-disclosure {
  display: grid;
  place-items: center;
  padding: 4px 2px;
  background: none;
  border: 0;
  color: #819A90;
  cursor: pointer;
  width: 20px;
  height: 32px;
  transition: color 0.2s ease;
}

.aheader-disclosure svg {
  width: 14px;
  height: 14px;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.aheader-group:is(:hover, .is-expanded) .aheader-disclosure {
  color: #F0CF85;
}

.aheader-group:is(:hover, .is-expanded) .aheader-disclosure svg,
.aheader-disclosure[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.aheader-icon svg,
.aheader-disclosure svg,
.aheader-close svg,
.aheader-mobile-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Header Tools & Controls (Ultra-Luxury Minimalist 2026 Identity) ─── */
header[data-unified-header] .aheader-tools {
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Standardized 38px Frosted Glass Squircles for Action Buttons */
header[data-unified-header] .aheader-tools :is(.icon-btn, .header-profile-btn, .aheader-icon) {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(220, 185, 115, 0.22) !important;
  background: rgba(12, 28, 25, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #C1D7CF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

header[data-unified-header] .aheader-tools :is(.icon-btn, .header-profile-btn, .aheader-icon):hover {
  border-color: rgba(220, 185, 115, 0.55) !important;
  color: #F8DE9E !important;
  background: linear-gradient(135deg, rgba(20, 85, 70, 0.45) 0%, rgba(13, 50, 42, 0.55) 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(220, 185, 115, 0.25) !important;
  transform: translateY(-1.5px) !important;
}

header[data-unified-header] .aheader-tools :is(.icon-btn, .header-profile-btn, .aheader-icon) svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

header[data-unified-header] .aheader-tools :is(.icon-btn, .header-profile-btn, .aheader-icon):hover svg {
  transform: scale(1.1) !important;
}

/* Badges for Notifications & Chat on Toolbar Icons */
header[data-unified-header] .aheader-tools .notif-badge {
  position: absolute !important;
  top: -3px !important;
  inset-inline-end: -3px !important;
  left: auto !important;
  right: auto !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  border: 1.5px solid #081C16 !important;
  background: linear-gradient(135deg, #EF4444, #DC2626) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.55) !important;
  z-index: 5 !important;
}

header[data-unified-header] .aheader-tools .chat-badge {
  background: linear-gradient(135deg, #2DD4BF, #0D9488) !important;
  color: #042F2C !important;
  box-shadow: 0 2px 8px rgba(45, 212, 191, 0.55) !important;
}

/* Executive Profile Button & Avatar Ring */
header[data-unified-header] .header-profile-avatar-ring {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

header[data-unified-header] .header-profile-avatar {
  width: 32px !important;
  height: 32px !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

header[data-unified-header] .header-profile-avatar svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  color: inherit !important;
}

header[data-unified-header] .header-profile-online-dot {
  position: absolute !important;
  bottom: -1px !important;
  inset-inline-end: -1px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  border: 1.5px solid #081C16 !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7) !important;
  z-index: 5 !important;
}

/* ══════════════ زر أضف عقار الفاخر (Hero Primary CTA Button) ══════════════ */
header[data-unified-header] .aheader-tools .cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(13, 148, 136, 0.45) 50%, rgba(15, 118, 110, 0.55) 100%) !important;
  border: 1px solid rgba(45, 212, 191, 0.45) !important;
  border-top: 1px solid rgba(240, 207, 133, 0.75) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  color: #FFFFFF !important;
  font: 800 13px/1.3 Cairo, sans-serif !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.3), 0 0 14px rgba(45, 212, 191, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-decoration: none !important;
}

header[data-unified-header] .aheader-tools .cta-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.48) 0%, rgba(13, 148, 136, 0.6) 100%) !important;
  border-color: rgba(240, 207, 133, 0.9) !important;
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.45), 0 0 22px rgba(45, 212, 191, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1.5px) scale(1.02) !important;
  color: #FFFDF5 !important;
}

header[data-unified-header] .aheader-tools .cta-btn .cta-plus-svg {
  color: #F8DE9E !important;
  filter: drop-shadow(0 0 4px rgba(248, 222, 158, 0.6)) !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
}

header[data-unified-header] .aheader-tools .cta-btn:hover .cta-plus-svg {
  transform: rotate(90deg) scale(1.15) !important;
}

/* ══════════════ زر الدولة واللغة الموحد الفاخر (Unified Country & Language Pill) ══════════════ */
header[data-unified-header] .aheader-tools .header-pill-btn.country-lang-btn,
header[data-unified-header] .aheader-tools .country-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(220, 185, 115, 0.22) !important;
  background: rgba(12, 28, 25, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #E2ECE8 !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

header[data-unified-header] .aheader-tools .country-lang-btn .country-flag-img {
  width: 20px !important;
  height: 14px !important;
  border-radius: 3px !important;
  object-fit: cover !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

header[data-unified-header] .aheader-tools .country-lang-btn .lang-name {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  color: #2DD4BF !important;
  line-height: 1 !important;
}

header[data-unified-header] .aheader-tools .country-lang-btn .pill-chevron {
  font-size: 9px !important;
  color: rgba(155, 190, 175, 0.7) !important;
  line-height: 1 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

header[data-unified-header] .aheader-tools .country-lang-btn:hover {
  border-color: rgba(220, 185, 115, 0.55) !important;
  background: linear-gradient(135deg, rgba(20, 85, 70, 0.45) 0%, rgba(13, 50, 42, 0.55) 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(220, 185, 115, 0.25) !important;
  transform: translateY(-1.5px) !important;
}

header[data-unified-header] .aheader-tools .country-lang-btn:hover .lang-name {
  color: #F8DE9E !important;
  text-shadow: 0 0 8px rgba(248, 222, 158, 0.4) !important;
}

header[data-unified-header] .aheader-tools .country-lang-btn:hover .pill-chevron {
  color: #F8DE9E !important;
  transform: translateY(1px) !important;
}

.aheader-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(154, 185, 169, 0.24);
  background: rgba(17, 37, 29, 0.6);
  color: #C7D6CE;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.aheader-icon:hover {
  border-color: rgba(220, 185, 115, 0.5) !important;
  color: #F8DE9E !important;
  background: rgba(22, 52, 42, 0.85) !important;
  box-shadow: 0 0 16px rgba(220, 185, 115, 0.25) !important;
  transform: scale(1.05);
}

.aheader-icon[aria-expanded="true"] {
  border-color: rgba(213, 181, 123, 0.7) !important;
  color: #EFD39C !important;
  background: rgba(25, 51, 42, 0.95) !important;
  box-shadow: 0 0 18px rgba(213, 181, 123, 0.35) !important;
}

.aheader-mobile-toggle,
.aheader-mobile,
#aheader-mobile,
.aheader-drawer-header,
.aheader-mobile-scroll,
.aheader-mobile-links,
.aheader-mobile-accordion,
.aheader-mobile-settings {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ─── Mega Panels Container (Full-Screen Width & Hover Tunnel Protection) ─── */
.aheader-panels {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1100;
}

header[data-unified-header].is-open .aheader-panels,
header.is-open .aheader-panels,
#siteHeader.is-open .aheader-panels {
  pointer-events: auto;
}

.aheader-panel {
  pointer-events: auto;
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-block-end: 1px solid rgba(220, 185, 115, 0.35) !important;
  border-radius: 0 0 24px 24px !important;
  padding: 0 !important;
  background: rgba(9, 35, 29, 0.98) !important;
  backdrop-filter: blur(28px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(16, 185, 129, 0.15) !important;
  text-align: start;
  box-sizing: border-box;
}

.aheader-panel[hidden],
.aheader-panel.aheader-mobile[hidden],
.aheader-panel.aheader-search[hidden],
section.aheader-panel[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.aheader-panel:not([hidden]) {
  animation: ammari-panel-reveal 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ammari-panel-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.992);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   🏛️ Slim Modern Luxury Segmented Subnav Dock (شريط الخيارات المتطور بتصميم دوك زجاجي فاخر)
   ══════════════════════════════════════════════════════════════════════════════ */
.aheader-panel:not(.aheader-mobile):not(.aheader-search) {
  position: relative !important;
  border-radius: 0 0 20px 20px !important;
  background: linear-gradient(180deg, rgba(6, 20, 18, 0.94) 0%, rgba(4, 15, 13, 0.97) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-block-end: 1px solid rgba(220, 185, 115, 0.18) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.08) !important;
  overflow: hidden !important;
}

/* 🌟 خط رفيع راقٍ وأنيق فاصل بين القائمة الرئيسية والتشعبات 🌟 */
.aheader-panel:not(.aheader-mobile):not(.aheader-search)::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 212, 191, 0.35) 15%,
    rgba(240, 207, 133, 0.85) 50%,
    rgba(45, 212, 191, 0.35) 85%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 12px rgba(240, 207, 133, 0.45) !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

.aheader-panel:not(.aheader-mobile):not(.aheader-search):not([hidden]) {
  animation: ammari-slim-strip-drop 0.22s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes ammari-slim-strip-drop {
  0% {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-panel-container {
  width: min(1680px, 100%) !important;
  margin: 0 auto !important;
  padding: 10px 24px 12px !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

/* إخفاء عمود العنوان الضخم ليصبح الشريط سليم بصف واحد بدون أي زحمة */
.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-panel-intro {
  display: none !important;
}

/* دوك زجاجي فاخر وموحد لخيارات التبويب (Segmented Glass Dock) */
.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-panel-links {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  background: rgba(10, 26, 23, 0.75) !important;
  border: 1px solid rgba(220, 185, 115, 0.22) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-panel-links::-webkit-scrollbar {
  display: none !important;
}

/* أزرار تبويب زجاجية عصرية وفائقة الأناقة (Modern Rounded Architectural Tabs) */
.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  min-height: 38px !important;
  height: 38px !important;
  gap: 8px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #E2ECE8 !important;
  font: 700 13px/1.4 Cairo, sans-serif !important;
  letter-spacing: 0.15px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transform: none !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link:hover,
.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link:focus-visible {
  background: linear-gradient(135deg, rgba(20, 85, 70, 0.55) 0%, rgba(13, 50, 42, 0.65) 100%) !important;
  border-color: rgba(220, 185, 115, 0.45) !important;
  color: #FFF6DD !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(45, 212, 191, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1.5px) !important;
}

/* الحالة النشطة للزر الحالي (Active Flagship Tab) */
.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link.active,
.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link[aria-current="page"] {
  background: linear-gradient(135deg, rgba(16, 120, 98, 0.85) 0%, rgba(10, 68, 56, 0.95) 100%) !important;
  border: 1px solid rgba(240, 207, 133, 0.8) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(220, 185, 115, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px) !important;
}

.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link.active::after,
.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link[aria-current="page"]::after {
  content: '' !important;
  position: absolute !important;
  bottom: 3px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: #F8DE9E !important;
  box-shadow: 0 0 8px #F8DE9E !important;
}

.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link:active {
  transform: translateY(0) scale(0.98) !important;
}

/* إخفاء الوصف المطول في الشريط السليم ليظل الخيار واضحاً وموجزاً في صف واحد */
.aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link small {
  display: none !important;
}

/* التنسيق الافتراضي للقوائم الخاصة مثل البحث */
.aheader-panel.aheader-search .aheader-panel-container {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 34px 36px 42px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: 36px 48px;
}

.aheader-panel.aheader-search .aheader-panel-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-inline-end: 36px;
  border-inline-end: 1px solid rgba(220, 185, 115, 0.22);
  border-block-end: none;
  padding-block-end: 0;
  margin-block-end: 0;
  min-height: 120px;
}

.aheader-panel.aheader-search .aheader-panel-intro h2 {
  font: 800 24px/1.3 Cairo, sans-serif;
  color: #F8DE9E;
  margin: 0;
  text-shadow: 0 0 16px rgba(248, 222, 158, 0.35);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.aheader-panel.aheader-search .aheader-panel-intro p {
  font: 500 13.5px/1.7 Cairo, sans-serif;
  color: #A3BDAD;
  margin: 0;
  max-width: 290px;
}

.aheader-panel:not(.aheader-mobile) .aheader-close {
  display: none !important;
}

.aheader-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(16, 37, 29, 0.65);
  color: #A4BBB1;
  border: 1px solid rgba(155, 187, 170, 0.28);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  margin-inline-start: auto;
}

.aheader-close:hover {
  border-color: rgba(220, 185, 115, 0.6) !important;
  color: #F8DE9E !important;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 14px rgba(220, 185, 115, 0.3);
}

.aheader-panel.aheader-search .aheader-search-content {
  flex: 1;
  width: 100%;
}

@media (min-width: 1180px) {
  .aheader-panel.aheader-mobile,
  #aheader-mobile,
  .aheader-drawer-backdrop {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   📱 Mobile Side Drawer (القائمة الجانبية الفاخرة لعماري - يمين بالعربي ويسار بالإنجليزي)
   ══════════════════════════════════════════════════════════════════════════════ */

/* الستار الداكن الشفاف المموه لخلفية القائمة الجانبية */
.aheader-drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(3, 14, 12, 0.76) !important;
  backdrop-filter: blur(10px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
  z-index: 100040 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.aheader-drawer-backdrop:not([hidden]) {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.aheader-drawer-backdrop[hidden] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* هيكل القائمة الجانبية الفاخرة بارتفاع الشاشة الكامل */
#aheader-mobile,
.aheader-panel.aheader-mobile {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: min(340px, 86vw) !important;
  max-width: 380px !important;
  z-index: 100050 !important;
  background: linear-gradient(180deg, #07211C 0%, #03100E 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease !important;
  animation: none !important;
}

/* ⬅️ في الوضع العربي (RTL): القائمة تخرج وتستقر على اليمين بالكامل */
:root[dir="rtl"] #aheader-mobile,
html[dir="rtl"] #aheader-mobile,
body[dir="rtl"] #aheader-mobile,
[dir="rtl"] #aheader-mobile,
header[dir="rtl"] #aheader-mobile {
  right: 0 !important;
  left: auto !important;
  border-inline-start: 1px solid rgba(220, 185, 115, 0.35) !important;
  border-top-left-radius: 22px !important;
  border-bottom-left-radius: 22px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85), -2px 0 20px rgba(16, 185, 129, 0.12) !important;
  transform: translateX(105%) !important;
}

:root[dir="rtl"] #aheader-mobile:not([hidden]),
html[dir="rtl"] #aheader-mobile:not([hidden]),
body[dir="rtl"] #aheader-mobile:not([hidden]),
[dir="rtl"] #aheader-mobile:not([hidden]),
header[dir="rtl"] #aheader-mobile:not([hidden]) {
  transform: translateX(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ➡️ في الوضع الإنجليزي (LTR): القائمة تخرج وتستقر على الشمال بالكامل */
:root[dir="ltr"] #aheader-mobile,
html[dir="ltr"] #aheader-mobile,
body[dir="ltr"] #aheader-mobile,
[dir="ltr"] #aheader-mobile,
header[dir="ltr"] #aheader-mobile {
  left: 0 !important;
  right: auto !important;
  border-inline-end: 1px solid rgba(220, 185, 115, 0.35) !important;
  border-top-right-radius: 22px !important;
  border-bottom-right-radius: 22px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  box-shadow: 15px 0 50px rgba(0, 0, 0, 0.85), 2px 0 20px rgba(16, 185, 129, 0.12) !important;
  transform: translateX(-105%) !important;
}

:root[dir="ltr"] #aheader-mobile:not([hidden]),
html[dir="ltr"] #aheader-mobile:not([hidden]),
body[dir="ltr"] #aheader-mobile:not([hidden]),
[dir="ltr"] #aheader-mobile:not([hidden]),
header[dir="ltr"] #aheader-mobile:not([hidden]) {
  transform: translateX(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* الحالة المخفية */
#aheader-mobile[hidden],
.aheader-panel.aheader-mobile[hidden] {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

:root[dir="rtl"] #aheader-mobile[hidden],
[dir="rtl"] #aheader-mobile[hidden] {
  transform: translateX(105%) !important;
}

:root[dir="ltr"] #aheader-mobile[hidden],
[dir="ltr"] #aheader-mobile[hidden] {
  transform: translateX(-105%) !important;
}

/* ─── Sub-links Luxury Pill Cards ─── */
header[data-unified-header] .aheader-sub-link {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px !important;
  border: 1px solid rgba(155, 190, 175, 0.09) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
  color: #D1E0D7 !important;
  text-decoration: none !important;
  min-width: 0;
  min-height: 52px;
  font: 700 13.5px/1.6 Cairo, sans-serif;
  text-align: start;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

header[data-unified-header] .aheader-sub-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 75, 60, 0.4) 0%, rgba(10, 35, 28, 0.25) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

header[data-unified-header] .aheader-sub-link:is(:hover, :focus-visible) {
  border-color: rgba(220, 185, 115, 0.5) !important;
  color: #F8DE9E !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(220, 185, 115, 0.25) !important;
  transform: translateX(-4px) translateY(-1px);
}

[dir="ltr"] header[data-unified-header] .aheader-sub-link:is(:hover, :focus-visible) {
  transform: translateX(4px) translateY(-1px);
}

header[data-unified-header] .aheader-sub-link:is(:hover, :focus-visible)::before {
  opacity: 1;
}

.aheader-sub-link small {
  font: 400 11.5px/1.6 Cairo, sans-serif;
  color: #8EACA0;
  transition: color 0.2s ease;
}

.aheader-sub-link:hover small {
  color: #C0D6CB;
}

/* ─── Search Panel ─── */
.aheader-search .header-center {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.aheader-search .header-omni-container {
  width: 100% !important;
  max-width: none !important;
}

.aheader-search .omni-search-dropdown {
  z-index: 1210;
}

.aheader-search-content {
  min-height: 52px;
}

/* ─── عناصر ومحتوى القائمة الجانبية الفاخرة ─── */
.aheader-drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid rgba(220, 185, 115, 0.22) !important;
  background: rgba(5, 24, 19, 0.75) !important;
  flex-shrink: 0 !important;
}

.aheader-drawer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.aheader-drawer-titles {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.2 !important;
}

.aheader-drawer-brand-ar {
  font-size: 21px !important;
  font-weight: 900 !important;
  color: #E4AA32 !important;
  text-shadow: 0 0 12px rgba(228, 170, 50, 0.3) !important;
}

.aheader-drawer-brand-sub {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #9BAEA8 !important;
}

.aheader-drawer-header .aheader-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(220, 185, 115, 0.3) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #E4AA32 !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}

.aheader-drawer-header .aheader-close:hover {
  background: rgba(220, 185, 115, 0.16) !important;
  transform: scale(1.08) !important;
}

.aheader-drawer-header .aheader-close svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  fill: none !important;
}

/* منطقة التمرير الانسيابية داخل القائمة الجانبية */
.aheader-mobile-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 16px 14px 32px !important;
  -webkit-overflow-scrolling: touch !important;
}

.aheader-mobile-scroll::-webkit-scrollbar {
  width: 4px;
}
.aheader-mobile-scroll::-webkit-scrollbar-thumb {
  background: rgba(220, 185, 115, 0.25);
  border-radius: 10px;
}

/* روابط ومجموعات القائمة الجانبية */
.aheader-mobile-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

/* الروابط المباشرة (الرئيسية، خريطة عماري، ريلز) */
.aheader-mobile-direct {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(143, 174, 156, 0.22) !important;
  color: #FFFFFF !important;
  font: 700 14.5px/1.5 Cairo, sans-serif !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.aheader-mobile-direct:hover,
.aheader-mobile-direct:focus-visible {
  background: rgba(20, 75, 60, 0.4) !important;
  border-color: rgba(220, 185, 115, 0.45) !important;
  color: #F8DE9E !important;
}

.aheader-mobile-arrow svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #B7C6C1 !important;
  fill: none !important;
  stroke-width: 2 !important;
  transition: transform 0.2s ease, stroke 0.2s ease !important;
}

:root[dir="rtl"] .aheader-mobile-arrow svg,
[dir="rtl"] .aheader-mobile-arrow svg {
  transform: rotate(90deg);
}
:root[dir="ltr"] .aheader-mobile-arrow svg,
[dir="ltr"] .aheader-mobile-arrow svg {
  transform: rotate(-90deg);
}

.aheader-mobile-direct:hover .aheader-mobile-arrow svg {
  stroke: #E4AA32 !important;
}

/* الأكورديون المنسدل للقوائم التشعبية (المعروض، المطلوب، سوق عماري، إلخ) */
.aheader-mobile-accordion {
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(143, 174, 156, 0.22) !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}

.aheader-mobile-accordion:has([aria-expanded="true"]) {
  border-color: rgba(220, 185, 115, 0.42) !important;
  background: rgba(9, 36, 29, 0.4) !important;
}

.aheader-mobile-accordion-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 14px 18px !important;
  background: none !important;
  border: none !important;
  color: #FFFFFF !important;
  font: 700 14.5px/1.5 Cairo, sans-serif !important;
  cursor: pointer !important;
  text-align: start !important;
  transition: color 0.2s ease !important;
}

.aheader-mobile-accordion-toggle:hover {
  color: #F8DE9E !important;
}

.aheader-mobile-chevron svg {
  width: 17px !important;
  height: 17px !important;
  stroke: #B7C6C1 !important;
  stroke-width: 2.2 !important;
  fill: none !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease !important;
}

.aheader-mobile-accordion-toggle[aria-expanded="true"] .aheader-mobile-chevron svg {
  transform: rotate(180deg) !important;
  stroke: #E4AA32 !important;
}

.aheader-mobile-accordion-body {
  display: grid !important;
  gap: 7px !important;
  padding: 10px 12px 16px !important;
  border-top: 1px dashed rgba(220, 185, 115, 0.18) !important;
  background: rgba(0, 0, 0, 0.22) !important;
}

.aheader-mobile-accordion-body[hidden] {
  display: none !important;
}

.aheader-mobile-accordion-body .aheader-sub-link {
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(143, 174, 156, 0.12) !important;
}

.aheader-mobile-accordion-body .aheader-sub-link:hover {
  background: rgba(20, 75, 60, 0.4) !important;
  border-color: rgba(220, 185, 115, 0.35) !important;
  color: #F8DE9E !important;
}

/* الإعدادات والروابط السفلية داخل القائمة الجانبية */
.aheader-mobile-settings {
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(220, 185, 115, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.aheader-mobile-app-btn {
  background: linear-gradient(135deg, rgba(20, 80, 65, 0.45) 0%, rgba(10, 40, 32, 0.35) 100%) !important;
  border: 1px solid rgba(220, 185, 115, 0.35) !important;
}

.aheader-mobile-app-btn:hover {
  background: linear-gradient(135deg, rgba(25, 95, 78, 0.6) 0%, rgba(15, 50, 40, 0.5) 100%) !important;
  border-color: #E4AA32 !important;
  box-shadow: 0 4px 16px rgba(228, 170, 50, 0.2) !important;
}

.aheader-account-shortcut {
  font-size: 12px;
}

header[data-unified-header] :is(a, button, input):focus {
  outline: none;
}

header[data-unified-header] :is(a, button, input):focus-visible {
  outline: 2px solid rgba(240, 207, 133, 0.75) !important;
  outline-offset: 2px;
}

body:has(header[data-unified-header]) #headerSearchExpandable {
  top: var(--ammari-header-height, 84px) !important;
}

/* ─── Breakpoints & Media Queries ─── */
@media (min-width: 1180px) and (max-width: 1399px) {
  .aheader-shell {
    padding-inline: 20px;
    gap: 10px;
  }
  .aheader-nav {
    gap: 4px;
  }
  header[data-unified-header] .aheader-primary {
    font-size: 12.5px !important;
    padding-inline: 6px !important;
  }
  header[data-unified-header] .aheader-tools .cta-btn {
    padding-inline: 12px !important;
  }
  .aheader-brand .brand-slogan {
    display: none !important;
  }
}

@media (min-width: 1180px) and (max-width: 1320px) {
  .aheader-nav {
    gap: 2px;
  }
  header[data-unified-header] .aheader-primary {
    padding-inline: 4px !important;
  }
  .aheader-disclosure {
    width: 16px;
  }
}

@media (max-width: 1179px) {
  .aheader-shell {
    min-height: 74px;
    padding: 10px 14px;
    gap: 8px;
  }
  .aheader-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    gap: 3px !important;
    justify-content: flex-start !important;
  }
  .aheader-nav::-webkit-scrollbar {
    display: none !important;
  }
  header[data-unified-header] .aheader-primary {
    font-size: 12px !important;
    padding: 6px 7px !important;
    gap: 4px !important;
  }
  .aheader-tools {
    margin-inline-start: auto !important;
    flex-shrink: 0 !important;
  }
  .aheader-mobile-toggle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .aheader-nav {
    display: none !important;
  }
}

@media (max-width: 1179px) {
  .aheader-panel {
    width: calc(100% - 32px);
    padding: 22px;
    max-height: calc(100dvh - var(--ammari-header-height, 74px) - 18px);
    overflow: auto;
  }
  .aheader-search {
    overflow: visible;
  }
  .aheader-panel-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aheader-panel-intro {
    gap: 12px;
  }
  .aheader-panel-intro p {
    display: none;
  }
  .aheader-brand .brand-name-ar {
    font-size: 22px !important;
  }
}

@media (max-width: 600px) {
  .aheader-shell {
    min-height: 70px;
    padding: 9px 14px;
    gap: 7px;
  }
  .aheader-brand .brand-logo-box {
    width: 32px !important;
    height: 40px !important;
  }
  .aheader-brand .brand-logo-box img {
    width: 32px !important;
    height: 39px !important;
  }
  .aheader-brand .brand-name-ar {
    font-size: 20px !important;
  }
  .aheader-brand .brand-name-en {
    font-size: 11px !important;
    letter-spacing: 1.5px;
  }
  header[data-unified-header] .aheader-tools :is(.country-select-btn, .header-app-icon-btn, .header-chat-wrap, .header-notif-wrap) {
    display: none !important;
  }
  header[data-unified-header] .aheader-tools {
    gap: 5px !important;
  }
  .aheader-tools .lang-ico,
  .aheader-tools .pill-chevron {
    display: none !important;
  }
  header[data-unified-header] .aheader-tools .header-pill-btn {
    padding: 4px 6px !important;
  }
  header[data-unified-header] .aheader-tools .cta-btn {
    font-size: 0 !important;
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
  }
  header[data-unified-header] .aheader-tools .cta-btn span {
    font-size: 0 !important;
  }
  header[data-unified-header] .aheader-tools .cta-btn::after {
    content: '+';
    font: 600 23px/1 Cairo, sans-serif;
  }
  /* الأيقونة المتجهة موجودة أصلًا؛ إخفاؤها هنا يمنع ظهور علامتي «+» فوق بعضهما */
  header[data-unified-header] .aheader-tools .cta-btn .cta-plus-svg {
    display: none !important;
  }
  .aheader-icon {
    width: 32px;
    height: 32px;
  }
  .aheader-panel {
    width: calc(100% - 20px);
    padding: 18px;
    border-radius: 0 0 18px 18px;
  }
  .aheader-panel-links {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .aheader-panel-intro h2 {
    font-size: 18px;
  }
  .aheader-search .header-omni-input {
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  header[data-unified-header],
  .aheader-panel:not([hidden]),
  .aheader-group::after,
  .aheader-disclosure svg,
  .aheader-sub-link {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

@media(max-width:600px){header[data-unified-header] .aheader-brand .brand-slogan{display:none!important;}}

/* English wordmark mirrors the Arabic lockup: AMMARI owns the gold lead line, Arabic sits beneath it. */
html[dir="ltr"] header[data-unified-header] .brand-text-col > .brand-name-en,
html.lang-en header[data-unified-header] .brand-text-col > .brand-name-en {
  order: 1 !important;
  display: inline-block !important;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  color: #E4AA32 !important;
  letter-spacing: 1.2px !important;
  padding-bottom: 6px !important;
  margin-bottom: 4px !important;
  text-shadow: 0 0 14px rgba(228, 170, 50, 0.25) !important;
  background-image: linear-gradient(to right, #E0941E 0%, #d7ad5c 32%, #8ba99d 62%, #28717a 85%, rgba(40, 113, 122, 0.18) 100%) !important;
  background-size: 100% 1.5px !important;
  background-position: left bottom !important;
  background-repeat: no-repeat !important;
}

html[dir="ltr"] header[data-unified-header] .brand-text-col > .brand-name-ar,
html.lang-en header[data-unified-header] .brand-text-col > .brand-name-ar {
  order: 2 !important;
  display: inline-block !important;
  font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #E6EBEA !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: none !important;
  background: none !important;
}

html[dir="ltr"] header[data-unified-header] .brand-text-col > .brand-slogan,
html.lang-en header[data-unified-header] .brand-text-col > .brand-slogan {
  order: 3 !important;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #9BAEA8 !important;
}

@media (max-width: 1179px) {
  html[dir="ltr"] header[data-unified-header] .brand-text-col > .brand-name-en,
  html.lang-en header[data-unified-header] .brand-text-col > .brand-name-en {
    font-size: 22px !important;
  }
  html[dir="ltr"] header[data-unified-header] .brand-text-col > .brand-name-ar,
  html.lang-en header[data-unified-header] .brand-text-col > .brand-name-ar {
    font-size: 12px !important;
  }
}

@media (max-width: 600px) {
  html[dir="ltr"] header[data-unified-header] .brand-text-col > .brand-name-en,
  html.lang-en header[data-unified-header] .brand-text-col > .brand-name-en {
    font-size: 20px !important;
    padding-bottom: 5px !important;
  }
  html[dir="ltr"] header[data-unified-header] .brand-text-col > .brand-name-ar,
  html.lang-en header[data-unified-header] .brand-text-col > .brand-name-ar {
    font-size: 11px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   🎬 Cinematic Reception Hero Video Background (واجهة الاستقبال السينمائية - كولد ويل بانكر)
   ══════════════════════════════════════════════════════════════════════════════ */
body {
  position: relative !important;
}

.hero-video-stage {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: clamp(660px, 86vh, 940px) !important;
  height: auto !important;
  margin-top: 0 !important;
  padding-top: calc(var(--ammari-header-height, 97px) + 22px) !important;
  padding-bottom: 40px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  user-select: auto !important;
  contain: layout;
}

.hero-video-media {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.88 !important;
  filter: brightness(0.92) contrast(1.05) saturate(1.12) !important;
  transition: opacity 0.4s ease !important;
  z-index: 1 !important;
}

.hero-video-scrim {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 2 !important;
  background: linear-gradient(
    180deg,
    rgba(6, 18, 16, 0.48) 0%,
    rgba(6, 18, 16, 0.18) 20%,
    rgba(7, 13, 14, 0.32) 58%,
    rgba(7, 13, 14, 0.72) 82%,
    rgba(7, 13, 14, 0.95) 95%,
    #070D0E 100%
  ) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   🚀 كبسولة الإعلان الحركي الفاخر للإطلاق التجريبي (Cinematic Kinetic Launch Banner)
   إطلاق تجريبي — مفيش وقت تنتظرونا !!!
   ══════════════════════════════════════════════════════════════════════════════ */
.hero-launch-banner {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 8px 22px 8px 16px !important;
  margin: 0 auto 18px auto !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, rgba(14, 30, 27, 0.82) 0%, rgba(6, 17, 19, 0.92) 100%) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border: 1px solid rgba(226, 183, 120, 0.45) !important;
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  position: relative !important;
  z-index: 4 !important;
  cursor: default !important;
  user-select: none !important;
  white-space: nowrap !important;
  max-width: 94vw !important;
  animation: 
    launchBannerFloat 4.2s ease-in-out infinite,
    launchGlowPulse 3s ease-in-out infinite alternate !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.hero-launch-banner:hover {
  transform: translateY(-2px) scale(1.02) !important;
  border-color: rgba(245, 215, 127, 0.85) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(212, 175, 55, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* 🟢 نبض راداري حي للإطلاق (Live Radar Beacon) */
.launch-live-beacon {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

.launch-live-beacon .beacon-core {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  box-shadow: 0 0 8px #10B981, 0 0 14px rgba(16, 185, 129, 0.8) !important;
  z-index: 2 !important;
}

.launch-live-beacon .beacon-pulse {
  position: absolute !important;
  inset: -3px !important;
  border-radius: 50% !important;
  background: rgba(16, 185, 129, 0.45) !important;
  animation: beaconPing 2s cubic-bezier(0, 0, 0.2, 1) infinite !important;
  z-index: 1 !important;
}

@keyframes beaconPing {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  70%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* 🏷️ شارة الإطلاق التجريبي (Launch Tag) */
.launch-banner-tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 11px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, rgba(226, 183, 120, 0.24) 0%, rgba(212, 175, 55, 0.12) 100%) !important;
  border: 1px solid rgba(226, 183, 120, 0.5) !important;
  color: #F5D77F !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.04em !important;
  text-shadow: 0 0 10px rgba(245, 215, 127, 0.4) !important;
  flex-shrink: 0 !important;
}

/* ✨ نجمة الفاصل الحركية (Twinkling Sparkle) */
.launch-banner-sparkle {
  color: #E2B778 !important;
  font-size: 11px !important;
  display: inline-block !important;
  line-height: 1 !important;
  animation: sparkleTwinkle 2.4s ease-in-out infinite alternate !important;
  text-shadow: 0 0 10px rgba(226, 183, 120, 0.7) !important;
  flex-shrink: 0 !important;
}

@keyframes sparkleTwinkle {
  0% {
    transform: scale(0.85) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.2) rotate(45deg);
    opacity: 1;
  }
}

/* 💎 النص الحركي الفاخر بتموج الذهب السائل (Liquid Gold Shimmer Typography) */
.launch-banner-text {
  font-family: 'Cairo', sans-serif !important;
  font-size: clamp(13.5px, 1.4vw, 15.5px) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(
    110deg,
    #F5D77F 0%,
    #FFF5D0 20%,
    #FFFFFF 35%,
    #E2B778 50%,
    #FFFFFF 65%,
    #FFF5D0 80%,
    #F5D77F 100%
  ) !important;
  background-size: 260% 100% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: textShimmerSweep 3.4s linear infinite !important;
  text-shadow: 0 0 16px rgba(245, 215, 127, 0.28) !important;
  white-space: nowrap !important;
}

@keyframes textShimmerSweep {
  0% {
    background-position: 260% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

/* 🌊 طفو حركي هادئ للكبسولة (Gentle Float) */
@keyframes launchBannerFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3.5px);
  }
}

/* 🌟 نبض التوهج الذهبي (Luminous Border Glow Pulse) */
@keyframes launchGlowPulse {
  0% {
    border-color: rgba(226, 183, 120, 0.35);
    box-shadow: 
      0 6px 24px rgba(0, 0, 0, 0.55),
      0 0 14px rgba(212, 175, 55, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  100% {
    border-color: rgba(245, 215, 127, 0.75);
    box-shadow: 
      0 8px 28px rgba(0, 0, 0, 0.6),
      0 0 24px rgba(212, 175, 55, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}

/* 📱 تجاوب كامل مع شاشات الهواتف المحمولة */
@media (max-width: 680px) {
  .hero-launch-banner {
    padding: 6px 14px 6px 11px !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .launch-banner-tag {
    font-size: 11px !important;
    padding: 2.5px 8px !important;
  }
  .launch-banner-text {
    font-size: 12.5px !important;
  }
}

@media (max-width: 420px) {
  .hero-launch-banner {
    padding: 5px 12px 5px 9px !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  .launch-banner-tag {
    font-size: 10.5px !important;
    padding: 2px 7px !important;
  }
  .launch-banner-text {
    font-size: 11.5px !important;
  }
}

.hero-video-content {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   💎 كونسول البحث السينمائي المدمج كلياً في الفديو — بدون خلفية ولا إطار (Coldwell Banker Parity)
   عناصر ومربعات البحث فقط عائمة بشفافية نقية وفخامة مباشرة فوق الفديو
   ══════════════════════════════════════════════════════════════════════════════ */
.hero-video-content .master-search-section,
.hero-video-content #mobileSearchPanel,
.hero-video-content #mobileSearchPanel[open],
.hero-video-content .master-search-card,
.hero-video-content #mobileSearchPanel > .master-search-card,
.hero-video-content #mobileSearchPanel[open] > .master-search-card {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1320px !important;
  pointer-events: auto !important;
}

.hero-video-content #mobileSearchPanel::before,
.hero-video-content #mobileSearchPanel::after,
.hero-video-content .master-search-card::before,
.hero-video-content .master-search-card::after {
  display: none !important;
  content: none !important;
}

/* ❌ إخفاء كامل لزر فتح/إغلاق البحث وأي رأس أكورديون */
.hero-video-content #mobileSearchPanel > summary,
.hero-video-content #mobileSearchPanel > .home-search-launch,
.hero-video-content #mobileSearchPanel[open] > .home-search-launch {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* ❌ إخفاء كامل للعنوان العام ووصف البحث */
.hero-video-content .ms-title-side,
.hero-video-content .ms-heading,
.hero-video-content .ms-subheading,
.hero-video-content .ms-icon-glow {
  display: none !important;
}

/* ─── شريط تبويبات المعاملة (الكل / للبيع / للإيجار) وزر التفريغ عائمة بنقاء ─── */
.hero-video-content .ms-head-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: none !important;
}

.hero-video-content .ms-head-controls {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.hero-video-content .ms-deal-tabs {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 6px !important;
  border-radius: 999px !important;
  background: rgba(6, 18, 16, 0.72) !important;
  border: 1px solid rgba(220, 185, 115, 0.4) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.hero-video-content .ms-deal-tab {
  padding: 8px 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #D6E4E0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.hero-video-content .ms-deal-tab:hover {
  color: #FFFFFF !important;
}

.hero-video-content .ms-deal-tab.active {
  background: linear-gradient(135deg, #FBB20D, #D88400) !important;
  color: #17271B !important;
  font-weight: 800 !important;
  box-shadow: 0 0 20px rgba(251, 166, 8, 0.55) !important;
}

.hero-video-content .ms-reset-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #CFDDD8 !important;
  background: rgba(6, 18, 16, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.hero-video-content .ms-reset-btn:hover {
  color: #FFFFFF !important;
  border-color: rgba(244, 206, 122, 0.5) !important;
  background: rgba(14, 38, 33, 0.85) !important;
}

/* ─── سطر حقول ومربعات البحث الزجاجية الشفافة ─── */
.hero-video-content .ms-primary-row {
  display: grid !important;
  grid-template-columns: minmax(190px, 1.25fr) minmax(170px, 1.15fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(220px, 1.6fr) auto !important;
  gap: 12px !important;
  align-items: flex-end !important;
  width: 100% !important;
  margin-bottom: 14px !important;
}

.hero-video-content .ms-field-col {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.hero-video-content .ms-label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  margin-bottom: 7px !important;
  white-space: nowrap !important;
}

.hero-video-content .ms-filter-btn,
.hero-video-content .ms-input-box {
  min-height: 56px !important;
  border-radius: 14px !important;
  background: rgba(6, 20, 17, 0.72) !important;
  border: 1.5px solid rgba(220, 185, 115, 0.38) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  color: #F1F7F5 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
  box-sizing: border-box !important;
}

.hero-video-content .ms-filter-btn:hover,
.hero-video-content .ms-filter-btn:focus-visible,
.hero-video-content .ms-input-box:focus-within {
  border-color: #F4CE7A !important;
  background: rgba(9, 28, 24, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(244, 206, 122, 0.25), 0 8px 28px rgba(0, 0, 0, 0.7) !important;
}

.hero-video-content .ms-query-input,
.hero-video-content #msSearchQueryInput {
  color: #FFFFFF !important;
  font-size: 13.5px !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100% !important;
  height: 100% !important;
}

.hero-video-content .ms-query-input:focus,
.hero-video-content #msSearchQueryInput:focus {
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.hero-video-content .ms-query-input::placeholder {
  color: #8DAAA2 !important;
}

.hero-video-content .ms-location-copy strong {
  color: #F8DFC0 !important;
  font-size: 13.5px !important;
}

.hero-video-content .ms-location-copy small {
  color: #A0BDB5 !important;
  font-size: 10.5px !important;
}

.hero-video-content .ms-location-icon {
  background: rgba(18, 180, 164, 0.2) !important;
}

/* زر البحث الذهبي البرتقالي الفاخر */
.hero-video-content .ms-red-search-btn {
  min-height: 56px !important;
  padding: 0 26px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #F5AB09, #D98C06) !important;
  border: 1.5px solid rgba(255, 218, 140, 0.85) !important;
  color: #152219 !important;
  font-weight: 800 !important;
  font-size: 15.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 6px 26px rgba(227, 155, 9, 0.5) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  white-space: nowrap !important;
}

.hero-video-content .ms-red-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(227, 155, 9, 0.75) !important;
}

/* ─── شريط المواصفات السريعة (غرف، حمامات، تشطيب، دفع) عائمة مباشرة ─── */
.hero-video-content .ms-specs-strip {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px 18px !important;
  width: 100% !important;
  padding: 2px 0 0 !important;
  border-top: none !important;
  background: transparent !important;
}

.hero-video-content .ms-spec-cluster {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.hero-video-content .ms-spec-tag {
  color: #FFFFFF !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
  white-space: nowrap !important;
}

.hero-video-content .ms-spec-sep {
  width: 1px !important;
  height: 18px !important;
  background: rgba(220, 185, 115, 0.28) !important;
  display: inline-block !important;
}

.hero-video-content .ms-pills {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
}

.hero-video-content .ms-pill {
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: rgba(6, 20, 17, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #E2ECE9 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.hero-video-content .ms-pill:hover {
  color: #FFFFFF !important;
  border-color: rgba(220, 185, 115, 0.5) !important;
}

.hero-video-content .ms-pill.active {
  background: #0B8D85 !important;
  border-color: #39DAC9 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(18, 189, 181, 0.5) !important;
}

.hero-video-content .ms-negotiable-check-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #F8DFC0 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
  cursor: pointer !important;
}

body.reels-immersive-open .hero-video-stage,
body.reel-preview-open .hero-video-stage,
html.page-market-hub .hero-video-stage,
body[data-page="market-hub"] .hero-video-stage,
body:has(#searchResultsPageSection:not([style*="display: none"]):not([style*="display:none"])) .hero-video-stage,
body:has(#reelsPageSection:not([style*="display: none"]):not([style*="display:none"])) .hero-video-stage {
  display: none !important;
}

/* 📱 تجاوب عرض تطبيق الموبايل (Responsive Mobile Web View) */
@media (max-width: 992px) {
  .hero-video-content .ms-primary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .hero-video-content .ms-btn-col {
    grid-column: 1 / -1 !important;
  }
  .hero-video-content .ms-red-search-btn {
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .hero-video-stage {
    min-height: 480px !important;
    height: auto !important;
    padding-top: calc(var(--ammari-header-height, 84px) + 10px) !important;
    padding-bottom: 20px !important;
  }
  .hero-video-content {
    padding: 0 12px !important;
  }
  .hero-video-content .ms-primary-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .hero-video-content .ms-deal-tab {
    padding: 6px 14px !important;
    font-size: 12px !important;
  }
  .hero-video-content .ms-spec-cluster {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .hero-video-content .ms-spec-sep {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-media {
    display: none !important;
  }
}

/* ─── توحيد أيقونات مواصفات العقارات والبحث بنمط الخطوط المفرغة الراقية (Monochrome Vector Outline Spec Icons) ─── */
.hero-video-content .spec-ico-svg,
.ms-label-ico .spec-ico-svg,
.ms-spec-tag .spec-ico-svg,
.ms-btn-icon .spec-ico-svg,
.ms-location-icon .spec-ico-svg,
.ms-check-text .spec-ico-svg,
.hdr-line-title .spec-ico-svg,
.hdr-field-label .spec-ico-svg,
.hdr-ico .spec-ico-svg,
.hdr-btn-icon .spec-ico-svg,
.hdr-input-icon .spec-ico-svg,
.hdr-deal-tab .spec-ico-svg,
.hdr-check-text .spec-ico-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.hero-video-content .ms-label-ico .spec-ico-svg,
.hero-video-content .ms-spec-tag .spec-ico-svg {
  stroke: #E2B778;
  color: #E2B778;
  margin-inline-end: 4px;
}

.hero-video-content .ms-btn-icon .spec-ico-svg,
.hero-video-content .ms-location-icon .spec-ico-svg {
  stroke: #F4DFC2;
  color: #F4DFC2;
}

.hero-video-content .ms-red-search-btn .spec-ico-svg,
.hdr-red-search-btn .spec-ico-svg {
  stroke: #FFFFFF;
  color: #FFFFFF;
  width: 15px;
  height: 15px;
}

.hero-video-content .ms-check-text .spec-ico-svg,
.hdr-check-text .spec-ico-svg {
  stroke: #E2B778;
  color: #E2B778;
  margin-inline-end: 4px;
}

.hdr-field-label .hdr-ico .spec-ico-svg,
.hdr-line-title .line-ico .spec-ico-svg {
  stroke: #B7C6C1;
  color: #B7C6C1;
  margin-inline-end: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   🎬 إخفاء القائمة الرئيسية الموحدة تماماً عند عرض أي ريلز في الموقع أو الخريطة
   (Pure Cinema Reels Experience: Total Header Auto-Hide)
   ══════════════════════════════════════════════════════════════════════════════ */
body:has(.tiktok-overlay.active:not(.mini-dock-mode)) header[data-unified-header],
body:has(.tiktok-overlay.active:not(.mini-dock-mode)) #siteHeader,
body:has(.tiktok-overlay.active:not(.mini-dock-mode)) #ammariUnifiedHeader,
body.reel-preview-open header[data-unified-header],
body.reel-preview-open #siteHeader,
body.reel-preview-open #ammariUnifiedHeader,
body.map-reel-active header[data-unified-header],
body.map-reel-active #siteHeader,
body.map-reel-active #ammariUnifiedHeader {
  display: none !important;
}

body.has-reel-mini-dock:has(.tiktok-overlay.active.mini-dock-mode) header[data-unified-header],
body.has-reel-mini-dock:has(.tiktok-overlay.active.mini-dock-mode) #siteHeader,
body.has-reel-mini-dock:has(.tiktok-overlay.active.mini-dock-mode) #ammariUnifiedHeader {
  display: block !important;
}

/* Signature Light: الهيدر النهاري يبقى سطحاً واضحاً لا طبقة داكنة شفافة. */
body.light-theme header[data-unified-header],
body.light-theme header#siteHeader,
body.light-theme #siteHeader,
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-block-end-color: #d8e5de !important;
  box-shadow: 0 5px 18px rgba(25, 54, 40, 0.08) !important;
  backdrop-filter: blur(12px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(115%) !important;
}
body.light-theme header[data-unified-header] .aheader-primary,
body.light-theme #siteHeader .aheader-primary {
  color: #365147 !important;
}
body.light-theme header[data-unified-header] .aheader-group.is-current-page .aheader-primary,
body.light-theme #siteHeader .aheader-group.is-current-page .aheader-primary {
  color: #17684f !important;
}
body.light-theme header[data-unified-header] .aheader-icon,
body.light-theme #siteHeader .aheader-icon,
body.light-theme #siteHeader .icon-btn {
  color: #294239 !important;
  background: #f5f9f6 !important;
  border-color: #d6e4dc !important;
  box-shadow: none !important;
}

/* خصوصية أعلى من طبقة الـhero المتحركة التي تُحمّل بعد ملف الهيدر. */
html body.light-theme #siteHeader[data-unified-header] {
  background: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
}

/* Lite يتغلب عمداً على زخارف استقبال Signature الثقيلة. */
html body.theme-lite .hero-video-content :is(.master-search-section, #mobileSearchPanel,
  .master-search-card, .ms-filter-btn, .ms-input-box, .ms-pill, .ms-deal-tab) {
  background: var(--lite-surface) !important;
  background-image: none !important;
  border-color: var(--lite-line) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html body.theme-lite .hero-video-content :is(.ms-query-input, #msSearchQueryInput,
  .ms-location-copy strong, .ms-label, .ms-spec-tag, .ms-heading, .ms-subheading,
  .hero-service-story, .hero-service-story *) {
  color: var(--lite-text) !important;
  text-shadow: none !important;
  filter: none !important;
}
html body.theme-lite .hero-video-content .ms-query-input::placeholder {
  color: var(--lite-muted) !important;
}
html body.theme-lite .hero-video-content .ms-deal-tab.active,
html body.theme-lite .hero-video-content .ms-pill.active {
  color: #ffffff !important;
  background: var(--lite-accent) !important;
  border-color: var(--lite-accent) !important;
}

/* القوائم المنسدلة جزء من النهار أيضاً، لا تبقى داكنة عند فتحها. */
html body.light-theme #siteHeader.is-open,
html body.light-theme .aheader-panel:not(.aheader-mobile):not(.aheader-search) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d8e5de !important;
  box-shadow: 0 8px 22px rgba(25, 54, 40, 0.10) !important;
}
html body.light-theme .aheader-panel:not(.aheader-mobile):not(.aheader-search)::before {
  background: #b8ddcb !important;
  box-shadow: none !important;
}
html body.light-theme .aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-panel-links {
  background: #f6faf7 !important;
  border-color: #d8e5de !important;
  box-shadow: none !important;
}
html body.light-theme .aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link {
  color: #365147 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body.light-theme .aheader-panel:not(.aheader-mobile):not(.aheader-search) .aheader-sub-link:is(:hover, :focus-visible, .active, [aria-current="page"]) {
  color: #17684f !important;
  background: #e5f3eb !important;
  border-color: #b8ddcb !important;
  box-shadow: none !important;
}



/* 🌟 الأيقونات الفاخرة الموحدة للعناوين الرئيسية والتنقل الأساسي 🌟 */
.aheader-nav-ico {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  color: rgba(220, 185, 115, 0.75) !important;
  flex-shrink: 0 !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

header[data-unified-header] .aheader-primary:is(:hover, :focus-visible, .active) .aheader-nav-ico,
.aheader-group.is-expanded .aheader-nav-ico,
.aheader-group.is-current-page .aheader-nav-ico {
  color: #efd39c !important;
  transform: translateY(-1px) scale(1.08) !important;
  filter: drop-shadow(0 0 6px rgba(221, 179, 99, 0.55)) !important;
}

/* 🌟 الأيقونات الفاخرة الموحدة للعناوين الفرعية والكبسولات 🌟 */
.aheader-sub-ico {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  color: rgba(220, 185, 115, 0.85) !important;
  flex-shrink: 0 !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.aheader-sub-link:hover .aheader-sub-ico,
.aheader-sub-link.active .aheader-sub-ico,
.aheader-sub-link[aria-current="page"] .aheader-sub-ico {
  color: #FFF3D4 !important;
  transform: translateY(-1px) scale(1.1) !important;
  filter: drop-shadow(0 0 6px rgba(240, 207, 133, 0.65)) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   🏛️ التنسيق البصري الفاخر للقائمة الرئيسية في حالة فتح شات عماري
   (Visual Elegance & Absolute Collision Prevention When Copilot Panel is Open)
   ══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  body.copilot-panel-open #siteHeader,
  body.copilot-panel-open .site-header,
  body.copilot-panel-open header[data-unified-header],
  body.copilot-panel-open:has(#heroVideoStage) #siteHeader {
    position: fixed !important;
    top: 0 !important;
    inset-block-start: 0 !important;
    inset-inline: auto !important;
    left: 0 !important;
    right: var(--cf-panel-w, 460px) !important;
    width: calc(100vw - var(--cf-panel-w, 460px)) !important;
    max-width: calc(100vw - var(--cf-panel-w, 460px)) !important;
  }

  body.copilot-panel-open #siteHeader .aheader-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 10px !important;
    min-height: 58px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }

  body.copilot-panel-open #siteHeader .brand-logo-img,
  body.copilot-panel-open header[data-unified-header] .brand-logo-img {
    height: 36px !important;
    max-height: 36px !important;
  }

  body.copilot-panel-open header[data-unified-header] .brand-name-ar {
    font-size: 18px !important;
  }

  body.copilot-panel-open header[data-unified-header] .brand-name-en {
    font-size: 11px !important;
    letter-spacing: 1px !important;
  }

  body.copilot-panel-open header[data-unified-header] .brand-slogan {
    display: none !important;
  }

  body.copilot-panel-open .aheader-nav {
    gap: 2px !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    justify-content: safe center !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  body.copilot-panel-open .aheader-nav::-webkit-scrollbar {
    display: none !important;
  }

  body.copilot-panel-open #siteHeader .aheader-primary,
  body.copilot-panel-open header[data-unified-header] .aheader-primary,
  body.copilot-panel-open #siteHeader .desktop-nav-link {
    padding: 4px 5px !important;
    font-size: 11.5px !important;
    gap: 3px !important;
  }

  body.copilot-panel-open #siteHeader .aheader-nav-ico {
    width: 13px !important;
    height: 13px !important;
  }

  body.copilot-panel-open #siteHeader .aheader-disclosure {
    width: 11px !important;
    min-width: 11px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
  }

  body.copilot-panel-open #siteHeader .aheader-disclosure svg {
    width: 10px !important;
    height: 10px !important;
  }

  body.copilot-panel-open #siteHeader .aheader-tools,
  body.copilot-panel-open header[data-unified-header] .aheader-tools {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  body.copilot-panel-open #siteHeader .aheader-tools .cta-btn,
  body.copilot-panel-open header[data-unified-header] .aheader-tools .cta-btn {
    padding: 4px 8px !important;
    min-height: 30px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    position: static !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  body.copilot-panel-open #siteHeader .aheader-tools :is(.icon-btn, .header-profile-btn, .aheader-icon),
  body.copilot-panel-open header[data-unified-header] .aheader-tools :is(.icon-btn, .header-profile-btn, .aheader-icon) {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
  }

  body.copilot-panel-open #siteHeader .aheader-tools .country-lang-btn,
  body.copilot-panel-open header[data-unified-header] .aheader-tools .country-lang-btn {
    height: 28px !important;
    padding: 0 6px !important;
    gap: 3px !important;
  }

  body.copilot-panel-open #siteHeader .aheader-tools .country-lang-btn .lang-name {
    font-size: 10.5px !important;
  }

  /* إخفاء الأزرار المكررة أو الأقل أولوية لتفريغ المساحة تماماً أثناء المحادثة */
  body.copilot-panel-open #siteHeader .aheader-tools :is(#headerChatInboxBtn, .header-chat-wrap, #headerGooglePlayBtn, .aheader-app-link, [data-header-action="googlePlay"]) {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1520px) {
  body.copilot-panel-open #siteHeader .aheader-nav-ico {
    display: none !important;
  }
  body.copilot-panel-open #siteHeader .aheader-nav {
    gap: 0px !important;
  }
  body.copilot-panel-open #siteHeader .aheader-primary,
  body.copilot-panel-open header[data-unified-header] .aheader-primary,
  body.copilot-panel-open #siteHeader .desktop-nav-link {
    padding: 4px 2.5px !important;
    font-size: 10.5px !important;
  }
  body.copilot-panel-open #siteHeader .aheader-disclosure {
    width: 8px !important;
    min-width: 8px !important;
  }
  body.copilot-panel-open #siteHeader .aheader-tools .cta-btn {
    padding: 4px 7px !important;
    font-size: 10.5px !important;
  }
}

@media (min-width: 769px) and (max-width: 1320px) {
  body.copilot-panel-open #siteHeader .aheader-shell {
    padding: 5px 8px !important;
    gap: 3px !important;
  }
  body.copilot-panel-open #siteHeader .aheader-nav {
    gap: 0px !important;
  }
  body.copilot-panel-open #siteHeader .aheader-primary,
  body.copilot-panel-open header[data-unified-header] .aheader-primary,
  body.copilot-panel-open #siteHeader .desktop-nav-link {
    padding: 4px 2px !important;
    font-size: 10px !important;
  }
  body.copilot-panel-open #siteHeader .aheader-disclosure {
    width: 8px !important;
    min-width: 8px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ✨ الهوية اللونية المتناسقة لقائمتي «المعروض» (الزمردي/السيان) و«المطلوب» (الذهبي الكهرماني)
   Harmonized Brand Identity for "Offers" & "Requests" — Unified Borderless Nav + Segmented Dock
   ══════════════════════════════════════════════════════════════════════════════ */

/* ─── 1. عنوان «المعروض» في الشريط العلوي (بنفس الاستايل العام بدون صندوق أو إطار شاذ) ─── */
header[data-unified-header] .aheader-group[data-header-group="offers"],
header[data-unified-header] .aheader-group[data-header-group="offers"]:is(:hover, :focus-within, .is-current, .is-expanded),
header[data-unified-header] .aheader-group[data-header-group="offers"]:has([aria-expanded="true"]) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
  transform: none !important;
}

header[data-unified-header] .aheader-group[data-header-group="offers"] > .aheader-primary {
  color: #D4EAE6 !important;
}

header[data-unified-header] .aheader-group[data-header-group="offers"] > .aheader-primary .aheader-nav-ico {
  stroke: #2DD4BF !important;
  color: #2DD4BF !important;
  opacity: 0.95 !important;
  filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.35));
  transition: stroke 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

header[data-unified-header] .aheader-group[data-header-group="offers"] > .aheader-disclosure {
  color: #7BB5AC !important;
}

header[data-unified-header] .aheader-group[data-header-group="offers"]::after {
  background: linear-gradient(90deg, transparent, #14B8A6, #5EEAD4, #14B8A6, transparent) !important;
}

header[data-unified-header] .aheader-group[data-header-group="offers"]:is(:hover, :focus-within, .is-current, .is-expanded, .is-current-page) > .aheader-primary,
header[data-unified-header] .aheader-group[data-header-group="offers"]:has([aria-expanded="true"]) > .aheader-primary {
  color: #5EEAD4 !important;
  text-shadow: 0 0 14px rgba(45, 212, 191, 0.32) !important;
}

header[data-unified-header] .aheader-group[data-header-group="offers"]:is(:hover, :focus-within, .is-current, .is-expanded, .is-current-page) > .aheader-primary .aheader-nav-ico,
header[data-unified-header] .aheader-group[data-header-group="offers"]:has([aria-expanded="true"]) > .aheader-primary .aheader-nav-ico {
  stroke: #5EEAD4 !important;
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.65)) !important;
}

header[data-unified-header] .aheader-group[data-header-group="offers"]:is(:hover, :focus-within, .is-current, .is-expanded) > .aheader-disclosure,
header[data-unified-header] .aheader-group[data-header-group="offers"]:has([aria-expanded="true"]) > .aheader-disclosure {
  color: #5EEAD4 !important;
}

/* ─── تشعبات «المعروض» بنفس نظام الدوك الزجاجي الموحد (#aheader-offers Segmented Dock) ─── */
#aheader-offers.aheader-panel::before {
  background: linear-gradient(90deg, transparent 0%, rgba(20, 184, 166, 0.4) 15%, #5EEAD4 50%, rgba(20, 184, 166, 0.4) 85%, transparent 100%) !important;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.45) !important;
}

#aheader-offers.aheader-panel .aheader-panel-links {
  border-color: rgba(45, 212, 191, 0.26) !important;
}

#aheader-offers.aheader-panel .aheader-sub-link .aheader-sub-ico {
  stroke: #2DD4BF !important;
  color: #2DD4BF !important;
}

#aheader-offers.aheader-panel .aheader-sub-link:is(:hover, :focus-visible, .is-current, .active) {
  background: linear-gradient(135deg, rgba(18, 158, 155, 0.42) 0%, rgba(11, 56, 54, 0.72) 100%) !important;
  border-color: rgba(94, 234, 212, 0.55) !important;
  color: #ECFEFF !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(45, 212, 191, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

#aheader-offers.aheader-panel .aheader-sub-link:is(:hover, :focus-visible, .is-current, .active) > span {
  color: #5EEAD4 !important;
}

#aheader-offers.aheader-panel .aheader-sub-link:is(:hover, :focus-visible, .is-current, .active) .aheader-sub-ico {
  stroke: #5EEAD4 !important;
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.6)) !important;
}

/* ─── 2. عنوان «المطلوب» في الشريط العلوي (بنفس الاستايل العام بدون صندوق أو إطار شاذ) ─── */
header[data-unified-header] .aheader-group[data-header-group="requests"],
header[data-unified-header] .aheader-group[data-header-group="requests"]:is(:hover, :focus-within, .is-current, .is-expanded),
header[data-unified-header] .aheader-group[data-header-group="requests"]:has([aria-expanded="true"]) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
  transform: none !important;
}

header[data-unified-header] .aheader-group[data-header-group="requests"] > .aheader-primary {
  color: #EAE2CE !important;
}

header[data-unified-header] .aheader-group[data-header-group="requests"] > .aheader-primary .aheader-nav-ico {
  stroke: #FBBF24 !important;
  color: #FBBF24 !important;
  opacity: 0.95 !important;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.35));
  transition: stroke 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

header[data-unified-header] .aheader-group[data-header-group="requests"] > .aheader-disclosure {
  color: #B59F6B !important;
}

header[data-unified-header] .aheader-group[data-header-group="requests"]::after {
  background: linear-gradient(90deg, transparent, #D97706, #FDE68A, #D97706, transparent) !important;
}

header[data-unified-header] .aheader-group[data-header-group="requests"]:is(:hover, :focus-within, .is-current, .is-expanded, .is-current-page) > .aheader-primary,
header[data-unified-header] .aheader-group[data-header-group="requests"]:has([aria-expanded="true"]) > .aheader-primary {
  color: #FCD34D !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.32) !important;
}

header[data-unified-header] .aheader-group[data-header-group="requests"]:is(:hover, :focus-within, .is-current, .is-expanded, .is-current-page) > .aheader-primary .aheader-nav-ico,
header[data-unified-header] .aheader-group[data-header-group="requests"]:has([aria-expanded="true"]) > .aheader-primary .aheader-nav-ico {
  stroke: #FDE68A !important;
  filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.65)) !important;
}

header[data-unified-header] .aheader-group[data-header-group="requests"]:is(:hover, :focus-within, .is-current, .is-expanded) > .aheader-disclosure,
header[data-unified-header] .aheader-group[data-header-group="requests"]:has([aria-expanded="true"]) > .aheader-disclosure {
  color: #FCD34D !important;
}

/* ─── تشعبات «المطلوب» بنفس نظام الدوك الزجاجي الموحد (#aheader-requests Segmented Dock) ─── */
#aheader-requests.aheader-panel::before {
  background: linear-gradient(90deg, transparent 0%, rgba(217, 119, 6, 0.4) 15%, #FDE68A 50%, rgba(217, 119, 6, 0.4) 85%, transparent 100%) !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45) !important;
}

#aheader-requests.aheader-panel .aheader-panel-links {
  border-color: rgba(251, 191, 36, 0.26) !important;
}

#aheader-requests.aheader-panel .aheader-sub-link .aheader-sub-ico {
  stroke: #FBBF24 !important;
  color: #FBBF24 !important;
}

#aheader-requests.aheader-panel .aheader-sub-link:is(:hover, :focus-visible, .is-current, .active) {
  background: linear-gradient(135deg, rgba(180, 115, 18, 0.42) 0%, rgba(52, 34, 8, 0.72) 100%) !important;
  border-color: rgba(253, 224, 71, 0.55) !important;
  color: #FFFBEB !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(251, 191, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

#aheader-requests.aheader-panel .aheader-sub-link:is(:hover, :focus-visible, .is-current, .active) > span {
  color: #FDE68A !important;
}

#aheader-requests.aheader-panel .aheader-sub-link:is(:hover, :focus-visible, .is-current, .active) .aheader-sub-ico {
  stroke: #FDE68A !important;
  filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.6)) !important;
}

/* يظل هذا في آخر الملف حتى لا تعيده زخارف الهيدر الداكنة بعده. */
body.light-theme header[data-unified-header],
body.light-theme header#siteHeader,
body.light-theme #siteHeader,
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
  border-block-end-color: #d8e5de !important;
  box-shadow: 0 5px 18px rgba(25, 54, 40, 0.08) !important;
  backdrop-filter: blur(12px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(115%) !important;
}
body.light-theme header[data-unified-header] .aheader-primary,
body.light-theme #siteHeader .aheader-primary { color: #365147 !important; }
body.light-theme header[data-unified-header] .aheader-group.is-current-page .aheader-primary,
body.light-theme #siteHeader .aheader-group.is-current-page .aheader-primary { color: #17684f !important; }
body.light-theme header[data-unified-header] .aheader-icon,
body.light-theme #siteHeader .aheader-icon,
body.light-theme #siteHeader .icon-btn {
  color: #294239 !important;
  background: #f5f9f6 !important;
  border-color: #d6e4dc !important;
  box-shadow: none !important;
}
