/* ==========================================================================
   AqarSyriaNI - Ultra-Lightweight Navbar Styles
   Optimized for 3G Networks (Zero external fonts/images, Pure CSS & SVG)
   Full RTL & LTR Bi-directional Support using CSS Logical Properties
   ========================================================================== */

:root {
  --aqar-primary: #0d5c46;        /* Deep Syrian Pine / Mediterranean Emerald */
  --aqar-primary-hover: #094333;
  --aqar-primary-light: #e8f5f1;
  --aqar-accent: #c68a4c;         /* Damascus Warm Amber / Gold */
  --aqar-accent-hover: #ad7439;
  --aqar-accent-light: #fbf5ee;
  --aqar-surface: #ffffff;
  --aqar-bg-subtle: #f8faf9;
  --aqar-border: #e2e8e5;
  --aqar-text-main: #192a24;
  --aqar-text-muted: #5e726b;
  --aqar-text-inverse: #ffffff;
  --aqar-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --aqar-shadow-md: 0 4px 16px rgba(13, 92, 70, 0.08);
  --aqar-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --aqar-radius: 8px;
  --aqar-radius-pill: 9999px;
  --aqar-nav-height: 64px;
  --aqar-transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --aqar-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Cairo", "Tahoma", sans-serif;
}

/* Reset for component container */
.aqar-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--aqar-surface);
  border-bottom: 1px solid var(--aqar-border);
  box-shadow: var(--aqar-shadow-sm);
  font-family: var(--aqar-font-family);
  direction: inherit;
  color: var(--aqar-text-main);
  box-sizing: border-box;
}

.aqar-header *,
.aqar-header *::before,
.aqar-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Top auxiliary strip removed - consolidated into 64px main navbar */
.aqar-top-bar {
  display: none !important;
}

/* Main Navbar Bar (Fixed 64px single-row) */
.aqar-navbar-inner {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 16px;
  height: var(--aqar-nav-height);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 1. Brand Logo (Fixed LTR direction) */
.aqar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--aqar-text-main);
  flex-shrink: 0;
  user-select: none;
  direction: ltr !important;
  text-align: left;
}

.aqar-brand-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.aqar-brand-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.aqar-brand-img {
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: 0;
  flex-shrink: 0;
  display: block;
}

.aqar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.aqar-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--aqar-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.aqar-brand-title span {
  color: var(--aqar-accent);
}

.aqar-brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--aqar-text-muted);
  letter-spacing: 0.02em;
}

/* 2. Navigation Menu (Desktop) */
.aqar-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.aqar-nav-item {
  position: relative;
}

.aqar-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--aqar-text-main);
  text-decoration: none;
  border-radius: var(--aqar-radius);
  transition: background var(--aqar-transition), color var(--aqar-transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.aqar-nav-link:hover,
.aqar-nav-link:focus-visible,
.aqar-nav-item:focus-within > .aqar-nav-link {
  color: var(--aqar-primary);
  background-color: var(--aqar-primary-light);
  outline: none;
}

.aqar-badge-modern {
  display: none !important;
}

.aqar-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--aqar-transition);
}

.aqar-nav-item:hover .aqar-chevron,
.aqar-nav-item:focus-within .aqar-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menus */
.aqar-dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 250px;
  background-color: var(--aqar-surface);
  border: 1px solid var(--aqar-border);
  border-radius: var(--aqar-radius);
  box-shadow: var(--aqar-shadow-lg);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--aqar-transition), transform var(--aqar-transition), visibility var(--aqar-transition);
  pointer-events: none;
  z-index: 100;
}

.aqar-nav-item:hover .aqar-dropdown,
.aqar-nav-item:focus-within .aqar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.aqar-dropdown-item {
  margin-bottom: 2px;
}

.aqar-dropdown-item:last-child {
  margin-bottom: 0;
}

.aqar-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--aqar-text-main);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--aqar-transition), color var(--aqar-transition);
}

.aqar-dropdown-link:hover,
.aqar-dropdown-link:focus-visible {
  background-color: var(--aqar-bg-subtle);
  color: var(--aqar-primary);
  outline: none;
}

.aqar-dropdown-link svg {
  width: 16px;
  height: 16px;
  color: var(--aqar-text-muted);
  flex-shrink: 0;
}

.aqar-dropdown-link:hover svg {
  color: var(--aqar-primary);
}

