.bh-page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.5rem 0 1rem;
}

.bh-page-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--bs-panel-border);
    background: rgba(255, 255, 255, 0.68);
    color: var(--bs-text-strong);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.bh-page-nav-link:hover,
.bh-page-nav-link:focus-visible,
.bh-page-nav-link.is-active {
    border-color: var(--bs-button-border-hover);
    box-shadow: 0 10px 24px rgba(47, 111, 144, 0.12);
    transform: translateY(-1px);
}

.bh-page-nav-link.is-active {
    background: rgba(255, 255, 255, 0.92);
}

.bh-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1rem;
}

.bh-hero-card,
.bh-hero-side,
.bh-hero-media,
.bh-note-card,
.bh-cta-band,
.bh-stat-card,
.bh-step-card,
.bh-value-card,
.bh-contact-card {
    padding: 1.1rem 1rem;
}

.bh-hero-media {
    overflow: hidden;
}

.bh-hero-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.bh-hero-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: cover;
}

.bh-caption-note {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    color: var(--bs-text-soft);
}

.bh-lead {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--bs-text-soft);
    font-weight: 600;
}

.bh-mini-list,
.bh-mini-checks,
.bh-check-list,
.bh-stat-grid,
.bh-step-grid,
.bh-value-grid,
.bh-contact-grid,
.bh-category-grid,
.bh-listing-grid {
    display: grid;
    gap: 0.95rem;
}

.bh-mini-list div,
.bh-stat-card,
.bh-step-card,
.bh-value-card {
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid var(--bs-panel-border);
}

.bh-mini-list strong,
.bh-stat-card strong,
.bh-step-card strong,
.bh-value-card strong {
    color: var(--bs-text-strong);
}

.bh-mini-list span,
.bh-stat-card span,
.bh-step-card span,
.bh-value-card span {
    color: var(--bs-text-soft);
    line-height: 1.45;
}

.bh-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bh-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bh-category-card,
.bh-listing-card {
    display: grid;
    gap: 0.8rem;
}

.bh-listing-image-button {
    position: relative;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
}

.bh-listing-image-button:focus-visible {
    outline: 2px solid var(--bs-button-border-hover);
    outline-offset: 3px;
}

.bh-listing-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.bh-image-chip {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(16, 33, 44, 0.72);
    color: #fff;
    font-size: 0.83rem;
    font-weight: 700;
}

.bh-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.bh-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--bs-text-strong);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--bs-panel-border);
}

.bh-badge-strong {
    background: rgba(47, 111, 144, 0.12);
    border-color: rgba(47, 111, 144, 0.22);
}

.bh-card-location {
    margin-top: -0.35rem;
    font-weight: 700;
    color: var(--bs-text-soft);
}

.bh-mini-checks,
.bh-check-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--bs-text-soft);
}

.bh-mini-checks li + li,
.bh-check-list li + li {
    margin-top: 0.28rem;
}

.bh-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
}

.bh-link-row-start {
    margin-top: 0.2rem;
}

.bh-stat-grid,
.bh-value-grid,
.bh-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bh-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bh-note-card h2,
.bh-cta-band h2,
.bh-contact-card h2 {
    margin-bottom: 0.4rem;
}

.bh-note-card p:last-child,
.bh-cta-band p:last-child,
.bh-contact-card p:last-child {
    margin-bottom: 0;
}

.bh-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.bh-contact-form {
    margin-top: 0.95rem;
}

.bh-form-grid label {
    display: grid;
    gap: 0.42rem;
    font-weight: 700;
    color: var(--bs-text-strong);
}

.bh-form-grid input,
.bh-form-grid select,
.bh-form-grid textarea {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--bs-panel-border-strong);
    background: var(--bs-input-bg);
    color: var(--bs-text);
    font: inherit;
}

.bh-form-grid textarea {
    resize: vertical;
}

.bh-form-grid input:focus,
.bh-form-grid select:focus,
.bh-form-grid textarea:focus {
    outline: none;
    border-color: var(--bs-button-border-hover);
    box-shadow: 0 0 0 3px rgba(47, 111, 144, 0.12);
}

.bh-wide {
    grid-column: 1 / -1;
}

/* Image viewer styling now lives in /assets/css/bs-components.css (Pass 11B). */

/* BH Phase 1 stabilization: clean mobile nav/action rows and reliable site-home logo. */
.bh-site-home-logo {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.bh-action-row {
    align-items: stretch;
}

.bh-action-row .bs-builder-submit,
.bh-action-row .bs-app-home-link,
.bh-link-row .bs-builder-submit,
.bh-link-row .bs-app-home-link {
    text-align: center;
}

@media (max-width: 820px) {
    .bh-page-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        width: 100%;
        margin-top: 0.65rem;
    }

    .bh-page-nav-link {
        width: 100%;
        min-height: 44px;
        padding: 0.68rem 0.72rem;
        text-align: center;
        box-sizing: border-box;
    }

    .bh-action-row,
    .bh-link-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.62rem;
        width: 100%;
    }

    .bh-action-row .bs-builder-submit,
    .bh-action-row .bs-app-home-link,
    .bh-link-row .bs-builder-submit,
    .bh-link-row .bs-app-home-link,
    .bh-contact-form .bs-builder-submit {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .bh-page-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .bh-hero-grid,
    .bh-category-grid,
    .bh-listing-grid,
    .bh-stat-grid,
    .bh-value-grid,
    .bh-contact-grid,
    .bh-step-grid,
    .bh-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .bh-page-nav {
        gap: 0.5rem;
    }

    .bh-page-nav-link {
        padding: 0.62rem 0.85rem;
        font-size: 0.95rem;
    }

    .bh-image-chip {
        font-size: 0.78rem;
    }

    .bh-image-viewer-stage {
        padding: 1rem 0.7rem;
    }

    .bh-image-viewer-shell {
        gap: 0.55rem;
    }

    .bh-image-viewer-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* BH Option A: fuller category/listing example polish. */
.bh-category-section {
    scroll-margin-top: 1rem;
}

.bh-category-section > .bh-listing-grid .bh-listing-card {
    min-height: 100%;
}

@media (min-width: 981px) {
    .bh-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* BH Option B: showpiece polish and stronger sales/product story. */
.bh-showcase-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1rem;
    align-items: stretch;
}

.bh-showcase-copy,
.bh-showcase-media,
.bh-business-hero,
.bh-story-card,
.bh-big-cta {
    position: relative;
    overflow: hidden;
}

.bh-showcase-copy::before,
.bh-big-cta::before,
.bh-business-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(47,111,144,0.16), transparent 42%);
}

