/*
 * @package BusinessSaleTheme
 * Extracted from: hero-search-bar.css
 */
/* ── Container ── */
.search-enhanced {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 0.5rem;
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-top: -2rem;
}
.search-enhanced:focus-within {
    border-color: rgba(129,140,248,0.2);
    box-shadow:
        0 4px 32px rgba(99,102,241,0.08),
        0 4px 24px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Main Row ── */
.se-main {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 0.25rem;
    transition: border-color 0.3s;
}
.search-enhanced:focus-within .se-main {
    border-color: rgba(129,140,248,0.15);
}

/* ── Fields ── */
.se-field {
    display: flex;
    align-items: center;
    position: relative;
}
.se-field-keyword {
    flex: 2;
    min-width: 0;
}
.se-field-select {
    flex: 1;
    min-width: 0;
}
.se-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.75rem;
    color: #52525b;
    flex-shrink: 0;
    transition: color 0.2s;
}
.se-field:focus-within .se-field-icon {
    color: #818cf8;
}

.se-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.9375rem;
    padding: 0.8125rem 0.5rem;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
.se-input::placeholder {
    color: #52525b;
}
.se-select {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #a1a1aa;
    font-size: 0.875rem;
    padding: 0.8125rem 1.5rem 0.8125rem 0.375rem;
    cursor: pointer;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.se-select option {
    background: #1a1a1c;
    color: #ffffff;
    padding: 0.5rem;
}

/* Clear button */
.se-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.se-clear:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

/* Vertical dividers */
.se-divider-v {
    width: 1px;
    height: 1.5rem;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    margin: 0 0.125rem;
}

/* Submit button */
.se-submit {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.6875rem 1.375rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border: none;
    border-radius: 11px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    white-space: nowrap;
}
.se-submit:hover {
    background: linear-gradient(135deg, #818cf8, #8b5cf6);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.se-submit:active {
    transform: translateY(0);
}
.se-submit svg {
    transition: transform 0.2s;
}
.se-submit:hover svg {
    transform: translateX(2px);
}

/* ── Toggle Row ── */
.se-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem 0.25rem;
    min-height: 2.25rem;
}
.se-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.25rem 0;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    transition: color 0.2s;
}
.se-toggle-btn:hover {
    color: #a1a1aa;
}
.se-chevron {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-toggle-btn.active .se-chevron {
    transform: rotate(180deg);
}
.se-active-pills {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.se-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    background: rgba(129,140,248,0.1);
    border: 1px solid rgba(129,140,248,0.15);
    color: #a5b4fc;
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.se-pill:hover {
    background: rgba(129,140,248,0.18);
    border-color: rgba(129,140,248,0.25);
}
.se-pill-x {
    display: flex;
    width: 12px;
    height: 12px;
    opacity: 0.6;
}
.se-pill:hover .se-pill-x {
    opacity: 1;
}

/* ── Advanced Panel ── */
.se-advanced {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
    opacity: 0;
}
.se-advanced.open {
    max-height: 400px;
    opacity: 1;
}
.se-adv-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0.75rem 0;
}
.se-adv-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.se-adv-group-wide {
    grid-column: 1 / -1;
}
.se-adv-group-toggles {
    flex-direction: row;
    gap: 1.25rem;
    align-items: end;
    padding-bottom: 0.125rem;
}
.se-adv-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.se-adv-label svg {
    color: #52525b;
}

/* ── Price Range ── */
.se-price-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.se-price-badge {
    padding: 0.25rem 0.625rem;
    background: rgba(129,140,248,0.08);
    border: 1px solid rgba(129,140,248,0.12);
    border-radius: 8px;
    color: #c7d2fe;
    font-size: 0.8125rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 6rem;
    text-align: center;
    transition: all 0.2s;
}
.se-price-badge.active {
    background: rgba(129,140,248,0.14);
    border-color: rgba(129,140,248,0.25);
    color: #e0e7ff;
}
.se-price-dash {
    color: #3f3f46;
    font-size: 0.875rem;
}

/* Custom range slider */
.se-range-wrap {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}
.se-range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
}
.se-range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 100px;
    transition: left 0.05s, right 0.05s;
}
.se-range {
    position: absolute;
    left: 0;
    width: 100%;
    height: 32px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    margin: 0;
}
.se-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6366f1;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.se-range:hover::-webkit-slider-thumb {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}
.se-range:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.05);
}
.se-range::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6366f1;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.se-range::-moz-range-track {
    background: transparent;
    border: none;
}

/* ── Adv Selects ── */
.se-adv-select {
    width: 100%;
    padding: 0.625rem 2rem 0.625rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    color: #d4d4d8;
    font-size: 0.875rem;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.se-adv-select:focus {
    border-color: rgba(129,140,248,0.3);
    background-color: rgba(255,255,255,0.05);
}
.se-adv-select option {
    background: #1a1a1c;
    color: #ffffff;
}

/* ── Toggle Switches ── */
.se-toggle-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}
.se-toggle-check input {
    display: none;
}
.se-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    transition: all 0.25s;
    flex-shrink: 0;
}
.se-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #52525b;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-toggle-check input:checked + .se-toggle-track {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.3);
}
.se-toggle-check input:checked + .se-toggle-track .se-toggle-knob {
    transform: translateX(16px);
    background: #818cf8;
    box-shadow: 0 0 8px rgba(129,140,248,0.4);
}
.se-toggle-text {
    font-size: 0.8125rem;
    color: #a1a1aa;
    transition: color 0.2s;
}
.se-toggle-check:hover .se-toggle-text {
    color: #d4d4d8;
}
.se-toggle-check input:checked ~ .se-toggle-text {
    color: #c7d2fe;
}

/* ── Adv Actions ── */
.se-adv-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 0.75rem 0.5rem;
}
.se-adv-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    transition: all 0.2s;
}
.se-adv-reset:hover {
    border-color: rgba(255,255,255,0.12);
    color: #a1a1aa;
    background: rgba(255,255,255,0.03);
}
.se-adv-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    transition: all 0.25s;
}
.se-adv-apply:hover {
    background: linear-gradient(135deg, #818cf8, #8b5cf6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.se-adv-apply:active {
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .se-adv-grid {
        grid-template-columns: 1fr 1fr;
    }
    .se-adv-group-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .search-enhanced {
        border-radius: 14px;
        margin: 0 0.75rem;
    }
    .se-main {
        flex-wrap: wrap;
        border-radius: 11px;
        gap: 0;
    }
    .se-field-keyword {
        flex-basis: 100%;
        order: 1;
    }
    .se-divider-v:nth-of-type(1) {
        display: none;
    }
    .se-field-select {
        flex: 1;
        min-width: 0;
        order: 2;
    }
    .se-divider-v:nth-of-type(2) {
        display: none;
    }
    .se-submit {
        flex: 1;
        justify-content: center;
        order: 3;
        border-radius: 9px;
    }
    .se-adv-grid {
        grid-template-columns: 1fr;
    }
    .se-adv-group-toggles {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .se-adv-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .se-adv-reset, .se-adv-apply {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-enhanced {
        margin: 0 0.5rem;
        padding: 0.375rem;
    }
    .se-input {
        font-size: 0.875rem;
        padding: 0.6875rem 0.375rem;
    }
    .se-select {
        font-size: 0.8125rem;
        padding: 0.6875rem 1.25rem 0.6875rem 0.25rem;
    }
    .se-field-icon {
        padding-left: 0.5rem;
    }
}