/* 3. Quick Search Trigger & Inline Bar */
.aqar-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background-color: var(--aqar-bg-subtle);
  border: 1px solid var(--aqar-border);
  border-radius: var(--aqar-radius-pill);
  font-size: 0.86rem;
  color: var(--aqar-text-muted);
  cursor: pointer;
  transition: all var(--aqar-transition);
}

.aqar-search-trigger:hover {
  border-color: var(--aqar-primary);
  color: var(--aqar-primary);
  background-color: var(--aqar-surface);
}

/* Quick Search Expandable Bar */
.aqar-quick-search-panel {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background-color: var(--aqar-surface);
  border-bottom: 1px solid var(--aqar-border);
  box-shadow: var(--aqar-shadow-md);
  padding: 14px 16px;
  display: none;
  animation: aqarSlideDown 0.25s ease-out forwards;
  z-index: 90;
}

.aqar-quick-search-panel.is-open {
  display: block;
}

@keyframes aqarSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aqar-search-form {
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto auto;
  gap: 10px;
  align-items: center;
}

.aqar-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aqar-form-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--aqar-text-muted);
  text-transform: uppercase;
}

.aqar-form-select,
.aqar-form-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.88rem;
  border: 1px solid var(--aqar-border);
  border-radius: var(--aqar-radius);
  background-color: var(--aqar-bg-subtle);
  color: var(--aqar-text-main);
  outline: none;
  font-family: inherit;
  transition: border-color var(--aqar-transition), background-color var(--aqar-transition);
}

.aqar-form-select:focus,
.aqar-form-input:focus {
  border-color: var(--aqar-primary);
  background-color: var(--aqar-surface);
}

.aqar-btn-search {
  height: 40px;
  margin-top: 18px;
  padding-inline: 20px;
  background-color: var(--aqar-primary);
  color: var(--aqar-text-inverse);
  border: none;
  border-radius: var(--aqar-radius);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background var(--aqar-transition);
  white-space: nowrap;
}

.aqar-btn-search:hover {
  background-color: var(--aqar-primary-hover);
}

.aqar-btn-close-search {
  height: 40px;
  width: 40px;
  margin-top: 18px;
  background: none;
  border: 1px solid var(--aqar-border);
  border-radius: var(--aqar-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--aqar-text-muted);
}

.aqar-btn-close-search:hover {
  color: var(--aqar-text-main);
  border-color: var(--aqar-text-muted);
}

/* 4. Action Buttons (Left in RTL, Right in LTR) */
.aqar-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  position: relative;
  z-index: 100;
}

/* Currency & Language toggles horizontal compact row without wrapping */
.aqar-toggles-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Add Property button: distinctive primary/accent */
.aqar-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--aqar-accent) 0%, var(--aqar-accent-hover) 100%);
  color: var(--aqar-text-inverse);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--aqar-radius-pill);
  box-shadow: 0 2px 8px rgba(198, 138, 76, 0.35);
  transition: transform var(--aqar-transition), box-shadow var(--aqar-transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  margin-inline-end: 4px;
}

.aqar-btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 138, 76, 0.45);
}

.aqar-btn-add:active {
  transform: translateY(0);
}

/* Currency & Language toggles */
.aqar-pill-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--aqar-border);
  background-color: var(--aqar-bg-subtle);
  border-radius: var(--aqar-radius-pill);
  padding: 2px;
  font-size: 0.78rem;
  font-weight: 700;
}

.aqar-pill-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: var(--aqar-radius-pill);
  cursor: pointer;
  color: var(--aqar-text-muted);
  transition: all var(--aqar-transition);
  font-family: inherit;
  font-size: inherit;
}

.aqar-pill-btn.active {
  background-color: var(--aqar-surface);
  color: var(--aqar-primary);
  box-shadow: var(--aqar-shadow-sm);
}

/* User Account button / Clean Login */
.aqar-btn-user,
.aqar-btn-login-clean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--aqar-radius-pill);
  color: var(--aqar-text-main);
  background: transparent;
  border: none;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--aqar-transition);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.aqar-btn-user:hover,
.aqar-btn-login-clean:hover {
  background-color: var(--aqar-primary-light);
  color: var(--aqar-primary);
}

.aqar-user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqar-primary) 0%, var(--aqar-primary-hover) 100%);
  color: var(--aqar-text-inverse);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--aqar-accent);
  box-shadow: 0 2px 6px rgba(13, 92, 70, 0.25);
  user-select: none;
}