.bh-showcase-copy > *,
.bh-big-cta > *,
.bh-business-hero > * { position: relative; }

.bh-showcase-copy h2 {
    font-size: clamp(1.7rem, 4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.bh-showcase-media { display: grid; align-content: start; gap: 0.9rem; }

.bh-entry-showcase-art .bs-showcase-art__button,
.bh-entry-showcase-art .bs-showcase-art__placeholder {
    margin: 0;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
}

.bh-entry-showcase-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.bh-entry-media-copy {
    display: grid;
    gap: 0.35rem;
}

.bh-entry-media-copy h3 {
    margin: 0;
}

.bh-hero-overlay-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem;
    border-radius: 20px;
    border: 1px solid var(--bs-panel-border);
    background: rgba(255,255,255,0.72);
}

.bh-hero-overlay-card strong { color: var(--bs-text-strong); }
.bh-hero-overlay-card span { color: var(--bs-text-soft); line-height: 1.45; }

.bh-pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.bh-pill-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(47,111,144,0.22);
    background: rgba(47,111,144,0.10);
    color: var(--bs-text-strong);
    font-size: 0.84rem;
    font-weight: 800;
}

.bh-story-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1rem;
    align-items: start;
}

.bh-story-steps { display: grid; gap: 0.7rem; }
.bh-story-steps div {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.62);
    border: 1px solid var(--bs-panel-border);
}
.bh-story-steps strong, .bh-card-icon { color: var(--bs-text-strong); }
.bh-story-steps span { color: var(--bs-text-soft); line-height: 1.42; }

.bh-icon-card { align-content: start; }
.bh-card-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    background: rgba(47,111,144,0.12);
    border: 1px solid rgba(47,111,144,0.2);
}

.bh-section-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.bh-section-head-row > div { min-width: 0; }
.bh-section-head-row > .bs-app-home-link { flex: 0 0 auto; white-space: nowrap; }
.bh-large-checks li { padding: 0.25rem 0; }
.bh-directory-intro { border-color: rgba(47,111,144,0.22); }
.bh-category-card .bh-link-row { margin-top: auto; }

@media (max-width: 980px) {
    .bh-showcase-hero, .bh-story-card { grid-template-columns: 1fr; }
    .bh-section-head-row { display: grid; }
    .bh-section-head-row > .bs-app-home-link {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 720px) {
    .bh-showcase-copy h2 { font-size: 1.75rem; }
    .bh-pill-row { display: grid; grid-template-columns: 1fr 1fr; }
    .bh-pill-row span { justify-content: center; text-align: center; }
}

@media (max-width: 430px) { .bh-pill-row { grid-template-columns: 1fr; } }
/* BluHaven project-system polish */
.bs-app-logo-back.is-site-specific .bs-hero-logo,.bs-app-logo-back .bs-hero-logo{max-width:min(560px,92vw);height:auto;display:block;margin:0 auto}.bs-app-shell>.bs-app-logo-back{margin-bottom:.75rem}.bh-page-nav{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;margin:1rem 0 1.25rem}.bh-page-nav-link{display:inline-flex;align-items:center;justify-content:center;padding:.72rem 1.15rem;border-radius:999px;background:rgba(255,255,255,.76);border:1px solid rgba(80,150,190,.22);color:#0b1620;text-decoration:none;font-weight:800;box-shadow:0 8px 24px rgba(20,80,120,.08)}.bh-page-nav-link.is-active,.bh-page-nav-link:hover{background:#fff;border-color:rgba(28,129,185,.48)}.bh-showcase-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:1rem;align-items:stretch}.bh-showcase-media{position:relative;overflow:hidden;min-height:320px}.bh-listing-image-button{border:0;padding:0;width:100%;background:transparent;cursor:pointer;border-radius:20px;overflow:hidden;position:relative;text-align:left}.bh-listing-image,.bh-hero-image{display:block;width:100%;height:220px;object-fit:cover;border-radius:20px;background:#e8f6fc}.bh-hero-image{height:100%;min-height:320px}.bh-image-chip{position:absolute;left:.75rem;bottom:.75rem;padding:.35rem .6rem;border-radius:999px;background:rgba(255,255,255,.86);font-size:.78rem;font-weight:800;color:#145e83}.bh-hero-overlay-card{position:absolute;left:1rem;right:1rem;bottom:1rem;display:grid;gap:.2rem;padding:.8rem 1rem;border-radius:18px;background:rgba(255,255,255,.88);backdrop-filter:blur(8px)}.bh-pill-row,.bh-badge-row,.bh-link-row,.bh-action-row{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}.bh-pill-row span,.bh-badge{padding:.35rem .6rem;border-radius:999px;background:rgba(221,244,255,.85);color:#176584;font-weight:800;font-size:.78rem}.bh-badge-strong{background:#fff}.bh-category-grid,.bh-listing-grid,.bh-stat-grid,.bh-value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.bh-category-card,.bh-listing-card{display:flex;flex-direction:column;gap:.65rem}.bh-card-location{font-weight:800;color:#176584}.bh-mini-checks{margin:.2rem 0 0;padding-left:1.2rem;color:var(--bs-text-soft)}.bh-image-viewer[hidden]{display:none}.bh-image-viewer{position:fixed;inset:0;z-index:10000}.bh-image-viewer-backdrop{position:absolute;inset:0;background:rgba(0,14,28,.72)}.bh-image-viewer-stage{position:absolute;inset:0;display:grid;place-items:center;padding:1rem}.bh-image-viewer-shell{width:min(1080px,94vw);background:#fff;border-radius:24px;padding:1rem}.bh-image-viewer-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.bh-image-viewer-frame{max-height:78vh;overflow:hidden;border-radius:18px;background:#eef9ff}.bh-image-viewer-image{width:100%;height:auto;display:block;cursor:grab}.bh-image-viewer-open{overflow:hidden}@media(max-width:860px){.bh-showcase-hero,.bh-category-grid,.bh-listing-grid,.bh-stat-grid,.bh-value-grid{grid-template-columns:1fr}.bh-page-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.bh-page-nav-link{width:100%}.bh-hero-image{min-height:240px}.bs-app-logo-back.is-site-specific .bs-hero-logo{max-width:94vw}}@media(max-width:520px){.bh-page-nav{grid-template-columns:1fr}.bh-link-row .bs-builder-submit,.bh-link-row .bs-app-home-link,.bh-action-row .bs-builder-submit,.bh-action-row .bs-app-home-link{width:100%;text-align:center;justify-content:center}.bh-listing-image,.bh-hero-image{height:210px;min-height:210px}.bs-app-logo-back.is-site-specific .bs-hero-logo{max-width:96vw}}

/* === BH LOCKED LOGO + FULLSCREEN VIEWER CLEANUP 4-24 === */
.bh-site-intro {
    max-width: 780px;
    margin: 0 auto 0.85rem;
    text-align: center;
}

.bh-site-intro p {
    margin: 0;
    color: var(--bs-text-soft);
    font-size: clamp(1.02rem, 2.2vw, 1.22rem);
    line-height: 1.45;
    font-weight: 650;
}

.bs-app-logo-back.is-site-specific .bs-hero-logo,
.bs-app-logo-back .bs-hero-logo {
    max-width: min(620px, 94vw);
    height: auto;
    display: block;
    margin: 0 auto;
}

.bh-page-nav {
    justify-content: center;
    margin: 0.9rem 0 1.2rem;
}

.bh-showcase-hero {
    align-items: stretch;
}

.bh-showcase-copy h2 {
    font-size: clamp(1.85rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.bh-hero-image {
    min-height: 320px;
}

.bh-category-section {
    scroll-margin-top: 1.25rem;
}

.bh-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.bh-image-viewer[hidden] {
    display: none !important;
}

.bh-image-viewer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 8, 18, 0.94);
    cursor: zoom-out;
}

.bh-image-viewer-stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0.5rem;
    pointer-events: none;
}

.bh-image-viewer-shell {
    width: 100vw;
    height: 100vh;
    max-width: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    pointer-events: auto;
}

.bh-image-viewer-head {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
    padding: 0.75rem 5.25rem 0.75rem 0.9rem;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0,0,0,0.42), rgba(0,0,0,0));
}

