.bsfct-finder {
    --bsfct-navy: #12397f;
    --bsfct-navy-dark: #0b2a60;
    --bsfct-blue: #1c5ed6;
    --bsfct-blue-soft: #edf4ff;
    --bsfct-red: #da3f32;
    --bsfct-text: #163159;
    --bsfct-muted: #5c6f8f;
    --bsfct-border: #d7e3f4;
    --bsfct-panel: #ffffff;
    --bsfct-shadow: 0 18px 50px rgba(19, 57, 127, 0.12);
    color: var(--bsfct-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bsfct-standalone-page,
.bsfct-standalone-page body {
    background: linear-gradient(180deg, #f5f8fd 0%, #eef4fb 100%);
}

.bsfct-finder--results-window {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px;
}

/* HERO / MAIN SEARCH */
.bsfct-search-panel--hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 44px 32px 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)),
        radial-gradient(circle at 78% 28%, rgba(255,255,255,0.24) 0, rgba(255,255,255,0.08) 18%, transparent 32%),
        linear-gradient(135deg, #e8f0fb 0%, #dbe8fa 35%, #cfdced 55%, #dfe7f3 100%);
    box-shadow: var(--bsfct-shadow);
    border: 1px solid rgba(255,255,255,0.6);
}

.bsfct-search-panel--hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18,57,127,0.06) 0 24%, transparent 24% 70%, rgba(18,57,127,0.03) 70% 100%),
        linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0));
    pointer-events: none;
}

.bsfct-search-panel__copy--hero-visible {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    max-width: 760px;
}

.bsfct-search-panel__copy--hero-visible .bsfct-search-panel__title {
    margin: 0 0 10px;
    color: var(--bsfct-navy-dark);
    font-size: clamp(2rem, 4.2vw, 3.9rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.bsfct-search-panel__copy--hero-visible .bsfct-search-panel__description {
    margin: 0;
    max-width: 660px;
    font-size: 1.1rem;
    line-height: 1.55;
    color: #23406f;
}

.bsfct-search-form--hero {
    position: relative;
    z-index: 1;
}

.bsfct-search-form__hero-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(600px, 2.1fr) minmax(230px, 0.9fr);
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(194, 209, 231, 0.9);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(18, 57, 127, 0.08);
}

.bsfct-search-form__hero-grid--single-program {
    grid-template-columns: minmax(250px, 1fr) minmax(360px, 1.5fr) minmax(230px, 0.9fr);
}

.bsfct-field--hero {
    min-width: 0;
}

.bsfct-field__label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bsfct-text);
}

.bsfct-field__with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--bsfct-border);
    border-radius: 16px;
}

.bsfct-field__leading-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
}

.bsfct-field__control {
    width: 100%;
    min-height: 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bsfct-text);
}

.bsfct-field__control:focus {
    outline: none;
    box-shadow: none;
}

.bsfct-program-options--hero {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
}

.bsfct-program-option {
    display: block;
    margin: 0;
}

.bsfct-program-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bsfct-program-option__content {
    display: block;
}

.bsfct-program-option__body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bsfct-program-option--logo-tile .bsfct-program-option__content {
    height: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--bsfct-border);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(11,42,96,0.04);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.bsfct-program-option--hero-tile .bsfct-program-option__body {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 96px;
}

.bsfct-program-option__icon-wrap {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsfct-program-option--hero-tile .bsfct-program-option__icon-wrap,
.bsfct-program-option--hero-selected .bsfct-program-option__icon-wrap {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
}

.bsfct-program-option__icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bsfct-program-option__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.bsfct-program-option__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--bsfct-text);
    line-height: 1.15;
}

.bsfct-program-option__description {
    font-size: 0.78rem;
    line-height: 1.2;
    color: var(--bsfct-muted);
}

.bsfct-program-option--hero-selected .bsfct-program-option__content,
.bsfct-program-option__input:checked + .bsfct-program-option__content,
.bsfct-program-option.is-selected .bsfct-program-option__content {
    border-color: #8eb4ff;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow: 0 8px 20px rgba(28, 94, 214, 0.14);
}

.bsfct-program-option--logo-tile:hover .bsfct-program-option__content {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(18,57,127,0.10);
}

.bsfct-search-form__actions--hero {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    height: 100%;
}

.bsfct-button--hero,
.bsfct-search-form__actions--hero .bsfct-button {
    width: 100%;
    min-height: 68px;
    padding: 0 26px;
    border-radius: 16px;
    background: linear-gradient(180deg, #1c5ed6 0%, #0d53cf 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    border: 0;
    box-shadow: 0 12px 28px rgba(28, 94, 214, 0.22);
}

.bsfct-button--hero.is-disabled,
.bsfct-search-form__actions--hero .bsfct-button[disabled] {
    opacity: 0.55;
    box-shadow: none;
}

/* RESULTS SEARCH BAR / SIDEBAR */
.bsfct-search-panel--sidebar {
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--bsfct-border);
    box-shadow: 0 10px 32px rgba(18, 57, 127, 0.08);
    padding: 16px 18px;
}

.bsfct-results__window-topbar .bsfct-search-panel--sidebar {
    padding: 10px 16px 16px;
}

.bsfct-search-panel__copy--sidebar {
    margin-bottom: 14px;
}

.bsfct-search-panel__copy-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bsfct-search-panel__copy--sidebar .bsfct-search-panel__title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--bsfct-navy-dark);
}

.bsfct-search-panel__copy--sidebar .bsfct-search-panel__description {
    margin: 6px 0 0;
    color: var(--bsfct-muted);
}

.bsfct-search-panel__new-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bsfct-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.bsfct-mobile-filters__toggle {
    display: none;
}

