/* search.css */

/* Contenedor de búsqueda */
.search-container {
    max-width: 600px;
    margin:0 auto 2rem;
    
  }
  .search-container .input-group-text {
    background: #fff;
    border-right: 0;
  }
  .search-container .search-input {
    border-left: 0;
  }
  .search-input::placeholder {
    color: #999;
  }
  
  /* Resultados */
  .search-results h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-top: 150px;
  }
  .search-results h5 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #444;
    position: relative;
    padding-bottom: .5rem;
  }
  .search-results h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #007bff;
  }
  
  /* Tarjetas */
  .search-results .card {
    border: none;
    border-radius: .5rem;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .search-results .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .search-results .card-img-top {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
  }
  .search-results .card-body {
    padding: 1rem;
  }
  .search-results .card-title {
    font-size: 1rem;
    margin-bottom: .5rem;
  }
  .search-results .card-text {
    font-size: .875rem;
    color: #666;
    margin-bottom: 1rem;
  }
  .search-results .btn {
    font-size: .875rem;
    padding: .375rem .75rem;
  }

/* === Dropdown personalizado === */
.suggestion-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: .25rem;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  transition: opacity .2s ease, transform .2s ease;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}
.suggestion-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Item base */
.suggestion-item {
  display: flex;
  align-items: center;
  padding: .75rem 1rem;
  font-size: .95rem;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f1;
  transition: background .2s ease, color .2s ease;
}
.suggestion-item:hover {
  background: rgba(0, 123, 255, 0.05);
  color: #007bff;
}

/* Separador de secciones */
.suggestion-separator {
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: #555;
  background: #f8f9fa;
  text-transform: uppercase;
}

/* Último item no lleva borde */
.suggestion-item:last-child {
  border-bottom: none;
}

/* Mensaje de “sin resultados” */
.suggestion-empty {
  padding: .75rem 1rem;
  font-style: italic;
  color: #999;
  text-align: center;
  background: #fafafa;
}

  
  /* Responsive */
  @media (max-width: 576px) {
    .search-container {
      width: 90%;
    }
    .search-results .row > [class*="col-"] {
      margin-bottom: 1rem;
    }
  }
  