.bh-image-viewer-controls {
    order: -1;
    justify-content: flex-start;
}

.bh-image-viewer-hint {
    margin-left: auto;
    text-align: center;
}

.bh-image-viewer-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.38);
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.bh-image-viewer-frame {
    height: calc(100vh - 52px);
    max-height: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.bh-image-viewer-image {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: calc(100vh - 52px);
    object-fit: contain;
    cursor: zoom-out;
}

body.bh-image-viewer-open {
    overflow: hidden;
}

@media (max-width: 860px) {
    .bh-page-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.55rem;
    }

    .bh-page-nav-link {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .bh-showcase-hero,
    .bh-category-grid,
    .bh-listing-grid,
    .bh-stat-grid,
    .bh-value-grid {
        grid-template-columns: 1fr;
    }

    .bh-hero-image {
        min-height: 240px;
    }
}

@media (max-width: 520px) {
    .bh-page-nav {
        grid-template-columns: 1fr;
    }

    .bh-link-row .bs-builder-submit,
    .bh-link-row .bs-app-home-link,
    .bh-action-row .bs-builder-submit,
    .bh-action-row .bs-app-home-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .bh-listing-image,
    .bh-hero-image {
        height: 210px;
        min-height: 210px;
    }

    .bs-app-logo-back.is-site-specific .bs-hero-logo,
    .bs-app-logo-back .bs-hero-logo {
        max-width: 96vw;
    }
}

/* === BH 4-24 lock pass: logo, mobile buttons, fullscreen viewer, site-only menu feel === */
.bs-app-shell > .bs-app-logo-back.bh-site-home-logo,
.bh-site-home-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: min(620px, 94vw) !important;
    margin: 0 auto 0.45rem !important;
    padding: 0 !important;
    overflow: visible !important;
    text-decoration: none !important;
}

.bs-app-logo-back.bh-site-home-logo .bs-hero-logo,
.bh-site-home-logo .bs-hero-logo {
    display: block !important;
    width: min(590px, 92vw) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    overflow: visible !important;
}

.bh-site-intro {
    max-width: 880px;
    margin: 0.35rem auto 0.95rem;
    text-align: center;
}

.bh-site-intro p {
    margin: 0;
    font-size: clamp(1.02rem, 2.2vw, 1.32rem);
    line-height: 1.45;
    font-weight: 800;
    color: var(--bs-text-strong);
}

.bh-page-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
    margin: 0.75rem auto 1.25rem !important;
}

.bh-page-nav-link {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0.62rem 1.05rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.bh-action-row,
.bh-link-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.55rem !important;
    width: auto !important;
}

.bh-action-row .bs-builder-submit,
.bh-action-row .bs-app-home-link,
.bh-link-row .bs-builder-submit,
.bh-link-row .bs-app-home-link,
.bh-contact-form .bs-builder-submit {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    justify-content: center !important;
    white-space: normal !important;
}

.bh-image-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
}

.bh-image-viewer[hidden] {
    display: none !important;
}

.bh-image-viewer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.96) !important;
}

.bh-image-viewer-stage {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
}

.bh-image-viewer-shell {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    gap: 0 !important;
}

.bh-image-viewer-head {
    position: fixed !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: calc(env(safe-area-inset-top, 0px) + 0.65rem) !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    color: #fff !important;
    pointer-events: none !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.55) !important;
}

.bh-image-viewer-hint {
    opacity: 0.82 !important;
    font-size: 0.85rem !important;
}

.bh-image-viewer-frame {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
}