/* Mobile Hamburger Toggle */
.aqar-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--aqar-radius);
  background: none;
  border: 1px solid var(--aqar-border);
  color: var(--aqar-text-main);
  cursor: pointer;
  flex-shrink: 0;
}

.aqar-mobile-toggle:hover {
  background-color: var(--aqar-bg-subtle);
}

/* 5. Mobile Drawer */
.aqar-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
}

.aqar-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.aqar-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 310px;
  max-width: 85vw;
  background-color: var(--aqar-surface);
  box-shadow: var(--aqar-shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mirror drawer transform for RTL direction */
[dir="rtl"] .aqar-drawer {
  transform: translateX(100%);
}

.aqar-drawer-backdrop.is-open .aqar-drawer {
  transform: translateX(0);
}

.aqar-drawer-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--aqar-border);
  background-color: var(--aqar-bg-subtle);
}

.aqar-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--aqar-radius);
  border: 1px solid var(--aqar-border);
  background: var(--aqar-surface);
  color: var(--aqar-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.aqar-drawer-close:hover {
  color: var(--aqar-text-main);
}

.aqar-drawer-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aqar-drawer-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--aqar-text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.aqar-drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aqar-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--aqar-text-main);
  text-decoration: none;
  border-radius: var(--aqar-radius);
  transition: background var(--aqar-transition);
}

.aqar-drawer-link:hover,
.aqar-drawer-link:active {
  background-color: var(--aqar-primary-light);
  color: var(--aqar-primary);
}

.aqar-drawer-submenu {
  list-style: none;
  padding-inline-start: 16px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-inline-start: 2px solid var(--aqar-border);
}

.aqar-drawer-sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: var(--aqar-text-muted);
  text-decoration: none;
  border-radius: 6px;
}

.aqar-drawer-sublink:hover {
  color: var(--aqar-primary);
  background-color: var(--aqar-bg-subtle);
}

/* Drawer direct contact buttons (WhatsApp, Email, FB Group ONLY) */
.aqar-drawer-contacts {
  border-top: 1px solid var(--aqar-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aqar-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--aqar-radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--aqar-transition), opacity var(--aqar-transition);
}

.aqar-contact-btn:active {
  transform: scale(0.98);
}

.aqar-contact-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.aqar-contact-email {
  background-color: var(--aqar-bg-subtle);
  color: var(--aqar-text-main);
  border: 1px solid var(--aqar-border);
}

.aqar-contact-facebook {
  background-color: #1877F2;
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .aqar-nav-menu {
    display: none;
  }

  .aqar-mobile-toggle {
    display: inline-flex;
  }

  .aqar-toggles-row {
    display: none;
  }

  .aqar-search-trigger span {
    display: none;
  }
}

@media (max-width: 640px) {
  .aqar-navbar-inner {
    height: 60px;
    gap: 8px;
  }

  .aqar-brand-svg,
  .aqar-brand-picture,
  .aqar-brand-img {
    width: 46px;
    height: 46px;
  }

  .aqar-brand-title {
    font-size: 1.1rem;
  }

  .aqar-brand-sub {
    font-size: 0.62rem;
  }

  .aqar-btn-add span {
    display: none;
  }

  .aqar-btn-add {
    padding: 8px 10px;
  }

  .aqar-btn-user span {
    display: none;
  }

  .aqar-btn-user {
    padding: 8px 10px;
  }

  .aqar-search-form {
    grid-template-columns: 1fr;
  }

  .aqar-btn-search,
  .aqar-btn-close-search {
    margin-top: 0;
  }
}

/* Single-row, no-wrap header (64px) */
.aqar-navbar-inner { flex-wrap: nowrap; }
.aqar-nav-menu, .aqar-nav-link, .aqar-nav-actions, .aqar-toggles-row, .aqar-pill-btn { white-space: nowrap; }
.aqar-nav-actions { flex-wrap: nowrap; }

/* ==========================================================================
   Quick Access Side Dock (Desktop) & Bottom Navigation Bar (Mobile)
   ========================================================================== */
.aqar-quick-dock {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 92, 70, 0.15);
  border-radius: 36px;
  box-shadow: 0 8px 30px rgba(13, 92, 70, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 990;
  transition: all 0.25s ease;
}

