/* ============================================================
   BP Vendor Listing & Profile Styles
   ============================================================ */

/* ---- Vendor Card (listing) ---- */
.bp-vendor-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.bp-vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

/* VIP / Premium card highlight */
.bp-vendor-card--vip {
    border: 2px solid #e67e22 !important;
    box-shadow: 0 4px 16px rgba(230,126,34,.15) !important;
}
.bp-vendor-card--vip:hover {
    box-shadow: 0 8px 28px rgba(230,126,34,.25) !important;
}
.bp-vendor-card--premium {
    border: 2px solid #9b59b6 !important;
    box-shadow: 0 4px 16px rgba(155,89,182,.12) !important;
}
.bp-vendor-card--premium:hover {
    box-shadow: 0 8px 28px rgba(155,89,182,.22) !important;
}
.bp-vendor-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
}
.bp-vendor-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .3s;
}
.bp-vendor-card:hover .bp-vendor-card__img {
    transform: scale(1.04);
}
/* Type badge (Spa / Salon ...) */
.bp-vendor-card__type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .4px;
    text-transform: uppercase;
}
/* Tier badge (VIP / PREMIUM ...) */
.bp-vendor-card__tier-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .8px;
}
.bp-vendor-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}
.bp-vendor-card__title {
    flex: 1;
    margin: 0;
}
.bp-vendor-card__title a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 700;
}
.bp-vendor-card__title a:hover { color: #6c63ff; }

/* Badges (verified / recommended) */
.bp-vendor-card__badges { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.bp-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.bp-badge--verified    { background: #e8f8f0; color: #27ae60; border: 1px solid #27ae60; }
.bp-badge--recommended { background: #fff8e1; color: #f39c12; border: 1px solid #f39c12; }
.bp-vendor-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-vendor-card__meta { font-size: 13px; color: #555; }
.bp-vendor-card__meta-item { margin-bottom: 4px; }
.bp-vendor-card__meta-item a { color: #555; text-decoration: none; }
.bp-vendor-card__meta-item a:hover { color: #6c63ff; }

/* Stars */
.bp-stars { color: #f5a623; font-size: 14px; }
.bp-star--empty { color: #ddd; }
.bp-vendor-card__rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; margin-bottom: 8px; }

/* ---- Vendor Profile Hero ---- */
.bp-vendor-hero {
    background: #1a1a2e center/cover no-repeat;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
}
.bp-vendor-hero__overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 100%);
    padding: 48px 0 36px;
}
.bp-vendor-hero__type {
    display: inline-block;
    background: #6c63ff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    margin-right: 6px;
}
.bp-vendor-hero__tier {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 10px;
}
.bp-vendor-hero__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.bp-vendor-hero__badges .bp-badge {
    font-size: 12px;
    padding: 3px 12px;
}
.bp-vendor-hero__title {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 10px;
}
.bp-vendor-hero__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}
.bp-vendor-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    margin-bottom: 20px;
}
.bp-vendor-hero__meta a { color: rgba(255,255,255,.85); text-decoration: none; }
.bp-vendor-hero__meta a:hover { color: #fff; }

/* ---- Profile Body ---- */
.bp-vendor-body { padding-top: 48px; padding-bottom: 64px; }
.bp-vendor-section { margin-bottom: 48px; }
.bp-vendor-section__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 2px solid #6c63ff;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* ---- Service List ---- */
.bp-service-group { margin-bottom: 28px; }
.bp-service-group__title {
    font-size: 1rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.bp-service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.bp-service-item:last-child { border-bottom: none; }
.bp-service-item__img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.bp-service-item__info { flex: 1; }
.bp-service-item__name { font-weight: 600; color: #1a1a2e; margin-bottom: 2px; }
.bp-service-item__desc { font-size: 13px; color: #777; margin-bottom: 4px; }
.bp-service-item__meta { display: flex; gap: 12px; font-size: 13px; }
.bp-service-item__duration { color: #888; }
.bp-service-item__price { font-weight: 700; color: #6c63ff; }

/* ---- Gallery ---- */
.bp-vendor-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.bp-vendor-gallery__item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity .2s;
}
.bp-vendor-gallery__item:hover img { opacity: .85; }

/* ---- Reviews ---- */
.bp-review-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.bp-review-item:last-child { border-bottom: none; }
.bp-review-item__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.bp-review-item__date { font-size: 12px; color: #aaa; margin-left: auto; }
.bp-review-item__comment { font-size: 14px; color: #555; margin: 0; }

/* ---- Sidebar ---- */
.bp-vendor-sidebar__box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.bp-vendor-sidebar__box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}
.bp-vendor-sidebar__cta { background: #f8f7ff; border-color: #e0dcff; text-align: center; }
.bp-vendor-sidebar__cta p { font-size: 13px; color: #666; margin-bottom: 14px; }
.bp-vendor-sidebar__info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #555;
}
.bp-vendor-sidebar__info-list li { margin-bottom: 8px; }
.bp-vendor-sidebar__info-list a { color: #555; text-decoration: none; }
.bp-vendor-sidebar__info-list a:hover { color: #6c63ff; }

/* ---- Hero CTA button ---- */
.bp-btn-hero.btn { font-size: 1rem; padding: 12px 28px; border-radius: 8px; }

/* ---- No vendors ---- */
.bp-no-vendors { color: #888; font-style: italic; padding: 24px 0; }

@media (max-width: 767px) {
    .bp-vendor-hero { min-height: 260px; }
    .bp-vendor-hero__meta { gap: 10px; font-size: 13px; }
    .bp-service-item { flex-wrap: wrap; }
}

/* ============================================================
   Filter Bar — [bp_vendor_filter]
   ============================================================ */
.bp-vendor-filter-wrap { position: relative; }

.bp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* Search */
.bp-filter-search { flex: 1; min-width: 200px; }
.bp-filter-search__input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.bp-filter-search__input:focus { border-color: #6c63ff; }

/* Groups */
.bp-filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.bp-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bp-filter-group__label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}

/* Pills */
.bp-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-filter-pill {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all .18s;
    line-height: 1.4;
}
.bp-filter-pill:hover {
    border-color: var(--pill-color, #6c63ff);
    color: var(--pill-color, #6c63ff);
    background: color-mix(in srgb, var(--pill-color, #6c63ff) 8%, #fff);
}
.bp-filter-pill--active {
    border-color: var(--pill-color, #6c63ff) !important;
    background: var(--pill-color, #6c63ff) !important;
    color: #fff !important;
}
/* Badge pills slightly different shape */
.bp-filter-pill--badge { border-radius: 6px; }

/* Count */
.bp-filter-count {
    margin-left: auto;
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}
.bp-filter-count__num { font-weight: 700; color: #333; }

/* Empty state */
.bp-filter-empty {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
    font-size: 15px;
}

@media (max-width: 767px) {
    .bp-filter-bar { flex-direction: column; align-items: stretch; }
    .bp-filter-count { margin-left: 0; }
}