.bsfct-results__window-topbar .bsfct-search-form--stacked {
    display: grid;
    gap: 14px;
}

.bsfct-results__window-topbar .bsfct-search-form__stack {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(400px, 1.5fr) minmax(160px, 0.6fr) auto;
    gap: 16px;
    align-items: end;
}

.bsfct-results__window-topbar .bsfct-filter-group {
    margin: 0;
}

.bsfct-results__window-topbar .bsfct-filter-group--distance .bsfct-distance-options {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.bsfct-distance-option {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid var(--bsfct-border);
    background: #fff;
    color: var(--bsfct-text);
    font-weight: 700;
}

.bsfct-distance-option.is-active {
    background: var(--bsfct-navy);
    color: #fff;
    border-color: var(--bsfct-navy);
}

.bsfct-results__window-topbar .bsfct-search-form__actions {
    display: flex;
    align-items: end;
}

.bsfct-results__window-topbar .bsfct-search-form__actions .bsfct-button {
    min-height: 50px;
    border-radius: 14px;
    padding: 0 22px;
    font-weight: 800;
}

/* RESULTS LAYOUT */
.bsfct-results--window {
    padding: 0;
    background: transparent;
}

.bsfct-results__window-layout {
    display: grid;
    gap: 16px;
}

.bsfct-results__window-content {
    display: grid;
    grid-template-columns: minmax(390px, 430px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.bsfct-results__window-list-shell,
.bsfct-results__map-shell--window {
    background: #fff;
    border: 1px solid var(--bsfct-border);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(18, 57, 127, 0.07);
}

.bsfct-results__window-list-shell {
    padding: 16px;
}

.bsfct-results__window-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.bsfct-results__title {
    margin: 0 0 6px;
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    line-height: 1.05;
    font-weight: 800;
    color: var(--bsfct-navy-dark);
}

.bsfct-results__summary {
    margin: 0;
    color: var(--bsfct-muted);
    font-size: 0.98rem;
}

.bsfct-results__count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--bsfct-border);
    border-radius: 999px;
    background: #f6f9fe;
    color: var(--bsfct-text);
    font-weight: 700;
}

.bsfct-results__list--window,
.bsfct-results__list {
    display: grid;
    gap: 12px;
}

.bsfct-card {
    position: relative;
    display: block;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid var(--bsfct-border);
    border-radius: 20px;
    box-shadow: 0 5px 18px rgba(18,57,127,0.05);
}

.bsfct-card:hover,
.bsfct-card:focus {
    border-color: #93b7ff;
    box-shadow: 0 12px 28px rgba(28,94,214,0.12);
    outline: none;
}

.bsfct-card__rank {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bsfct-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.bsfct-card__distance-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 90px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--bsfct-navy);
    color: #fff;
    border-radius: 0 18px 0 16px;
    font-size: 1rem;
    font-weight: 800;
}

.bsfct-card__body {
    padding-top: 6px;
    padding-left: 46px;
}

.bsfct-card__header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.bsfct-card__program-icon-wrap {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsfct-card__program-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bsfct-card__header-copy {
    min-width: 0;
}

.bsfct-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bsfct-navy-dark);
}

.bsfct-card__subtitle,
.bsfct-card__council,
.bsfct-card__location {
    margin: 3px 0 0;
}

.bsfct-card__subtitle {
    color: #1b56b9;
    font-size: 0.92rem;
    font-weight: 700;
}

.bsfct-card__council,
.bsfct-card__location {
    color: var(--bsfct-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.bsfct-card__actions {
    margin-top: 14px;
}

.bsfct-card__shop-button,
.bsfct-map-popup__button,
.bsfct-button--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eb4d3c 0%, #cf3528 100%);
    border: 0;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.bsfct-button--secondary {
    border-radius: 999px;
}

.bsfct-results__window-map-column {
    min-width: 0;
}

.bsfct-results__map-shell--window {
    padding: 12px;
}

.bsfct-results__map-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 4px 8px 10px;
}

.bsfct-results__map-summary {
    margin: 0;
    font-weight: 800;
    color: var(--bsfct-text);
}

.bsfct-results__map-note {
    margin: 4px 0 0;
    color: var(--bsfct-muted);
    font-size: 0.9rem;
}

.bsfct-results__map-canvas {
    height: 680px;
    border-radius: 18px;
    overflow: hidden;
}

.bsfct-map-popup {
    min-width: 250px;
}

.bsfct-map-popup__title {
    color: var(--bsfct-navy-dark);
    font-weight: 800;
}

.bsfct-results__pagination {
    margin-top: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--bsfct-border);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(18,57,127,0.06);
}

/* MOBILE */

.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-panel__copy--sidebar .bsfct-search-panel__title {
    font-size: 1.35rem;
}

@media (max-width: 1240px) {
    .bsfct-search-form__hero-grid,
    .bsfct-results__window-topbar .bsfct-search-form__stack {
        grid-template-columns: 1fr;
    }

    .bsfct-results__window-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .bsfct-search-panel--hero {
        padding: 28px 18px 18px;
        border-radius: 22px;
    }

    .bsfct-program-options--hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bsfct-results__window-topbar .bsfct-search-panel__copy-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .bsfct-finder--results-window {
        padding: 10px;
    }

    .bsfct-search-panel__copy--hero-visible .bsfct-search-panel__title {
        font-size: 2.2rem;
    }

    .bsfct-program-options--hero {
        grid-template-columns: 1fr;
    }

    .bsfct-card {
        padding: 16px 14px 14px;
    }

    .bsfct-card__body {
        padding-left: 0;
        padding-top: 46px;
    }

    .bsfct-card__header {
        gap: 10px;
    }

    .bsfct-results__window-header {
        grid-template-columns: 1fr;
    }

    .bsfct-results__map-meta {
        display: block;
    }

    .bsfct-results__map-canvas {
        height: 420px;
    }

}


