.pro2-filter--chips {
    min-width: 0;
}

.pro2-filter__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.pro2-filter__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel-muted) 90%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pro2-filter__title {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.pro2-filter--header-wrap .pro2-filter__head,
.pro2-filter--header-list .pro2-filter__head {
    flex-direction: column;
    align-items: stretch;
}

.pro2-filter--header-wrap .pro2-filter__title {
    text-align: center;
}

.pro2-filter--header-wrap .pro2-filter__actions {
    justify-content: center;
    width: 100%;
}

.pro2-filter--header-list .pro2-filter__actions {
    justify-content: flex-start;
    width: 100%;
}

.pro2-filter {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.pro2-filter span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.pro2-filter select,
.pro2-filter input,
.pro2-filter textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-muted);
    color: var(--text);
    font: inherit;
}

.pro2-filter select,
.pro2-filter input {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.pro2-filter textarea {
    min-height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.pro2-filter-search {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 12px;
    background: var(--panel-muted);
    color: var(--text);
    font: inherit;
    -webkit-appearance: searchfield;
    appearance: none;
}

.pro2-filter-search-wrap,
.pro2-search__input-wrap {
    position: relative;
    min-width: 0;
}

.pro2-search__input-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.pro2-property-group-search {
    margin-top: 0;
    min-width: 0;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%),
        color-mix(in srgb, var(--panel-muted) 88%, transparent);
}

.pro2-property-group-search__row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.pro2-property-group-search__row .pro2-search__input-wrap {
    flex: 1 1 auto;
}

.pro2-property-group-search__actions {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 90%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pro2-filter-search--groups {
    width: 100%;
}

.pro2-filter-search-wrap .pro2-filter-search,
.pro2-search__input-wrap input {
    padding-right: 42px;
}

.pro2-filter-search-clear,
.pro2-search-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: color-mix(in srgb, var(--panel) 82%, transparent);
    color: var(--text-soft);
    cursor: pointer;
    z-index: 1;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.pro2-filter-search-clear:hover,
.pro2-filter-search-clear:focus-visible,
.pro2-search-clear:hover,
.pro2-search-clear:focus-visible {
    outline: none;
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 12%, var(--panel));
    transform: translateY(calc(-50% - 1px));
}

.pro2-filter-search-clear svg,
.pro2-search-clear svg {
    width: 18px;
    height: 18px;
}

.pro2-filter-search-clear[hidden],
.pro2-search-clear[hidden] {
    display: none !important;
}

.pro2-filter-search-toggle {
    position: relative;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.pro2-property-group-search__actions .pro2-filter-search-toggle + .pro2-sort-dropdown,
.pro2-property-group-search__actions .pro2-sort-dropdown + .pro2-sort-dropdown,
.pro2-filter__actions .pro2-filter-search-toggle + .pro2-sort-dropdown,
.pro2-filter__actions .pro2-sort-dropdown + .pro2-sort-dropdown {
    position: relative;
}

.pro2-property-group-search__actions .pro2-filter-search-toggle + .pro2-sort-dropdown::before,
.pro2-property-group-search__actions .pro2-sort-dropdown + .pro2-sort-dropdown::before,
.pro2-filter__actions .pro2-filter-search-toggle + .pro2-sort-dropdown::before,
.pro2-filter__actions .pro2-sort-dropdown + .pro2-sort-dropdown::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 7px;
    bottom: 7px;
    width: 1px;
    background: color-mix(in srgb, var(--border) 88%, transparent);
}

.pro2-filter-search-toggle svg {
    width: 18px;
    height: 18px;
}

.pro2-filter-search-toggle:hover {
    transform: translateY(-1px);
    color: var(--text);
    background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.pro2-filter-search-toggle.is-active {
    color: var(--accent);
    background: linear-gradient(135deg, rgba(88, 209, 201, 0.12), rgba(127, 230, 203, 0.06));
}

[data-ui-hydrating='1'] .pro2-filter-search-toggle {
    transition: none !important;
}

.pro2-filter-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 2px;
}

.pro2-filter-chip-row--wrap {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
}

.pro2-filter-chip-row--list {
    display: grid;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
}

.pro2-filter--select {
    display: grid;
    gap: 10px;
}

.pro2-filter-select {
    width: 100%;
    min-height: 46px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 60%),
        var(--panel-muted);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 60%),
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-repeat: no-repeat;
    background-size: auto, 8px 8px, 8px 8px;
    background-position: 0 0, calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
}

.pro2-filter-select:focus-visible {
    outline: 2px solid rgba(88, 209, 201, 0.45);
    outline-offset: 2px;
    border-color: var(--border-strong);
}

.pro2-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-muted);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pro2-sidebar-active-filters .pro2-filter-chip,
.pro2-sidebar-active-filters .pro2-store-chip {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.8rem;
}

.pro2-sidebar-active-filters .pro2-filter-chip strong,
.pro2-sidebar-active-filters .pro2-store-chip strong {
    font-size: 0.72rem;
}

.pro2-filter-chip__swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    background: rgba(255, 255, 255, 0.92);
}

.pro2-filter-chip__swatch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro2-filter-chip:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
}

.pro2-filter-chip.is-active {
    background: linear-gradient(135deg, rgba(88, 209, 201, 0.16), rgba(127, 230, 203, 0.08));
    border-color: var(--border-strong);
}