.aqar-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 20px;
  color: var(--aqar-text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 52px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.aqar-dock-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.aqar-dock-label {
  margin-top: 3px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.aqar-dock-item:hover {
  color: var(--aqar-primary);
  background: var(--aqar-primary-light);
  transform: scale(1.05);
}

.aqar-dock-item.active {
  color: var(--aqar-primary);
  background: rgba(13, 92, 70, 0.09);
  font-weight: 700;
}

.aqar-dock-item.active .aqar-dock-icon {
  stroke: var(--aqar-primary);
  stroke-width: 2.3;
}

@media (max-width: 768px) {
  .aqar-quick-dock {
    top: auto;
    bottom: 0;
    transform: none;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    height: 60px;
    border-radius: 0;
    border-inline: none;
    border-bottom: none;
    border-top: 1px solid var(--aqar-border);
    flex-direction: row;
    justify-content: space-around;
    padding: 4px 8px env(safe-area-inset-bottom, 4px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
  }

  .aqar-dock-item {
    flex: 1;
    min-width: 0;
    padding: 6px 2px;
    border-radius: 8px;
  }

  .aqar-dock-icon {
    width: 20px;
    height: 20px;
  }

  .aqar-dock-label {
    font-size: 0.65rem;
  }

  body {
    padding-bottom: 64px;
  }
}

/* Responsive tuning for Companies & Offices navbar button */
#btnNavCompanies {
  padding: 8px 10px;
  font-size: 0.88rem;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

@media (max-width: 1260px) and (min-width: 1081px) {
  .aqar-nav-link {
    padding: 6px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }
  #btnNavCompanies {
    padding: 6px 7px;
    font-size: 0.80rem;
  }
  .aqar-btn-add {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
}

/* Language Switcher Button (English / عربي) */
.aqar-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.5px solid var(--aqar-primary, #0d5c46);
  color: var(--aqar-primary, #0d5c46);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  z-index: 101;
  pointer-events: auto;
  user-select: none;
}
.aqar-lang-btn * {
  pointer-events: none;
}
.aqar-lang-btn:hover {
  background: var(--aqar-primary, #0d5c46);
  color: #ffffff;
  border-color: var(--aqar-primary, #0d5c46);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 92, 70, 0.15);
}
.aqar-lang-btn:active {
  transform: translateY(0);
}


    /* CBS Rate Chip & Section Header */
    .aqar-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 24px;
    }
    .aqar-section-title {
      font-size: 1.5rem;
      font-weight: 800;
      color: #192a24;
      margin: 0;
    }
    .aqar-cbs-rate-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #ffffff;
      border: 1.5px solid #d4dfdb;
      border-radius: 9999px;
      padding: 6px 14px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      cursor: pointer;
      direction: ltr !important;
      unicode-bidi: isolate;
      transition: all 0.2s ease;
      user-select: none;
    }
    .aqar-cbs-rate-chip:hover {
      border-color: #0d5c46;
      box-shadow: 0 4px 12px rgba(13, 92, 70, 0.12);
    }
    .aqar-live-pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10b981;
      display: inline-block;
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
      animation: aqarPulse 2s infinite;
    }
    @keyframes aqarPulse {
      0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
      }
      70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
      }
      100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
      }
    }
    .aqar-cbs-badge-source {
      font-size: 0.8rem;
      font-weight: 700;
      color: #617970;
      white-space: nowrap;
    }
    .aqar-cbs-rate-num {
      font-size: 0.88rem;
      font-weight: 800;
      color: #0d5c46;
      white-space: nowrap;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .aqar-cbs-refresh-btn {
      background: transparent;
      border: none;
      padding: 2px;
      margin: 0;
      color: #617970;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: color 0.2s, transform 0.2s;
    }
    .aqar-cbs-refresh-btn:hover {
      color: #0d5c46;
      transform: rotate(45deg);
    }
    .aqar-cbs-refresh-svg.is-refreshing {
      animation: aqarSpin 0.7s linear;
    }
    @keyframes aqarSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* ── Verified Badge & Tooltip System ── */
    .aqar-verified-badge,
    .aqar-unverified-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      position: relative;
      cursor: pointer;
      vertical-align: middle;
      margin-inline-start: 4px;
      flex-shrink: 0;
    }
    .aqar-verified-badge svg {
      filter: drop-shadow(0 1px 2px rgba(29, 78, 216, 0.35));
      transition: transform 0.2s ease;
    }
    .aqar-verified-badge:hover svg {
      transform: scale(1.15);
    }
    .aqar-verified-badge::after,
    .aqar-unverified-badge::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      background: #1e293b;
      color: #ffffff;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 4px 8px;
      border-radius: 6px;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      z-index: 1000;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    .aqar-verified-badge:hover::after,
    .aqar-verified-badge:focus::after,
    .aqar-unverified-badge:hover::after,
    .aqar-unverified-badge:focus::after {
      opacity: 1;
      visibility: visible;
    }

    /* ── Zillow-Style Top Navbar Buttons & Counters ── */
    .aqar-nav-icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #ffffff;
      border: 1.5px solid #d4dfdb;
      color: #0d5c46;
      cursor: pointer;
      position: relative;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      padding: 0;
      margin: 0;
    }
    .aqar-nav-icon-btn:hover {
      border-color: #0d5c46;
      background: #f0f7f5;
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(13, 92, 70, 0.12);
    }
    .aqar-nav-badge-count {
      position: absolute;
      top: -4px;
      inset-inline-end: -4px;
      background: #0d5c46;
      color: #ffffff;
      font-size: 0.65rem;
      font-weight: 800;
      min-width: 17px;
      height: 17px;
      line-height: 17px;
      border-radius: 9999px;
      text-align: center;
      padding: 0 3px;
      border: 1.5px solid #ffffff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.15);
      pointer-events: none;
      transition: background 0.2s;
    }
    .aqar-nav-icon-btn.has-items .aqar-nav-badge-count {
      background: #ef4444;
    }

    /* ── Property Card Favorite & Compare Buttons ── */
    .card-action-icon-btn {
      background: rgba(255, 255, 255, 0.22);
      border: none;
      color: #ffffff;
      width: 25px;
      height: 25px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      padding: 0;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .card-action-icon-btn:hover {
      background: rgba(255, 255, 255, 0.45);
      transform: scale(1.12);
    }
    .card-fav-btn.is-active svg {
      fill: #ef4444;
      stroke: #ef4444;
    }
    .card-comp-btn.is-active svg {
      fill: #f59e0b;
      stroke: #f59e0b;
    }

    /* ── Mini Toast Notification ── */
    .aqar-mini-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(30px);
      background: #192a24;
      color: #ffffff;
      font-size: 0.88rem;
      font-weight: 700;
      padding: 10px 20px;
      border-radius: 9999px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.25);
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .aqar-mini-toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    /* Hide quick dock completely */
    .aqar-quick-dock {
      display: none !important;
    }


