/* Business Listings — 2026 marketplace UI */

.ba-page {
    --ba-brand: #C62626;
    --ba-brand-light: #FF6B6B;
    --ba-black: #000000;
    --ba-gradient: linear-gradient(135deg, #FF6B6B 0%, #E83535 38%, #C62626 68%, #8B1515 100%);
    --ba-hero-bg: linear-gradient(145deg, #000 0%, #141010 35%, #5C0E0E 62%, #C62626 88%, #FF5757 100%);
    --ba-border: rgba(0, 0, 0, 0.08);
    --ba-muted: #737373;
    background: #f8f9fc;
}

/* Hero */
.ba-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 5vw, 48px);
    background: var(--ba-hero-bg);
    color: #fff;
}

.ba-hero__mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.ba-hero__mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
}

.ba-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.ba-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 14px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.ba-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.ba-hero__title span {
    background: linear-gradient(90deg, #FFE0E0, #FF8A8A, #FF5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ba-hero__lead {
    margin: 0;
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.92;
}

.ba-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ba-stat-chip {
    min-width: 120px;
    padding: 14px 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.ba-stat-chip strong {
    display: block;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.1;
}

.ba-stat-chip span {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

/* Main */
.ba-main {
    position: relative;
    padding: clamp(28px, 4vw, 40px) 0 clamp(48px, 6vw, 72px);
}

/* Search panel */
.ba-search-panel {
    padding: clamp(20px, 3vw, 24px);
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--ba-border);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(198, 38, 38, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ba-search-panel__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ba-black);
}

.ba-search-panel__label i {
    color: var(--ba-brand);
}

.ba-search-field,
.ba-filter-field {
    position: relative;
}

.ba-search-field i,
.ba-filter-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ba-brand-light);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.ba-search-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 52px 12px 2.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--ba-border);
    border-radius: 12px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ba-search-field input:focus {
    outline: none;
    border-color: var(--ba-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14), 0 0 0 1px rgba(198, 38, 38, 0.25);
}

.ba-search-field button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ba-gradient);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(198, 38, 38, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ba-search-field button:hover {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 6px 16px rgba(198, 38, 38, 0.32);
}

.ba-filter-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px 12px 2.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--ba-border);
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23737373' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ba-filter-field select:focus {
    outline: none;
    border-color: var(--ba-brand);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
}

/* Toolbar */
.ba-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--ba-border);
    border-radius: 14px;
}

.ba-results {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ba-muted);
}

.ba-results strong {
    color: var(--ba-black);
    font-weight: 800;
}

.ba-credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ba-black);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(198, 38, 38, 0.06));
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 999px;
}

.ba-credits-pill i {
    color: var(--ba-brand);
}

.ba-login-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--ba-gradient);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(198, 38, 38, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ba-login-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198, 38, 38, 0.32);
}

/* Grid */
.ba-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Empty & no results */
.ba-empty {
    text-align: center;
    padding: clamp(40px, 6vw, 56px) 24px;
    background: #fff;
    border: 1px dashed rgba(198, 38, 38, 0.25);
    border-radius: 18px;
}

.ba-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--ba-brand);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(198, 38, 38, 0.08));
    border-radius: 50%;
}

.ba-empty h4 {
    margin: 0 0 8px;
    font-weight: 800;
    color: var(--ba-black);
}

.ba-empty p {
    margin: 0 0 20px;
    color: var(--ba-muted);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.ba-no-results {
    display: none;
    text-align: center;
    padding: clamp(36px, 5vw, 48px) 24px;
    background: #fff;
    border: 1px solid var(--ba-border);
    border-radius: 18px;
    box-shadow: var(--tp-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.05));
}

.ba-no-results.is-visible {
    display: block;
}

.ba-no-results__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--ba-muted);
    background: #f3f4f8;
    border-radius: 50%;
}

.ba-no-results h3 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ba-black);
}

.ba-no-results p {
    margin: 0 0 18px;
    color: var(--ba-muted);
    font-size: 0.875rem;
}

.ba-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ba-brand);
    background: #fff;
    border: 1px solid rgba(198, 38, 38, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ba-btn-outline:hover {
    background: rgba(255, 107, 107, 0.08);
    border-color: var(--ba-brand);
}

.ba-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--ba-gradient);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(198, 38, 38, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ba-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198, 38, 38, 0.32);
}

/* Reveal */
.ba-page .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ba-page .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .ba-hero__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .ba-hero__stats {
        width: 100%;
    }

    .ba-stat-chip {
        flex: 1;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ba-page .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
