/* Marketplace listing — scoped so homepage cards stay untouched */
.adsinfluencers-breadcrumb.adsinfluencers-breadcrumb--compact {
    height: 120px;
    min-height: 120px;
    background-position: right 34%;
    background-size: cover;
}

.adsinfluencers-breadcrumb.adsinfluencers-breadcrumb--compact .adsinfluencers-breadcrumb__title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.adsinfluencers-breadcrumb.adsinfluencers-breadcrumb--compact .adsinfluencers-breadcrumb__menu {
    gap: 6px;
}

.adsinfluencers-breadcrumb.adsinfluencers-breadcrumb--compact .adsinfluencers-breadcrumb__menu li {
    font-size: 13px;
}

@media only screen and (max-width: 767px) {
    .adsinfluencers-breadcrumb.adsinfluencers-breadcrumb--compact {
        height: 96px;
        min-height: 96px;
        background-position: 80% 30%;
    }

    .adsinfluencers-breadcrumb.adsinfluencers-breadcrumb--compact .adsinfluencers-breadcrumb__title {
        font-size: 22px;
    }
}

.af-market {
    --af-purple: #6d3ee6;
    --af-lilac: #c089fc;
    --af-ink: #222222;
    --af-muted: #6b7280;
    --af-line: #ebebeb;
    --af-soft: #f7f5fb;
    --af-heart: #fe2c55;
    --af-radius: 16px;
    --af-shadow: 0 8px 28px rgba(32, 40, 68, 0.08);
    padding: 18px 0 48px;
    background: #fbfbfe;
}

.af-market .container {
    max-width: 1280px;
}

.af-toolbar {
    position: sticky;
    top: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee8f8;
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(109, 62, 230, 0.08);
}

.af-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 8px 0 18px;
}

.af-search i {
    color: var(--af-purple);
    font-size: 15px;
}

.af-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    line-height: 22px;
    color: var(--af-ink);
    padding: 10px 0;
}

.af-search input::placeholder {
    color: #9aa3b2;
}

.af-search__go {
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--af-lilac), var(--af-purple));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.af-search__go:hover {
    filter: brightness(1.05);
    color: #fff;
}

.af-sort {
    position: relative;
    flex-shrink: 0;
}

.af-sort select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #eee8f8;
    background: var(--af-soft);
    color: var(--af-ink);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 36px 10px 14px;
    cursor: pointer;
    min-width: 160px;
}

.af-sort i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--af-muted);
    font-size: 11px;
}

.af-filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d9c8f6;
    background: #fff;
    color: var(--af-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
}

.af-filter-btn:hover,
.af-filter-btn.is-open {
    border-color: var(--af-purple);
    color: var(--af-purple);
    background: #f6f0ff;
}

.af-filter-btn__badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--af-purple);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.af-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px 16px;
    overflow: visible;
    padding: 22px 4px 10px;
    max-width: 1080px;
    margin: 0 auto;
}

.af-cat {
    position: relative;
    flex: 0 0 calc((100% - 96px) / 7);
    max-width: 148px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px 16px;
    border: 1px solid #eee8f8;
    background: #fff;
    color: #5b5568;
    cursor: pointer;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(32, 40, 68, 0.06);
}

.af-cat img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.af-cat__name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.af-cat:hover {
    color: var(--af-ink);
    border-color: #d9c8f6;
    transform: translateY(-3px);
}

.af-cat.is-on {
    color: var(--af-ink);
    border-color: var(--af-purple);
    box-shadow: 0 10px 26px rgba(109, 62, 230, 0.14);
}

.af-cat__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3eefc;
    color: var(--af-purple);
    font-size: 22px;
}

.af-cat__count {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(109, 62, 230, 0.28);
}

.af-cat:nth-child(6n+1) .af-cat__count { background: #6d3ee6; }
.af-cat:nth-child(6n+2) .af-cat__count { background: #c089fc; }
.af-cat:nth-child(6n+3) .af-cat__count { background: #fe2c55; }
.af-cat:nth-child(6n+4) .af-cat__count { background: #7c3aed; }
.af-cat:nth-child(6n+5) .af-cat__count { background: #ec4899; }
.af-cat:nth-child(6n+6) .af-cat__count { background: #8b5cf6; }

.af-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 6px;
    color: var(--af-muted);
    font-size: 14px;
}

.af-meta strong {
    color: var(--af-ink);
    font-weight: 700;
}

.af-grid {
    margin-top: 4px;
}

.af-grid > [class*="col-"] {
    display: flex;
    margin-top: 24px;
}

.af-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #eee8f8;
    border-radius: var(--af-radius);
    box-shadow: var(--af-shadow);
    overflow: hidden;
}

.af-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(32, 40, 68, 0.12);
    border-color: #e0d4f6;
}

.af-card__photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
    background: #ece8f5;
}

.af-card__photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.af-card:hover .af-card__photo img {
    transform: scale(1.06);
}

.af-card__wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.af-card__wish:hover,
.af-card__wish.active {
    color: var(--af-heart);
    background: #fff;
}

.af-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
    color: inherit;
    text-decoration: none;
}

.af-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.af-card__host,
.af-card__host a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--af-ink);
    font-size: 13px;
    font-weight: 600;
}

