/* TOTO Branches widget: tabbed layout matching design */

.toto-branches-section { width: 100%; }

.toto-branches-title {
    font-family: 'GothamSSm', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    color: #101010;
    text-align: center;
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.toto-branches-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.toto-branches-tab-btn {
    border: 0;
    border-radius: 999px;
    background: #ececec;
    color: #141414;
    font-family: 'GothamSSm', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    padding: 10px 18px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.toto-branches-tab-btn.is-active {
    background: #0d0d0d;
    color: #fff;
}

.toto-branches-panel { display: none; }
.toto-branches-panel.is-active { display: block; }

.toto-branches-grid {
    display: grid;
    grid-template-columns: repeat(var(--toto-branch-cols, 4), minmax(0, 1fr));
    gap: 14px;
}

.toto-branch-card {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 2px;
    padding: 18px 16px;
    min-height: 120px;
}

.toto-branch-card.is-featured {
    border-color: #dedede;
}

.toto-branch-name {
    margin: 0 0 14px;
    font-family: 'GothamSSm', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.04rem;
    font-weight: 700;
    color: #161616;
    line-height: 1.3;
}

.toto-branch-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.toto-branch-pin {
    display: inline-flex;
    color: #6e6e6e;
    margin-top: 1px;
}

.toto-branch-pin svg { display: block; }

.toto-branch-addr { display: flex; flex-direction: column; gap: 3px; }

.toto-branch-label {
    font-family: 'GothamSSm', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f0f0f;
    line-height: 1;
}

.toto-branch-city {
    font-size: 0.92rem;
    color: #707070;
    line-height: 1.35;
}

@media (max-width: 1024px) {
    .toto-branches-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .toto-branches-tabs { justify-content: flex-start; }
    .toto-branches-tab-btn { padding: 9px 14px; font-size: 0.8rem; }
    .toto-branches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toto-branch-name { font-size: 0.95rem; }
}

@media (max-width: 520px) {
    .toto-branches-grid { grid-template-columns: 1fr; }
}
