.hidden-filter-select {
    display: none !important;
}

.custom-fake-select {
    position: relative;
    width: 100%;
    min-width: 250px;
    cursor: pointer;
    font-family: 'Helvetica', sans-serif;
    display: inline-block;
    vertical-align: top;
}

.fake-select-label {
    padding: 0 15px;
    border: 1px solid #2F95BB;
    border-radius: 6px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
    /* text-gray-700 */
    font-size: 1rem;
    /* text-base (16px) */
    line-height: 1.5;
    height: 40px;
    box-sizing: border-box;
}

.fake-select-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    min-width: 0;
    margin-right: 8px;
    text-align: left;
}

.fake-select-label .arrow-down::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    border-right: 2px solid #2F95BB;
    border-bottom: 2px solid #2F95BB;
    transform: rotate(45deg);
    margin-top: -4px;
}

.fake-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    /* unified radius */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    min-width: 250px;
    max-height: 400px;
    overflow-y: visible;
    padding: 4px 0;
}

/* ... (scrolling) ... */
#section-fake-select .fake-select-dropdown {
    overflow-y: auto;
}

@media (hover: hover) {
    .custom-fake-select:hover .fake-select-dropdown {
        display: block;
    }
}

.custom-fake-select.open .fake-select-dropdown {
    display: block;
}

.custom-fake-select.closed .fake-select-dropdown {
    display: none !important;
}

.fake-select-item {
    padding: 10px 15px;
    margin: 0;
    border-radius: 0;
    color: #374151;
    font-size: 1rem;
    /* Match label size for consistency */
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    transition: all 0.2s;
    line-height: 1.2;
}

.fake-select-item:hover {
    background-color: #f9fafb;
}

.fake-select-item.has-children::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid #9ca3af;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.subgroups-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    min-width: 250px;
    padding: 8px 0;
}

.fake-select-item:hover .subgroups-dropdown {
    display: block;
}

.subgroup-item {
    padding: 10px 15px;
    margin: 0;
    border-radius: 0;
    color: #4b5563;
    font-size: 1rem;
    /* Match parent size */
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.2s;
}

.subgroup-item:hover,
.fake-select-item:not(.has-children):hover,
.fake-select-item.active:not(.has-children),
.fake-select-item.has-children.active {
    background-color: #009878;
    color: white;
}

.subgroup-item.active {
    background-color: #009878;
    color: white;
}

.fake-select-item.has-children.active::after {
    border-left-color: white;
}

@media (max-width: 767px) {
    .subgroups-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #e5e7eb;
        border-top: none;
        padding-left: 15px;
        box-sizing: border-box;
        display: none;
    }

    .fake-select-item.submenu-open .subgroups-dropdown {
        display: block !important;
    }

    .fake-select-item.has-children::after {
        transform: translateY(-50%) rotate(90deg);
        transition: transform 0.2s ease;
    }

    .fake-select-item.has-children.submenu-open::after {
        transform: translateY(-50%) rotate(180deg);
    }
}