.af-card__host img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.af-card__host span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.af-card__rate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--af-ink);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.af-card__rate i {
    color: var(--af-ink);
    font-size: 11px;
}

.af-card__rate em {
    font-style: normal;
    color: var(--af-muted);
    font-weight: 500;
}

.af-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--af-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.af-card__title a {
    color: inherit;
}

.af-card:hover .af-card__title a {
    color: var(--af-purple);
}

.af-card__cat {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--af-muted);
    font-size: 12px;
    font-weight: 500;
}

.af-card__price {
    color: var(--af-ink);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.af-card__price span {
    color: var(--af-muted);
    font-weight: 500;
    font-size: 13px;
}

.af-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.af-card__eye {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f4edff;
    color: var(--af-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.af-card__eye:hover {
    background: var(--af-purple);
    color: #fff;
}

.af-card__cta {
    display: block;
    width: 100%;
    margin-top: auto;
    text-align: center;
    background: #f4edff;
    color: var(--af-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 11px 12px;
    border-radius: 10px;
}

.af-card__actions .af-card__cta {
    margin-top: 0;
    flex: 1;
}

.af-card__cta:hover {
    background: var(--af-purple);
    color: #fff;
}

.af-card__stats {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0eaf8;
}

.af-card__stats b {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    color: var(--af-ink);
}

.af-card__stats span {
    font-size: 12px;
    color: var(--af-muted);
}

.af-card__verified {
    color: var(--af-purple);
    font-size: 14px;
    margin-left: 4px;
    vertical-align: middle;
}

.af-pager {
    margin-top: 28px;
}

.af-pager .adsinfluencers-pagination {
    justify-content: center;
}

.af-empty {
    text-align: center;
    padding: 48px 16px;
}

.af-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(20, 12, 40, 0.45);
    opacity: 0;
    visibility: hidden;
}

.af-overlay.is-on,
.af-drawer.is-on {
    opacity: 1;
    visibility: visible;
}

.af-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 8001;
    width: min(420px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -18px 0 50px rgba(32, 40, 68, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(110%);
    visibility: hidden;
}

.af-drawer.is-on {
    transform: translateX(0);
}

.af-drawer,
.af-overlay {
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.af-drawer__head,
.af-drawer__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--af-line);
}

.af-drawer__foot {
    border-bottom: 0;
    border-top: 1px solid var(--af-line);
    margin-top: auto;
}

.af-drawer__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--af-ink);
}

.af-drawer__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--af-soft);
    color: var(--af-ink);
}

.af-drawer__body {
    padding: 8px 22px 24px;
    overflow-y: auto;
}

.af-field {
    padding: 22px 0;
    border-bottom: 1px solid var(--af-line);
}

.af-field:last-child {
    border-bottom: 0;
}

.af-field h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--af-ink);
}

.af-field p {
    margin: 0 0 16px;
    color: var(--af-muted);
    font-size: 13px;
    line-height: 1.45;
}

