
/* Mobile branch jump menu. Hidden on tablet/desktop. */
.blm-mobile-branch-nav {
    display: none;
}

@media (max-width: 767px) {
    .blm-mobile-branch-nav {
        display: block;
        width: 100%;
        margin: 0 0 18px;
        padding: 0;
    }

    .blm-mobile-branch-select {
        display: block;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 10px 42px 10px 14px;
        border: 1px solid #d8d8d8;
        border-radius: 0;
        background-color: #ffffff;
        color: #222222;
        font: inherit;
        font-size: 16px;
        line-height: 1.3;
        box-sizing: border-box;
    }

    .blm-card {
        scroll-margin-top: 110px;
    }
}

.blm-grid {
    display: grid;
    gap: 18px;
    width: 100%;
    background: #f7f7f7;
}

.blm-grid.blm-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.blm-grid.blm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blm-grid.blm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blm-grid.blm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blm-grid.blm-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.blm-grid.blm-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.blm-card {
    min-width: 0;
    overflow: hidden;
    background: #ededed;
    border: none;
}

.blm-photo {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blm-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blm-content {
    padding: 22px 18px 28px;
    font-size: var(--blm-body-size, 16px);
    line-height: 1.45;
    background: #ededed;
}

.blm-title {
    margin: 0 0 2px;
    text-align: center;
    font-size: var(--blm-title-size, 22px);
    line-height: 1.25;
    font-weight: 700;
}

.blm-subtitle {
    margin: 8px 0 14px;
    min-height: 1.35em;
    text-align: center;
    font-size: var(--blm-subtitle-size, 12px);
    line-height: 1.35;
}

.blm-subtitle-empty {
    visibility: hidden;
}

.blm-address {
    margin-top: 12px;
}

.blm-tel {
    margin-top: 22px;
}

.blm-tel a {
    color: inherit;
    text-decoration: none;
}

.blm-tel a:hover,
.blm-tel a:focus {
    text-decoration: underline;
}

.blm-hours {
    margin-top: 28px;
}

@media (max-width: 1100px) {
    .blm-grid.blm-cols-4,
    .blm-grid.blm-cols-5,
    .blm-grid.blm-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .blm-grid.blm-cols-3,
    .blm-grid.blm-cols-4,
    .blm-grid.blm-cols-5,
    .blm-grid.blm-cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .blm-grid,
    .blm-grid.blm-cols-1,
    .blm-grid.blm-cols-2,
    .blm-grid.blm-cols-3,
    .blm-grid.blm-cols-4,
    .blm-grid.blm-cols-5,
    .blm-grid.blm-cols-6 {
        grid-template-columns: 1fr;
    }

    .blm-content {
        padding: 20px 16px 24px;
    }
}

/* Direction icons are intentionally mobile-only. */
.blm-map-links {
    display: none;
}

@media (max-width: 767px) {
    .blm-map-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        width: 100%;
        margin: 18px 0 0;
        padding: 0 0 22px;
        background: #ededed;
    }

    .blm-map-links-count-1 {
        grid-template-columns: 1fr;
    }

    .blm-map-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 60px;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        border-radius: 0;
        text-align: center;
        text-decoration: none;
        line-height: 1;
        box-shadow: none;
        transition: transform 0.15s ease, opacity 0.2s ease;
    }

    .blm-map-button:hover,
    .blm-map-button:focus {
        opacity: 0.95;
        transform: translateY(-1px);
        text-decoration: none;
    }

    .blm-map-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
    }

    .blm-brand-logo-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