/* ── Secondary Sub-dropdown (For Sale > Lands Flyout) ── */
.aqar-has-subdropdown {
  position: relative;
}

.aqar-subdropdown {
  position: absolute;
  top: -4px;
  inset-inline-start: 100%;
  margin-inline-start: 6px;
  min-width: 210px;
  background-color: var(--aqar-surface, #ffffff);
  border: 1px solid var(--aqar-border, #e2e8e5);
  border-radius: var(--aqar-radius, 8px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
  z-index: 120;
}

/* Invisible bridge so mouse does not leave hover area when traversing gap */
.aqar-subdropdown::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 100%;
  width: 14px;
}

.aqar-has-subdropdown:hover > .aqar-subdropdown,
.aqar-has-subdropdown:focus-within > .aqar-subdropdown,
.aqar-has-subdropdown.is-open > .aqar-subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.aqar-subdropdown-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
}

.aqar-subchevron {
  transition: transform 0.2s ease, color 0.2s ease;
  color: var(--aqar-text-muted, #5e726b);
  flex-shrink: 0;
}

[dir="rtl"] .aqar-subchevron {
  transform: rotate(0deg); /* Points left towards sub-menu */
}

[dir="ltr"] .aqar-subchevron {
  transform: rotate(180deg); /* Points right towards sub-menu */
}

.aqar-has-subdropdown:hover .aqar-subchevron,
.aqar-has-subdropdown.is-open .aqar-subchevron {
  color: var(--aqar-primary, #0d5c46);
}

/* Drawer Lands Submenu Accordion on Mobile / Tablet */
.aqar-drawer-lands-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #5e726b;
}

.aqar-drawer-item-lands-accordion.is-open .aqar-drawer-lands-chevron {
  transform: rotate(180deg);
  color: #0d5c46;
}

.aqar-drawer-nested-list {
  display: none;
}

.aqar-drawer-item-lands-accordion.is-open .aqar-drawer-nested-list {
  display: flex !important;
}
