@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    --color-primary: #3DAFF7;
    --color-secondary: #49E0D0;
    
}

.d-flex{
    display: flex;
    flex-wrap: wrap;
}
.col-3{
    width: 22%;
}

/* Estilos generales del plugin */
.inm-container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos del formulario de búsqueda */
.propiedades-search-tabs {
    width: 70%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0px;
    border-radius: 8px;
    font-family: "Raleway", serif;

}


.tabs-header {
    display: flex;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    background: var(--color-secondary);
    text-transform: uppercase;
    margin-left: 3px;
    border-radius: 0px;

}
.tabs-header .tab-btn:first-child {
    margin-left: 0;
}

.tab-btn.active {
    color: #000;
    background: #fff;
   
}

.tab-content {
    display: none;
    
}

.tab-content.active {
    display: block;
    background: #fff;
    padding: 30px 15px;
    
}

.tab-content .slogan{
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 0px;
    color: #333;
     font-family: "Raleway", serif;
    font-weight: 300;
}

/* Estilos de formularios */

.search-form{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.search-form .form-group {
    width: 100%;
    margin-bottom: 0;
}


.search-form select,
.search-form input {
    padding-left: 10px;
    border: 1px solid #ddd;
    border-radius: 10px !important;
    flex: 1;
    height: 45px;
    min-width: 100%;
    background: #EFEFEF;
    border: none;
    margin-bottom: 0px !important;
}
:where(.wp-site-blocks :focus) {
    outline-width: 0px;
  outline-style: solid;
}

.search-form .search-btn{
    background:  var(--color-primary);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    min-width:100% ;
    min-height: 45px;
    box-shadow: 0 0 10px var(--color-primary);
    width: 93%;
    font-weight: 800;
}

.search-form .search-btn:hover {
    background: #0097A7;
}

.comprar .form-group {
    width: 26.3%;
}

.comprar .form-group.cont-btn{
   width: 14%;
   display: flex;
   justify-content: flex-end;
}

.vender .form-group {
    width: 67%;
}

.vender .form-group.cont-btn{
   width: 31%;
   display: flex;
   justify-content: flex-end;
}
.valorar .form-group {
    width: 67%;
}

.valorar .form-group.cont-btn{
   width: 31%;
   display: flex;
   justify-content: flex-end;
}




/* Estilos de las tarjetas de propiedades */


.ultimas-propiedades {
    margin: 40px auto;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
     font-family: "Raleway", serif;

}
.ultimas-propiedades .img-icono{
    display: block !important;
    height: 50px;
}
.ultimas-propiedades h2{
    font-size: 1.6rem;
    font-family: "Raleway", serif;
    width:100%;
    text-align: center;
    margin-bottom: 40px;

    
}

.propiedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.propiedad-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    cursor: pointer;
}

.propiedad-card:hover {
    transform: translateY(-5px);
}

/* Estilos para permitir la selección de texto */
.propiedad-card .propiedad-info {
    position: relative;
    z-index: 1;
}

/* Estilo para el enlace que cubrirá toda la tarjeta */
.propiedad-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.propiedad-imagen {
    position: relative;
    height: 200px;
    overflow: hidden;
    
}

.propiedad-imagen .label{
    position: absolute;
    background: #fd9004;
    top: 10px;
    left: 10px;
    padding: 5px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 6px #8e8e8e;
}

.propiedad-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etiqueta-nuevo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.propiedad-info {
    padding: 20px;
}

.propiedad-ubicacion {
    color: #000;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 900;
    text-transform: uppercase;
}

.propiedad-titulo {
    font-size: 1.1em;
    margin-bottom: 10px;
    margin-top: 3px;
    color: #000;
     font-family: "Raleway", serif;
}

.propiedad-precio {
    font-size: 1.4em;
    font-weight: bold;
    color: #7971A1;
    margin-bottom: 15px;
}

.propiedad-info .footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.propiedad-info .footer .date{
    font-size: 0.8em;
    color: #666;
}

.propiedad-info .footer .btn a{
   color: var(--color-primary);
   border: 1px solid var(--color-primary);
   text-decoration: none;
   display: inline-block;
   padding: 10px 25px;
   text-transform: uppercase;
   font-weight: 800;
   border-radius: 30px;
   position: relative;
   z-index: 3;
}
.propiedad-caracteristicas {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}
.propiedad-caracteristicas .icono {
    width: 30%;
    display: flex;
    align-items: center;
    font-size: 13px;
}
.propiedad-caracteristicas .icono img{
    width: 20px;
    margin-right: 5px;
}

/* Responsive */

@media(max-width: 1380px) {
    .propiedades-search-tabs {
        width: 85%;
    }
}
@media(max-width: 1110px) {
    .propiedades-search-tabs {
        width: 100%;
    }
    .search-form .search-btn{
        font-size: 16px;
    }
}


@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        margin-left: 0px !important;
        border-top: 1px solid #fff;
    }
    
    .inm-form select,
    .inm-form input {
        width: 100%;
        min-width: 100%;
    }
    
    .inm-btn {
        width: 100%;
    }
    
    .propiedades-grid {
        grid-template-columns: 1fr;
    }
    
    .propiedad-caracteristicas {
        flex-wrap: wrap;
    }
    .propiedad-caracteristicas .icono{
        width: 28%;
    }
    .form-group,
    .form-group.cont-btn,
    .search-form .search-btn{
        width: 100% !important;
    }
  

}
