﻿@charset "UTF-8";

:root {
    --bbhub-max-width: 1280px;
    --bbhub-gutter: 28px;
    --c-ink: #0f172a;
    --c-ink-soft: #334155;
    --c-muted: #64748b;
    --c-subtle: #94a3b8;
    --c-border: #e2e8f0;
    --c-surface: #f8fafc;
    --c-white: #ffffff;
    --c-accent: #1d4ed8;
    --c-accent-soft: #dbeafe;
    --c-trust-bg: #0f172a;
    --r-card: 14px;
    --r-btn: 10px;
    --shadow-card: 0 4px 16px rgba(15,23,42,0.06);
    --shadow-card-hover: 0 12px 32px rgba(15,23,42,0.12);
    --shadow-hero: 0 20px 48px rgba(15,23,42,0.10);
}

.bbhub-listings {
    margin: 24px 0;
}

.bbhub-filters {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 24px 32px !important;
    row-gap: 24px !important;
    column-gap: 32px !important;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    align-items: end;
}

.bbhub-filters > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbhub-filters label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin: 0;
    line-height: 1.2;
}

.bbhub-filters input,
.bbhub-filters select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    background: #f8fafc;
    min-height: 44px;
    font-size: 0.95rem;
}

.bbhub-filters select[multiple] {
    min-height: 120px;
    padding: 10px 12px;
}

.bbhub-filters button {
    align-self: end;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    width: auto;
    min-width: 120px;
    justify-self: start;
}

.bbhub-listings-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 600px) {
    .bbhub-listings-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Listing card ───────────────────────────────────────────────────────── */
.bbhub-card {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.bbhub-card--featured {
    border-top: 3px solid #f59e0b;
}

.bbhub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.13);
}

.bbhub-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image wrapper */
.bbhub-card-image {
    position: relative;
    overflow: hidden;
}

.bbhub-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.bbhub-card:hover .bbhub-card-thumb {
    transform: scale(1.04);
}

.bbhub-card-thumb--empty {
    height: 200px;
    background: linear-gradient(135deg, #dbe4f0 0%, #f1f5f9 100%);
}

/* Overlay badges */
.bbhub-card-badge {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bbhub-card-badge--industry {
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.72);
    color: #f1f5f9;
    backdrop-filter: blur(4px);
}

.bbhub-card-badge--featured {
    top: 10px;
    right: 10px;
    background: #f59e0b;
    color: #fff;
}

/* Card body */
.bbhub-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bbhub-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 7px;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Location row */
.bbhub-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 9px;
}

.bbhub-card-location svg {
    flex-shrink: 0;
}

.bbhub-card-summary {
    margin: 0 0 14px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Price footer */
.bbhub-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.bbhub-card-price__label,
.bbhub-card-profit__label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.bbhub-card-price__value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.bbhub-card-price--locked .bbhub-card-price__value {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.bbhub-card-profit__value {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    line-height: 1.1;
}

/* Legacy .bbhub-card-stats (archive page — keep rendered, override display) */
.bbhub-card-stats {
    display: none;
}
.bbhub-card-meta {
    display: none;
}

.bbhub-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #fde68a;
    color: #92400e;
    margin-bottom: 8px;
}

.bbhub-listing-detail {
    max-width: 900px;
    margin: 24px auto;
    padding: 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bbhub-listing-header h1 {
    margin: 0 0 8px;
}

.bbhub-listing-subtitle {
    margin: 0 0 16px;
    color: #475569;
    font-size: 0.95rem;
}

.bbhub-listing-hero img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
}

.bbhub-listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.bbhub-listing-gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.bbhub-listing-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.bbhub-listing-fact {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    background: #f8fafc;
}

.bbhub-listing-fact span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 4px;
}

.bbhub-listing-fact strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.25;
}

.bbhub-listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 16px;
}

.bbhub-listing-main,
.bbhub-listing-aside {
    min-width: 0;
}

.bbhub-listing-panel {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
    margin-bottom: 12px;
}

.bbhub-listing-panel h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bbhub-listing-panel p {
    margin: 0;
}

.bbhub-listing-panel--compact p {
    font-size: 0.92rem;
}

