.list-group-item.active,
.list-group-item.selected,
.list-group-item:active,
#suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2147483647 !important;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Lower the overlay z-index so dropdown appears above it */
.overlay {
    z-index: 1 !important;
}

/* Ensure all parents of the dropdown are above overlays/backgrounds */
.container,
.row.justify-content-center,
.banner-filter-form,
.form-wrapper.radius-xl,
.input-group.border-end {
    position: relative !important;
    z-index: 2147483647 !important;
    overflow: visible !important;
}

/* Responsive suggestion box override */
#suggestion-box.suggestion-responsive {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 400px !important;
    max-width: 90vw !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    display: none;
}

/* Custom suggestion box style override */
#suggestion-box.suggestion-custom {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    display: none;
}

/* Active/selected/hovered item styles */
.list-group-item.active,
.list-group-item.selected,
.list-group-item:active,
#suggestion-box .list-group-item.active,
#suggestion-box .list-group-item.selected,
#suggestion-box .list-group-item:focus {
    background-color: #28a745 !important; /* Bootstrap green */
    color: #fff !important;
    border-color: #28a745 !important;
}

/* Hover effect for dropdown suggestion items */
.list-group-item:hover, .autocomplete-suggestion:hover {
    background-color: #28a745 !important;
    color: #fff !important;
}