/* Results-window background visual refresh */
.bsfct-finder--results-window {
    position: relative;
    min-height: 100vh;
    border-radius: 30px;
    background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

.bsfct-finder--results-window .bsfct-results__window-topbar {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    padding: 22px;
    overflow: hidden;
    border-radius: 26px;
    background:
        linear-gradient(90deg, rgba(247,250,255,0.98) 0%, rgba(247,250,255,0.94) 25%, rgba(247,250,255,0.82) 42%, rgba(247,250,255,0.35) 62%, rgba(247,250,255,0.16) 100%),
        url('results-hero-banner.png') center center / cover no-repeat;
    box-shadow: 0 16px 34px rgba(18, 57, 127, 0.08);
}

.bsfct-finder--results-window .bsfct-results__window-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.00) 55%, rgba(255,255,255,0.28) 100%);
    pointer-events: none;
}

.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-panel--sidebar {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 32px rgba(18, 57, 127, 0.12);
}

.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-panel--sidebar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(40vw, 560px);
    height: 130px;
    pointer-events: none;
    opacity: 0.22;
    background: right bottom / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 180' preserveAspectRatio='none'%3E%3Cpath fill='%23cfdcf0' d='M0 146 92 76 170 114 244 54 328 112 420 38 516 104 610 58 706 116 800 80V180H0Z'/%3E%3Cpath fill='%23b8cae6' d='M0 154 84 96 178 128 256 86 338 136 442 70 538 124 630 86 726 138 800 110V180H0Z'/%3E%3Cpath fill='%2395afcf' fill-opacity='.72' d='M0 165 70 140 120 144 160 110 196 138 236 102 286 140 334 110 386 150 444 94 510 138 566 112 616 150 676 118 734 152 800 128V180H0Z'/%3E%3C/svg%3E");
}

.bsfct-finder--results-window .bsfct-results__window-list-shell,
.bsfct-finder--results-window .bsfct-results__map-shell--window,
.bsfct-finder--results-window .bsfct-results__pagination {
    backdrop-filter: blur(2px);
}


@media (max-width: 1024px) {
    .bsfct-finder--results-window .bsfct-results__window-topbar {
        min-height: 180px;
        padding: 16px;
        background-position: center right 24%;
    }
}

@media (max-width: 640px) {
    .bsfct-finder--results-window .bsfct-results__window-topbar {
        min-height: 132px;
        padding: 12px;
        border-radius: 18px;
        background-position: center center;
    }
}

/* Test 7: results search/filter alignment to target mockup */
.bsfct-finder--results-window {
    --bsfct-blue: #0f3d96;
    --bsfct-blue-deep: #112b67;
    --bsfct-border: #d9e1ef;
    --bsfct-soft: #f3f6fb;
}

.bsfct-finder--results-window .bsfct-results__window-layout {
    display: grid;
    gap: 18px;
}

.bsfct-finder--results-window .bsfct-results__window-topbar {
    background: #f7f9fd;
    border: 1px solid var(--bsfct-border);
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: 0 10px 28px rgba(16, 41, 99, 0.06);
}

.bsfct-finder--results-window .bsfct-search-panel__copy--sidebar,
.bsfct-finder--results-window .bsfct-mobile-filters__toggle {
    display: none !important;
}

.bsfct-finder--results-window .bsfct-search-form--stacked,
.bsfct-finder--results-window .bsfct-search-form--stacked .bsfct-search-form__stack {
    display: block;
}

.bsfct-finder--results-window .js-bsfct-mobile-filters-content {
    display: grid !important;
    grid-template-columns: 180px 260px 150px minmax(340px, 1fr) 160px;
    gap: 14px;
    align-items: end;
}

.bsfct-finder--results-window .bsfct-filter-group,
.bsfct-finder--results-window .bsfct-search-form__actions {
    margin: 0;
}

.bsfct-finder--results-window .bsfct-filter-group--programs {
    min-width: 0;
}

.bsfct-finder--results-window .bsfct-filter-group__title,
.bsfct-finder--results-window .bsfct-field__label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #223c77;
}

.bsfct-finder--results-window .bsfct-field__with-icon,
.bsfct-finder--results-window .bsfct-field__control,
.bsfct-finder--results-window .bsfct-distance-options {
    min-height: 56px;
}

.bsfct-finder--results-window .bsfct-field__control {
    border-radius: 14px;
}

.bsfct-finder--results-window .bsfct-distance-options {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: #fff;
    border: 1px solid var(--bsfct-border);
    border-radius: 14px;
    overflow: hidden;
}

.bsfct-finder--results-window .bsfct-distance-option {
    min-height: 56px;
    padding: 0 18px;
    border: 0;
    border-right: 1px solid var(--bsfct-border);
    background: transparent;
    font-weight: 700;
    color: #223c77;
}

.bsfct-finder--results-window .bsfct-distance-option:last-child {
    border-right: 0;
}

.bsfct-finder--results-window .bsfct-distance-option.is-active {
    background: #2857da;
    color: #fff;
}

.bsfct-finder--results-window .bsfct-program-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__content {
    min-height: 56px;
    padding: 8px 10px;
    border: 1px solid var(--bsfct-border);
    border-radius: 14px;
    background: #fff;
}

.bsfct-finder--results-window .bsfct-program-option__body {
    gap: 8px;
    align-items: center;
}

