/* Buscador: panel de resultados dentro de #searchModal (javascript/search.js). */

/* El campo queda fijo arriba mientras se recorren los resultados. */
#searchModal .modal-body #d-flex {
  position: sticky;
  top: calc(-1 * var(--bs-modal-padding));
  z-index: 1;
  margin: calc(-1 * var(--bs-modal-padding)) calc(-1 * var(--bs-modal-padding)) 0;
  padding: var(--bs-modal-padding);
  background-color: #ffffff;
}

#searchModal #search::placeholder {
  color: #6c757d;
  font-size: 14px;
}

#searchModal #search:focus {
  box-shadow: none;
  border-bottom-color: #00b2ab !important;
}

.search-panel {
  margin-top: 4px;
}

.search-status {
  margin: 0 0 4px;
  color: #6c757d;
  font-size: 13px;
}

.search-status:empty {
  display: none;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  color: #303030;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  background-color: #e6f7f6;
  color: #303030;
}

.search-result:focus-visible {
  outline: 2px solid #00b2ab;
  outline-offset: -2px;
}

.search-result img {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  object-fit: contain;
}

.search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.search-result-meta {
  margin-top: 2px;
  color: #6c757d;
  font-size: 12px;
}

.search-result-category {
  color: #007571;
  font-size: 14px;
  font-weight: 600;
}

.search-result-category:hover,
.search-result-category:focus-visible {
  color: #007571;
}

.search-hint {
  margin: 0 0 8px;
  color: #303030;
  font-size: 14px;
}
