/* ===============================
   AqarLead - Hover for Top Menu
   يعمل 100% مع aqar-nav-link
================================ */

:root{
  --aqar-gold: #8B6B2E; /* لون الهوفر */
  --aqar-gold-bg: rgba(139,107,46,.12);
}

/* الروابط الثلاثة في الديسكتوب */
a.aqar-nav-link{
  padding: 8px 12px !important;
  border-radius: 999px !important;
  transition: color .15s ease, background-color .15s ease, transform .15s ease !important;
  text-decoration: none !important;
}

/* hover على الرابط -> يغير لون النص وبالتالي الأيقونة */
a.aqar-nav-link:hover{
  color: var(--aqar-gold) !important;
  background-color: var(--aqar-gold-bg) !important;
}

/* ضبط حجم الأيقونات */
a.aqar-nav-link svg{
  width: 18px !important;
  height: 18px !important;
  transition: transform .15s ease !important;
}

/* حركة بسيطة للأيقونة */
a.aqar-nav-link:hover svg{
  transform: translateY(-1px);
}

/* تأكيد أن stroke يتبع لون النص */
a.aqar-nav-link svg [stroke]{
  stroke: currentColor !important;
}

/* public/css/hero-search.css */
:root{
  --al-primary:#b28845;
  --al-card:rgba(255,255,255,.92);
  --al-border:rgba(0,0,0,.10);
  --al-shadow: 0 12px 35px rgba(0,0,0,.18);
  --al-radius:18px;
}

.al-hero{
  position:relative;
  min-height:600px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  font-family:"Cairo", system-ui, -apple-system, Segoe UI, Arial;
  direction:rtl;
}

.al-hero__bg{
  position:absolute; inset:0;
  background-image:url("/hero-bg.jpg");
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
}

.al-hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.40), rgba(0,0,0,.30), rgba(0,0,0,.55));
}

.al-hero__content{
  position:relative;
  z-index:2;
  width:min(1100px, 92%);
  padding: 40px 0 50px;
}

.al-hero__titleWrap{ text-align:center; padding:0 10px; }
.al-hero__title{
  color:#fff;
  font-size: clamp(28px, 4vw, 54px);
  font-weight:800;
  line-height:1.25;
  margin:0 0 10px;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.al-hero__subtitle{
  color: rgba(255,255,255,.88);
  font-size: clamp(14px, 1.6vw, 18px);
  margin:0 auto 22px;
  max-width: 780px;
}

.al-searchCard{
  background: var(--al-card);
  border:1px solid var(--al-border);
  border-radius: 22px;
  box-shadow: var(--al-shadow);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.al-searchCard__row{
  display:flex;
  gap:12px;
  align-items:center;
}
.al-searchCard__row--top{ margin-bottom: 12px; }
.al-searchCard__row--bottom{ }

.al-tabs{
  display:flex;
  background:#fff;
  border:1px solid var(--al-border);
  border-radius: 14px;
  overflow:hidden;
  flex:0 0 auto;
}
.al-tab{
  border:0;
  background:transparent;
  padding: 12px 22px;
  font-weight:800;
  cursor:pointer;
  color:#222;
}
.al-tab.is-active{
  background: var(--al-primary);
  color:#fff;
}

.al-inputWrap{
  position:relative;
  flex: 1 1 auto;
  min-width: 260px;
}
.al-inputIcon{
  position:absolute;
  right:14px;
  top:50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,.55);
}
.al-input{
  width:100%;
  height:52px;
  border-radius: 14px;
  border:1px solid var(--al-border);
  padding: 0 44px 0 14px;
  outline:none;
  background:#fff;
  font-weight:600;
}
.al-input:focus{ border-color: rgba(178,136,69,.55); box-shadow: 0 0 0 3px rgba(178,136,69,.15); }

.al-btn{
  border:0;
  border-radius: 14px;
  height:52px;
  padding: 0 18px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  white-space:nowrap;
}
.al-btn--primary{
  background: var(--al-primary);
  color:#fff;
  box-shadow: 0 10px 25px rgba(178,136,69,.28);
}
.al-btn--primary:hover{ filter:brightness(.98); }
.al-btn--desktop{ flex: 0 0 auto; }
.al-btn--mobile{ display:none; width:100%; }

.al-select{
  position:relative;
  flex: 1 1 0;
  min-width: 180px;
}
.al-select__field{
  width:100%;
  height:52px;
  border-radius: 14px;
  border:1px solid var(--al-border);
  padding: 0 14px 0 40px;
  background:#fff;
  font-weight:800;
  appearance:none;
}
.al-select__chev{
  position:absolute;
  left:14px;
  top:50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,.55);
  pointer-events:none;
}

