/* Estilos para Property Cards Component */

/* Grid de propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Property Card */
.property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Quitar padding de Bootstrap para property cards */
.property-card.col {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Imagen de la propiedad */
.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05); 
}

/* Badges sobre la imagen */
.property-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.property-area-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.property-area-badge i {
    font-size: 0.8rem;
    color: #dc3545;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.badge-venta {
    background: linear-gradient(135deg, #07c98b, #06a071);
    color: white;
}

.badge-alquiler {
    background: linear-gradient(135deg, #f23c49, #e63946);
    color: white;
}

.badge-otros {
    background: linear-gradient(135deg, #3c76f2, #2563eb);
    color: white;
}

.badge-tipo {
    background: rgba(255, 255, 255, 0.95);
    color: #6c757d;
    backdrop-filter: blur(10px);
}

/* Contenido de la tarjeta */
.property-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fila de precio y características */
.price-features-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto; /* Empuja al final del contenido */
}

.property-price {
    margin-bottom: 0;
    flex: 1;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #dc3545;
}

/* Características */
.property-features {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: fit-content;
}

.feature:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.feature i {
    font-size: 0.9rem;
    color: #6c757d;
    min-width: 14px;
}

.feature span {
    font-size: 0.75rem;
    color: #495057;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 0.8rem 1rem;
    }
    
    .price-features-row {
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .property-price .price {
        font-size: 1.2rem;
    }
    
    .property-features {
        justify-content: flex-start;
        gap: 0.4rem;
    }
    
    .feature {
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
    }
    
    .feature i {
        font-size: 0.8rem;
    }
    
    .feature span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .property-content {
        padding: 0.8rem 1rem;
    }
    
    .property-features {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .feature {
        padding: 0.2rem 0.4rem;
        gap: 0.2rem;
    }
    
    .feature i {
        font-size: 0.75rem;
    }
    
    .feature span {
        font-size: 0.7rem;
    }
}
