/* Filtros de Busca de Cidades */
.filtros-cidades {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filtro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.filtro-header h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-limpar-filtros {
    background: transparent;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-limpar-filtros:hover {
    background: #e74c3c;
    color: #fff;
}

.form-filtros {
    margin-bottom: 20px;
}

.filtros-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filtro-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtro-group label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filtro-group label svg {
    color: #3498db;
}

.filtro-select,
.filtro-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.filtro-select:focus,
.filtro-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filtro-select {
    cursor: pointer;
}

.filtro-input::placeholder {
    color: #999;
}

.filtro-actions {
    justify-content: flex-end;
}

.filtro-actions .btn {
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Filtros Ativos */
.filtros-ativos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.filtros-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.filtro-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3498db;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.remover-filtro {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.remover-filtro:hover {
    opacity: 1;
}

/* Resultados Info */
.resultados-info {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
}

.resultados-info p {
    margin: 0;
    font-size: 16px;
}

.resultados-info strong {
    font-size: 20px;
    font-weight: 700;
}

/* Mensagem de Nenhum Resultado */
.sem-resultados {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.sem-resultados svg {
    width: 80px;
    height: 80px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.sem-resultados h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.sem-resultados p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
    .filtros-cidades {
        padding: 20px;
    }
    
    .filtro-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filtro-header h2 {
        font-size: 20px;
    }
    
    .filtros-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filtro-actions {
        justify-content: stretch;
    }
    
    .filtro-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .filtros-ativos {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resultados-info {
        text-align: center;
    }
}

/* Animação de Loading */
.loading-filtros {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-filtros.active {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
