/* ============================================
   smp_listado.css - Punto Hogar Inmobiliaria
   Estilos buscador + listado + paginación
   ============================================ */

/* =====================
   BUSCADOR
   ===================== */

#bloque_buscador {
  /*background-image: url(//www.puntohogarinmobiliaria.com/buscador/imagenes/fondo-buscador.jpg);*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 20px 50px;
  position: relative;
}

#bloque_buscador::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 0;
}

.adv-search-1 {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

#adv-search-header-1 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Fila principal de selects */
.adv1-holder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.adv1-holder select,
.adv1-holder input[type="text"],
.adv1-holder input[type="number"] {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #555;
  min-width: 140px;
  max-width: 180px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

/* Desktop: todos en una línea */
@media (min-width: 992px) {
  .adv1-holder {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .adv1-holder select,
  .adv1-holder input[type="text"],
  .adv1-holder input[type="number"] {
    min-width: 0;
    max-width: none;
    flex: 1;
    font-size: 13px;
    padding: 0 8px;
  }
}
.adv1-holder select:focus,
.adv1-holder input:focus {
  border-color: #ff3a5a;
  box-shadow: 0 0 0 2px rgba(255, 58, 90, 0.15);
}

/* Fila de referencia */
.escref {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.escref h3 {
  font-size: 16px;
  font-weight: 400;
  color: #444;
  margin: 0;
}

.escref input[type="text"] {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  min-width: 200px;
  outline: none;
}

/* Botón buscar */
.adv1-holder input[type="submit"],
.wpresidence_button {
  height: 42px;
  padding: 0 30px;
  background: #ff3a5a !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.adv1-holder input[type="submit"]:hover,
.wpresidence_button:hover {
  background: #e02244 !important;
}

/* Botón submit en escref */
.escref input[type="submit"] {
  height: 42px;
  padding: 0 30px;
  background: #ff3a5a;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.escref input[type="submit"]:hover {
  background: #e02244;
}

/* Botón + opciones */
#btn_mas_opciones {
  background: transparent;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s;
}

#btn_mas_opciones:hover {
  border-color: #ff3a5a;
  color: #ff3a5a;
}

/* Opciones avanzadas */
#extraOC {
  margin-top: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  display: none;
}

#extraOC label {
  margin-right: 18px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
}

#extraOC input[type="checkbox"] {
  margin-right: 5px;
  accent-color: #ff3a5a;
}

/* =====================
   FILTROS RÁPIDOS
   ===================== */

.filtrar {
  text-align: center;
  padding: 30px 20px 10px;
  background: #fff;
}

.filtrar h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 18px;
}

.filtrar .column_attr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filtrar a.button {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
}

.filtrar a.button:hover {
  border-color: #ff3a5a;
  color: #ff3a5a;
}

/* =====================
   LISTADO DE TARJETAS
   ===================== */

.destacados-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 40px;
}

/* Cabecera del listado (oculta en este diseño, dejamos la del filtrar) */
.destacados-header {
  display: none;
}

/* Grid de 3 columnas */
.grid-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
  padding: 20px 0;
}

/* Tarjeta */
.property-card {
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.property-card .card-link-wrap {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Precio encima de la foto */
.card-price-top {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  padding: 0 4px;
}

/* Imagen principal */
.card-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #eee;
}

.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flechas del carrusel */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
  transition: background 0.2s;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carousel-arrow.prev {
  left: 8px;
}
.carousel-arrow.next {
  right: 8px;
}
.carousel-arrow svg {
  width: 14px;
  height: 14px;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #fff;
}

/* Badges ocultos en este diseño */
.card-badges {
  display: none;
}
.carousel-counter {
  display: none;
}

/* Contenido de la tarjeta */
.card-content {
  padding: 10px 4px 6px;
  text-align: left;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px;
  line-height: 1.3;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-location {
  display: none; /* Se muestra integrado en card-title */
}

/* Zona, habitaciones, m2, ref */
.card-features {
  font-size: 13px;
  color: #555;
  margin: 3px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.card-features .feature {
  display: inline;
}

/* Ref: se añade en el PHP directamente como párrafo */
.card-ref {
  font-size: 13px;
  color: #555;
  margin: 2px 0 6px;
}

/* Separador */
.card-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0 6px;
}

/* Botón + INFO */
.card-more {
  display: block;
  text-align: center;
  color: #ff3a5a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0 2px;
  transition: color 0.2s;
}

.card-more:hover {
  color: #c0102e;
}

/* Card footer oculto (no se usa en este diseño) */
.card-footer,
.card-meta,
.card-description {
  display: none;
}

/* Sin resultados */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.btn-limpiar-filtros {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: #ff3a5a;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* =====================
   PAGINACIÓN
   ===================== */

.paginacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 30px 0 10px;
}

.paginacion .Bfl {
  display: inline-block;
}

.paginacion a.pagina,
.paginacion a.anterior,
.paginacion a.siguiente,
.paginacion span.anterior,
.paginacion span.siguiente {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #ff3a5a;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.paginacion a.pagina:hover,
.paginacion a.anterior:hover,
.paginacion a.siguiente:hover {
  background: #c0102e;
}

.paginacion span.paginaActual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #fff;
  color: #ff3a5a;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #ff3a5a;
  border-radius: 4px;
}

.paginacion span.anterior,
.paginacion span.siguiente {
  background: #ddd;
  color: #999 !important;
  cursor: default;
}

/* Texto "Página X/Y" (sale del PHP de paginación antiguo, si lo hay) */
h4 .paginacion-texto {
  font-size: 15px;
  color: #444;
  font-weight: 400;
}

/* =====================
   VISTAS LISTA Y MAPA
   (ocultas por defecto, este diseño usa solo grid)
   ===================== */

.view-container {
  display: none;
}
.view-container.active {
  display: block;
}

#view-list .list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#view-list .list-card .card-carousel {
  width: 260px;
  min-width: 260px;
  height: 180px;
  flex-shrink: 0;
}

#view-list .list-card {
  display: flex;
  flex-direction: row;
  gap: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

#view-list .list-card .card-content {
  padding: 10px 16px;
  flex: 1;
}

