/**
 * GRUPO CP - Estilos Propiedades
 * Archivo: css/propiedades.css
 */

/* ==============================
   PAGE
============================== */

.propiedades-page {
    padding: 100px 0 50px;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}


/* ==============================
   FILTROS
============================== */

.filters-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.filters-form {
    width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.filter-group input,
.filter-group select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    width: 100%;
}

.filter-group .btn-primary,
.filter-group .btn-secondary {
    padding: 12px;
    text-align: center;
    text-decoration: none;
}


/* ==============================
   RESULTADOS
============================== */

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.results-header p {
    color: #666;
    font-weight: 500;
}


/* ==============================
   GRID DE PROPIEDADES
============================== */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}


/* ==============================
   CARD
============================== */

.property-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(29, 53, 87, 0.1);
    transition: .25s;
}

.property-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.12);
}


/* ==============================
   IMAGEN
============================== */

.property-image{
    height:220px;
    overflow:hidden;
    position:relative;
    background:#eee;
}

.property-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.3s;
}

.property-card:hover .property-image img{
    transform:scale(1.05);
}


/* BADGES */

.property-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* ==============================
   CONTENIDO CARD
============================== */

.property-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* PRECIO */

.property-price {
    color: #e74c3c;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}


/* TITULO */

.property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}


/* UBICACION */

.property-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}


/* DESCRIPCION */

.property-description {
    color: #666;
    line-height: 1.5;
    min-height: 55px;
    margin-bottom: 15px;
}


/* CARACTERISTICAS */

.property-features {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-top: auto;
    margin-bottom: 15px;
}


/* BOTON */

.property-info .btn-primary {
    margin-top: auto;
    align-self: flex-start;
    border-radius: 10px;
    font-weight: 600;
}


/* ==============================
   NO RESULTS
============================== */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    margin-bottom: 1rem;
    color: #ddd;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}


/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 900px) {

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .propiedades-page {
        padding: 80px 0 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filters-section {
        padding: 1.5rem;
    }

}

@media (max-width: 600px) {

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-image {
        height:200px;
    }

}

@media (max-width: 480px) {

    .property-features {
        flex-direction: column;
        gap: 0.5rem;
    }

}