.pro2-filter-chip strong {
    color: var(--text-soft);
    font-size: 0.78rem;
    margin-left: 2px;
    padding-left: 7px;
    border-left: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pro2-filter-chip[hidden] {
    display: none;
}

.pro2-filter--list .pro2-filter-chip {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: 16px;
}

.pro2-filter--list .pro2-filter-chip span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.pro2-filter--list .pro2-filter-chip strong {
    margin-left: 10px;
}

.pro2-filter--toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: auto;
    padding: 0 4px;
}

.pro2-filter--toggle input {
    width: 18px;
    height: 18px;
}

.pro2-search--hero {
    width: 100%;
    max-width: none;
}

.pro2-search--hero .pro2-search__field {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.pro2-search-assist {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.pro2-search-assist[hidden],
.pro2-search-assist [hidden] {
    display: none !important;
}

.pro2-search-ai-toggle {
    justify-self: start;
}

.pro2-search-ai-toggle.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.pro2-search-assist__note {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.4;
}

.pro2-search-assist__note.is-error {
    color: var(--error-accent);
}

.pro2-search-assist__note-title {
    font-weight: 600;
}

.pro2-search-assist__diagnostic {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel-muted) 86%, transparent);
}

.pro2-search-assist__diagnostic-stage {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pro2-search-assist__diagnostic-message {
    color: var(--text);
    font-weight: 600;
}

.pro2-search-assist__diagnostic-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.pro2-search-assist__diagnostic-list li + li {
    margin-top: 4px;
}

.pro2-search-suggestions {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.pro2-search-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-muted);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.pro2-search-suggestion:hover,
.pro2-search-suggestion:focus-visible {
    border-color: var(--border-strong);
    outline: none;
    transform: translateY(-1px);
}

.pro2-search-suggestion__meta {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.pro2-match-highlight {
    padding: 0 0.14em;
    border-radius: 0.35em;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    color: inherit;
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent) 50%, transparent);
}

.pro2-filter-stack {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}

.pro2-filter-stack > .pro2-filter {
    padding: 14px 0 0;
    border-top: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.pro2-filter-stack > .pro2-filter:first-child {
    padding-top: 0;
    border-top: 0;
}

.pro2-filter-stack--price {
    grid-template-columns: minmax(0, 1fr);
}

.pro2-price-filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pro2-price-filter-group .pro2-filter-note {
    grid-column: 1 / -1;
}

.pro2-price-filter-group .pro2-filter {
    min-width: 0;
    padding: 0;
}

.pro2-price-filter-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pro2-filter-note {
    margin: 0 0 2px;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.pro2-filter-sort-menu {
    left: 0;
    right: auto;
    z-index: 1200;
}

.pro2-search__label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.pro2-search__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.pro2-search__field input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 18px;
    background: var(--panel-muted);
    color: var(--text);
    font: inherit;
    -webkit-appearance: searchfield;
    appearance: none;
}

.pro2-search--hero.is-ai-busy .pro2-search__input-wrap {
    border-radius: 20px;
}

.pro2-search--hero.is-ai-busy .pro2-search__input-wrap::before {
    opacity: 1;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--accent) 10%, transparent) 0%,
            color-mix(in srgb, var(--accent) 22%, transparent) 22%,
            color-mix(in srgb, var(--accent) 38%, white 4%) 50%,
            color-mix(in srgb, var(--accent) 18%, transparent) 78%,
            color-mix(in srgb, var(--accent) 10%, transparent) 100%
        );
    background-size: 220% 100%;
    animation: pro2-search-ai-fill 1.5s ease-in-out infinite;
}

.pro2-search--hero.is-ai-busy .pro2-search__input-wrap input {
    background: transparent;
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    cursor: progress;
}

.pro2-search--hero.is-ai-busy .pro2-search-submit {
    box-shadow:
        0 12px 26px rgba(16, 146, 142, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pro2-search--hero.is-ai-busy .pro2-search-submit[disabled],
.pro2-search--hero.is-ai-busy .pro2-search-clear[disabled] {
    cursor: progress;
    pointer-events: none;
}

.pro2-search--hero.is-ai-busy .pro2-search-submit[disabled] {
    opacity: 0.88;
}

.pro2-search--hero.is-ai-busy .pro2-search-clear[disabled] {
    opacity: 0.56;
}

@keyframes pro2-search-ai-fill {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.pro2-search__field input[type="search"]::-webkit-search-decoration,
.pro2-search__field input[type="search"]::-webkit-search-results-button,
.pro2-search__field input[type="search"]::-webkit-search-results-decoration,
.pro2-search__input-wrap input[type="search"]::-webkit-search-decoration,
.pro2-search__input-wrap input[type="search"]::-webkit-search-results-button,
.pro2-search__input-wrap input[type="search"]::-webkit-search-results-decoration,
.pro2-filter-search[type="search"]::-webkit-search-decoration,
.pro2-filter-search[type="search"]::-webkit-search-results-button,
.pro2-filter-search[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.pro2-search__field input[type="search"]::-webkit-search-cancel-button,
.pro2-search__input-wrap input[type="search"]::-webkit-search-cancel-button,
.pro2-filter-search[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.pro2-settings-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 52px;
    height: 32px;
}

.pro2-settings-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.pro2-settings-switch__track {
    position: relative;
    width: 52px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
    transition: background 160ms ease, border-color 160ms ease;
}

.pro2-settings-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--panel-strong);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: transform 160ms ease, background 160ms ease;
}

.pro2-settings-switch input:checked + .pro2-settings-switch__track {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.pro2-settings-switch input:checked + .pro2-settings-switch__track::after {
    transform: translateX(20px);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.pro2-settings-switch input:focus-visible + .pro2-settings-switch__track {
    outline: 2px solid rgba(88, 209, 201, 0.45);
    outline-offset: 2px;
}
