/* ===== 전 지점 안내 (/branches) =====
 * Figma 캡처(1440 폭) 기준. 모든 규칙을 .branches-page 로 스코핑한다 — 사이트 CSS(index2 · common · reset)와 같이 로드되므로
 * 래퍼 없이 쓰면 헤더·푸터를 건드린다. 헤더는 position:fixed 라 히어로 위쪽 여백에 헤더 높이를 더한다
 * (데스크탑 120 = 띠 배너 45 + GNB 75, 모바일 133 — gnb.css).
 * 가로 폭·좌우 여백은 다른 서브 페이지처럼 섹션 안 .v2Container.container 가 맡는다(v2/common.css:
 * 최대 1400px 가운데 정렬, 767px 이하 좌우 16px). 여기서는 세로 여백만 준다.
 */
.branches-page {
    --bp-accent: #7d1730;      /* 브랜드 버건디 (gnb.css 와 같음) */
    --bp-ink: #1a1a1a;
    --bp-sub: #555;
    --bp-mute: #6b6b6b;        /* 흰 배경 5.3:1 */
    --bp-line: #e5e5e5;
    --bp-beige: #f6f3f0;
    --bp-dark: #2b2223;
    --bp-header: 120px;
    display: block;
    color: var(--bp-ink);
    font-weight: 400;          /* reset.css 의 300 되돌림 */
    word-break: keep-all;
}
.branches-page, .branches-page * { box-sizing: border-box; }
.branches-page [hidden] { display: none !important; }   /* display 를 준 요소도 hidden 으로 숨기기 위해 */

/* ---------- 히어로 ---------- */
.branches-page .bp-hero {
    padding: calc(var(--bp-header) + 118px) 0 120px;
    background: var(--bp-beige);
    text-align: center;
}
.branches-page .bp-kicker {
    margin: 0;
    color: var(--bp-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}
.branches-page .bp-title {
    margin: 14px 0 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.branches-page .bp-lead {
    margin: 16px 0 0;
    color: var(--bp-sub);
    font-size: 15px;
    line-height: 1.6;
    text-wrap: pretty;
}

.branches-page .bp-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(720px, 100%);
    height: 56px;
    margin: 36px auto 0;
    padding: 0 24px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #fff;
}
.branches-page .bp-search:focus-within { border-color: var(--bp-accent); }
.branches-page .bp-search i { font-size: 18px; color: var(--bp-mute); }
.branches-page .bp-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--bp-ink);
}
.branches-page .bp-search input::placeholder { color: #8a8a8a; }

.branches-page .bp-near {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 4px 6px;
    border: 0;
    background: none;
    color: var(--bp-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.branches-page .bp-near i { font-size: 16px; }
.branches-page .bp-near:hover { text-decoration: underline; text-underline-offset: 3px; }
.branches-page .bp-near:disabled { opacity: .6; cursor: default; }
.branches-page .bp-near-result {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--bp-sub);
    font-size: 13px;
}
.branches-page .bp-near-result__label { font-weight: 700; color: var(--bp-ink); }
.branches-page .bp-near-result__item {
    padding: 4px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #fff;
    color: var(--bp-ink);
    text-decoration: none;
}
.branches-page .bp-near-result__item:hover { border-color: var(--bp-accent); color: var(--bp-accent); }

.branches-page .bp-stats {
    margin: 22px 0 0;
    color: var(--bp-mute);
    font-size: 13px;
}

/* ---------- 지역별 목록 ---------- */
.branches-page .bp-list {
    padding: 70px 0 90px;
}
.branches-page .bp-region {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 40px 0 46px;
    border-bottom: 1px solid var(--bp-line);
}
.branches-page .bp-region:first-child { border-top: 1px solid var(--bp-dark); }
.branches-page .bp-region__name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.branches-page .bp-region__count {
    margin: 8px 0 0;
    color: var(--bp-mute);
    font-size: 13px;
}
.branches-page .bp-region__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.branches-page .bp-region__list > li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.branches-page .bp-branch {
    padding-bottom: 2px;
    border-bottom: 1px solid #cfcfcf;
    color: var(--bp-ink);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, border-color .2s;
}
.branches-page .bp-branch:hover { color: var(--bp-accent); border-color: var(--bp-accent); }
.branches-page .bp-badge {
    padding: 2px 8px;
    border: 1px solid var(--bp-accent);
    border-radius: 999px;
    color: var(--bp-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.branches-page .bp-empty {
    margin: 0;
    padding: 80px 0;
    border-top: 1px solid var(--bp-dark);
    color: var(--bp-mute);
    font-size: 15px;
    text-align: center;
}

/* ---------- 마무리 행동 ---------- */
.branches-page .bp-cta {
    padding: 110px 0;
    background: var(--bp-dark);
    color: #fff;
}
.branches-page .bp-cta__title {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.branches-page .bp-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    height: 60px;
    margin-top: 40px;
    padding: 0 28px;
    border-radius: 4px;
    background: var(--bp-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.branches-page .bp-cta__btn:hover { background: #651226; }

/* ---------- 태블릿 · 모바일 ---------- */
@media (max-width: 1199px) {
    .branches-page { --bp-header: 133px; }
    .branches-page .bp-list { padding: 56px 0 72px; }
    .branches-page .bp-region { grid-template-columns: 200px 1fr; }
    .branches-page .bp-region__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .branches-page .bp-cta { padding: 90px 0; }
}
@media (max-width: 767px) {
    .branches-page .bp-hero { padding: calc(var(--bp-header) + 56px) 0 64px; }
    .branches-page .bp-title { font-size: 26px; }
    .branches-page .bp-lead { font-size: 14px; }
    .branches-page .bp-search { height: 50px; margin-top: 28px; padding: 0 18px; }
    .branches-page .bp-search input { font-size: 14px; }
    .branches-page .bp-list { padding: 40px 0 56px; }
    .branches-page .bp-region { grid-template-columns: 1fr; gap: 18px; padding: 28px 0 32px; }
    .branches-page .bp-region__head { display: flex; align-items: baseline; gap: 8px; }
    .branches-page .bp-region__name { font-size: 20px; }
    .branches-page .bp-region__count { margin: 0; }
    .branches-page .bp-region__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .branches-page .bp-branch { font-size: 16px; }
    .branches-page .bp-cta { padding: 64px 0; }
    .branches-page .bp-cta__title { font-size: 24px; }
    .branches-page .bp-cta__btn { width: 100%; min-width: 0; height: 54px; margin-top: 28px; }
}
