/* Leasy search autocomplete styles — Hebrew RTL, mobile-friendly */
.ac-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(41, 37, 36, 0.12);
  max-height: 264px;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: inherit;
  text-align: right;
  padding: 6px;
  margin: 0;
}

.ac-dropdown[hidden] {
  display: none;
}

/* שורת ✕ דביקה בראש התפריט — סגירה קלה כמו בפיקרי המיקום/מטרה */
.ac-xrow {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin: -6px -6px 2px;
  padding: 6px 6px 4px;
  background: #fff;
  border-bottom: 1px solid #f8fafc;
}

.ac-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #f1f5f9;
  background: #fff;
  color: #292524;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  flex: none;
}

.ac-close:hover {
  border-color: #fb7185;
  color: #e14e6d;
}

.ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #292524;
  font-size: 0.95rem;
  line-height: 1.4;
}

.ac-item .ac-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-item .ac-kind {
  flex: none;
  font-size: 0.72rem;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ac-meta { display: flex; align-items: center; gap: 6px; flex: none; }

.ac-count {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e14e6d;
  background: #fff1f2;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ac-head {
  padding: 8px 12px 4px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.ac-foot {
  padding: 10px 12px;
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #e14e6d;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}

.ac-foot:hover { background: #fff1f2; }

.ac-item:hover,
.ac-item.ac-active {
  background: #fff1f2;
}

.ac-item.ac-active .ac-text {
  color: #e14e6d;
  font-weight: 600;
}

@media (max-width: 640px) {
  .ac-dropdown {
    max-height: 220px;
  }
  .ac-item {
    padding: 12px;
    font-size: 1rem;
  }
}