.bh-image-viewer-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    object-fit: contain !important;
    cursor: zoom-out !important;
    touch-action: none !important;
}

body.bh-image-viewer-open {
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .bh-site-home-logo .bs-hero-logo,
    .bs-app-logo-back.bh-site-home-logo .bs-hero-logo {
        width: min(520px, 96vw) !important;
    }

    .bh-page-nav {
        gap: 0.5rem !important;
        justify-content: center !important;
    }

    .bh-page-nav-link {
        min-height: 38px !important;
        padding: 0.52rem 0.78rem !important;
        font-size: 0.92rem !important;
        border-radius: 999px !important;
    }

    .bh-action-row,
    .bh-link-row {
        justify-content: center !important;
    }

    .bh-action-row .bs-builder-submit,
    .bh-action-row .bs-app-home-link,
    .bh-link-row .bs-builder-submit,
    .bh-link-row .bs-app-home-link {
        padding: 0.58rem 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 420px) {
    .bh-page-nav-link {
        flex: 0 1 calc(50% - 0.35rem) !important;
    }
}

/* === BH FINAL CLEANUP: transparent wave logo, tighter header, active buttons, contact form === */
.bs-app-logo-back.bh-dynamic-logo,
.bs-app-shell > .bs-app-logo-back.bh-dynamic-logo {
    width: min(560px, 92vw) !important;
    margin: 0 auto 0.75rem !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.bh-dynamic-logo-wave-wrap {
    display: block !important;
    width: clamp(145px, 24vw, 245px) !important;
    line-height: 0 !important;
}

.bh-dynamic-logo-wave {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.bh-dynamic-logo-copy {
    display: grid !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 0.22rem !important;
    min-width: 0 !important;
    transform: translateX(-0.12rem) !important;
}

.bh-dynamic-logo-name {
    display: block !important;
    color: #07106f !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(2.4rem, 7.1vw, 4.55rem) !important;
    font-style: italic !important;
    font-weight: 900 !important;
    line-height: 0.92 !important;
    letter-spacing: -0.06em !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.42) !important;
    white-space: nowrap !important;
}

.bh-dynamic-logo-location {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: min(260px, 38vw) !important;
    padding: 0.2rem 1.15rem 0.25rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(35, 154, 214, 0.28) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(231,248,255,0.72)) !important;
    color: #0498df !important;
    font-size: clamp(1.25rem, 3vw, 1.85rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px rgba(47,111,144,.10) !important;
}

.bh-page-nav-link.is-active,
.bh-page-nav-link[aria-current="page"] {
    background: linear-gradient(180deg, #ffffff, #dff5ff) !important;
    border: 2px solid #35aeea !important;
    box-shadow: 0 10px 22px rgba(41, 156, 216, 0.20) !important;
}

.bs-contact-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.95rem !important;
    align-items: start !important;
}

.bs-contact-form-grid label {
    display: grid !important;
    gap: 0.42rem !important;
    margin: 0 !important;
    font-weight: 850 !important;
    color: var(--bs-text-strong) !important;
}

.bs-contact-full {
    grid-column: 1 / -1 !important;
}

.bs-contact-field,
.bs-contact-textarea,
.bs-contact-form-grid input,
.bs-contact-form-grid textarea {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    padding: 0.82rem 0.95rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(47, 111, 144, 0.25) !important;
    background: rgba(255,255,255,0.86) !important;
    color: var(--bs-text-strong) !important;
    font: inherit !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92) !important;
}

.bs-contact-textarea,
.bs-contact-form-grid textarea {
    min-height: 150px !important;
    resize: vertical !important;
}

.bs-contact-field:focus,
.bs-contact-textarea:focus,
.bs-contact-form-grid input:focus,
.bs-contact-form-grid textarea:focus {
    outline: none !important;
    border-color: #2fa8df !important;
    box-shadow: 0 0 0 3px rgba(47,168,223,.16), inset 0 1px 0 rgba(255,255,255,.92) !important;
}

@media (max-width: 760px) {
    .bs-app-logo-back.bh-dynamic-logo,
    .bs-app-shell > .bs-app-logo-back.bh-dynamic-logo {
        width: min(430px, 96vw) !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 0.28rem !important;
    }

    .bh-dynamic-logo-wave-wrap {
        width: clamp(118px, 34vw, 170px) !important;
    }

    .bh-dynamic-logo-name {
        font-size: clamp(2rem, 11vw, 3.15rem) !important;
    }

    .bh-dynamic-logo-location {
        min-width: min(205px, 50vw) !important;
        font-size: clamp(1.05rem, 5vw, 1.35rem) !important;
        padding: 0.18rem 0.78rem 0.22rem !important;
    }

    .bs-contact-form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 430px) {
    .bs-app-logo-back.bh-dynamic-logo,
    .bs-app-shell > .bs-app-logo-back.bh-dynamic-logo {
        width: min(360px, 97vw) !important;
    }

    .bh-dynamic-logo-wave-wrap {
        width: 128px !important;
    }

    .bh-dynamic-logo-name {
        font-size: 2.25rem !important;
    }

    .bh-dynamic-logo-location {
        min-width: 160px !important;
        font-size: 1.05rem !important;
    }
}

/* === BH 4-24 TEXT LOGO + BB-STYLE VIEWER + CONTACT LOCK === */
.bs-app-logo-back.bh-dynamic-logo,
.bs-app-shell > .bs-app-logo-back.bh-dynamic-logo {
    width: min(720px, 94vw) !important;
    margin: 0 auto 1rem !important;
    padding: 0.35rem 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    animation: bhLogoFadeUp .52s ease-out both !important;
}

.bh-dynamic-logo-wave-wrap,
.bh-dynamic-logo-wave {
    display: none !important;
}

.bh-dynamic-logo-copy {
    display: grid !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 0.42rem !important;
    min-width: 0 !important;
    transform: none !important;
}

.bh-dynamic-logo-name {
    display: block !important;
    color: #07106f !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(3.15rem, 8.4vw, 5.45rem) !important;
    font-style: italic !important;
    font-weight: 900 !important;
    line-height: 0.9 !important;
    letter-spacing: -0.065em !important;
    white-space: nowrap !important;
    text-shadow: 0 2px 0 rgba(255,255,255,0.44), 0 10px 24px rgba(12,34,80,.08) !important;
}

.bh-dynamic-logo-location {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: min(360px, 70vw) !important;
    padding: 0.25rem 1.35rem 0.35rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(35, 154, 214, 0.34) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232,248,255,0.82)) !important;
    color: #0498df !important;
    font-size: clamp(1.42rem, 3.7vw, 2.25rem) !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 20px rgba(40,128,176,.11) !important;
}