.bbhub-kv-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.bbhub-kv-list div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.bbhub-kv-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bbhub-kv-list dt {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bbhub-kv-list dd {
    margin: 0;
    color: #0f172a;
}

.bbhub-listing-muted {
    color: #64748b;
    font-size: 0.95rem;
}

.bbhub-listing-summary {
    display: flex;
    gap: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.bbhub-listing-section {
    margin-bottom: 18px;
}

.bbhub-listing-section h3 {
    margin-bottom: 8px;
    color: #0f172a;
}

.bbhub-listing-detail .bbhub-listing-section {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 4px 16px;
    align-items: baseline;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.bbhub-listing-detail .bbhub-listing-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.bbhub-listing-detail .bbhub-listing-section p {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.bbhub-source-link {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.bbhub-listing-gated,
.bbhub-listing-unavailable {
    padding: 16px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    margin-bottom: 16px;
}

.bbhub-inline-auth-cta {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    margin-bottom: 16px;
}

.bbhub-inline-auth-cta .bbhub-message {
    margin-bottom: 10px;
}

.bbhub-gate-panel {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bbhub-gate-panel .bbhub-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bbhub-inline-form {
    display: inline-flex;
    gap: 6px;
    margin: 0;
}

.bbhub-gate-panel form {
    display: inline-block;
    margin-right: 8px;
}

.bbhub-dashboard {
    margin: 24px 0 32px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bbhub-dashboard-messages {
    background: #ecfeff;
    border: 1px solid #bae6fd;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    color: #0f172a;
}

.bbhub-message {
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.bbhub-message:last-child {
    margin-bottom: 0;
}

.bbhub-message--success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.bbhub-message--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.bbhub-message--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.bbhub-message--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.bbhub-dashboard p:only-child {
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    padding: 32px 0;
}

.bbhub-form {
    display: grid;
    gap: 22px;
}

.bbhub-form-grid {
    display: grid !important;
    gap: 26px 32px !important;
    row-gap: 26px !important;
    column-gap: 32px !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    align-items: start;
}

.bbhub-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 12px;
}

.bbhub-filter-hint {
    color: #64748b;
    font-size: 0.85rem;
}

.bbhub-filter-toggle-btn::after {
    content: ' ▾';
    display: inline-block;
    transition: transform 0.2s ease;
}

.bbhub-filter-toggle-btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.bbhub-filters-panel.is-collapsed {
    display: none;
}

.bbhub-hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.bbhub-hero-search input {
    border: 1px solid #cbd5f5;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    min-height: 48px;
}

.bbhub-hero-search .bbhub-btn {
    min-height: 48px;
}

@media (max-width: 720px) {
    .bbhub-hero-search {
        grid-template-columns: 1fr;
    }
    .bbhub-filter-toggle {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .bbhub-form-grid,
    .bbhub-filters {
        grid-template-columns: 1fr !important;
    }
}

.bbhub-form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbhub-form > .bbhub-form-grid {
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid #f1f5f9;
}

.bbhub-form > .bbhub-form-grid:first-of-type {
    border-top: none;
}

.bbhub-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin: 0;
    line-height: 1.2;
}

.bbhub-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.bbhub-checkbox-label input {
    margin: 0;
}

.bbhub-form input,
.bbhub-form select,
.bbhub-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    background: #f8fafc;
    min-height: 44px;
    font-size: 0.95rem;
}

.bbhub-form select[multiple] {
    min-height: 120px;
    padding: 10px 12px;
}

.bbhub-form textarea {
    min-height: 120px;
}

.bbhub-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin: 0;
}

.bbhub-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s ease;
}

.bbhub-button:hover {
    background: #1e293b;
}

.bbhub-button--ghost {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
}

.bbhub-button--ghost:hover {
    background: #f1f5f9;
}

.bbhub-inline-form {
    display: inline-flex;
    gap: 6px;
    margin: 0;
}

.bbhub-dashboard-listings ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.bbhub-dashboard-listings li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.bbhub-docs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.bbhub-docs-table th,
.bbhub-docs-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.bbhub-docs-table a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.bbhub-thread-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbhub-thread-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.bbhub-thread-messages {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.bbhub-thread-message {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bbhub-message-relay {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-style: normal;
}

.bbhub-message-relay--queued {
    color: #475569;
}

.bbhub-message-relay--failed {
    color: #b91c1c;
}

.bbhub-inquiry textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    background: #f8fafc;
    margin-bottom: 12px;
}

.bbhub-inquiry {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.bbhub-inquiry h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.bbhub-identity-panel {
    margin: 16px 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.bbhub-deal-panel {
    margin: 16px 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.bbhub-identity-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.bbhub-identity-item {
    display: grid;
    gap: 2px;
    font-size: 14px;
}

.bbhub-criteria-matches {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.bbhub-container {
    max-width: var(--bbhub-max-width);
    margin: 0 auto;
    padding: 0 var(--bbhub-gutter);
}

.bbhub-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 16px;
}

@media (max-width: 640px) {
    .bbhub-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.bbhub-hero {
    padding: 64px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bbhub-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: var(--bbhub-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bbhub-gutter);
    padding-right: var(--bbhub-gutter);
}

@media (max-width: 900px) {
    .bbhub-hero-grid {
        grid-template-columns: 1fr;
    }
}

.bbhub-hero-copy h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 16px 0;
    letter-spacing: -0.02em;
}

.bbhub-hero-copy p {
    color: #5b6674;
    line-height: 1.7;
    margin-bottom: 24px;
}

.bbhub-hero-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.10);
    padding: 24px;
}

.bbhub-hero-metrics {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.bbhub-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bbhub-metric strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.bbhub-metric span {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bbhub-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bbhub-btn--primary {
    background: #0f172a;
    color: #ffffff;
}

.bbhub-btn--primary:hover {
    background: #1e293b;
}

.bbhub-btn--ghost {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
}

.bbhub-btn--ghost:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.bbhub-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.bbhub-home section > .bbhub-container > .bbhub-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.bbhub-trust {
    padding: 28px 0;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.bbhub-home .bbhub-trust {
    padding: 28px 0;
}

.bbhub-trust-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.bbhub-trust-grid span {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bbhub-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .bbhub-categories {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .bbhub-categories {
        grid-template-columns: 1fr;
    }
}

.bbhub-category {
    position: relative;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.bbhub-category--hospitality {
    background-image: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.bbhub-category--professional {
    background-image: linear-gradient(135deg, #0b132b, #334155);
}

.bbhub-category--manufacturing {
    background-image: linear-gradient(135deg, #1f2937, #0f766e);
}

.bbhub-category--technology {
    background-image: linear-gradient(135deg, #111827, #4f46e5);
}

.bbhub-category--retail {
    background-image: linear-gradient(135deg, #7c2d12, #ea580c);
}

.bbhub-category--tourism {
    background-image: linear-gradient(135deg, #0f766e, #0891b2);
}

.bbhub-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 60%);
    z-index: 0;
}

.bbhub-category span {
    position: absolute;
    bottom: 14px;
    left: 14px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 1;
}

.bbhub-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.bbhub-info-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.bbhub-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.bbhub-info-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.bbhub-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.bbhub-testimonial {
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 24px;
}

.bbhub-testimonial h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.bbhub-testimonial p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.bbhub-testimonial strong {
    font-size: 0.85rem;
    color: #334155;
    display: block;
    margin-top: 12px;
}

.bbhub-home section {
    padding: 64px 0;
}

.bbhub-home section:first-child {
    padding: 0;
}

/* Hero grid owns its own vertical breathing room */
.bbhub-hero-grid {
    padding-top: 80px;
    padding-bottom: 80px;
}

.bbhub-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: #5b6674;
    margin-bottom: 8px;
}

.bbhub-home.alignfull {
    max-width: none;
    position: relative;
    /* No explicit width — the theme's alignfull negative margins handle full-width correctly.
       Setting width: calc(100vw - padding) fights auto-sizing and leaves a gap on the right. */
}

.bbhub-fullwidth {
    width: calc(100vw - var(--wp--style--root--padding-left, 0px) - var(--wp--style--root--padding-right, 0px));
    max-width: none;
    position: relative;
    left: 0;
    right: 0;
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px));
    margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px));
    padding-left: max(var(--bbhub-gutter), calc((100vw - var(--bbhub-max-width)) / 2));
    padding-right: max(var(--bbhub-gutter), calc((100vw - var(--bbhub-max-width)) / 2));
    box-sizing: border-box;
}

.bbhub-page-wrap {
    padding-top: 24px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bbhub-page-wrap > .bbhub-dashboard {
    margin: 0;
}

.bbhub-workspace {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.bbhub-workspace-sidebar {
    position: sticky;
    top: 24px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bbhub-workspace-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
}

.bbhub-workspace-sidebar h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.bbhub-workspace-sidebar p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
}

.bbhub-workspace-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbhub-workspace-nav a {
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.bbhub-workspace-nav a:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.bbhub-workspace-nav a.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.bbhub-workspace-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bbhub-workspace-intro {
    margin-top: 0;
    color: #64748b;
}

.bbhub-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bbhub-workspace-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.bbhub-workspace-metric {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bbhub-workspace-metric-label {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.bbhub-workspace-metric-value {
    font-size: 1.15rem;
    color: #0f172a;
    line-height: 1.2;
}

.bbhub-management-table {
    width: 100%;
    border-collapse: collapse;
}

.bbhub-management-table th,
.bbhub-management-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    font-size: 0.9rem;
}

.bbhub-management-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.bbhub-management-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.bbhub-management-filters > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbhub-management-filters label {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.bbhub-management-filters input,
.bbhub-management-filters select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    min-height: 40px;
    padding: 8px 10px;
}

.bbhub-management-filters-actions {
    align-self: end;
    display: flex !important;
    gap: 8px;
    flex-wrap: wrap;
}

.bbhub-bulk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bbhub-bulk-fields {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.bbhub-bulk-fields select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 40px;
    padding: 8px 10px;
    background: #ffffff;
}

.bbhub-select-all {
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbhub-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bbhub-stepper {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
    margin-bottom: 6px;
}

.bbhub-stepper-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bbhub-stepper-tab {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 0.78rem;
    padding: 6px 10px;
    cursor: pointer;
}

.bbhub-stepper-tab.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.bbhub-stepper-progress {
    margin-top: 10px;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bbhub-stepper-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #0f172a;
    transition: width 0.2s ease;
}

.bbhub-stepper-status {
    margin: 10px 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.bbhub-stepper-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.bbhub-listing-form.is-stepper-ready .bbhub-form-grid {
    display: none !important;
}

.bbhub-listing-form.is-stepper-ready .bbhub-form-grid.is-step-active {
    display: grid !important;
}

.bbhub-listing-form.is-stepper-ready .bbhub-stepper-controls [data-stepper-submit] {
    display: none;
}

.bbhub-access-state {
    display: grid;
    gap: 14px;
}

.bbhub-access-state .bbhub-message {
    margin: 0;
}

.bbhub-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bbhub-management-subtext {
    margin-top: 3px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.bbhub-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bbhub-table-actions .bbhub-button {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.bbhub-empty-state {
    color: #64748b;
    margin-top: 12px;
}

@media (max-width: 960px) {
    .bbhub-workspace {
        grid-template-columns: 1fr;
    }

    .bbhub-workspace-sidebar {
        position: static;
    }

    .bbhub-listing-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .bbhub-bulk-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .bbhub-kv-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .bbhub-responsive-table thead {
        display: none;
    }

    .bbhub-responsive-table,
    .bbhub-responsive-table tbody,
    .bbhub-responsive-table tr,
    .bbhub-responsive-table td {
        display: block;
        width: 100%;
    }

    .bbhub-responsive-table tr {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 8px;
        margin-bottom: 10px;
        background: #ffffff;
    }

    .bbhub-responsive-table td {
        border: none;
        border-bottom: 1px dashed #e2e8f0;
        padding: 8px 4px;
    }

    .bbhub-responsive-table td:last-child {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .bbhub-responsive-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 0.74rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        font-weight: 700;
    }
}

/* ── Homepage-scoped additions ─────────────────────────────────────────── */

.bbhub-home h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--c-ink);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 8px;
}

.bbhub-home .bbhub-section-head p {
    color: var(--c-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Alternating section background */
.bbhub-home section.bbhub-section--alt {
    background: var(--c-surface);
}

/* Hero card BEM content */
.bbhub-hero-card__title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 16px;
    color: var(--c-ink);
}

.bbhub-hero-card__body {
    background: var(--c-surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.bbhub-hero-card__body p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--c-muted);
    line-height: 1.6;
}

.bbhub-hero-card__note {
    font-size: 0.85rem;
    color: var(--c-muted);
    margin: 8px 0 0;
}

/* Metric dividers */
.bbhub-metric + .bbhub-metric {
    padding-left: 24px;
    border-left: 1px solid var(--c-border);
}

/* Trust bar tick marks */
.bbhub-trust-grid span::before {
    content: '✓ ';
    color: #4ade80;
    font-weight: 800;
}

/* Industry category tiles as links */
a.bbhub-category {
    display: block;
    text-decoration: none;
}

a.bbhub-category:hover::after {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
}

/* ── WP theme page title suppression on front page ──────────────────────── */
.home .wp-block-post-title,
.front-page .wp-block-post-title {
    display: none;
}

/* ── Dark hero variant ───────────────────────────────────────────────────── */
.bbhub-hero--dark {
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 55%, #162032 100%);
    border-bottom: 1px solid #1e293b;
}

.bbhub-hero--dark .bbhub-eyebrow {
    color: #60a5fa;
    letter-spacing: 0.25em;
}

.bbhub-hero--dark .bbhub-hero-copy h1 {
    color: #f8fafc;
    font-size: 2.6rem;
}

.bbhub-hero--dark .bbhub-hero-copy p {
    color: #94a3b8;
}

.bbhub-hero--dark .bbhub-hero-search {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.bbhub-hero--dark .bbhub-hero-search input {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.bbhub-hero--dark .bbhub-hero-search input::placeholder {
    color: #64748b;
}

.bbhub-hero--dark .bbhub-hero-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

/* ── Hero CTA button variants for dark bg ───────────────────────────────── */
.bbhub-btn--white {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--r-btn);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #0f172a;
    border: none;
}

.bbhub-btn--white:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.bbhub-btn--outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--r-btn);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #e2e8f0;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.bbhub-btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.bbhub-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ── Hero card redesign ─────────────────────────────────────────────────── */
.bbhub-hero-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.bbhub-hero-card__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
    animation: bbhub-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes bbhub-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.1); }
}

.bbhub-hero-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.bbhub-hero-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.bbhub-hero-card__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bbhub-hero-card__metric strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.bbhub-hero-card__metric span {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.bbhub-hero-card__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 16px;
}

.bbhub-hero-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bbhub-hero-card__features li {
    font-size: 0.875rem;
    color: #94a3b8;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.bbhub-hero-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ── Persona section ────────────────────────────────────────────────────── */
.bbhub-section-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.bbhub-persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

@media (max-width: 860px) {
    .bbhub-persona-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

.bbhub-persona {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--c-border);
    border-top-width: 3px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bbhub-persona:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.bbhub-persona--buyer  { border-top-color: #1d4ed8; }
.bbhub-persona--seller { border-top-color: #0891b2; }
.bbhub-persona--broker { border-top-color: #7c3aed; }

.bbhub-persona__icon {
    font-size: 2rem;
    line-height: 1;
}

.bbhub-persona h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-ink);
    margin: 0;
    line-height: 1.3;
}

.bbhub-persona p {
    color: var(--c-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.bbhub-persona .bbhub-btn {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 0.875rem;
    padding: 10px 18px;
}

/* ── Process steps ──────────────────────────────────────────────────────── */
.bbhub-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bbhub-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--c-border);
}

.bbhub-step:last-child {
    border-bottom: none;
}

.bbhub-step__num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--c-border);
    line-height: 1;
    letter-spacing: -0.04em;
    padding-top: 2px;
}

.bbhub-step__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-ink);
    margin: 0 0 8px;
}

.bbhub-step__body p {
    color: var(--c-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 600px) {
    .bbhub-step {
        grid-template-columns: 48px 1fr;
        gap: 16px;
    }
    .bbhub-step__num {
        font-size: 1.8rem;
    }
}

/* ── Info card icon ─────────────────────────────────────────────────────── */
.bbhub-info-card__icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 12px;
}

/* ── Testimonials redesign ──────────────────────────────────────────────── */
.bbhub-testimonial__quote {
    font-size: 0.975rem;
    color: var(--c-ink-soft);
    line-height: 1.7;
    margin: 0 0 16px;
    font-style: italic;
}

.bbhub-testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
}

.bbhub-testimonial__author strong {
    font-size: 0.875rem;
    color: var(--c-ink);
    font-weight: 700;
}

.bbhub-testimonial__author span {
    font-size: 0.8rem;
    color: var(--c-muted);
}

/* ── Final CTA section ──────────────────────────────────────────────────── */
.bbhub-section--cta {
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 55%, #162032 100%);
}

.bbhub-home .bbhub-section--cta {
    padding: 80px 0;
}

.bbhub-final-cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.bbhub-final-cta h2 {
    color: #f8fafc;
    font-size: 2rem;
    margin-bottom: 12px;
}

.bbhub-final-cta p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 28px;
}

.bbhub-final-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Mobile hero adjustments ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .bbhub-hero--dark .bbhub-hero-copy h1 {
        font-size: 2rem;
    }
    /* Keep copy above card on mobile — headline first, stats second */
    .bbhub-hero-card {
        order: 0;
    }
    .bbhub-hero-grid {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .bbhub-hero-card__metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .bbhub-hero--dark .bbhub-hero-copy h1 {
        font-size: 1.7rem;
    }
    .bbhub-hero-card__metrics {
        grid-template-columns: 1fr 1fr;
    }
    .bbhub-hero-card__metric:last-child {
        grid-column: span 2;
    }
    .bbhub-hero-actions {
        flex-direction: column;
    }
    .bbhub-hero-actions .bbhub-btn {
        text-align: center;
    }
    .bbhub-final-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ── Font-size anchors (override 13px theme base with explicit px) ────────── */
.bbhub-hero--dark .bbhub-hero-copy h1 { font-size: 44px; line-height: 1.15; }
.bbhub-hero-card__metric strong       { font-size: 24px; }
.bbhub-home h2                         { font-size: 30px; font-weight: 800; }
.bbhub-step__num                       { font-size: 42px; }
.bbhub-persona h3                      { font-size: 17px; }
.bbhub-info-card h3                    { font-size: 17px; }

@media (max-width: 900px) {
    .bbhub-hero--dark .bbhub-hero-copy h1 { font-size: 32px; }
}
@media (max-width: 480px) {
    .bbhub-hero--dark .bbhub-hero-copy h1 { font-size: 27px; }
}

/* ── Persona card: minimum height so cards align in a row ────────────────── */
.bbhub-persona {
    min-height: 280px;
}

/* ── Homepage listing grid: fixed 3 columns, equal height cards ─────────── */
.bbhub-home .bbhub-listings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .bbhub-home .bbhub-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bbhub-home .bbhub-listings-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Section heading accent ─────────────────────────────────────────────── */
.bbhub-home section .bbhub-section-head h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.bbhub-home section .bbhub-section-head h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 4px;
    background: var(--c-accent);
    border-radius: 2px;
}

/* Center-aligned section heads: center the accent bar too */
.bbhub-home section .bbhub-section-head--center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ── "View all" link beside section heading ─────────────────────────────── */
.bbhub-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.bbhub-section-head a.bbhub-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-accent);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 10px;
}

.bbhub-section-head a.bbhub-view-all:hover {
    text-decoration: underline;
}

/* ── Listing section in homepage ────────────────────────────────────────── */
.bbhub-home .bbhub-section--listings {
    background: var(--c-surface);
}

/* Remove old card-stats pseudo-labels (now replaced by bbhub-card-footer) */
.bbhub-card-stats span:first-child::before,
.bbhub-card-stats span:last-child::before {
    content: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE LISTING PAGE — full redesign
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container — remove the old single card, use a proper page wrapper */
.bbhub-listing-detail {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 64px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* ── Header bar ─────────────────────────────────────────────────────────── */
.bbhub-listing-header-bar {
    padding: 28px 0 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 28px;
}

.bbhub-listing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.bbhub-listing-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.bbhub-listing-breadcrumb a:hover {
    color: var(--c-accent);
    text-decoration: underline;
}

.bbhub-listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.bbhub-listing-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.bbhub-listing-tag--industry {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.bbhub-listing-tag--location {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.bbhub-listing-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.18;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ── Media block ────────────────────────────────────────────────────────── */
.bbhub-listing-media {
    margin-bottom: 28px;
}

.bbhub-listing-hero {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
}

.bbhub-listing-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin-bottom: 0;
}

.bbhub-listing-gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    padding-bottom: 4px;
}

.bbhub-listing-gallery img {
    width: 110px;
    height: 76px;
    object-fit: cover;
    border-radius: 9px;
    flex-shrink: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, opacity 0.15s;
}

.bbhub-listing-gallery img:hover {
    border-color: var(--c-accent);
    opacity: 0.9;
}

/* ── Flash notices wrapper ──────────────────────────────────────────────── */
.bbhub-listing-notices {
    margin-bottom: 20px;
}

/* ── Facts bar ──────────────────────────────────────────────────────────── */
.bbhub-listing-facts {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.bbhub-listing-fact {
    padding: 20px 18px;
    background: #ffffff;
    border: none;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
}

.bbhub-listing-fact:last-child {
    border-right: none;
}

.bbhub-listing-fact--primary {
    background: #0f172a;
}

.bbhub-listing-fact--primary span {
    color: #64748b;
}

.bbhub-listing-fact--primary strong {
    color: #f8fafc;
    font-size: 20px;
}

.bbhub-listing-fact span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 600;
}

.bbhub-listing-fact strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ── Two-column layout: main + sticky aside ─────────────────────────────── */
.bbhub-listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 380px);
    gap: 28px;
    align-items: start;
}

.bbhub-listing-aside__inner {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Content panels ─────────────────────────────────────────────────────── */
.bbhub-listing-panel {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    background: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.bbhub-listing-panel__heading,
.bbhub-listing-panel h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #94a3b8;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.bbhub-listing-panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
}

.bbhub-listing-panel--confidential {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.bbhub-listing-panel--confidential .bbhub-listing-panel__heading,
.bbhub-listing-panel--confidential h3 {
    color: #3b82f6;
    border-bottom-color: #bfdbfe;
}

/* ── KV list ────────────────────────────────────────────────────────────── */
.bbhub-kv-list dt {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bbhub-kv-list dd {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

/* ── Locked state ───────────────────────────────────────────────────────── */
.bbhub-listing-locked {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
}

.bbhub-listing-locked svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.bbhub-listing-locked strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.bbhub-listing-locked p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ── Gate panel ─────────────────────────────────────────────────────────── */
.bbhub-gate-panel {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    border: none;
    border-radius: 14px;
    padding: 22px 24px;
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bbhub-gate-panel__heading {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.bbhub-gate-panel__sub {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 20px;
    line-height: 1.5;
}

.bbhub-gate-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bbhub-gate-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bbhub-gate-step.is-done {
    background: rgba(22, 163, 74, 0.15);
    border-color: rgba(22, 163, 74, 0.3);
}

.bbhub-gate-step.is-pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.bbhub-gate-step__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bbhub-gate-step.is-done .bbhub-gate-step__num {
    background: #16a34a;
    color: #fff;
}

.bbhub-gate-step__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bbhub-gate-step__body strong {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    display: block;
}

.bbhub-gate-step__status {
    font-size: 11px;
    color: #64748b;
    text-transform: capitalize;
}

.bbhub-gate-step.is-done .bbhub-gate-step__status {
    color: #4ade80;
}

.bbhub-gate-step.is-pending .bbhub-gate-step__status {
    color: #fbbf24;
}

.bbhub-gate-panel form {
    display: block;
    margin: 0;
}

.bbhub-gate-panel__cta {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    background: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 4px;
    display: block;
}

.bbhub-gate-panel__cta:hover {
    background: #1e40af;
}

.bbhub-gate-panel__cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bbhub-gate-panel__hint {
    font-size: 12px;
    color: #64748b;
    margin: 12px 0 0;
    line-height: 1.5;
}

.bbhub-gate-panel__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
}

.bbhub-gate-panel select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #f1f5f9;
    font-size: 13px;
    margin-bottom: 12px;
    appearance: none;
}

/* ── Inquiry panel ──────────────────────────────────────────────────────── */
.bbhub-inquiry {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    margin-top: 0;
}

.bbhub-inquiry h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    border-bottom: none;
    padding-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
}

.bbhub-inquiry textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.55;
    resize: vertical;
    min-height: 110px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.bbhub-inquiry textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    background: #fff;
}

.bbhub-button--full,
.bbhub-inquiry .bbhub-button,
.bbhub-inquiry button[type="submit"] {
    width: 100%;
    text-align: center;
    background: #1d4ed8;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    display: block;
    box-sizing: border-box;
}

.bbhub-button--full:hover,
.bbhub-inquiry .bbhub-button:hover,
.bbhub-inquiry button[type="submit"]:hover {
    background: #1e40af;
}

/* ── Inline auth CTA (not-logged-in state in aside) ─────────────────────── */
.bbhub-inline-auth-cta {
    border-radius: 14px;
    padding: 22px 24px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.bbhub-access-actions {
    display: flex;
    gap: 10px;
}

.bbhub-access-actions .bbhub-button {
    flex: 1;
    text-align: center;
    padding: 11px 12px;
    font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bbhub-listing-facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .bbhub-listing-fact:nth-child(3) {
        border-right: none;
    }

    .bbhub-listing-fact:nth-child(4),
    .bbhub-listing-fact:nth-child(5),
    .bbhub-listing-fact:nth-child(6) {
        border-top: 1px solid #e2e8f0;
    }
}

@media (max-width: 960px) {
    .bbhub-listing-detail {
        padding: 0 16px 40px;
    }

    .bbhub-listing-layout {
        grid-template-columns: 1fr;
    }

    .bbhub-listing-aside__inner {
        position: static;
    }

    .bbhub-listing-aside {
        order: -1; /* CTA panels above content on tablet */
    }

    .bbhub-listing-hero img {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .bbhub-listing-title {
        font-size: 22px;
    }

    .bbhub-listing-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .bbhub-listing-fact {
        border-right: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }

    .bbhub-listing-fact:nth-child(even) {
        border-right: none;
    }

    .bbhub-listing-fact:nth-child(5),
    .bbhub-listing-fact:nth-child(6) {
        border-bottom: none;
    }

    .bbhub-listing-fact:nth-child(3) {
        border-right: 1px solid #e2e8f0;
    }

    .bbhub-listing-hero img {
        height: 220px;
        border-radius: 12px;
    }

    .bbhub-listing-panel {
        padding: 16px;
    }

    .bbhub-listing-header-bar {
        padding: 18px 0 16px;
    }

    .bbhub-listing-aside {
        order: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITE NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.bbhub-site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bbhub-site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 24px;
}

.bbhub-site-nav__logo {
    font-size: 18px;
    font-weight: 900;
    color: #f8fafc;
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-shrink: 0;
}

.bbhub-site-nav__logo em {
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bbhub-site-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbhub-site-nav__links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.bbhub-site-nav__links a:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.07);
}

.bbhub-site-nav__cta {
    background: #1d4ed8 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
}

.bbhub-site-nav__cta:hover {
    background: #1e40af !important;
}

/* Mobile toggle — hidden on desktop */
.bbhub-site-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.bbhub-site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #94a3b8;
    border-radius: 2px;
    transition: background 0.15s;
}

/* Front page: nav sits on top of the dark hero — ensure it doesn't double-stack */
.bbhub-home .bbhub-site-nav {
    position: relative;
    top: auto;
}

@media (max-width: 720px) {
    .bbhub-site-nav__toggle {
        display: flex;
    }

    .bbhub-site-nav__links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #0f172a;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        gap: 4px;
        z-index: 199;
    }

    .bbhub-site-nav__links.is-open {
        display: flex;
    }

    .bbhub-site-nav__links a {
        padding: 10px 12px;
        font-size: 15px;
    }

    .bbhub-site-nav__inner {
        position: relative;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.bbhub-site-footer {
    background: #0b1120;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 56px 0 0;
    margin-top: 0;
}

.bbhub-site-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bbhub-site-footer__logo {
    font-size: 22px;
    font-weight: 900;
    color: #f8fafc;
    text-decoration: none;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 12px;
}

.bbhub-site-footer__brand p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
    max-width: 280px;
    margin: 0;
}

.bbhub-site-footer__col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #475569;
    margin: 0 0 14px;
}

.bbhub-site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbhub-site-footer__col a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.bbhub-site-footer__col a:hover {
    color: #f1f5f9;
}

.bbhub-site-footer__bottom {
    padding: 20px 0;
    text-align: center;
}

.bbhub-site-footer__bottom p {
    font-size: 12px;
    color: #334155;
    margin: 0;
}

@media (max-width: 900px) {
    .bbhub-site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }

    .bbhub-site-footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 540px) {
    .bbhub-site-footer__grid {
        grid-template-columns: 1fr;
    }

    .bbhub-site-footer__brand {
        grid-column: span 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════════ */

.bbhub-gallery-link {
    display: block;
    cursor: zoom-in;
}

.bbhub-listing-hero .bbhub-gallery-link {
    display: block;
}

.bbhub-listing-gallery .bbhub-gallery-link {
    flex-shrink: 0;
}

.bbhub-listing-gallery .bbhub-gallery-link img {
    width: 110px;
    height: 76px;
    object-fit: cover;
    border-radius: 9px;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
    display: block;
}

.bbhub-listing-gallery .bbhub-gallery-link:hover img {
    border-color: var(--c-accent);
    transform: scale(1.04);
}

/* Lightbox overlay */
.bbhub-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.bbhub-lightbox.is-open {
    display: flex;
}

.bbhub-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 14, 26, 0.9);
    backdrop-filter: blur(6px);
}

.bbhub-lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbhub-lightbox__img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    display: block;
    /* enforce max dimensions — prevents massive images from overflowing */
    object-fit: contain;
}

.bbhub-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    border: 1.5px solid rgba(255,255,255,0.15);
    color: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.bbhub-lightbox__close:hover {
    background: #334155;
}

/* ── Image size enforcement (all bbhub contexts) ────────────────────────── */
.bbhub-listing-hero img,
.bbhub-listing-hero .bbhub-gallery-link img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    /* Prevent raw oversized images breaking layout */
    max-width: 100%;
}

.bbhub-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: 100%;
}

@media (max-width: 960px) {
    .bbhub-listing-hero img,
    .bbhub-listing-hero .bbhub-gallery-link img {
        height: 300px;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .bbhub-listing-hero img,
    .bbhub-listing-hero .bbhub-gallery-link img {
        height: 220px;
        border-radius: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM PAGE SHELL (single listing template — bypasses theme layout)
   ═══════════════════════════════════════════════════════════════════════════ */

body.bbhub-fullpage {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #f8fafc;
}

body.bbhub-fullpage * {
    box-sizing: border-box;
}

.bbhub-app-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bbhub-single-listing-main {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
}

/* Override any lingering theme padding on these pages */
body.bbhub-fullpage .site-content,
body.bbhub-fullpage .site-main,
body.bbhub-fullpage #primary {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO & GALLERY IMAGE CROPPING (class-based, no HTML dimension attributes)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero image — always fills container width, fixed height, object-fit crops */
.bbhub-hero-img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    /* Prevent any intrinsic size from breaking the crop */
    max-width: 100%;
    min-height: 0;
}

/* Ensure the anchor link wrapper doesn't add extra height */
.bbhub-listing-hero .bbhub-gallery-link {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    line-height: 0;
}

/* Gallery thumbnails — fixed crop, no stretching */
.bbhub-gallery-thumb {
    display: block;
    width: 110px;
    height: 76px;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
    border: 2px solid transparent;
    cursor: zoom-in;
    transition: border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
    /* Prevent HTML dimension attributes from overriding crop */
    max-width: none;
    min-height: 0;
}

.bbhub-listing-gallery .bbhub-gallery-link:hover .bbhub-gallery-thumb {
    border-color: var(--c-accent);
    transform: scale(1.04);
}

/* Mobile hero height reduction */
@media (max-width: 960px) {
    .bbhub-hero-img {
        height: 300px;
        border-radius: 12px;
    }

    .bbhub-listing-hero .bbhub-gallery-link {
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .bbhub-hero-img {
        height: 210px;
        border-radius: 10px;
    }

    .bbhub-listing-hero .bbhub-gallery-link {
        border-radius: 10px;
    }

    .bbhub-gallery-thumb {
        width: 90px;
        height: 62px;
    }
}

/* ── Single listing page mobile full-width fixes ────────────────────────── */
@media (max-width: 768px) {
    .bbhub-single-listing-main .bbhub-listing-detail {
        padding-left: 14px;
        padding-right: 14px;
    }

    .bbhub-single-listing-main .bbhub-listing-title {
        font-size: 20px;
    }

    .bbhub-single-listing-main .bbhub-listing-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .bbhub-single-listing-main .bbhub-listing-layout {
        grid-template-columns: 1fr;
    }

    .bbhub-single-listing-main .bbhub-listing-aside__inner {
        position: static;
    }
}