.af-price-read {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.af-price-read b {
    display: block;
    font-size: 15px;
    color: var(--af-ink);
}

.af-price-read span {
    display: block;
    font-size: 12px;
    color: var(--af-muted);
    margin-bottom: 2px;
}

.af-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.af-pill {
    border: 1px solid #e6e0f2;
    background: #fff;
    color: var(--af-ink);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.af-pill.is-on {
    border-color: var(--af-purple);
    background: #f4edff;
    color: var(--af-purple);
}

.af-ghost,
.af-apply {
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 18px;
    border: 0;
    cursor: pointer;
}

.af-ghost {
    background: transparent;
    color: var(--af-ink);
    text-decoration: underline;
}

.af-apply {
    flex: 1;
    background: var(--af-purple);
    color: #fff;
}

.af-apply:hover {
    background: #5b2fd0;
    color: #fff;
}

/* noUiSlider — brand + kill global transition:all */
.af-market .noUi-target,
.af-market .noUi-target * {
    transition: none;
}

.af-market .noUi-target {
    height: 6px;
    border: 0;
    background: #ece6f6;
    box-shadow: none;
    border-radius: 999px;
}

.af-market .noUi-connect {
    background: linear-gradient(90deg, var(--af-lilac), var(--af-purple));
}

.af-market .noUi-horizontal .noUi-handle {
    width: 22px;
    height: 22px;
    right: -11px;
    top: -8px;
    border: 2px solid var(--af-purple);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(109, 62, 230, 0.25);
    cursor: grab;
}

.af-market .noUi-handle:before,
.af-market .noUi-handle:after {
    display: none;
}

body.af-lock {
    overflow: hidden;
}

@media (max-width: 991px) {
    .af-toolbar {
        flex-wrap: wrap;
        border-radius: 20px;
        top: 8px;
    }

    .af-search {
        flex: 1 1 100%;
        order: 1;
    }

    .af-sort,
    .af-filter-btn {
        order: 2;
    }

    .af-sort select {
        min-width: 0;
        width: 100%;
    }

    .af-sort {
        flex: 1;
    }
}

@media (max-width: 991px) {
    .af-cat {
        flex: 0 0 calc((100% - 48px) / 4);
        min-width: 104px;
    }
}

@media (max-width: 575px) {
    .af-market {
        padding-top: 16px;
    }

    .af-cat {
        flex: 0 0 calc((100% - 14px) / 2);
        min-width: 0;
        max-width: none;
        padding: 14px 10px 12px;
    }

    .af-cat img,
    .af-cat__icon {
        width: 40px;
        height: 40px;
    }
}

.af-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    color: #6b7280;
    font-size: 13px;
}

.af-crumb a {
    color: #6b7280;
}

.af-crumb a:hover {
    color: #6d3ee6;
}

.af-crumb li:last-child {
    color: #222;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Service detail — compact Airbnb-like */
.af-detail {
    padding: 16px 0 56px;
    background: #fbfbfe;
}

.af-detail .container {
    max-width: 1280px;
}

.af-detail .adsinfluencers-sdetail {
    background: #fff;
    box-shadow: 0 8px 28px rgba(32, 40, 68, 0.06);
    padding: 20px 22px 8px;
    border: 1px solid #eee8f8;
    border-radius: 18px;
}

.af-detail .adsinfluencers-sdetail__content {
    padding: 0;
}

.af-detail__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 6px;
}

.af-detail__head-text {
    flex: 1;
    min-width: 0;
}

.af-detail__thumb {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #ece8f5;
}

.af-detail .adsinfluencers-sdetail__title {
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.af-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
}

.af-detail__meta a {
    color: #6d3ee6;
    font-weight: 600;
}

.af-detail__meta i {
    color: #222;
    font-size: 12px;
}

.af-detail .adsinfluencers-sdetail__tabnav {
    margin-top: 18px;
    gap: 8px;
    flex-wrap: wrap;
}

.af-detail .adsinfluencers-sdetail__tabnav a {
    font-size: 14px;
    padding: 8px 14px !important;
    background: #f4edff;
    color: #222;
}

.af-detail .adsinfluencers-sdetail__tabnav a.active,
.af-detail .adsinfluencers-sdetail__tabnav a:hover {
    background: #6d3ee6;
    color: #fff;
}

.af-detail .adsinfluencers-sdetail__tabnav svg {
    width: 16px;
    height: 16px;
}

.af-detail .tab-content {
    margin-top: 18px !important;
}

.af-detail .adsinfluencers-sdetail__tcontent--title {
    font-size: 18px;
    margin-top: 20px !important;
}

.af-book {
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1px solid #eee8f8;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(32, 40, 68, 0.08);
    padding: 18px;
    margin-bottom: 16px;
}

.af-book h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.af-book__price {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.af-book__price span {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.af-book ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.af-book li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 8px;
}

.af-book li img {
    width: 16px;
    margin-top: 2px;
}

.af-host {
    background: #fff;
    border: 1px solid #eee8f8;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(32, 40, 68, 0.08);
    padding: 16px;
    text-align: center;
}

.af-host img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}

.af-host h4 {
    margin: 0 0 2px;
    font-size: 16px;
}

.af-host h4 a {
    color: #222;
}

.af-host p {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 13px;
}

.af-host__stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
}

.af-host__stats b {
    display: block;
    color: #222;
}

.af-related {
    padding: 0 0 48px;
    background: #fbfbfe;
}

.af-related h2 {
    font-size: 22px;
    margin: 0 0 8px;
    color: #222;
}

@media (max-width: 991px) {
    .af-book {
        position: static;
        margin-top: 18px;
    }
}