@keyframes bhLogoFadeUp {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Contact form: force clean card-style layout */
.bh-contact-card {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bh-contact-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: start !important;
}

.bh-contact-label {
    display: grid !important;
    gap: 0.45rem !important;
    margin: 0 !important;
    font-weight: 900 !important;
    color: var(--bs-text-strong, #0b1620) !important;
}

.bh-contact-label span {
    font-size: 0.95rem !important;
}

.bh-contact-full {
    grid-column: 1 / -1 !important;
}

.bh-contact-field,
.bh-contact-textarea {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    padding: 0.9rem 1rem !important;
    border-radius: 17px !important;
    border: 1px solid rgba(47, 111, 144, 0.26) !important;
    background: rgba(255,255,255,0.9) !important;
    color: var(--bs-text-strong, #0b1620) !important;
    font: inherit !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 8px 22px rgba(20,80,120,.06) !important;
}

.bh-contact-textarea {
    min-height: 165px !important;
    resize: vertical !important;
}

.bh-contact-field:focus,
.bh-contact-textarea:focus {
    outline: none !important;
    border-color: #2fa8df !important;
    box-shadow: 0 0 0 3px rgba(47,168,223,.16), inset 0 1px 0 rgba(255,255,255,.96) !important;
}

/* Image viewer: BB behavior, full mobile scale, no visible X */
.bh-image-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10040 !important;
}

.bh-image-viewer[hidden] {
    display: none !important;
}

.bh-image-viewer-backdrop,
.bh-image-viewer-stage {
    position: absolute !important;
    inset: 0 !important;
}

.bh-image-viewer-backdrop {
    background: rgba(10,24,38,0.78) !important;
    backdrop-filter: blur(4px) !important;
    border: 0 !important;
    padding: 0 !important;
}

.bh-image-viewer-stage {
    display: grid !important;
    place-items: center !important;
    padding: 1rem !important;
}

.bh-image-viewer-shell {
    position: relative !important;
    width: min(96vw, 1320px) !important;
    max-height: calc(100dvh - 2rem) !important;
    display: grid !important;
    gap: 0.7rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.bh-image-viewer-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    color: #f3f9fd !important;
    padding: 0 0.2rem !important;
    margin: 0 !important;
}

.bh-image-viewer-title {
    font-size: 1rem !important;
    line-height: 1.1 !important;
}

.bh-image-viewer-hint {
    font-size: 0.78rem !important;
    color: rgba(243,249,253,0.78) !important;
}

.bh-image-viewer-close {
    display: none !important;
}

.bh-image-viewer-frame {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    background: rgba(10,24,38,0.26) !important;
    box-shadow: 0 24px 56px rgba(5,14,24,0.35) !important;
    min-height: min(72vh, 760px) !important;
    display: grid !important;
    place-items: center !important;
    max-height: none !important;
}

.bh-image-viewer-image {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(78vh, 900px) !important;
    height: auto !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    cursor: grab !important;
    touch-action: none !important;
    will-change: transform !important;
}

.bh-image-viewer-image.is-dragging {
    cursor: grabbing !important;
}

body.bh-image-viewer-open {
    overflow: hidden !important;
}

@media (max-width: 760px) {
    .bs-app-logo-back.bh-dynamic-logo,
    .bs-app-shell > .bs-app-logo-back.bh-dynamic-logo {
        width: min(440px, 96vw) !important;
    }

    .bh-dynamic-logo-name {
        font-size: clamp(2.75rem, 15vw, 4.25rem) !important;
    }

    .bh-dynamic-logo-location {
        min-width: min(300px, 78vw) !important;
        font-size: clamp(1.25rem, 6vw, 1.7rem) !important;
        padding: 0.22rem 1rem 0.3rem !important;
    }

    .bh-contact-form {
        grid-template-columns: 1fr !important;
    }

    .bh-image-viewer-stage {
        padding: 0.75rem !important;
    }

    .bh-image-viewer-shell {
        width: min(98vw, 1320px) !important;
        max-height: calc(100dvh - 1.5rem) !important;
    }

    .bh-image-viewer-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.45rem !important;
    }

    .bh-image-viewer-frame {
        min-height: min(68vh, 620px) !important;
    }

    .bh-image-viewer-image {
        max-height: min(72vh, 760px) !important;
    }
}

@media (max-width: 420px) {
    .bh-dynamic-logo-name {
        font-size: 2.75rem !important;
    }

    .bh-dynamic-logo-location {
        min-width: 230px !important;
        font-size: 1.22rem !important;
    }
}


/* === Shared program typography cleanup === */
.bh-site-intro {
    max-width: 920px !important;
    margin: 0.75rem auto 0.9rem !important;
    text-align: center !important;
}

.bh-site-intro p {
    margin: 0 !important;
    font-family: var(--bs-font-sans) !important;
    color: var(--bs-text-soft) !important;
    font-size: clamp(1.02rem, 1.65vw, 1.2rem) !important;
    line-height: 1.34 !important;
    font-weight: 540 !important;
    letter-spacing: -0.01em !important;
    text-wrap: balance !important;
}

.bh-page-nav-link {
    font-family: var(--bs-font-sans) !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
}

.bh-showcase-copy h2,
.bh-section-head-row h2,
.bh-listing-card h3,
.bh-category-card h3 {
    font-family: var(--bs-font-sans) !important;
    font-weight: 650 !important;
    letter-spacing: -0.032em !important;
    line-height: 1.07 !important;
}

.bh-lead,
.bh-listing-card p,
.bh-category-card p {
    font-weight: 460 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.34 !important;
}

/* === BLUHAVEN PRODUCT STORY PASS 4-27-0500 === */
.bh-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.bh-proof-grid article {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.bh-proof-grid article > span {
    width: max-content;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(221,244,255,.86);
    color: #176584;
    font-weight: 900;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.bh-proof-grid strong {
    color: var(--bs-text-strong);
    font-size: 1.16rem;
    letter-spacing: -0.028em;
}

.bh-proof-grid p {
    margin: 0;
    color: var(--bs-text-soft);
    line-height: 1.34;
}

/* === BH public header hierarchy alignment with generated sites 2026-05-01 === */
.bh-public-header {
    margin-bottom: 0.2rem !important;
}

.bh-public-header .bs-public-header-title-block {
    display: grid;
    gap: 0.08rem;
    justify-items: center;
}

.bh-public-header .bs-common-brand {
    margin-bottom: 0.18rem !important;
}

.bh-site-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.12rem 0.45rem;
    margin: 0 auto 0.12rem;
    color: var(--bs-text-soft);
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.bh-site-identity span {
    color: var(--bs-text-strong);
}

.bs-common-brand--project .bs-common-brand-location {
    display: none !important;
}

.bh-site-intro .bh-site-identity {
    max-width: none !important;
    margin: 0 auto 0.12rem !important;
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.bh-site-intro h1 {
    margin: 0 0 0.18rem !important;
    color: var(--bs-text-strong) !important;
    font-size: clamp(1.05rem, 1.85vw, 1.62rem) !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.bh-public-header .bh-site-intro {
    max-width: 760px !important;
    margin: 0.16rem auto 0 !important;
    text-align: center !important;
}

.bh-public-header .bh-site-intro p {
    max-width: 760px !important;
    margin-inline: auto !important;
    font-size: clamp(0.95rem, 1.15vw, 1.05rem) !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 720px) {
    .bh-public-header .bh-site-intro p {
        font-size: 0.94rem !important;
    }
}

@media (max-width: 980px) {
    .bh-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .bh-proof-grid { grid-template-columns: 1fr; }
}
.bh-badge.bs-badge-image{background:rgba(255,248,232,.92);border:1px solid rgba(217,119,6,.24);color:#875300}.bh-badge.bs-badge-placement{background:rgba(241,245,249,.96);border:1px solid rgba(71,85,105,.28);color:#334155}

.bh-badge-row a.bh-badge,
.bh-category-pill-link {
    align-items: center;
    justify-content: center;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.bh-badge-row a.bh-badge:hover,
.bh-badge-row a.bh-badge:focus-visible {
    border-color: rgba(47,111,144,.32);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47,111,144,.12);
}

.bh-badge-row .bh-category-back-link,
.bh-section-head-row .bh-category-back-link,
.bh-category-section-title-row .bh-category-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .58rem;
    max-width: 100%;
    padding: .34rem .42rem .34rem .34rem;
    border-radius: 999px;
    border: 1.5px solid rgba(45, 86, 118, .34);
    background: linear-gradient(180deg, rgba(240, 247, 253, 1) 0%, rgba(215, 230, 242, 1) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
    color: #173f5c;
    text-decoration: none;
    cursor: pointer;
}

.bh-badge-row .bh-category-back-link:visited,
.bh-badge-row .bh-category-back-link:focus,
.bh-badge-row .bh-category-back-link:active,
.bh-badge-row .bh-category-back-link:hover,
.bh-category-section-title-row .bh-category-back-link:visited,
.bh-category-section-title-row .bh-category-back-link:focus,
.bh-category-section-title-row .bh-category-back-link:active,
.bh-category-section-title-row .bh-category-back-link:hover,
.bh-section-head-row .bh-category-back-link:visited,
.bh-section-head-row .bh-category-back-link:focus,
.bh-section-head-row .bh-category-back-link:active,
.bh-section-head-row .bh-category-back-link:hover {
    color: #173f5c;
    text-decoration: none;
}

.bh-badge-row .bh-category-back-link:focus-visible,
.bh-category-section-title-row .bh-category-back-link:focus-visible,
.bh-section-head-row .bh-category-back-link:focus-visible {
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 3px rgba(47,111,144,.14);
}

.bh-category-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(45, 86, 118, .24);
    background: rgba(98, 148, 186, .22);
    color: #245c84;
    font-size: 1rem;
    font-weight: 800;
}

.bh-category-badge {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #173f5c;
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

/* === BH common browse/card/image treatment 2026-05-01 === */
.bh-category-grid,
.bh-listing-grid {
    align-items: stretch !important;
}

.bh-category-card,
.bh-listing-card {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    align-content: start !important;
}

.bh-listing-card {
    display: grid !important;
    grid-template-rows: auto auto auto auto 1fr auto !important;
}

.bh-category-card {
    display: grid !important;
    grid-template-rows: auto auto auto 1fr auto !important;
}

.bh-category-card *,
.bh-listing-card * {
    min-width: 0;
    max-width: 100%;
}

.bh-listing-image-button {
    aspect-ratio: 16 / 9 !important;
}

.bh-listing-image,
.bh-hero-image {
    aspect-ratio: 16 / 9 !important;
}

.bh-listing-image {
    height: 100% !important;
}

.bh-image-slot {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 0.24rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px dashed rgba(47, 111, 144, 0.34);
    background:
        radial-gradient(circle at 22% 18%, rgba(255,255,255,0.82), transparent 24%),
        linear-gradient(135deg, rgba(47,111,144,0.13), rgba(236,248,255,0.78));
    color: var(--bs-text-soft);
    overflow: hidden;
}

.bh-image-slot strong {
    color: var(--bs-text-strong);
    font-size: 0.93rem;
    line-height: 1.15;
}

.bh-image-slot small {
    max-width: 28ch;
    font-size: 0.78rem;
    line-height: 1.3;
}

.bh-listing-card > p:not(.bh-card-location),
.bh-category-card > p:not(.bs-app-eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bh-mini-checks {
    font-size: 0.94rem;
    line-height: 1.38;
}

.bh-mini-checks li {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bh-category-section {
    padding-top: 0.95rem;
    border-top: 1px solid rgba(163, 185, 198, 0.34);
}

.bh-image-viewer-frame {
    min-height: 240px !important;
    max-height: calc(100dvh - 7rem) !important;
    display: grid !important;
    place-items: center !important;
}

.bh-image-viewer-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 9rem) !important;
    object-fit: contain !important;
}

/* === BH category-card return anchors + compact FT-style cards 2026-05-01 === */
.bh-category-card[id^="category-card-"] {
    scroll-margin-top: 1rem !important;
}

.bh-category-grid,
.bh-listing-grid {
    display: grid !important;
    gap: 0.95rem !important;
    align-items: stretch !important;
}

.bh-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.bh-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.bh-category-card,
.bh-listing-card {
    display: grid !important;
    gap: 0.62rem !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    align-content: start !important;
}

.bh-category-card {
    grid-template-rows: auto auto auto 1fr auto !important;
}

.bh-listing-card {
    grid-template-rows: auto auto auto auto 1fr auto !important;
}

.bh-listing-image-button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 18px !important;
}

.bh-listing-image-button .bh-listing-image,
.bh-category-image-button .bh-listing-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.bh-image-slot {
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
}

.bh-category-pill-link {
    display: inline-flex !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    cursor: pointer !important;
}

.bh-image-viewer-frame {
    min-height: 240px !important;
    max-height: calc(100dvh - 7rem) !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
}

.bh-image-viewer-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 9rem) !important;
    object-fit: contain !important;
}

@media (max-width: 980px) {
    .bh-category-grid,
    .bh-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* BluHaven shared image viewer alignment.
   Keep BH's page styling intact while letting /includes/bs_image_viewer.php behave
   like the shared viewer used by BelizeBlue and generated local sites. */
.bh-image-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10040 !important;
}

.bh-image-viewer[hidden] {
    display: none !important;
}

.bh-image-viewer-backdrop,
.bh-image-viewer-stage {
    position: absolute !important;
    inset: 0 !important;
}

.bh-image-viewer-backdrop {
    background: rgba(8, 16, 21, 0.82) !important;
    backdrop-filter: blur(4px) !important;
}

.bh-image-viewer-stage {
    display: grid !important;
    place-items: center !important;
    padding: 2rem 1rem !important;
}

.bh-image-viewer-shell {
    position: relative !important;
    width: min(1100px, 100%) !important;
    max-height: none !important;
    display: grid !important;
    gap: 0.8rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.bh-image-viewer-head {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem 0.75rem !important;
    color: #fff !important;
    padding: 0 4.75rem 0 0 !important;
    margin: 0 !important;
}

.bh-image-viewer-controls {
    order: -1 !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.bh-image-viewer-zoom,
.bh-image-viewer-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    padding: 0.55rem 0.72rem !important;
    cursor: pointer !important;
}

.bh-image-viewer-zoom:hover,
.bh-image-viewer-close:hover,
.bh-image-viewer-zoom:focus-visible,
.bh-image-viewer-close:focus-visible {
    background: rgba(255, 255, 255, 0.22) !important;
    outline: none !important;
}

.bh-image-viewer-title {
    font-size: 1rem !important;
    line-height: 1.1 !important;
}

.bh-image-viewer-hint {
    margin-left: auto !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.85rem !important;
    text-align: center !important;
}

.bh-image-viewer-frame {
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    min-height: 240px !important;
    max-height: calc(100vh - 7rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 24px !important;
    background: #07101a !important;
    box-shadow: none !important;
}

.bh-image-viewer-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100vh - 9rem) !important;
    object-fit: contain !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    cursor: grab !important;
    touch-action: none !important;
    will-change: transform !important;
    transform-origin: center center !important;
}

.bh-image-viewer-image.is-dragging {
    cursor: grabbing !important;
}

body.bh-image-viewer-open {
    overflow: hidden !important;
}

@media (max-width: 700px) {
    .bh-image-viewer-stage {
        padding: 0.75rem !important;
    }

    .bh-image-viewer-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.45rem !important;
        padding-right: 4.5rem !important;
    }

    .bh-image-viewer-hint {
        margin-left: 0 !important;
        text-align: left !important;
    }
}

@media (max-width: 720px) {
    .bh-category-grid,
    .bh-listing-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Final BH category-return button lock: section-level Categories control must render as one connected pill. */
.bh-section-head-row a.bh-category-back-link,
.bh-category-section-title-row a.bh-category-back-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .58rem !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 .42rem 0 !important;
    padding: .34rem .66rem .34rem .34rem !important;
    border-radius: 999px !important;
    border: 1.5px solid rgba(45, 86, 118, .34) !important;
    background: linear-gradient(180deg, rgba(240, 247, 253, 1) 0%, rgba(215, 230, 242, 1) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96) !important;
    color: #173f5c !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-underline-offset: 0 !important;
    cursor: pointer !important;
}
.bh-section-head-row a.bh-category-back-link *,
.bh-category-section-title-row a.bh-category-back-link * {
    text-decoration: none !important;
}
.bh-section-head-row a.bh-category-back-link .bh-category-back-icon,
.bh-category-section-title-row a.bh-category-back-link .bh-category-back-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.95rem !important;
    height: 1.95rem !important;
    flex: 0 0 1.95rem !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(45, 86, 118, .24) !important;
    background: rgba(98, 148, 186, .22) !important;
    color: #245c84 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}
.bh-section-head-row a.bh-category-back-link .bh-category-badge,
.bh-category-section-title-row a.bh-category-back-link .bh-category-badge {
    display: inline-block !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #173f5c !important;
    font-size: 1.04rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

/* BluHaven shared image viewer clickability fix.
   Codex alignment made the shared controls visible, but older BH viewer rules
   left the header layer non-clickable. Keep the current viewer look while
   restoring button hit targets above the image/frame/backdrop. */
.bh-image-viewer {
    pointer-events: auto !important;
}

.bh-image-viewer-backdrop {
    z-index: 1 !important;
    pointer-events: auto !important;
}

.bh-image-viewer-stage {
    z-index: 2 !important;
    pointer-events: auto !important;
}

.bh-image-viewer-shell {
    z-index: 3 !important;
    pointer-events: auto !important;
}

.bh-image-viewer-head,
.bh-image-viewer-controls,
.bh-image-viewer-zoom,
.bh-image-viewer-close {
    pointer-events: auto !important;
}

.bh-image-viewer-head {
    position: relative !important;
    z-index: 20 !important;
}

.bh-image-viewer-controls {
    position: relative !important;
    z-index: 30 !important;
}

.bh-image-viewer-zoom,
.bh-image-viewer-close {
    position: relative !important;
    z-index: 31 !important;
    touch-action: manipulation !important;
}

.bh-image-viewer-frame {
    position: relative !important;
    z-index: 10 !important;
}

.bh-image-viewer-image {
    pointer-events: auto !important;
}

/* BluHaven showroom rebuild 2026-05-09 */
.bh-showroom-hero {
    align-items: stretch;
}

.bh-showroom-hero .bh-showcase-copy h2 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    letter-spacing: 0 !important;
}

.bh-showroom-grid,
.bh-concept-grid,
.bh-service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 0.95rem;
}

.bh-showroom-card {
    display: grid;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.bh-showroom-card h3 {
    margin: 0;
    color: var(--bs-text-strong);
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    line-height: 1.12;
    letter-spacing: 0 !important;
}

.bh-showroom-card p,
.bh-showroom-card small,
.bh-showroom-card em,
.bh-haven-panel p,
.bh-harbor-list span,
.bh-concept-grid span,
.bh-service-list span {
    color: var(--bs-text-soft);
    line-height: 1.4;
}

.bh-showroom-card small {
    font-weight: 700;
}

.bh-showroom-card em {
    font-style: normal;
    font-weight: 800;
    color: var(--bs-button-text, #0f5e9c);
}

.bh-showroom-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    margin-top: auto;
    padding: 0.74rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--bs-button-border);
    background: var(--bs-button-bg);
    color: var(--bs-accent-dark);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.1;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bh-showroom-card-link:hover,
.bh-showroom-card-link:focus-visible {
    background: var(--bs-button-bg-hover);
    border-color: var(--bs-button-border-hover);
    box-shadow: 0 8px 18px rgba(12, 44, 70, 0.10);
    outline: none;
}

.bh-showroom-card-link::after {
    content: "→";
    margin-left: 0.4rem;
}

.bh-haven-panel {
    display: grid;
    align-content: center;
    gap: 0.75rem;
}

.bh-haven-panel h3 {
    margin: 0;
    color: var(--bs-text-strong);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.12;
    letter-spacing: 0 !important;
}

.bh-harbor-list {
    display: grid;
    gap: 0.6rem;
}

.bh-harbor-list span,
.bh-concept-grid article,
.bh-service-list article {
    display: grid;
    gap: 0.25rem;
    padding: 0.86rem 0.92rem;
    border-radius: 8px;
    border: 1px solid var(--bs-panel-border);
    background: rgba(255, 255, 255, 0.62);
}

.bh-concept-grid strong,
.bh-service-list strong {
    color: var(--bs-text-strong);
    font-size: 1.03rem;
}

.bh-showroom-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bh-showroom-cta {
    border-color: rgba(47, 111, 144, 0.25);
}

/* BluHaven start-here request hub aliases */
.bh-request-hero {
    align-items: stretch;
}

.bh-request-hero .bh-showcase-copy h2 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    letter-spacing: 0 !important;
}

.bh-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 0.95rem;
}

