/* =============================================
   BUSCADOR AVANZADO HCR - ESTILOS PRINCIPALES
   ============================================= */

/**
 * Contenedor principal del buscador
 */
/* Reset para evitar conflictos con temas */
.hcr-buscador-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Contenedor principal */
.hcr-buscador-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
  border: solid 1px #ddd;
  border-radius: 8px;
  padding: 20px;
}

/* Sección de filtros */
.hcr-buscador-filtros {
  flex: 0 0 300px;
  position: relative;
}

.hcr-buscador-filtros > form {
  position: sticky;
  top: 20px;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Sección de resultados */
.hcr-buscador-resultados {
  flex: 1;
  min-width: 300px;
}
.hcr-buscador-resultados h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
  text-align: center;
  font-weight: 600;
  margin: 30px 0;
}

/* Estilos para el formulario */
.hcr-buscador-filtros form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  margin-bottom: 20px;
}
.hcr-buscador-filtros label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.hcr-buscador-filtros input,
.hcr-buscador-filtros select {
  width: 100%;
  /* padding: 12px 10px; */
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  padding-left: 10px;
}


/* Resultados */
.hcr-resultados-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-height: 700px;
    overflow-y: auto;
}

.hcr-tarjeta-resultado {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  /* padding: 15px; */
  display: flex;
  flex-direction: column;
}
.hcr-contenido-resultado {
  flex: 1;
  font-size: medium;
  padding: 0 15px;
}

.hcr-tarjeta-resultado h3 {
  font-size: 18px;
  color: #121212;
  font-weight: 600;
}

.hcr-imagen-resultado {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
  background-position: center;
}
.hcr-tarjeta-resultado img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  font-size: small;
  text-align: center;
}

.hcr-fecha-resultado {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

/* Botón de leer más (opcional) */
.hcr-leer-mas {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f8f9fa;
  color: #d6be7a;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  align-self: flex-end;
  margin-top: auto;
  margin: 10px;
}

.hcr-leer-mas:hover {
  background-color: #d6be7a;
  color: white;
}
a {
  text-decoration: none;
  color: inherit;
}
/* Estilos para el selector de cantidad */
.hcr-cantidad-resultados {
  margin-bottom: 15px;
}

.hcr-cantidad-resultados label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}


.hcr-range-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hcr-range-container input[type="range"] {
  flex-grow: 1;
  -webkit-appearance: none;
      height: 100%;
  background: #ddd;
  outline: none;
  padding-left: 0px !important;
}

.hcr-range-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #d6be7a;
  border-radius: 50%;
  cursor: pointer;
  padding: inherit;
}

.hcr-range-value {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  font-weight: bold;
  color: #d6be7a;
}
/* Estilos para la paginación */
.hcr-paginacion {
  margin-top: 40px;
  text-align: center;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

.hcr-paginacion .page-numbers {
  display: flex;
  padding: 8px 15px;
  margin: 0 3px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  list-style: none;
  height: 35px;
  display: flex;
  align-items: center;
}

.hcr-paginacion .page-numbers.current {
  background-color: #d6be7a;
  color: white;
  border-color: #d6be7a;
}
.page-numbers a:hover{
  background-color: #eeeeee;
  color:  #d6be7a
}


.hcr-paginacion .page-numbers.dots {
  border: none;
  padding-left: 5px;
  padding-right: 5px;
}




.hcr-boton-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.hcr-boton-buscar {
  background: #ac9249;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.hcr-boton-limpiar {
  background: #e65c52c9;
  color: white;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;

}

.hcr-boton-limpiar:hover {
  background: #eeebe3;
  color: #000;
}

.hcr-boton-buscar:hover {
  background: rgb(233, 179, 32);

  color: #000;
}

.hcr-sin-imagen {
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-weight: 600;
}



/* Responsive */
@media (max-width: 992px) {
  .hcr-buscador-container {
    flex-direction: column;
  }

  .hcr-buscador-filtros > form {
    position: static;
  }
}
