/* Taxonomy Dropdown Styling - Bootstrap Native First */

/* Container styling */
.taxonomy-filters {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Prevent layout shift when dropdown opens */
.taxonomy-filters .btn-group {
    position: relative;
    z-index: 1050;
}

/* Button styling - minimal custom styling */
.taxonomy-filters .dropdown-toggle {
    font-weight: 500;
}

/* Dropdown menu - use Bootstrap defaults with minor tweaks */
.taxonomy-filters .dropdown-menu {
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.125rem;
    z-index: 1050;
}

/* Dropdown items - keep Bootstrap defaults */
.taxonomy-filters .dropdown-item {
    white-space: nowrap;
}

/* Badge styling - use Bootstrap defaults */
.taxonomy-filters .badge {
    font-size: 0.75rem;
    min-width: 24px;
}

/* Custom scrollbar for better UX */
.taxonomy-filters .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.taxonomy-filters .dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.taxonomy-filters .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.taxonomy-filters .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .taxonomy-filters .dropdown-menu {
        max-width: 100vw;
    }
}
