/* ---------- branch rows ---------- */
.branch-rows {
    display: flex;
    flex-direction: column;
}

.branch-row {
    display: grid;
    grid-template-columns: 0.85fr 1fr 0.85fr;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--ink-faint);
}

.branch-row:first-child {
    padding-top: 0;
}

.branch-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (max-width: 1000px) {
    .branch-row {
        grid-template-columns: 1fr;
    }
}

.branch-row__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--paper-alt);
}

.branch-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-row__media-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-soft);
}

.branch-row__media-empty svg {
    width: 26px;
    height: 26px;
    opacity: .5;
}

.branch-row__media-empty span {
    font-size: 11.5px;
    font-weight: 600;
}

.branch-row__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.branch-row__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ink);
    margin: 0;
}

.branch-row__title-index {
    color: var(--ink-soft);
    font-weight: 700;
}

.branch-row__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 4px;
}

.branch-row__address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.branch-row__address svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 1px;
    color: var(--accent-text);
}

.branch-row__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

.schedule-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.schedule-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-chip {
    border: 1px solid var(--ink-faint);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    background: var(--paper);
    min-width: 108px;
}

.schedule-chip__day {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.schedule-chip__time {
    font-size: 11.5px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.schedule-chip__slot:not(:last-child) {
    margin-bottom: 5px;
}

.schedule-chip__level {
    white-space: nowrap;
    margin-left: 3px;
}

.branch-row__actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

@media (max-width: 400px) {
    /* Two .btn--sm side by side need ~318px (measured) against ~288-368px of
       content width in this range - too tight to trust flex-wrap, which would
       drop one button onto its own row without stretching it (reads as broken,
       not intentional). Stack them instead; 400px leaves clear margin above
       the ~318px requirement, unlike a razor-thin cutoff at exactly 375px. */
    .branch-row__actions {
        flex-direction: column;
    }

    .branch-row__actions .btn {
        width: 100%;
    }
}

.branch-row__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-alt);
    min-height: 200px;
}

.branch-row__map iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 0;
    display: block;
}

.branch-row__map-empty {
    border: 1px dashed var(--ink-faint);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-soft);
    padding: 24px;
    text-align: center;
}

.branch-row__map-empty svg {
    width: 26px;
    height: 26px;
    opacity: .5;
}

.branch-row__map-empty span {
    font-size: 11.5px;
    font-weight: 600;
}
