/* ===== FILTROS DINÂMICOS - PÁGINA IMOVEIS.PHP ===== */

/* ===== FILTROS DE CATEGORIA DESKTOP ===== */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.category-filter-item {
    position: relative;
    transition: all 0.3s ease;
}

.category-filter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    color: #666666;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-filter-link i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.category-filter-link:hover {
    background: #e9ecef;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-filter-item.active .category-filter-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-filter-item.active .category-filter-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ===== FILTROS DE CATEGORIA MOBILE ===== */
.category-filters-mobile {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-filter-mobile {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-filter-link-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    text-decoration: none;
    color: #666666;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
}

.category-filter-link-mobile i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.category-filter-link-mobile span {
    font-size: 0.75rem;
    line-height: 1;
}

.category-filter-link-mobile:hover {
    background: #e9ecef;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.category-filter-mobile.active .category-filter-link-mobile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.category-filter-mobile.active .category-filter-link-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== INDICADOR DE FILTRO ATIVO ===== */
.filter-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.filter-indicator i {
    font-size: 0.8rem;
}

/* ===== CONTADOR DE RESULTADOS ===== */
.results-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.results-counter i {
    color: #667eea;
    font-size: 0.8rem;
}

.results-counter .count {
    font-weight: 700;
    color: #333333;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .category-filters {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
        padding: 15px 0;
    }
    
    .category-filter-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .category-filters-mobile {
        gap: 8px;
        margin-bottom: 15px;
        padding: 12px 0;
    }
    
    .category-filter-link-mobile {
        padding: 8px 12px;
        min-width: 60px;
    }
    
    .category-filter-link-mobile i {
        font-size: 1rem;
    }
    
    .category-filter-link-mobile span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .category-filters {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .category-filter-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .category-filters-mobile {
        gap: 6px;
        margin-bottom: 12px;
        padding: 10px 0;
    }
    
    .category-filter-link-mobile {
        padding: 6px 10px;
        min-width: 55px;
    }
    
    .category-filter-link-mobile i {
        font-size: 0.9rem;
    }
    
    .category-filter-link-mobile span {
        font-size: 0.65rem;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes filterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.category-filter-item.active .category-filter-link,
.category-filter-mobile.active .category-filter-link-mobile {
    animation: filterPulse 0.6s ease-in-out;
}

/* ===== ESTADOS DE HOVER MELHORADOS ===== */
.category-filter-item:not(.active):hover .category-filter-link i {
    transform: scale(1.1);
}

.category-filter-mobile:not(.active):hover .category-filter-link-mobile i {
    transform: scale(1.1);
}

/* ===== GRADIENTES ESPECÍFICOS PARA CADA FILTRO ===== */
.category-filter-item:nth-child(1) .category-filter-link {
    /* Todos os Imóveis - Azul neutro */
}

.category-filter-item:nth-child(2) .category-filter-link {
    /* Em Destaque - Laranja/Dourado */
}

.category-filter-item:nth-child(2).active .category-filter-link {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.category-filter-item:nth-child(3) .category-filter-link {
    /* Maior Valorização - Verde */
}

.category-filter-item:nth-child(3).active .category-filter-link {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* ===== MOBILE - GRADIENTES ESPECÍFICOS ===== */
.category-filter-mobile:nth-child(2).active .category-filter-link-mobile {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: #ff6b35;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.category-filter-mobile:nth-child(3).active .category-filter-link-mobile {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* ===== SCROLL HORIZONTAL PARA MOBILE ===== */
.category-filters-mobile::-webkit-scrollbar {
    height: 4px;
}

.category-filters-mobile::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.category-filters-mobile::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.category-filters-mobile::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