.bsfct-finder--results-window .bsfct-program-option__icon-wrap {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

.bsfct-finder--results-window .bsfct-program-option__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bsfct-finder--results-window .bsfct-program-option__text {
    display: none;
}

.bsfct-finder--results-window .bsfct-program-option__input:checked + .bsfct-program-option__content,
.bsfct-finder--results-window .bsfct-program-option.is-selected .bsfct-program-option__content {
    border-color: #7ba2ff;
    box-shadow: inset 0 0 0 1px #7ba2ff;
}

.bsfct-finder--results-window .bsfct-search-form__actions {
    display: flex;
    align-items: end;
}

.bsfct-finder--results-window .bsfct-search-form__actions .bsfct-button {
    width: 100%;
    min-height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #c9513e 0%, #d86a4d 100%);
}

.bsfct-finder--results-window .bsfct-results__window-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 4px 2px;
}

.bsfct-finder--results-window .bsfct-results__window-intro-copy {
    text-align: center;
}

.bsfct-finder--results-window .bsfct-results__window-intro-title {
    margin: 0;
    color: #16397e;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
}

.bsfct-finder--results-window .bsfct-results__window-intro-meta {
    font-size: 14px;
    color: #60759b;
    white-space: nowrap;
}

.bsfct-finder--results-window .bsfct-results__new-search-link {
    color: #1e49af;
    font-weight: 700;
    text-decoration: none;
}

.bsfct-finder--results-window .bsfct-results__window-content {
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.bsfct-finder--results-window .bsfct-results__window-list-shell,
.bsfct-finder--results-window .bsfct-results__map-shell--window {
    background: #fff;
    border: 1px solid var(--bsfct-border);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(16, 41, 99, 0.05);
}

.bsfct-finder--results-window .bsfct-results__window-list-shell {
    padding: 18px 16px 16px;
}

.bsfct-finder--results-window .bsfct-results__window-header {
    display: none;
}

.bsfct-finder--results-window .bsfct-results__program-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 4px 8px 16px;
    border-bottom: 1px solid #e5ebf6;
    margin-bottom: 14px;
}

.bsfct-finder--results-window .bsfct-results__program-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
}

.bsfct-finder--results-window .bsfct-results__program-card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bsfct-finder--results-window .bsfct-results__program-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    color: #173b7a;
}

.bsfct-finder--results-window .bsfct-results__program-card-subtitle {
    margin: 6px 0 0;
    color: #3f5884;
    font-size: 14px;
}

.bsfct-finder--results-window .bsfct-results__list--window {
    max-height: 980px;
    overflow: auto;
    padding-right: 2px;
}

.bsfct-finder--results-window .bsfct-results__map-shell--window {
    padding: 16px;
}

.bsfct-finder--results-window .bsfct-results__map-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.bsfct-finder--results-window .bsfct-results__map-search-area {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #c8d6ef;
    background: #fff;
    color: #1a459b;
    font-weight: 700;
    cursor: pointer;
}

.bsfct-finder--results-window .bsfct-results__map-style-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 14px;
    background: #eef3fb;
}

.bsfct-finder--results-window .bsfct-results__map-style-button {
    min-width: 86px;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #203963;
    font-weight: 700;
    cursor: pointer;
}

.bsfct-finder--results-window .bsfct-results__map-style-button.is-active {
    background: #2054d4;
    color: #fff;
}

.bsfct-finder--results-window .bsfct-results__map-meta {
    margin-bottom: 12px;
}

.bsfct-finder--results-window .bsfct-results__map-canvas {
    min-height: 720px;
    border-radius: 18px;
    overflow: hidden;
}