/* Mapa */
#view-map .map-view {
  display: flex;
  gap: 0;
  height: 600px;
}

#map-container {
  flex: 1;
  min-height: 500px;
}

#map {
  width: 100%;
  height: 100%;
}

.map-sidebar {
  width: 320px;
  overflow-y: auto;
  border-left: 1px solid #eee;
  background: #fff;
}

.map-sidebar .property-card {
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.map-sidebar .card-carousel {
  height: 140px;
}

.map-sidebar .card-content {
  padding: 8px 10px;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 900px) {
  .grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-view {
    grid-template-columns: 1fr;
  }

  .adv1-holder select,
  .adv1-holder input {
    min-width: 100%;
    max-width: 100%;
  }

  .escref {
    flex-direction: column;
    align-items: center;
  }

  #view-list .list-card {
    flex-direction: column;
  }

  #view-list .list-card .card-carousel {
    width: 100%;
    height: 200px;
  }
}

/* CSS Para nav mv en listado y fichas*/

/* Side Slide - estilos de BeTheme */
#Side_slide {
  background-color: #191919 !important;
  border-color: #191919 !important;
  color: #a6a6a6;
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
}

#Side_slide a:not(.action_button) {
  color: #a6a6a6;
}

#Side_slide a:not(.action_button):hover,
#Side_slide a.active {
  color: #ffffff;
}

/* Menú principal */
#Side_slide .menu_wrapper ul li {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
#Side_slide .menu_wrapper ul > li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
#Side_slide .menu_wrapper ul li a {
  display: block;
  padding: 11px 5px 10px 20px;
  margin-right: 50px;
  text-decoration: none;
  line-height: 19px;
  color: #a6a6a6;
  font-weight: 500;
}
#Side_slide .menu_wrapper ul li a:hover {
  color: #ffffff;
}

/* Submenú */
#Side_slide .menu_wrapper ul li ul {
  display: none;
  background: rgba(255, 255, 255, 0.025);
}
#Side_slide .menu_wrapper ul li ul li a {
  padding-left: 35px;
}

/* Toggle submenu */
#Side_slide .menu_wrapper ul li.submenu {
  position: relative;
}
#Side_slide .menu-toggle {
  display: block;
  position: absolute;
  right: -55px;
  top: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  line-height: 40px;
  font-size: 22px;
  font-weight: 100;
  text-align: center;
  cursor: pointer;
  color: #a6a6a6;
  opacity: 0.5;
  text-decoration: none;
}
#Side_slide .menu-toggle:after {
  content: "+";
  display: block;
  margin: 0;
}
#Side_slide .submenu.hover > .menu-toggle {
  opacity: 1;
  color: #ffffff;
}
#Side_slide .submenu.hover > .menu-toggle:after {
  content: "-";
}

/* Social */
#Side_slide .social {
  text-align: center;
  margin: 0 20px 13px;
}
#Side_slide .social li {
  display: inline-block;
}
#Side_slide .social li a {
  display: block;
  padding: 3px 5px;
  font-size: 15px;
  color: #a6a6a6;
}
#Side_slide .social li a:hover {
  color: #ffffff;
}

/* Botón cerrar */
#Side_slide .close-wrapper {
  height: 60px;
}
#Side_slide .close-wrapper a.close {
  height: 34px;
  width: 34px;
  display: block;
  float: right;
  margin: 13px 13px 0 0;
  color: #a6a6a6;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
}
#Side_slide .close-wrapper a.close:hover {
  color: #ffffff;
}