
/** CUSTOM INMUEBLES page-inmuebles **/
.contenedor {
    display: flex;
    height: 150vh;
    gap: 10px;
    padding: 10px;
  }
  
  #sidebar {
    width: 20%;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    overflow-y: auto;
    min-height: 500px;
  }
  
  #sidebar h3 {
    text-align: center;
  }
  
  #filtros-form label {
    font-weight: bold;
    display: block;
    margin: 8px 0 4px;
  }
  
  #filtros-form select, 
  #filtros-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  #filtros-form button {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #filtros-form button:hover {
    background: #005f8f;
  }

  #filtros-form a.button-link {
    width: 100%;
    padding: 10px;
    background: white;
    color: #0073aa;
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    border: 1px solid #0073aa;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #filtros-form a.button-link:hover {
    background: #005f8f;
    color:white;
  }
  
  #listado {
    width: 40%;
    overflow-y: auto;
  }

  #listado-sinmapa {
    width: 80%;
    overflow-y: auto;
  }
  
  #mapa-container {
    width: 40%;
  }
  
  #map {
    width: 100%;
    height: 100vh;
    border-radius: 8px;
  }

  /* Estilos generales para el contenedor de inmuebles */
  #inmuebles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Múltiples columnas flexibles */
    gap: 10px;
  }
  
  .inmueble {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: center;
}

.inmueble img {
    max-width: 100%;
    height: auto;
    border-radius: inherit;
}

.inmueble .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0px;
}

.inmueble .grid-container h5 {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 0px;
}
.inmueble .grid-container p{
    text-align: left;
    margin-bottom: 0px;
} 
.inmueble .image-wrapper {
  /*width: 250px;*/
  height: 190px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.inmueble .text-wrapper{
    padding: 10px;
}
.inmueble .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la imagen manteniendo la proporción */
}
.inmueble .button-link , .custom-info-window .button-link{
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: #333; /* Color base del botón */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  margin-top:10px;

}

.inmueble .button-link:hover, .custom-info-window .button-link:hover{
  background-color: #0073aa; /* Color al pasar el mouse */
}

.custom-info-window {
    max-width: 250px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    text-align: center;
}
.paginacion {
    text-align: center;
    margin-top: 20px;
}
.paginacion button {
    padding: 8px 12px;
    margin: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: white;
    color: #0073aa;
}
.paginacion button.activo, .paginacion button:hover {
    background-color: #0073aa;
    color: white;
}

@media (max-width: 768px) {
    .contenedor {
        display: flex;
        flex-direction: column;
    }

    #sidebar, #listado, #mapa-container {
        width: 100%;
    }
    #mapa-container {
        min-height: 530px;
    }
}

