/* ===== BUSCADOR PROPIEDADES - Fuente Roboto Condensed ===== */
.bprop-busqueda-wrapper,
.bprop-resultados-wrapper,
.bprop-busqueda-wrapper *,
.bprop-resultados-wrapper * {
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  box-sizing: border-box !important;
}

/* ===== SECCIÓN BÚSQUEDA - Transparente para imagen de fondo ===== */
.bprop-busqueda-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  position: relative !important;
  z-index: 1 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #333 !important;
}

.bprop-form-busqueda {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border: none !important;
}

.bprop-form-busqueda .bprop-filtro {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
}

.bprop-form-busqueda .bprop-filtro label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
  font-family: 'Roboto Condensed', sans-serif !important;
}

.bprop-form-busqueda .bprop-filtro select {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.9);
  font-size: 14px;
  width: 100%;
  height: 44px;
  line-height: 1.4;
  font-family: 'Roboto Condensed', sans-serif !important;
  color: #333;
}

.bprop-form-busqueda .bprop-filtro select:focus {
  outline: none;
  border-color: #f71701;
  background: #fff;
}

/* Variante para fondo oscuro: añadir clase bprop-dark al wrapper */
.bprop-busqueda-wrapper.bprop-dark .bprop-filtro label {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.bprop-form-busqueda .bprop-botones {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.bprop-buscar {
  background-color: #f71701 !important;
  background: #f71701 !important;
  color: #fff !important;
  border: 2px solid #f71701 !important;
  padding: 10px 24px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  height: 44px !important;
  font-size: 14px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
}

.bprop-buscar:hover,
.bprop-buscar:focus,
.bprop-buscar:active {
  background-color: #d91401 !important;
  background: #d91401 !important;
  color: #fff !important;
  border-color: #d91401 !important;
  box-shadow: 0 2px 8px rgba(247, 23, 1, 0.4) !important;
}

.bprop-reset {
  background-color: rgba(255,255,255,0.9) !important;
  color: #333 !important;
  border: 2px solid rgba(255,255,255,0.7) !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  height: 44px !important;
  font-size: 14px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  box-sizing: border-box !important;
}

.bprop-reset:hover {
  background-color: #fff !important;
  border-color: #fff !important;
  color: #f71701 !important;
}

/* ===== RESPONSIVE - BÚSQUEDA ===== */
@media (max-width: 768px) {
  .bprop-form-busqueda {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .bprop-form-busqueda .bprop-filtro {
    min-width: 100%;
  }
  .bprop-form-busqueda .bprop-botones {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .bprop-form-busqueda .bprop-botones {
    flex-direction: column;
    width: 100%;
  }
  .bprop-form-busqueda .bprop-botones button {
    width: 100%;
  }
}

/* ===== FILTROS DE RESULTADOS - Una línea horizontal, mismo estilo que búsqueda ===== */
.bprop-filtros-resultados {
  margin-bottom: 24px;
  padding: 0;
  background: transparent !important;
  font-family: 'Roboto Condensed', sans-serif !important;
}

.bprop-form-filtros {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border: none !important;
}

.bprop-form-filtros .bprop-filtro {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

.bprop-form-filtros .bprop-filtro label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px;
}

.bprop-form-filtros .bprop-filtro select,
.bprop-form-filtros .bprop-filtro input {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  height: 44px;
  line-height: 1.4;
  font-family: 'Roboto Condensed', sans-serif !important;
  color: #333;
  box-sizing: border-box;
}

.bprop-form-filtros .bprop-filtro select:focus,
.bprop-form-filtros .bprop-filtro input:focus {
  outline: none;
  border-color: #f71701;
}

.bprop-rango {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bprop-rango input {
  flex: 1;
  min-width: 70px;
}

.bprop-rango span {
  color: #666;
  font-weight: 700;
}

.bprop-form-filtros .bprop-filtro-accion {
  flex: 0 0 auto;
}

.bprop-limpiar-filtros {
  background-color: rgba(255,255,255,0.9) !important;
  color: #333 !important;
  border: 2px solid #ddd !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  height: 44px !important;
  white-space: nowrap;
}

.bprop-limpiar-filtros:hover {
  background-color: #fff !important;
  color: #f71701 !important;
  border-color: #f71701 !important;
}

.bprop-sin-resultados-filtro {
  padding: 24px;
  text-align: center;
  color: #666;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 16px;
  margin-top: 16px;
}

@media (max-width: 992px) {
  .bprop-form-filtros {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .bprop-form-filtros {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .bprop-form-filtros .bprop-filtro {
    min-width: 100%;
  }
}

/* ===== LAYOUT RESULTADOS: Filtros + Tarjetas + Mapa ===== */
.bprop-resultados-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.bprop-col-tarjetas {
  min-width: 0;
}

.bprop-col-mapa {
  position: sticky;
  top: 24px;
}

/* Desktop: 2 tarjetas por fila en columna izquierda */
.bprop-resultados-layout .bprop-categoria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

/* ===== MAPA ===== */
.bprop-mapa-wrapper {
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}

.bprop-mapa {
  width: 100%;
  height: 400px;
  min-height: 300px;
  background: #f5f5f5;
}

.bprop-infowindow {
  padding: 10px 12px;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px;
  min-width: 200px;
  max-width: 320px;
}

.bprop-infowindow-ubicacion {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
}

.bprop-infowindow-list {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: disc;
}

.bprop-infowindow-list li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.bprop-infowindow a {
  color: #f71701;
  font-weight: 700;
  text-decoration: none;
}

.bprop-infowindow a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .bprop-mapa {
    height: 300px;
  }
}

/* ===== SECCIÓN RESULTADOS - Independiente ===== */
.bprop-resultados-wrapper {
  margin-top: 30px;
  width: 100%;
  font-family: 'Roboto Condensed', sans-serif !important;
}

.bprop-cargando,
.bprop-sin-resultados {
  padding: 24px;
  text-align: center;
  color: #666;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 16px;
}

.bprop-categoria {
  gap: 20px;
  margin-bottom: 20px;
}

.bprop-producto {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Roboto Condensed', sans-serif !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.bprop-producto .bprop-producto-img {
  flex-shrink: 0;
}

.bprop-producto:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contenedor imagen: altura fija en vh para uniformidad en todas las tarjetas */
.bprop-producto-img {
  height: 20vh !important;
  min-height: 100px !important;
  overflow: hidden !important;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #f5f5f5;
  display: block !important;
  position: relative;
}

.bprop-producto-img a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none;
}

.bprop-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f71701;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif !important;
}

.bprop-producto-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  vertical-align: top;
}

.bprop-producto h4 {
  font-size: 16px;
  margin: 10px 0 6px;
  line-height: 1.3;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700;
}

.bprop-producto h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bprop-producto h4 a:hover {
  color: #f71701;
}

.bprop-producto-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
  text-align: left;
  font-size: 13px;
  color: #555;
}

.bprop-meta-item {
  display: block;
  line-height: 1.4;
}

.bprop-meta-item strong {
  color: #333;
  font-weight: 700;
}

.bprop-producto .bprop-precio {
  font-size: 15px;
  color: #f71701;
  font-weight: 700;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.bprop-producto p {
  font-size: 14px;
  color: #222;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif !important;
}

/* ===== RESPONSIVE - RESULTADOS ===== */
/* Tablet: tarjetas 1/4, mapa 3/4 */
@media screen and (max-width: 992px) {
  .bprop-resultados-layout {
    grid-template-columns: 1fr 3fr;
    gap: 20px;
  }
  .bprop-resultados-layout .bprop-categoria {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bprop-producto-img {
    height: 15vh !important;
    min-height: 90px !important;
  }
}

/* Mobile: orden filtros → mapa → tarjetas (stack vertical) */
@media screen and (max-width: 768px) {
  .bprop-resultados-wrapper {
    display: flex;
    flex-direction: column;
  }
  .bprop-resultados-wrapper .bprop-filtros-resultados {
    order: 1;
  }
  .bprop-resultados-wrapper .bprop-resultados-layout {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .bprop-resultados-wrapper .bprop-col-mapa {
    order: 1;
    position: static;
  }
  .bprop-resultados-wrapper .bprop-col-tarjetas {
    order: 2;
  }
  .bprop-resultados-layout .bprop-categoria {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bprop-resultados-wrapper {
    margin-top: 24px;
  }
  .bprop-producto-img {
    height: 15vh !important;
    min-height: 85px !important;
  }
  .bprop-mapa {
    height: 300px;
  }
}

@media screen and (max-width: 480px) {
  .bprop-resultados-layout .bprop-categoria {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bprop-producto {
    padding: 12px;
  }
  .bprop-producto-img {
    height: 15vh !important;
    min-height: 80px !important;
  }
  .bprop-producto h4 {
    font-size: 15px;
  }
  .bprop-producto p {
    font-size: 13px;
  }
}