.bh-request-card {
    display: grid;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.bh-request-card h3 {
    margin: 0;
    color: var(--bs-text-strong);
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    line-height: 1.12;
    letter-spacing: 0 !important;
}

.bh-request-card p,
.bh-request-card small,
.bh-request-card em {
    color: var(--bs-text-soft);
    line-height: 1.4;
}

.bh-request-card small {
    font-weight: 700;
}

.bh-request-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    margin-top: auto;
    padding: 0.74rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--bs-button-border);
    background: var(--bs-button-bg);
    color: var(--bs-accent-dark);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.1;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bh-request-card-link:hover,
.bh-request-card-link:focus-visible {
    background: var(--bs-button-bg-hover);
    border-color: var(--bs-button-border-hover);
    box-shadow: 0 8px 18px rgba(12, 44, 70, 0.10);
    outline: none;
}

.bh-request-card-link::after {
    content: "→";
    margin-left: 0.4rem;
}

.bh-request-cta {
    border-color: rgba(47, 111, 144, 0.25);
}

.bh-showcase-hero,
.bh-showcase-copy,
.bh-showcase-media,
.bh-haven-panel,
.bh-request-card,
.bh-service-list article,
.bh-harbor-list span,
.bh-contact-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.bh-showcase-copy p,
.bh-haven-panel p,
.bh-service-list span,
.bh-harbor-list span,
.bh-contact-card p {
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .bh-request-grid,
    .bh-showroom-grid,
    .bh-concept-grid,
    .bh-service-list,
    .bh-showroom-values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body.bs-app-page {
        overflow-x: hidden !important;
    }

    body.bs-app-page .bs-app-shell {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-inline: 0 !important;
        padding-inline: 12px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    body.bs-app-page .bh-showcase-hero,
    body.bs-app-page .bh-request-grid,
    body.bs-app-page .bh-service-list,
    body.bs-app-page .bh-harbor-list,
    body.bs-app-page .bh-form-grid {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: minmax(0, 1fr) !important;
        box-sizing: border-box !important;
    }

    body.bs-app-page .bs-app-card,
    body.bs-app-page .bh-showcase-copy,
    body.bs-app-page .bh-showcase-media,
    body.bs-app-page .bh-haven-panel,
    body.bs-app-page .bh-contact-card {
        width: 100% !important;
        max-width: 366px !important;
        margin-inline: 0 !important;
        box-sizing: border-box !important;
    }

    .bh-public-header .bs-common-brand,
    .bh-public-header .bs-common-brand-stage,
    .bh-public-header .bs-common-brand-wave,
    .bs-app-logo-back.is-site-specific .bs-hero-logo,
    .bs-app-logo-back .bs-hero-logo {
        max-width: 366px !important;
    }
}
