/* ============================================
   Astra Live Search
   ============================================ */

.wp-block-search {
  position: relative;
}

.als-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 480px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-top: 0.5rem;
  z-index: 100;
}

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

/* ------------- Items ------------- */

.als-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none !important;
  color: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.als-item:last-child {
  border-bottom: none;
}

.als-item:hover,
.als-item:focus {
  background: rgba(0, 0, 0, 0.03);
}

.als-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.als-item__type,
.als-item__title {
  text-decoration: none !important;
}

.als-item:hover .als-item__type,
.als-item:focus .als-item__type,
.als-item:hover .als-item__title,
.als-item:focus .als-item__title {
  text-decoration: underline !important;
}

.als-item__type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #054a81;
}

.als-item__title {
  font-size: 1rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------- States ------------- */

.als-state {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.als-state--loading,
.als-state--empty {
  color: #555;
}

.als-state--error {
  color: #b00020;
}
