
    /* ESTILOS PARA LA PÁGINA DE INMUEBLES */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    .section-title {
        text-align: center;
        font-size: 2.5rem;
        color: #2c5530;
        margin-bottom: 30px;
        font-weight: 600;
    }

    /* CONTROLES DE ORDENAMIENTO */
    .sort-controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 30px 0;
    }

    .sort-btn {
        padding: 12px 25px;
        border: 2px solid #2c5530;
        background: white;
        color: #2c5530;
        cursor: pointer;
        border-radius: 25px;
        transition: all 0.3s ease;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 14px;
    }

    .sort-btn:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
    }

    .sort-btn.active {
        background: #2c5530;
        color: white;
    }

    .sort-btn i {
        margin-right: 8px;
    }

    /* GRID DE PROPIEDADES */
    .properties-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
        margin: 40px 0;
    }

    /* TARJETAS DE PROPIEDAD */
    .property-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
    }

    .property-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    }

    .property-link {
        text-decoration: none;
        color: inherit;
        display: block;
        height: 100%;
    }

    /* IMAGEN DE LA PROPIEDAD */
    .property-image {
        position: relative;
        height: 220px;
        overflow: hidden;
    }

    .property-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .property-card:hover .property-image img {
        transform: scale(1.05);
    }

    .property-number {
        position: absolute;
        top: 12px;
        left: 12px;
        background: rgba(0,0,0,0.8);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        font-family: 'Montserrat', sans-serif;
    }

    /* BADGES/ETIQUETAS - CORREGIDO (solo una definición) */
    .property-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-family: 'Montserrat', sans-serif;
    }

    /* ESTILOS DE BADGES - CORREGIDOS */
    .property-badge.sold { 
        background: #dc3545; 
    }
    
    .property-badge.rented { 
        background: #ffc107; 
        color: #000; 
    }
    
    .property-badge.bank { 
        background: #17a2b8; 
    }
    
    .property-badge.opportunity { 
        background: #28a745; 
    }
    
    .property-badge.private { 
        background: #6c757d; 
    }
    
    .property-badge.exclusive { 
        background: #6610f2; 
    }

    /* DETALLES DE LA PROPIEDAD */
    .property-details {
        padding: 20px;
    }

    .property-header {
        margin-bottom: 15px;
    }

    .property-location {
        color: #666;
        font-size: 14px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .property-location i {
        color: #2c5530;
    }

    .property-price {
        font-size: 1.4rem;
        font-weight: 700;
        color: #2c5530;
        margin: 10px 0;
    }

    .property-features {
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #e9ecef;
        padding-top: 15px;
    }

    .property-feature {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #666;
        font-weight: 500;
    }

    .property-feature i {
        color: #2c5530;
        width: 16px;
        text-align: center;
    }

    /* PAGINACIÓN */
    .pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 50px;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 10px 16px;
        border: 2px solid #e9ecef;
        background: white;
        color: #495057;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        min-width: 45px;
    }

    .page-btn:hover {
        border-color: #2c5530;
        color: #2c5530;
    }

    .page-btn.active {
        background: #2c5530;
        color: white;
        border-color: #2c5530;
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
        .properties-grid {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }
        
        .sort-controls {
            flex-direction: column;
            align-items: center;
        }
        
        .sort-btn {
            width: 250px;
        }
        
        .section-title {
            font-size: 2rem;
        }
    }

    @media (max-width: 480px) {
        .properties-grid {
            grid-template-columns: 1fr;
        }
        
        .property-features {
            flex-direction: column;
            gap: 8px;
        }
        
        .container {
            padding: 15px;
        }
    }