/* Search Autocomplete Dropdown Styles */
.search-autocomplete-dropdown {
  position: fixed;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 99999;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
}

.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.1s;
}

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

.ac-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}

.ac-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ac-title {
  font-size: 0.9rem;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ac-title strong {
  color: #41621D;
  font-weight: 700;
}

.ac-meta {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ac-count {
  color: #9ca3af;
}

.ac-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #f0fdf4;
  color: #41621D;
  font-size: 0.65rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .search-autocomplete-dropdown {
    border-radius: 10px;
    margin-top: 2px;
  }

  .ac-item {
    padding: 6px 10px;
    gap: 8px;
  }

  .ac-thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
  }

  .ac-title {
    font-size: 0.82rem;
  }

  .ac-meta {
    font-size: 0.7rem;
  }
}
