/* انتخابگرِ جست‌وجوپذیرِ وانیلا (جایگزین Select2 بدون jQuery) */
.vs-wrap {
    position: relative;
    width: 100%;
}

/* همان فاصلهٔ سلکت‌های بومی در کارت فیلتر (index.css: .search-card select) */
.search-card .vs-wrap {
    margin-top: 15px;
}

/* سلکتِ بومی پنهان ولی در DOM می‌ماند تا مقدار/تغییر آن قابل خواندن باشد */
.vs-native {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* هم‌اندازه با input/select بومیِ کارت فیلتر (index.css: padding:15px, radius:5px) */
.vs-trigger {
    width: 100%;
    text-align: right;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 5px;
    padding: 15px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* سلکتِ بیمه: فاصلهٔ پایینِ اصلیِ ins-input حفظ شود */
.search-card .vs-wrap:has(.ins-input) {
    margin-bottom: 19px;
}

.vs-trigger.vs-placeholder {
    color: #9aa0a6;
}

.vs-trigger::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-left: 2px solid #9aa0a6;
    border-bottom: 2px solid #9aa0a6;
    transform: rotate(-45deg);
    margin-top: -4px;
}

.vs-open .vs-trigger {
    border-color: #2f6bff;
}

.vs-panel {
    position: absolute;
    z-index: 1061;
    top: calc(100% + 4px);
    inset-inline: 0;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
    overflow: hidden;
    /* باز/بستهٔ نرم */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
}

.vs-open .vs-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.vs-search-box {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.vs-search {
    width: 100%;
    border: 1px solid #dadada;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}

.vs-list {
    list-style: none;
    margin: 0;
    padding: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.vs-item {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-item:hover {
    background: #f2f6ff;
}

.vs-item.vs-selected {
    background: #e7f0ff;
    font-weight: 600;
}

.vs-empty {
    padding: 10px;
    text-align: center;
    color: #9aa0a6;
    font-size: 13px;
}
