/* 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-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-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;
  }
}
