/* ========================================
   SERVICES PAGE — FILTER TOOLBAR
   Modern horizontal filter bar
   ======================================== */

/* ── Filter Toolbar Container ── */
.sv-filter-toolbar {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* ── Row 1: Search + Category Chips ── */
.sv-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.sv-filter-row:last-child {
    margin-bottom: 0;
}

/* Search Input */
.sv-search-wrap {
    position: relative;
    flex: 0 0 220px;
    max-width: 260px;
}
.sv-search-wrap input {
    width: 100%;
    height: 40px;
    border: 1px solid #dde1e6;
    border-radius: 10px;
    padding: 0 14px 0 38px;
    font-size: 14px;
    color: #333;
    background: #f8f9fb;
    transition: all .25s ease;
    outline: none;
}
.sv-search-wrap input:focus {
    border-color: #FF6900;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,105,0,.1);
}
.sv-search-wrap .sv-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

/* ── Category Chips ── */
.sv-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sv-chips-scroll::-webkit-scrollbar { display: none; }

.sv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #e0e3e8;
    background: #f8f9fb;
    color: #555;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    user-select: none;
}
.sv-chip i {
    font-size: 13px;
    opacity: .7;
}
.sv-chip:hover {
    border-color: #FF6900;
    color: #FF6900;
    background: #fff5ee;
}
.sv-chip.active {
    background: linear-gradient(135deg, #FF6900 0%, #ff8533 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(255,105,0,.25);
}
.sv-chip.active i {
    opacity: 1;
}

/* ── Row 2: Compact Selects + View Toggle ── */
.sv-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.sv-select-wrap {
    position: relative;
}
.sv-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    height: 38px;
    border: 1px solid #dde1e6;
    border-radius: 10px;
    padding: 0 34px 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    background: #f8f9fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    transition: all .25s ease;
    outline: none;
    min-width: 130px;
}
.sv-select-wrap select:focus {
    border-color: #FF6900;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,105,0,.1);
}
.sv-select-wrap label {
    display: none;
}

/* ── View Toggle (Grid / List) ── */
.sv-view-toggle {
    display: flex;
    border: 1px solid #dde1e6;
    border-radius: 10px;
    overflow: hidden;
    margin-left: auto;
}
.sv-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: #f8f9fb;
    color: #888;
    cursor: pointer;
    transition: all .25s ease;
    font-size: 15px;
}
.sv-view-btn:first-child {
    border-right: 1px solid #dde1e6;
}
.sv-view-btn:hover {
    color: #FF6900;
    background: #fff5ee;
}
.sv-view-btn.active {
    background: #FF6900;
    color: #fff;
}

/* ── Search & Reset Buttons ── */
.sv-btn-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    background: linear-gradient(135deg, #FF6900 0%, #ff8533 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255,105,0,.2);
}
.sv-btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255,105,0,.3);
}

.sv-btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #dde1e6;
    background: #f8f9fb;
    color: #666;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}
.sv-btn-reset:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fef5f5;
}

/* ── Active Filter Tags Strip ── */
.sv-active-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
}
.sv-active-tags:empty {
    display: none;
}
.sv-active-tags .sv-tag-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-right: 4px;
}
.sv-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    background: #fff5ee;
    color: #e05a00;
    border: 1px solid rgba(255,105,0,.15);
}
.sv-tag .sv-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,105,0,.12);
    color: #e05a00;
    font-size: 9px;
    cursor: pointer;
    transition: all .2s;
    border: none;
    padding: 0;
    line-height: 1;
}
.sv-tag .sv-tag-remove:hover {
    background: #FF6900;
    color: #fff;
}

/* ── Results Count ── */
.sv-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}
.sv-results-bar strong {
    color: #333;
    font-weight: 600;
}

/* ── List View Mode ── */
.sv-products-wrap.list-view .row {
    gap: 0;
}
.sv-products-wrap.list-view .row > article {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 12px;
}
.sv-products-wrap.list-view .gigs-grid {
    display: flex;
    flex-direction: row;
    border-radius: 12px;
    overflow: hidden;
}
.sv-products-wrap.list-view .gigs-img {
    flex: 0 0 220px;
    max-width: 220px;
    min-height: 140px;
}
.sv-products-wrap.list-view .gigs-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sv-products-wrap.list-view .gigs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 20px;
}
.sv-products-wrap.list-view .gigs-title h3 {
    font-size: 15px;
    margin-bottom: 4px;
}
.sv-products-wrap.list-view .gigs-card-footer {
    margin-top: auto;
}
.sv-products-wrap.list-view .user-thumb {
    display: none;
}

/* ── Fade Animation for Product Cards ── */
.sv-products-wrap article {
    animation: svFadeIn .4s ease forwards;
    opacity: 0;
}
.sv-products-wrap article:nth-child(1) { animation-delay: .05s; }
.sv-products-wrap article:nth-child(2) { animation-delay: .1s; }
.sv-products-wrap article:nth-child(3) { animation-delay: .15s; }
.sv-products-wrap article:nth-child(4) { animation-delay: .2s; }
.sv-products-wrap article:nth-child(5) { animation-delay: .25s; }
.sv-products-wrap article:nth-child(6) { animation-delay: .3s; }
.sv-products-wrap article:nth-child(7) { animation-delay: .35s; }
.sv-products-wrap article:nth-child(8) { animation-delay: .4s; }
.sv-products-wrap article:nth-child(n+9) { animation-delay: .45s; }

@keyframes svFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile Filter Toggle ── */
.sv-mobile-toggle {
    display: none;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6900 0%, #ff8533 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-bottom: 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sv-mobile-toggle i {
    transition: transform .3s;
}
.sv-mobile-toggle.open i {
    transform: rotate(180deg);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .sv-filter-toolbar {
        padding: 16px;
        border-radius: 12px;
    }
    .sv-search-wrap {
        flex: 0 0 180px;
    }
    .sv-select-wrap select {
        min-width: 110px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .sv-mobile-toggle {
        display: inline-flex;
    }
    .sv-filter-body {
        display: none;
        overflow: hidden;
        transition: max-height .4s ease;
    }
    .sv-filter-body.show {
        display: block;
    }
    .sv-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .sv-search-wrap {
        flex: 1 1 auto;
        max-width: 100%;
    }
    .sv-chips-scroll {
        padding-bottom: 6px;
    }
    .sv-select-group {
        flex-direction: column;
        align-items: stretch;
    }
    .sv-select-wrap select {
        width: 100%;
        min-width: unset;
    }
    .sv-view-toggle {
        margin-left: 0;
        align-self: flex-end;
    }
    /* List view on mobile — stack vertical */
    .sv-products-wrap.list-view .gigs-grid {
        flex-direction: column;
    }
    .sv-products-wrap.list-view .gigs-img {
        flex: none;
        max-width: 100%;
        min-height: 160px;
    }
}
