/* Filter Intent Multiselect Dropdown */
.filter-group-intents {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}

.filter-intents-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.filter-intents-toggle:hover {
    border-color: #003284;
    background-color: #f9f9f9;
}

.filter-intents-toggle.active {
    border-color: #003284;
    background-color: #f0f5ff;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #003284;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.filter-count:not([style*="display:none"]):not([style*="display: none"]) {
    opacity: 1;
    visibility: visible;
}

.filter-intents-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    width: 100%;
    min-width: 320px;
    max-height: 500px;
    overflow-y: auto;
    background-color: #fff;
    border: 2px solid #003284;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
}

.filter-intents-section {
    margin-bottom: 20px;
}

.filter-intents-section:last-child {
    margin-bottom: 0;
}

.filter-intents-section-title {
    margin: 0 0 12px 0;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 700;
    color: #003284;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #003284;
}

.filter-intents-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.filter-intent-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.filter-intent-label:hover {
    border-color: #003284;
    background-color: #f0f5ff;
}

.filter-intent-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.filter-intent-label input[type="checkbox"]:checked {
    accent-color: #003284;
}

.filter-intent-label:has(input:checked) {
    border-color: #003284;
    background-color: #f0f5ff;
}

.filter-intent-label input[type="checkbox"]:checked + .filter-intent-icon,
.filter-intent-label input[type="checkbox"]:checked ~ .filter-intent-name {
    color: #003284;
    font-weight: 600;
}

.filter-intent-icon {
    font-size: 18px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.filter-intent-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-intents-dropdown {
        min-width: 280px;
    }
    
    .filter-intents-group {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .filter-intents-dropdown {
        min-width: 100%;
        max-height: 400px;
    }
    
    .filter-intents-group {
        grid-template-columns: 1fr;
    }
}
