/* Estilos para Propiedades Interactivas */

/* Grid de propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
    padding: 0 16px;
}

/* Tarjetas de propiedades */
.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;
    border: 1px solid #f0f0f0;
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: #007bff;
}

/* 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);
}

/* Badge destacada */
.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}

/* Información de la propiedad */
.property-info {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

.property-location i {
    color: #007bff;
    font-size: 12px;
}

.property-description {
    color: #5a6c7d;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.property-price {
    font-size: 22px;
    font-weight: 800;
    color: #27ae60;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(39,174,96,0.1);
}

/* Estadísticas de la propiedad */
.property-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 0;
    border-top: 1px solid #f8f9fa;
    border-bottom: 1px solid #f8f9fa;
}

.property-stats span {
    font-size: 12px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-stats i {
    font-size: 10px;
}

/* Acciones de la propiedad */
.property-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-actions a {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

.btn-contact {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-contact:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108,117,125,0.3);
}

/* Botones de ordenamiento activos */
.sorting-tab.active,
button[data-sort].active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border-color: #007bff !important;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3) !important;
    transform: translateY(-2px);
}

.sorting-tab.active i,
button[data-sort].active i {
    color: white !important;
}

/* Animaciones de carga */
.properties-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #6c757d;
}

.properties-loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efectos de transición para ordenamiento */
.property-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de hover para botones de ordenamiento */
.sorting-tab:hover,
button[data-sort]:hover {
    background: #f8f9fa !important;
    border-color: #007bff !important;
    color: #007bff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 12px;
    }
    
    .property-card {
        border-radius: 12px;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-info {
        padding: 16px;
    }
    
    .property-title {
        font-size: 16px;
    }
    
    .property-price {
        font-size: 20px;
    }
    
    .property-actions {
        gap: 6px;
    }
    
    .property-actions a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .property-stats {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .property-actions a {
        font-size: 13px;
        padding: 10px 14px;
    }
}

