.properties_list{
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: stretch;
}
.inmueble{
	width:29%;
	padding: 2%;
	flex: 0 0 calc(100% / 3);
}
.wrapper{
	max-width: 90%;
}

/* Para los reservados */

.reservado {
    position: relative;
	width: 101%;
    top: -33%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-weight: bold;
    color: #0950a2;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 1);
    padding: 8px 16px;
    border-radius: 6px;
}
/* Fin reservados */


.inmuebleNoVisible{
	width:29%;
	margin: 2%;
	display:none;
}

.listings ul.properties_list{
    list-style: none;
    overflow: hidden;
}
.listings ul.properties_list li img.property_img{
    width: 100%;
    height: 300px!important;
    vertical-align: top;
	object-fit: cover;
	border-radius: 10px;
}
.price{
    position: relative;
	float: left;
    bottom: 67%;
    left: 3%;
    padding: 15px 20px;
    background: #ffffff;
    color: #000000;
    font-family: "lato-bold", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    z-index: 9999999;	
}

.operacion{
    position: relative;
	float: right;
    bottom: 67%;
    right: 3%;
    padding: 15px 20px;
    background: #ffffff;
    color: #000000;
    font-family: "lato-bold", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    z-index: 9999999;	
}

.property_details{
	float: left;
    position: relative;
    bottom: 10%;
	height: 80px;
	padding-top: 10px;
}

.listings ul li .property_details h1{
    color: #666464;
    font-family: "lato-bold", Helvetica, Arial, sans-serif;
    font-size: 16px!important;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 28px;
}

.listings ul li .property_details h1 a{
    text-decoration: none;
    color: #666464;
}

.listings ul li .property_details h2{
    color: #9d9d9d;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 26px;
}

.listings ul li .property_details .property_size{
    color: #676767;
}

.numeroPaginas{
	text-align: center;	
}

.numPaginas{
	color: #27a5c7 !important;
}
.numPaginas:hover{
	color: #140079 !important;
}

/* Botones de los relacionados */

.slider-btn {
  position: absolute;
  top: 35%;
  background: #13a5ca;
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: #1659a7;
}

.slider-btn.left {
  left: -30px;
}

.slider-btn.right {
  right: -30px;
}

/* Fin botones de los relacionados */


/* Formulario de búsqueda */

#wrapper_buscador{
	margin: 0 auto;
	padding: 35px;
}

/* General reset for forms */
#buscador form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Styling for each form block */
#buscador .cform {
    flex: 1 1 45%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

/* Label styling */
#buscador label {
    font-weight: bold;
    color: #003366; /* Azul oscuro */
    margin-bottom: 5px;
    font-size: 14px;
}

/* Inputs and selects styling */
#buscador input[type="text"],
#buscador select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Focus states */
#buscador input[type="text"]:focus,
#buscador select:focus {
    border-color: #c89b3c; /* Dorado */
    box-shadow: 0 0 5px rgba(200, 155, 60, 0.5);
    outline: none;
}

/* Submit button */
#buscador input[type="submit"] {
    background-color: #003366;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

/* Button hover */
#buscador input[type="submit"]:hover {
    background-color: #c89b3c; /* Dorado */
    color: #003366;
}

/* Ocultar zona del buscador */
#div_zona {
	flex: 1 1 45%;
    display: none;
	min-width: 200px;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #buscador .cform {
        flex: 1 1 100%;
    }
}

@media (max-width: 1024px) and (min-width: 769px){

	.inmueble{
		width: 29%;
    	flex: 0 0 50%;
	}
	
	.reservado{
		height: 46px;	
	}
	.reservado p{
		position: relative;
		top:-33px;
	}
	.operacion{
		width: 45%;
		padding: 15px 5px;
    	font-size: 0.8rem;
    	text-align: center;
	}
	.price{
		width: 45%;
		padding: 15px 5px;
    	font-size: 0.8rem;
    	text-align: center;	
	}
}

@media (max-width:768px){
	
	.inmueble{
		width: 29%;
    	flex: 0 0 50%;
	}
	
	#wrapper_buscador{
		padding-top:0px;
	}
	.listings ul.properties_list li img.property_img{
		height: 200px!important;
	}
	.operacion{
		width: 45%;
    	font-size: 0.6rem;
		bottom: 49%;
		padding: 20px 5px;
    	text-align: center;
	}
	.price{
		width: 40%;
    	font-size: 0.6rem;
		bottom: 49%;
		padding: 20px 5px;
    	text-align: center;	
	}
	.property_details{
		bottom: 8%;
		height: 140px;
		padding-top: 0px;
	}
	.reservado{
		height: 46px;
		top:27%;
	}
	.reservado p{
		height: 30px;
   		position: relative;
   		bottom: 240px;
	}
}

@media (max-width:426px){
	
	.inmueble{
		flex: 0 0 100%;
	}
	
	.inmueble{
		width: 90%;
	}
	.inmuebleNoVisible{
		width: 90%;
	}
	.property_details{
		height: 120px;
	}
	.operacion{
		font-size: 1rem;
	}
	.price{
		font-size: 1rem;
	}
	.reservado{
		height: 50px;
        top: 30%;
	}
	.reservado p{
		bottom: 243px;
	}
}