.al-chipBtn{
  flex: 1 1 0;
  min-width: 180px;
  height:52px;
  border-radius:14px;
  border:1px solid var(--al-border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 14px;
  cursor:pointer;
  font-weight:900;
}
.al-chipBtn__label{ color:#222; }
.al-chipBtn__value{ color: rgba(0,0,0,.55); font-weight:800; }
.al-chipBtn__chev{ color: rgba(0,0,0,.45); }

.al-modal{
  position:fixed; inset:0;
  display:none;
  z-index:9999;
}
.al-modal.is-open{ display:block; }
.al-modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
}
.al-modal__panel{
  position:relative;
  width:min(520px, 92%);
  margin: 8vh auto 0;
  background:#fff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  overflow:hidden;
}
.al-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--al-border);
}
.al-modal__title{ margin:0; font-size:20px; font-weight:900; }
.al-modal__x{
  border:0; background:transparent; cursor:pointer;
  width:40px; height:40px; border-radius: 12px;
}
.al-modal__x:hover{ background: rgba(0,0,0,.05); }

.al-modal__body{ padding: 16px 18px 18px; }
.al-range{ margin-bottom: 14px; }
.al-range__labels{
  display:flex;
  justify-content:space-between;
  margin-bottom: 8px;
  color:#222;
}
.al-range input[type="range"]{ width:100%; }

.al-btn--full{ width:100%; height:54px; border-radius: 14px; }

@media (max-width: 900px){
  .al-searchCard__row--top{
    flex-wrap:wrap;
  }
  .al-inputWrap{ min-width: 100%; }
  .al-btn--desktop{ display:none; }
  .al-btn--mobile{ display:flex; }
  .al-searchCard__row--bottom{
    flex-wrap:wrap;
  }
  .al-select, .al-chipBtn{ min-width: 48%; }
}
@media (max-width: 520px){
  .al-select, .al-chipBtn{ min-width: 100%; }
}


/* ===== React-like Modals + Dual Range (Price/Area) ===== */
.al-modalX{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.al-modalX.is-open{ display:block; }

.al-modalX__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.al-modalX__panel{
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: 110px auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  padding: 18px 18px 16px;
  direction: rtl;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Arial;
}

.al-modalX__head{
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  padding: 6px 0 12px;
  font-weight: 900;
  font-size: 20px;
}
.al-modalX__title{ line-height:1; }
.al-modalX__close{
  position:absolute;
  left: 10px;
  top: 6px;
  border:0;
  background: transparent;
  cursor:pointer;
  opacity: .78;
  font-size: 18px;
  width:40px; height:40px;
  border-radius: 12px;
}
.al-modalX__close:hover{ background: rgba(0,0,0,.06); opacity:1; }

/* Histogram ثابت مثل React */
.al-modalX__bars{
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px 12px;
  direction: ltr;           /* مهم: يمنع انعكاس الشكل */
  user-select: none;
}

.al-modalX__bars span{
  width: 12px;
  min-width: 12px;
  background: #a57b55;
  border-radius: 10px 10px 0 0;
  opacity: .95;
  flex: 0 0 auto;           /* يمنع تمدد الأعمدة */
}


.al-modalX__range{ padding: 6px 6px 0; }

.al-dualRange{
  position: relative;
  height: 34px;
  margin-top: 6px;
}
.al-dualRange__track{
  position:absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(165,123,85,.30);
  border-radius: 999px;
}
.al-dualRange__fill{
  position:absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: #a57b55;
  border-radius: 999px;
  left: 0%;
  right: 0%;
}

.al-range{
  position:absolute;
  left:0; right:0;
  width:100%;
  margin:0;
  pointer-events:none;
  -webkit-appearance:none;
  appearance:none;
  background: transparent;
  top: 50%;
  transform: translateY(-50%);
}

.al-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  pointer-events:auto;
  width: 16px;
  height: 16px;
  background:#fff;
  border: 2px solid #a57b55;
  border-radius: 50%;
  cursor:pointer;
}
.al-range::-moz-range-thumb{
  pointer-events:auto;
  width:16px;
  height:16px;
  background:#fff;
  border:2px solid #a57b55;
  border-radius:50%;
  cursor:pointer;
}

.al-modalX__labels{
  display:flex;
  justify-content:space-between;
  padding: 10px 6px 0;
  font-weight: 800;
  color:#222;
}

.al-modalX__save{
  width:100%;
  margin-top: 14px;
  border:0;
  background: #a57b55;
  color:#fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-family:inherit;
  font-weight: 900;
  cursor:pointer;
}
.al-modalX__save:hover{ filter: brightness(.98); }