@media (max-width: 1240px) {
    .bsfct-finder--results-window .js-bsfct-mobile-filters-content {
        grid-template-columns: 1fr 1fr;
    }

    .bsfct-finder--results-window .bsfct-filter-group--programs,
    .bsfct-finder--results-window .bsfct-search-form__actions {
        grid-column: 1 / -1;
    }

    .bsfct-finder--results-window .bsfct-results__window-content {
        grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    .bsfct-finder--results-window .bsfct-results__window-intro {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .bsfct-finder--results-window .bsfct-results__window-intro-copy {
        text-align: left;
    }

    .bsfct-finder--results-window .bsfct-results__window-content {
        grid-template-columns: 1fr;
    }

    .bsfct-finder--results-window .bsfct-results__map-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .bsfct-finder--results-window .js-bsfct-mobile-filters-content {
        grid-template-columns: 1fr;
    }

    .bsfct-finder--results-window .bsfct-program-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bsfct-finder--results-window .bsfct-results__window-intro-title {
        font-size: 22px;
    }

    .bsfct-finder--results-window .bsfct-results__map-search-area,
    .bsfct-finder--results-window .bsfct-results__map-style-toggle {
        width: 100%;
    }

    .bsfct-finder--results-window .bsfct-results__map-style-toggle {
        justify-content: stretch;
    }

    .bsfct-finder--results-window .bsfct-results__map-style-button {
        flex: 1 1 0;
    }
}


/* Test 8: compact full program cards in results filter */
.bsfct-finder--results-window .bsfct-filter-group--programs {
    width: auto !important;
    min-width: 0 !important;
    justify-self: start !important;
}

.bsfct-finder--results-window .bsfct-filter-group--programs .bsfct-program-options {
    display: grid !important;
    grid-template-columns: repeat(5, 92px) !important;
    grid-auto-columns: 92px !important;
    gap: 4px !important;
    width: max-content !important;
    max-width: none !important;
    justify-content: start !important;
    align-items: stretch !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    margin: 0 !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__content {
    box-sizing: border-box !important;
    width: 92px !important;
    min-width: 92px !important;
    height: 88px !important;
    min-height: 88px !important;
    padding: 7px 5px 6px !important;
    overflow: visible !important;
    border-radius: 11px !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    text-align: center !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__icon-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    flex: 0 0 43px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__icon {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 46px !important;
    max-height: 43px !important;
    object-fit: contain !important;
    object-position: center !important;
    overflow: visible !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__text {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 0 !important;
    gap: 0 !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__title {
    display: block !important;
    margin: 0 !important;
    color: #17386f !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__description {
    display: block !important;
    margin: 2px 0 0 !important;
    color: #647592 !important;
    font-size: 8px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__content::before {
    top: 7px !important;
    left: 7px !important;
    width: 10px !important;
    height: 10px !important;
}

@media (max-width: 1180px) {
    .bsfct-finder--results-window .bsfct-filter-group--programs .bsfct-program-options {
        grid-template-columns: repeat(5, 84px) !important;
        grid-auto-columns: 84px !important;
    }
    .bsfct-finder--results-window .bsfct-program-option--logo-tile,
    .bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__content {
        width: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
    }
}

@media (max-width: 760px) {
    .bsfct-finder--results-window .bsfct-filter-group--programs .bsfct-program-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .bsfct-finder--results-window .bsfct-program-option--logo-tile,
    .bsfct-finder--results-window .bsfct-program-option--logo-tile .bsfct-program-option__content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* Test 10: place Show Results beneath Search Again and remove New Search spacing */
.bsfct-finder--results-window .js-bsfct-mobile-filters-content {
    grid-template-columns: 180px 260px 150px minmax(340px, 1fr);
    grid-template-rows: auto auto;
    align-items: end;
}

.bsfct-finder--results-window .bsfct-search-form__actions {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 180px !important;
    justify-self: stretch !important;
    align-self: start !important;
    margin-top: 0 !important;
}

.bsfct-finder--results-window .bsfct-search-form__actions .bsfct-button {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
}

.bsfct-finder--results-window .bsfct-results__window-intro {
    position: relative;
    display: block;
    min-height: 34px;
    padding: 2px 170px 2px 0;
}

.bsfct-finder--results-window .bsfct-results__window-intro-copy {
    text-align: center;
}

.bsfct-finder--results-window .bsfct-results__window-intro-meta {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.bsfct-finder--results-window .bsfct-search-panel__new-search,
.bsfct-finder--results-window .bsfct-results__new-search-link {
    display: none !important;
}

@media (max-width: 1240px) {
    .bsfct-finder--results-window .js-bsfct-mobile-filters-content {
        grid-template-columns: 180px 260px minmax(340px, 1fr);
        grid-template-rows: auto auto;
    }

    .bsfct-finder--results-window .bsfct-search-form__actions {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
}

@media (max-width: 760px) {
    .bsfct-finder--results-window .js-bsfct-mobile-filters-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .bsfct-finder--results-window .bsfct-search-form__actions {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    .bsfct-finder--results-window .bsfct-results__window-intro {
        padding-right: 0;
    }

    .bsfct-finder--results-window .bsfct-results__window-intro-meta {
        position: static;
        transform: none;
        margin-top: 6px;
        text-align: center;
    }
}


/* Test 11: move distance/results controls into the map header */
.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance,
.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--per-page {
    display: none !important;
}

.bsfct-finder--results-window .bsfct-results__map-filter-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 2px 4px 10px;
}

.bsfct-finder--results-window .bsfct-map-filters {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.bsfct-finder--results-window .bsfct-map-filter-group {
    display: grid;
    gap: 6px;
}

.bsfct-finder--results-window .bsfct-map-filter-label {
    display: block;
    color: #263b62;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.bsfct-finder--results-window .bsfct-map-distance-options {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #d5dfef;
    border-radius: 12px;
    background: #fff;
}

.bsfct-finder--results-window .bsfct-map-distance-option {
    min-width: 92px;
    min-height: 44px;
    padding: 0 15px;
    border: 0;
    border-right: 1px solid #d5dfef;
    background: #fff;
    color: #20365f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.bsfct-finder--results-window .bsfct-map-distance-option:last-child {
    border-right: 0;
}

.bsfct-finder--results-window .bsfct-map-distance-option.is-active {
    background: #2858d8;
    color: #fff;
}

.bsfct-finder--results-window .bsfct-map-per-page {
    min-width: 150px;
    min-height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid #d5dfef;
    border-radius: 12px;
    background: #fff;
    color: #20365f;
    font-size: 13px;
    font-weight: 700;
}

.bsfct-finder--results-window .bsfct-results__map-controls {
    margin-top: 0;
}

@media (max-width: 720px) {
    .bsfct-finder--results-window .bsfct-map-filters {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bsfct-finder--results-window .bsfct-map-distance-options,
    .bsfct-finder--results-window .bsfct-map-per-page {
        width: 100%;
    }

    .bsfct-finder--results-window .bsfct-map-distance-option {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Test 12: compact single-row map toolbar */
.bsfct-finder--results-window .bsfct-results__map-filter-row,
.bsfct-finder--results-window .bsfct-results__map-controls,
.bsfct-finder--results-window .bsfct-results__map-meta {
    display: none !important;
}

.bsfct-finder--results-window .bsfct-results__map-toolbar {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    gap: 18px;
    align-items: end;
    padding: 2px 4px 12px;
}

.bsfct-finder--results-window .bsfct-results__map-toolbar-count {
    align-self: center;
    justify-self: start;
}

.bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-results__map-summary {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #243a65;
    white-space: nowrap;
}

.bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-map-filters {
    justify-self: center;
    display: flex;
    align-items: end;
    gap: 16px;
    flex-wrap: nowrap;
}

.bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-results__map-style-toggle {
    justify-self: end;
    align-self: center;
}

.bsfct-finder--results-window .bsfct-results__map-note--unmapped {
    margin: 0 4px 10px;
    font-size: 12px;
    color: #6b7891;
}

@media (max-width: 960px) {
    .bsfct-finder--results-window .bsfct-results__map-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .bsfct-finder--results-window .bsfct-results__map-toolbar-count,
    .bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-map-filters,
    .bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-results__map-style-toggle {
        justify-self: stretch;
    }

    .bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-map-filters {
        justify-content: space-between;
    }

    .bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-results__map-style-toggle {
        width: max-content;
    }
}

@media (max-width: 640px) {
    .bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-map-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bsfct-finder--results-window .bsfct-map-distance-options,
    .bsfct-finder--results-window .bsfct-map-per-page {
        width: 100%;
    }
}


/* Test 13: inline Show Results with program tiles; remove large results summary heading */
.bsfct-finder--results-window .js-bsfct-mobile-filters-content {
    display: grid !important;
    grid-template-columns: 180px auto 180px !important;
    grid-template-rows: auto !important;
    gap: 14px !important;
    align-items: end !important;
    justify-content: start !important;
}

.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack > .bsfct-filter-group:not(.bsfct-filter-group--programs):not(.bsfct-filter-group--distance):not(.bsfct-filter-group--per-page) {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 180px !important;
}

.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--programs {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    align-self: end !important;
}

.bsfct-finder--results-window .bsfct-search-form__actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 180px !important;
    align-self: end !important;
    justify-self: start !important;
    margin: 0 !important;
}

.bsfct-finder--results-window .bsfct-search-form__actions .bsfct-button {
    width: 180px !important;
    min-height: 44px !important;
    height: 44px !important;
}

.bsfct-finder--results-window .bsfct-results__window-intro--count-only {
    min-height: 24px !important;
    padding: 0 2px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.bsfct-finder--results-window .bsfct-results__window-intro--count-only .bsfct-results__window-intro-meta {
    position: static !important;
    transform: none !important;
    font-size: 13px !important;
    color: #60759b !important;
}

@media (max-width: 980px) {
    .bsfct-finder--results-window .js-bsfct-mobile-filters-content {
        grid-template-columns: 180px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
    }

    .bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--programs {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .bsfct-finder--results-window .bsfct-search-form__actions {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 180px !important;
    }
}

@media (max-width: 760px) {
    .bsfct-finder--results-window .js-bsfct-mobile-filters-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack > .bsfct-filter-group:not(.bsfct-filter-group--programs):not(.bsfct-filter-group--distance):not(.bsfct-filter-group--per-page),
    .bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--programs,
    .bsfct-finder--results-window .bsfct-search-form__actions {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    .bsfct-finder--results-window .bsfct-search-form__actions .bsfct-button {
        width: 100% !important;
    }
}


/* Test 14: reduce inline Show Results button size and remove right-side result count */
.bsfct-finder--results-window .js-bsfct-mobile-filters-content {
    grid-template-columns: 180px auto 146px !important;
}

.bsfct-finder--results-window .bsfct-search-form__actions {
    width: 146px !important;
    max-width: 146px !important;
}

.bsfct-finder--results-window .bsfct-search-form__actions .bsfct-button {
    width: 146px !important;
    min-width: 146px !important;
    max-width: 146px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    line-height: 42px !important;
    white-space: nowrap !important;
}

@media (max-width: 980px) {
    .bsfct-finder--results-window .js-bsfct-mobile-filters-content {
        grid-template-columns: 180px minmax(0, 1fr) !important;
    }

    .bsfct-finder--results-window .bsfct-search-form__actions {
        width: 146px !important;
        max-width: 146px !important;
    }

    .bsfct-finder--results-window .bsfct-search-form__actions .bsfct-button {
        width: 146px !important;
        min-width: 146px !important;
        max-width: 146px !important;
    }
}


/* Test 15: ZIP label and Show Results sized to match ZIP control */
.bsfct-finder--results-window .js-bsfct-mobile-filters-content {
    grid-template-columns: 180px auto 180px !important;
}

.bsfct-finder--results-window .bsfct-search-form__actions {
    width: 180px !important;
    max-width: 180px !important;
}

.bsfct-finder--results-window .bsfct-search-form__actions .bsfct-button {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    line-height: 56px !important;
    border-radius: 14px !important;
}

@media (max-width: 980px) {
    .bsfct-finder--results-window .js-bsfct-mobile-filters-content {
        grid-template-columns: 180px minmax(0, 1fr) !important;
    }

    .bsfct-finder--results-window .bsfct-search-form__actions,
    .bsfct-finder--results-window .bsfct-search-form__actions .bsfct-button {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
    }
}


/* Test 16: make Show Results match the desktop ZIP tile */
@media (min-width: 981px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack.js-bsfct-mobile-filters-content {
        grid-template-columns: 180px auto 180px !important;
        gap: 14px !important;
        justify-content: start !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions {
        grid-column: 3 !important;
        grid-row: 1 !important;
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        justify-self: start !important;
        align-self: end !important;
        margin: 0 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions .bsfct-button {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 18px !important;
        line-height: 56px !important;
        border-radius: 14px !important;
        white-space: nowrap !important;
    }
}


/* Test 17: move Distance after Program and before Show Results */
@media (min-width: 981px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack.js-bsfct-mobile-filters-content {
        grid-template-columns: 180px auto 292px 180px !important;
        gap: 14px !important;
        justify-content: start !important;
        align-items: end !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack > .bsfct-filter-group:not(.bsfct-filter-group--programs):not(.bsfct-filter-group--distance):not(.bsfct-filter-group--per-page) {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--programs {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance {
        display: grid !important;
        grid-column: 3 !important;
        grid-row: 1 !important;
        width: 292px !important;
        max-width: 292px !important;
        gap: 6px !important;
        align-self: end !important;
        justify-self: start !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance .bsfct-distance-options {
        width: 292px !important;
        min-height: 56px !important;
        height: 56px !important;
        padding: 3px !important;
        gap: 3px !important;
        box-sizing: border-box !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance .bsfct-distance-option {
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions {
        grid-column: 4 !important;
        grid-row: 1 !important;
    }
}

/* Distance now lives in the top search row. */

/* Keep the relocated Distance control available on tablet/mobile too. */
.bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance {
    display: grid !important;
}

@media (min-width: 761px) and (max-width: 980px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack.js-bsfct-mobile-filters-content {
        grid-template-columns: 180px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 14px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 292px !important;
        max-width: 100% !important;
        justify-self: start !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance .bsfct-distance-options {
        width: 292px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 760px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: none !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance .bsfct-distance-options {
        width: 100% !important;
        max-width: none !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions,
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions .bsfct-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* Test 19: Search Results is now the first content in the results column; results-per-page UI removed. */
.bsfct-finder--results-window .bsfct-results__window-header {
    margin-top: 0 !important;
}

/* With the center filter removed, keep map count left and Map/Satellite toggle right. */
.bsfct-finder--results-window .bsfct-results__map-toolbar {
    grid-template-columns: minmax(150px, 1fr) auto !important;
}

.bsfct-finder--results-window .bsfct-results__map-toolbar .bsfct-results__map-style-toggle {
    grid-column: 2 !important;
    justify-self: end !important;
}

@media (max-width: 960px) {
    .bsfct-finder--results-window .bsfct-results__map-toolbar {
        grid-template-columns: 1fr auto !important;
    }
}

/* Test 20: remove decorative header artwork and tighten spacing above filters. */
.bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar {
    min-height: 0 !important;
    padding: 10px 20px !important;
    align-items: center !important;
    background: #f7f9fd !important;
    background-image: none !important;
}

.bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar::before,
.bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-panel--sidebar::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

@media (max-width: 1024px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar {
        min-height: 0 !important;
        padding: 10px 16px !important;
    }
}

@media (max-width: 640px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar {
        min-height: 0 !important;
        padding: 8px 12px !important;
    }
}

/* Test 21: move the program logo to the lower-right of each result card and enlarge it. */
.bsfct-finder.bsfct-finder--results-window .bsfct-card__program-icon-wrap {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 1;
}

.bsfct-finder.bsfct-finder--results-window .bsfct-card__program-icon {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* The logo no longer participates in the header flex row. */
.bsfct-finder.bsfct-finder--results-window .bsfct-card__header {
    gap: 0 !important;
}

@media (max-width: 767px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-card__program-icon-wrap {
        width: 58px !important;
        height: 58px !important;
        flex-basis: 58px !important;
        right: 4px !important;
        bottom: 66px !important;
    }
}


/* Test 23: use a compact dropdown for program selection on the initial hero page. */
.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-field--program-hero .bsfct-program-picker {
    width: 100%;
    min-width: 0;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-field--program-hero .bsfct-program-picker__trigger {
    min-height: 68px;
    border: 1px solid var(--bsfct-border);
    border-radius: 16px;
    box-shadow: none;
    padding: 10px 16px;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-field--program-hero .bsfct-program-picker__menu {
    max-height: 390px;
    overflow-y: auto;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-field--program-hero .bsfct-program-picker__option {
    grid-template-columns: 28px 42px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-field--program-hero .bsfct-program-picker__option-check {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

@media (max-width: 520px) {
    .bsfct-finder:not(.bsfct-finder--results-window) .bsfct-field--program-hero .bsfct-program-picker__menu {
        max-height: 330px;
    }
}


/* Test.30: program-specific front pages match the main compact front page, minus program selection. */
.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-search-form__hero-grid--single-program {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    align-items: stretch !important;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--program-hero {
    display: none !important;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero,
.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-search-form__actions--hero {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero .bsfct-field__with-icon,
.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero .bsfct-field__control,
.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-search-form__actions--hero .bsfct-button--hero {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 78px !important;
    min-height: 78px !important;
    border-radius: 20px !important;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero .bsfct-field__with-icon {
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(13, 39, 84, 0.12) !important;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero .bsfct-field__control {
    padding: 0 36px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(13, 39, 84, 0.12) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(17px, 3vw, 22px) !important;
    font-weight: 700 !important;
    color: #223d70 !important;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero .bsfct-field__control::placeholder {
    color: #223d70 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-search-form__actions--hero .bsfct-button--hero {
    justify-content: center !important;
    padding: 0 28px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(17px, 3vw, 22px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

@media (max-width: 768px) {
    .bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-search-form__hero-grid--single-program {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero .bsfct-field__with-icon,
    .bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero .bsfct-field__control,
    .bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-search-form__actions--hero .bsfct-button--hero {
        height: 72px !important;
        min-height: 72px !important;
        border-radius: 18px !important;
    }

    .bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-field--zip-hero .bsfct-field__control,
    .bsfct-finder:not(.bsfct-finder--results-window) .bsfct-search-panel--hero .bsfct-search-form--locked-program .bsfct-search-form__actions--hero .bsfct-button--hero {
        padding-left: 24px !important;
        padding-right: 24px !important;
        font-size: clamp(16px, 3vw, 20px) !important;
    }
}


/* Test 32: make results-page Show Results CTA clearly active */
.bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions .bsfct-button {
    background: linear-gradient(180deg, #b33a32 0%, #982b27 100%) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid #8f2723 !important;
    box-shadow: 0 5px 12px rgba(120, 28, 24, 0.22) !important;
    cursor: pointer !important;
}

.bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions .bsfct-button:hover,
.bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions .bsfct-button:focus {
    background: linear-gradient(180deg, #9f2f29 0%, #84231f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(120, 28, 24, 0.30) !important;
}


/* Test 33: mobile results filter collapse/reflow + distance badge top-right */
@media (max-width: 768px) {
    .bsfct-finder.bsfct-finder--results-window {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-panel--sidebar {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Show the compact filter header on mobile. */
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-panel__copy--sidebar {
        display: block !important;
        padding: 8px !important;
        background: #ffffff !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-mobile-filters__toggle {
        display: flex !important;
        width: 100% !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        border: 1px solid #d5deeb !important;
        border-radius: 10px !important;
        background: #f7f9fd !important;
        color: #18386f !important;
        box-sizing: border-box !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-mobile-filters__toggle-copy {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-mobile-filters__toggle-title {
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-mobile-filters__toggle-summary {
        display: block !important;
        max-width: calc(100vw - 90px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        color: #60708a !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-mobile-filters__toggle-icon {
        display: block !important;
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px 4px 0 !important;
        border-right: 2px solid currentColor !important;
        border-bottom: 2px solid currentColor !important;
        transform: rotate(45deg) !important;
        transition: transform .2s ease !important;
        flex: 0 0 auto !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-search-panel--sidebar:not(.is-mobile-collapsed) .bsfct-mobile-filters__toggle-icon {
        transform: rotate(225deg) !important;
        margin-bottom: -4px !important;
    }

    /* Critical: allow the JS/HTML hidden state to actually collapse the filters. */
    .bsfct-finder.bsfct-finder--results-window .js-bsfct-mobile-filters-content[hidden] {
        display: none !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-search-form--stacked {
        padding: 0 !important;
    }

    /* Expanded mobile layout: ZIP + Distance across the first row, programs below, CTA full width. */
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack.js-bsfct-mobile-filters-content:not([hidden]) {
        display: grid !important;
        grid-template-columns: minmax(105px, .75fr) minmax(205px, 1.6fr) !important;
        grid-template-rows: auto auto auto !important;
        gap: 9px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        align-items: end !important;
        box-sizing: border-box !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack > .bsfct-filter-group:not(.bsfct-filter-group--programs):not(.bsfct-filter-group--distance):not(.bsfct-filter-group--per-page) {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--programs {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-field__label,
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group__title {
        margin: 0 0 4px !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-field__with-icon,
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-field__control {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-distance-options {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 42px !important;
        height: 42px !important;
        gap: 3px !important;
        padding: 2px !important;
        box-sizing: border-box !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-distance-option {
        min-width: 0 !important;
        min-height: 36px !important;
        height: 36px !important;
        padding: 0 4px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-options {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile,
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile .bsfct-program-option__content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 64px !important;
        min-height: 64px !important;
        box-sizing: border-box !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile .bsfct-program-option__content {
        padding: 6px 6px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile .bsfct-program-option__body {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 6px !important;
        align-items: center !important;
        text-align: left !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile .bsfct-program-option__icon-wrap {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        margin: 0 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile .bsfct-program-option__icon {
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile .bsfct-program-option__text {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile .bsfct-program-option__title {
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-program-option--logo-tile .bsfct-program-option__description {
        font-size: 8px !important;
        white-space: nowrap !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions .bsfct-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
    }

    /* Result cards: rank at top-left, distance at top-right. */
    .bsfct-finder.bsfct-finder--results-window .bsfct-card {
        position: relative !important;
        grid-template-columns: 28px minmax(0, 1fr) !important;
        overflow: hidden !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__rank {
        grid-column: 1 !important;
        grid-row: 1 !important;
        z-index: 3 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__distance-badge {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 62px !important;
        min-height: 30px !important;
        padding: 4px 9px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        z-index: 3 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__body {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 360px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack.js-bsfct-mobile-filters-content:not([hidden]) {
        grid-template-columns: 1fr !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__stack > .bsfct-filter-group:not(.bsfct-filter-group--programs):not(.bsfct-filter-group--distance):not(.bsfct-filter-group--per-page),
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--distance,
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-filter-group--programs,
    .bsfct-finder.bsfct-finder--results-window .bsfct-results__window-topbar .bsfct-search-form__actions {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}


/* Test 34: mobile result cards reserve space for rank + distance badges */
@media (max-width: 767px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-card {
        min-height: 230px !important;
        padding-top: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 12px !important;
        padding-left: 12px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__body {
        padding-top: 40px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__header-copy,
    .bsfct-finder.bsfct-finder--results-window .bsfct-card__council,
    .bsfct-finder.bsfct-finder--results-window .bsfct-card__location,
    .bsfct-finder.bsfct-finder--results-window .bsfct-card__actions {
        position: relative !important;
        z-index: 1 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__rank {
        top: 12px !important;
        left: 12px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__distance-badge {
        top: 12px !important;
        right: 12px !important;
    }
}


/* Test 35: mobile result cards tighten height under the CTA */
@media (max-width: 767px) {
    .bsfct-finder.bsfct-finder--results-window .bsfct-card {
        min-height: 0 !important;
        height: auto !important;
        padding-bottom: 10px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__body {
        padding-top: 34px !important;
        gap: 5px !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__actions {
        margin-top: 2px !important;
        margin-bottom: 0 !important;
    }

    .bsfct-finder.bsfct-finder--results-window .bsfct-card__actions .bsfct-button {
        margin-bottom: 0 !important;
    }
}
