/* =========================================================
   Venyo home — advanced filter dropdowns
   Brand: #5f2265 purple · #d7ab42 gold · warm neutrals
   ========================================================= */

.advanced-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.advanced-filter-bar .filter-item {
    position: relative;
    min-width: 148px;
    flex: 0 1 auto;
}

.adv-select {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.adv-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 16px 0 18px;
    border-radius: 21px;
    border: 1px solid #ebe6ed;
    background: #faf8fb;
    color: #5a5560;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    text-align: left;
}

.adv-select-trigger:hover {
    background: #fff;
    border-color: #5f2265;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(95, 34, 101, 0.1);
}

.adv-select.is-open .adv-select-trigger,
.adv-select-trigger:focus {
    outline: none;
    background: #fff;
    border-color: #5f2265;
    box-shadow: 0 0 0 3px rgba(95, 34, 101, 0.12);
}

.adv-select.has-value .adv-select-label {
    color: #3a1a3e;
    font-weight: 600;
}

.adv-select-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adv-select-caret {
    font-size: 11px;
    color: #5f2265;
    opacity: 0.75;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.adv-select.is-open .adv-select-caret {
    transform: rotate(180deg);
}

.adv-select.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.adv-select.is-disabled .adv-select-trigger {
    cursor: not-allowed;
    background: #f3f1f4;
}

.adv-select-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 220px;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    background: #fffefc;
    border: 1px solid #ebe4ef;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(48, 17, 52, 0.14);
    overflow: hidden;
    z-index: 50;
    animation: advSelectIn 0.16s ease;
}

.adv-select-panel[hidden] {
    display: none !important;
}

@keyframes advSelectIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adv-select-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0eaf2;
    background: linear-gradient(180deg, #faf6fb 0%, #fffefc 100%);
    flex-shrink: 0;
}

.adv-select-search-wrap .fa-search {
    color: #5f2265;
    opacity: 0.55;
    font-size: 13px;
}

.adv-select-search {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    font-size: 13px;
    color: #3a1a3e;
    min-width: 0;
    height: 28px;
    padding: 0;
}

.adv-select-search::placeholder {
    color: #a89aae;
}

.adv-select-options {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    max-height: 220px;
}

.adv-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #4a4450;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.adv-select-option:hover {
    background: rgba(95, 34, 101, 0.07);
    color: #5f2265;
}

.adv-select-option.is-selected {
    background: rgba(95, 34, 101, 0.1);
    color: #5f2265;
    font-weight: 600;
}

.adv-select-option .fa-check {
    color: #d7ab42;
    font-size: 12px;
    flex-shrink: 0;
}

.adv-select-clear {
    color: #8a7f90;
    border-bottom: 1px solid #f0eaf2;
    border-radius: 10px 10px 0 0;
    margin-bottom: 4px;
}

.adv-select-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: #a89aae;
}

@media (max-width: 767px) {
    .advanced-filter-bar {
        justify-content: stretch;
    }

    .advanced-filter-bar .filter-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .adv-select-panel {
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
        max-height: min(320px, 55vh);
    }

    .adv-select-options {
        max-height: min(240px, 42vh);
    }
}
