/* ============================================================
   마이비즈니스파트너 — 지점 지도 스타일시트
   style.css

   목차 (Ctrl+F → 섹션명으로 이동)
   ─────────────────────────────────────────────────────────────
    1. 디자인 토큰 (CSS 변수) ← 색상·사이즈 변경은 여기서만!
    2. 리셋 & 베이스
    3. GNB (상단 내비게이션)
    4. 레이아웃 (.branch_new)
    5. 배지 공통 (.branch_badge)
    6. 사이드바 — 타이틀·탭
    7. 사이드바 — 지역 메뉴 (.branch_zone)
    8. 사이드바 — 지점 목록 (.branch_list)
    9. 지도 영역 (.branch_map)
   10. 지도 마커 (.ff_marker)
   11. 상세 팝업 (.branch_detail_popup)
   12. 상세 — 지하철 칩
   13. 상세 — CTA 버튼
   14. 유틸리티 (#toast, .map-error)
   15. 반응형 (모바일 ≤ 960px)
   ─────────────────────────────────────────────────────────────
============================================================ */


/* ============================================================
   1. 디자인 토큰
   ──────────────────────────────────────────────────────────── */
:root {
  /* 브랜드 컬러 */
  --clr-primary:        #00BFA5;   /* 민트 (메인 포인트) */
  --clr-primary-dark:   #00897B;   /* 민트 다크 (hover·active) */
  --clr-primary-light:  #E0F7F4;   /* 민트 연 (배경 강조) */

  /* 텍스트 */
  --clr-text:           #40484F;   /* 기본 텍스트 */
  --clr-text-sub:       #6D757C;   /* 보조 텍스트 */
  --clr-text-placeholder: #B8C1CB; /* 플레이스홀더 */

  /* 배경·보더 */
  --clr-bg:             #F0FAF8;   /* 영역 배경 */
  --clr-border:         #B8C1CB;   /* 기본 보더 */
  --clr-border-light:   #E9EEF4;   /* 연한 보더 */
  --clr-white:          #FFFFFF;

  /* 상태 색상 */
  --clr-black:          #222222;
  --clr-red:            #FF5F68;   /* 경고·삭제 */
  --clr-blue:           #007FFF;   /* 정보 */
  --clr-purple:         #9F5EF1;   /* 특가 */

  /* 타이포 */
  --font-base: 'Pretendard', -apple-system, 'Noto Sans KR', sans-serif;

  /* 레이아웃 */
  --sidebar-width:      340px;
  --gnb-height:         64px;
  --scrollbar-size:     8px;
  --radius-sm:          4px;
  --radius-md:          8px;
  --radius-lg:          16px;
  --radius-pill:        999px;

  /* 지하철 배지 크기 */
  --subway-size:        20px;
}


/* ============================================================
   2. 리셋 & 베이스
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  color: var(--clr-text);
}
html.html_map, html.html_map body { overflow: hidden; }
body { display: flex; flex-direction: column; background: var(--clr-white); }

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* 스크롤바 공통 */
.branch_zone_wrap::-webkit-scrollbar,
.branch_list_wrap::-webkit-scrollbar,
.branch_detail_wrap::-webkit-scrollbar {
  width: var(--scrollbar-size);
  background-color: var(--clr-bg);
}
.branch_zone_wrap::-webkit-scrollbar-thumb,
.branch_list_wrap::-webkit-scrollbar-thumb,
.branch_detail_wrap::-webkit-scrollbar-thumb {
  background-color: #D4DAE1;
  border-radius: var(--scrollbar-size);
}


/* ============================================================
   3. GNB
   ──────────────────────────────────────────────────────────── */
#gnb {
  position: relative;
  height: var(--gnb-height);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border-light);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  z-index: 200;
  flex-shrink: 0;
}

.gnb-logo {
  font-size: 15px;
  font-weight: 900;
  color: var(--clr-black);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.gnb-nav { display: flex; gap: 0; flex: 1; }
.gnb-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #777;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 0.15s;
}
.gnb-nav a:hover, .gnb-nav a.on { color: var(--clr-black); font-weight: 600; }

.gnb-right { display: flex; gap: 8px; flex-shrink: 0; }

.gnb-btn {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
}
.gnb-btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
}
.gnb-btn-primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 191, 165, 0.3);
}
.gnb-btn-outline {
  border: 1.5px solid var(--clr-border-light);
  color: #555;
}
.gnb-btn-outline:hover { border-color: var(--clr-black); color: var(--clr-black); }

/* 모바일 햄버거 */
#mob-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
#mob-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-black);
  border-radius: 2px;
  transition: transform 0.2s;
}


/* ============================================================
   4. 레이아웃
   ──────────────────────────────────────────────────────────── */
.branch_new {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  overflow: hidden;
  color: var(--clr-text);
}


/* ============================================================
   5. 배지 공통
   ──────────────────────────────────────────────────────────── */
.branch_badge {
  position: relative;
  width: fit-content;
  min-width: 60px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--badge-color);
  border: 1px solid var(--badge-color);
  border-radius: var(--radius-sm);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.branch_badge._new    { --badge-color: var(--clr-primary); }
.branch_badge._best   { --badge-color: var(--clr-blue); }
.branch_badge._open   { --badge-color: var(--clr-purple); }
.branch_badge._person { --badge-color: #FF6E2E; }


/* ============================================================
   6. 사이드바 — 타이틀·탭
   ──────────────────────────────────────────────────────────── */
.branch_nav {
  background: var(--clr-white);
  box-shadow: 2px 4px 8px 0 rgba(109, 117, 124, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 102;
  overflow: hidden;
  position: relative;
  width: var(--sidebar-width);
  height: 100%;
  flex: 0 0 auto;
}

.branch_title {
  display: flex;
  flex-direction: column;
  padding: 40px 0 32px 0;
  gap: 18px;
  flex-shrink: 0;
}
.branch_title h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--clr-text);
  text-align: center;
}
.branch_title .branch_num { color: var(--clr-primary); }

/* 탭 버튼 그룹 */
.branch_zone_button { display: flex; justify-content: center; gap: 8px; }

.zone-tab {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text-sub);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  background: var(--clr-white);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  font-family: var(--font-base);
}
.zone-tab::before {
  content: '';
  width: 14px; height: 14px;
  background-color: var(--clr-text-sub);
  transition: background-color 0.18s;
}
.zone-tab._all::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 2H12M2 7H12M2 12H12' stroke='%236D757C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 2H12M2 7H12M2 12H12' stroke='%236D757C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.zone-tab._local::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7 1C4.79 1 3 2.79 3 5c0 3.5 4 9 4 9s4-5.5 4-9c0-2.21-1.79-4-4-4zm0 5.5A1.5 1.5 0 1 1 7 3a1.5 1.5 0 0 1 0 3.5z' fill='%236D757C'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7 1C4.79 1 3 2.79 3 5c0 3.5 4 9 4 9s4-5.5 4-9c0-2.21-1.79-4-4-4zm0 5.5A1.5 1.5 0 1 1 7 3a1.5 1.5 0 0 1 0 3.5z' fill='%236D757C'/%3E%3C/svg%3E");
}
.zone-tab._active,
.zone-tab:hover {
  color: var(--clr-primary-dark);
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
}
.zone-tab._active::before, .zone-tab:hover::before { background-color: var(--clr-primary-dark); }


/* ============================================================
   7. 사이드바 — 지역 메뉴
   ──────────────────────────────────────────────────────────── */
.branch_zone {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 174px; left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 184px);
  max-height: 480px;
  background: var(--clr-white);
  border: 1px solid var(--clr-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 10;
}
.branch_zone._active { display: flex; }

.zone-header {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 47px;
  border-bottom: 1px solid var(--clr-text-sub);
  flex-shrink: 0;
  gap: 8px;
}
.zone-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-text-sub);
}
.zone-all-link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-primary);
}
.zone-close-btn {
  width: 32px; height: 32px;
  background-color: var(--clr-border);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M14 2L2 14M2 2l12 12' stroke='%23B8C1CB' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M14 2L2 14M2 2l12 12' stroke='%23B8C1CB' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-size: 16px; mask-repeat: no-repeat; mask-position: center;
  text-indent: -999em; overflow: hidden;
  transition: background-color 0.15s;
}
.zone-close-btn:hover { background-color: var(--clr-text-sub); }

.branch_zone_wrap { flex: 1; overflow-y: auto; }

.branch_zone_list h4 {
  height: 54px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 600;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
}
.zone-region-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--clr-text-sub);
  font-size: inherit;
  font-weight: inherit;
  transition: color 0.15s;
}
.zone-region-link:hover { color: var(--clr-text); }

.branch_zone_list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  padding: 14px 20px 28px;
  max-width: 300px;
}
.zone-area-link {
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text-sub);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  transition: all 0.15s;
}
.zone-area-link:hover,
.zone-area-link._active {
  color: var(--clr-primary-dark);
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  font-weight: 600;
}


/* ============================================================
   8. 사이드바 — 지점 목록
   ──────────────────────────────────────────────────────────── */
.branch_list_layout {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.branch_list_wrap {
  position: relative;
  width: 100%; height: 100%;
  overflow-x: hidden; overflow-y: auto;
  border-top: 1px solid var(--clr-border-light);
}
#branch-list { display: flex; flex-direction: column; }

/* 지점 카드 */
.branch-list-item {
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  border-top: 1px solid var(--clr-border-light);
  cursor: pointer;
  transition: background 0.18s;
  outline: none;
}
.branch-list-item:first-child { border-top: 0; }
.branch-list-item:hover  { background: var(--clr-bg); }
.branch-list-item._active { background: var(--clr-primary-light); }
.branch-list-item:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: -2px; }

.branch-item-header {
  display: flex; justify-content: space-between; width: 100%; align-items: center;
}
.branch-brand {
  font-size: 13px; font-weight: 700; color: var(--clr-primary);
}

.branch-list-item h4 {
  width: 100%;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.branch-list-item._active h4 { color: var(--clr-primary-dark); }

.branch-item-tags, .branch-item-addr {
  font-size: 13px; color: var(--clr-text-sub);
  display: flex; align-items: center; gap: 6px;
  line-height: 1.4;
}
.branch-item-addr { margin-bottom: 8px; }

.branch-item-thumbs {
  display: flex; gap: 8px; width: 100%;
}
.b-thumb {
  flex: 1; aspect-ratio: 1; border-radius: var(--radius-sm);
  background-size: cover; background-position: center;
  background-color: #eee;
}

/* 빈 상태 */
.branch-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--clr-text-placeholder);
  font-size: 14px;
  font-weight: 500;
}

/* 지하철 배지 (목록) */
.branch_subway { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.branch_subway > span {
  width: var(--subway-size); height: var(--subway-size);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px; font-weight: 700;
  color: #fff;
  border-radius: 50%;
  display: inline-flex; justify-content: center; align-items: center;
  line-height: normal;
  flex-shrink: 0;
}
/* 노선 색상 */
.branch_subway .line_1  { background: #3455B4; }
.branch_subway .line_2  { background: #2CC160; }
.branch_subway .line_3  { background: #FF8936; }
.branch_subway .line_4  { background: #00B0F0; }
.branch_subway .line_5  { background: #8F4ADB; }
.branch_subway .line_6  { background: #B26017; }
.branch_subway .line_7  { background: #747915; }
.branch_subway .line_9  { background: #D0A439; }
.branch_subway .line_sb { background: #DA304D; }
.branch_subway .line_su { background: #FFCE32; color: #333; }
.branch_subway .line_sh { background: #81A914; }

/* 목록 내 배지 우측 정렬 */
.branch-list-item > .branch_badge { margin-left: auto; }


/* ============================================================
   9. 지도 영역
   ──────────────────────────────────────────────────────────── */
.branch_map { position: relative; width: 100%; display: flex; }
#fastfiveMaps { width: 100%; height: 100%; background: #e8edf2; }

.map-error {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #E9EEF4 url('map_bg.png') center/cover no-repeat;
  height: 100%;
  gap: 16px;
  color: var(--clr-text-sub);
  font-size: 14px;
  text-align: center;
  padding: 32px;
}
.map-error::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(2px);
}
.map-error > * { position: relative; z-index: 1; font-weight: 600; color: #444; }
.map-error button {
  padding: 10px 24px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-base);
}


/* ============================================================
   10. 지도 마커
   ──────────────────────────────────────────────────────────── */
.ff_marker {
  position: relative;
  transform: translate(-50%, -100%);
  z-index: 1;
  cursor: pointer;
}
.ff_marker > div {
  position: relative;
  height: 40px;
  padding: 0 12px 0 16px;
  font-size: 17px; font-weight: 600; line-height: 40px;
  color: var(--clr-text);
  background: var(--clr-white);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-md);
  box-shadow: 2px 4px 8px rgba(109, 117, 124, 0.25);
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  font-family: var(--font-base);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
/* 말풍선 꼬리 */
.ff_marker > div::before {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  width: 13px; height: 11px;
  background: var(--clr-white);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='11' viewBox='0 0 13 11' fill='none'%3E%3Cpath d='M5.634 10.5C6.019 11.167 6.981 11.167 7.366 10.5L12.562 1.5C12.947.833 12.466 0 11.696 0H1.304C.534 0 .053.833.438 1.5L5.634 10.5Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='11' viewBox='0 0 13 11' fill='none'%3E%3Cpath d='M5.634 10.5C6.019 11.167 6.981 11.167 7.366 10.5L12.562 1.5C12.947.833 12.466 0 11.696 0H1.304C.534 0 .053.833.438 1.5L5.634 10.5Z' fill='white'/%3E%3C/svg%3E");
  mask-repeat: no-repeat; mask-position: center;
  transform: translate(-50%, -5px);
  transition: background 0.15s;
}
/* 우측 화살표 아이콘 */
.ff_marker > div::after {
  content: '';
  width: 14px; height: 14px; flex-shrink: 0;
  background-color: var(--clr-border);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 12L9 7L4 2' stroke='%23B8C1CB' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 12L9 7L4 2' stroke='%23B8C1CB' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-size: 100%; mask-repeat: no-repeat; mask-position: center;
}

/* hover */
.ff_marker:not(._active):hover > div {
  background: var(--clr-bg);
  box-shadow: 2px 6px 16px rgba(0, 191, 165, 0.18);
}
.ff_marker:not(._active):hover > div::before { background: var(--clr-bg); }

/* 활성(선택) 마커 */
.ff_marker._active { z-index: 10; }
.ff_marker._active > div {
  color: var(--clr-white);
  background: var(--clr-primary-dark);
  border: 0;
  box-shadow: 2px 6px 18px rgba(0, 137, 123, 0.4);
}
.ff_marker._active > div::before { background: var(--clr-primary-dark); }
.ff_marker._active > div::after  { background-color: rgba(255, 255, 255, 0.7); }

/* 신규 배지 (마커 위) */
.marker_badge {
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  height: 24px; padding: 0 10px;
  font-size: 13px; font-weight: 700; line-height: 24px;
  color: var(--clr-white);
  background: var(--clr-primary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  z-index: 1;
}


/* ============================================================
   11. 상세 팝업 (스파크플러스 우측 슬라이딩 패널 형태)
   ──────────────────────────────────────────────────────────── */
.branch_detail_popup {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 720px;
  background: var(--clr-white);
  z-index: 103;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.branch_detail_popup._active {
  transform: translateX(0);
}

.branch_detail_layout {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
}

.branch_detail_wrap {
  position: relative;
  width: 100%; height: 100%;
  background: var(--clr-white);
  overflow-x: hidden; overflow-y: auto;
}

/* 스파크플러스 스타일 콘텐츠 */
.branch_detail_sparkplus {
  width: 100%; display: flex; flex-direction: column; padding-bottom: 60px;
}

/* 모바일 전용 표시 유틸 */
.mob-only { display: none; }

/* 공통 닫기 버튼 (우측 상단 플로팅) */
.sp_close_btn {
  position: fixed; 
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 110; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.sp_close_btn:hover { background-color: var(--clr-white); transform: scale(1.05); }

/* 1. Hero Image */
.sp-hero {
  position: relative;
  width: 100%; height: 560px;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 40px;
}
.sp-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.sp-hero-content {
  position: relative; z-index: 2;
  color: var(--clr-white);
  display: flex; flex-direction: column; height: 100%;
}
.sp-hero-main {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.sp-hero-highlight {
  display: inline-block;
  background: #FF3B00;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  padding: 2px 12px;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.sp-hero-title {
  font-size: 52px; font-weight: 800; line-height: 1.15; letter-spacing: -2px; margin-bottom: 24px; text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.sp-hero-desc { font-size: 16px; font-weight: 500; opacity: 0.9; }

.sp-hero-footer {
  display: flex; align-items: center; gap: 16px; margin-top: auto;
  font-size: 14px; font-weight: 600; color: #fff;
}
.sp-hero-progress { width: 80px; height: 2px; background: rgba(255,255,255,0.3); position: relative; }
.sp-hero-progress::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 50%; background: #fff; }
.sp-hero-ctrl { display: flex; gap: 12px; align-items: center; cursor: pointer; opacity: 0.8; }
.sp-hero-ctrl:hover { opacity: 1; }

/* 2. Photo Gallery (New) */
.sp-gallery {
  padding: 60px 40px;
  background: var(--clr-white);
}
.sp-gallery-grid {
  display: flex; gap: 16px; height: 320px;
}
.sp-gal-main {
  flex: 2; border-radius: var(--radius-md);
  background-size: cover; background-position: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sp-gal-sub {
  flex: 1; display: flex; flex-direction: column; gap: 16px;
}
.sp-gal-item {
  flex: 1; border-radius: var(--radius-md);
  background-size: cover; background-position: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 3. Features with Image */
.sp-features {
  padding: 60px 40px;
  background: #F6F7FA;
}
.sp-features h3 { font-size: 28px; font-weight: 700; margin-bottom: 30px; color: var(--clr-black); line-height: 1.4; }
.sp-feature-list { display: flex; flex-direction: column; gap: 40px; }
.sp-feature-item { display: flex; flex-direction: column; gap: 16px; }
.sp-feature-img {
  position: relative;
  width: 100%; height: 240px;
  background-size: cover; background-position: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}
.sp-feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.sp-feature-overlay p { 
  color: var(--clr-white); font-size: 18px; font-weight: 700; line-height: 1.4; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.4); 
}

/* 4. Price List */
.sp-price-list {
  padding: 60px 40px;
  background: var(--clr-white);
  border-bottom: 8px solid #F5F6F8;
}
.sp-price-list h3 { font-size: 28px; font-weight: 700; margin-bottom: 24px; color: var(--clr-black); line-height: 1.4; }
.sp-prices { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sp-prices li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: #F8F9FA; border-radius: var(--radius-md);
}
.sp-price-name {
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--clr-text);
}
.sp-num {
  font-size: 13px; font-weight: 800; color: var(--clr-primary);
  background: rgba(0, 191, 165, 0.1); padding: 4px 8px; border-radius: 6px;
  letter-spacing: 1px;
}
.sp-prices li strong { font-size: 18px; font-weight: 700; color: var(--clr-primary); }

/* 5. Facilities */
.sp-facilities {
  padding: 60px 40px;
  background: #F6F7FA;
}
.sp-facilities h3 { font-size: 28px; font-weight: 700; margin-bottom: 12px; color: var(--clr-black); line-height: 1.4; text-align: center; }
.sp-fac-desc { font-size: 15px; color: var(--clr-text-sub); text-align: center; margin-bottom: 32px; }
.sp-facility-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px 16px;
}
.sp-fac-item {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.sp-fac-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #F6F7FA; display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-sub);
  transition: all 0.2s;
}
.sp-fac-item:hover .sp-fac-icon {
  background: var(--clr-primary); color: #fff; transform: scale(1.05);
}
.sp-fac-item p { font-size: 15px; font-weight: 600; color: var(--clr-text); text-align: center; }

/* 5. Location (Mock Map) */
.sp-location {
  padding: 60px 40px 40px;
  border-top: 8px solid #F5F6F8;
}
.sp-location h3 { font-size: 28px; font-weight: 700; margin-bottom: 20px; color: var(--clr-black); line-height: 1.4; }
.sp-loc-info-box {
  background: var(--clr-bg); padding: 20px; border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 8px;
}
.sp-loc-info-box p { font-size: 15px; color: var(--clr-text); line-height: 1.5; }
.sp-loc-info-box strong { color: var(--clr-black); display: inline-block; width: 70px; }
.sp-loc-map {
  width: 100%; height: 240px;
  background: #E9EEF4 url('map_bg.png') center/cover no-repeat;
  border-radius: var(--radius-md);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sp-mock-marker {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 2;
}
.sp-mock-marker-pulse {
  width: 24px; height: 24px; background: var(--clr-primary); border-radius: 50%;
  box-shadow: 0 0 0 rgba(0, 191, 165, 0.4);
  animation: pulse 2s infinite;
}
.sp-mock-marker span {
  background: var(--clr-white); padding: 4px 12px;
  border-radius: 20px; font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(0, 191, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 191, 165, 0); }
}
.mt-20 { margin-top: 20px; }
.sp-traffic {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--clr-bg); padding: 16px; border-radius: var(--radius-md);
}
.sp-traffic .subway-chips { margin-bottom: 0; }
.sp-traffic span { font-size: 14px; font-weight: 500; color: var(--clr-text-sub); }

/* 5. Sticky Bottom Action */
.sp-sticky-bottom {
  position: sticky; bottom: 0; left: 0; right: 0;
  background: var(--clr-white);
  padding: 20px 40px;
  display: flex; gap: 12px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  z-index: 10;
}
.sp-btn-outline {
  flex: 1; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  font-size: 16px; font-weight: 600; color: var(--clr-text);
  transition: background 0.2s;
}
.sp-btn-outline:hover { background: var(--clr-bg); }
.sp-btn-primary {
  flex: 2; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-primary); color: var(--clr-white);
  border-radius: var(--radius-md); font-size: 16px; font-weight: 600;
  transition: background 0.2s;
}
.sp-btn-primary:hover { background: var(--clr-primary-dark); }


/* ============================================================
   12. 상세 — 지하철 칩
   ──────────────────────────────────────────────────────────── */
.subway-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.branch_subway_chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px 0 4px;
  background: var(--clr-bg);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; color: var(--clr-text-sub);
}
.branch_subway_badge {
  width: 20px; height: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px; font-weight: 700;
  color: #fff; border-radius: 50%;
  display: inline-flex; justify-content: center; align-items: center;
  line-height: normal;
  flex-shrink: 0;
}


/* ============================================================
   13. 상세 — CTA 버튼
   ──────────────────────────────────────────────────────────── */
.branch_detail_button {
  position: absolute;
  bottom: 24px; left: 24px;
  width: calc(100% - 48px);
  display: flex; gap: 12px;
  z-index: 5;
  transform: translateY(calc(100% + 24px));
  transition: transform 0.3s ease;
}
.branch_detail_button._active { transform: translateY(0); }

.button_cta {
  flex: 1;
  height: 56px;
  display: flex; justify-content: center; align-items: center;
  font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--clr-white);
  border-radius: var(--radius-md);
  transition: filter 0.18s, transform 0.18s;
}
.button_cta.tour     { background: var(--clr-primary); }
.button_cta.estimate { background: var(--clr-black); }
.button_cta:hover    { filter: brightness(1.1); transform: translateY(-1px); }


/* ============================================================
   14. 유틸리티
   ──────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 88px; left: 50%;
  transform: translateX(-50%);
  background: rgba(34, 34, 34, 0.92);
  backdrop-filter: blur(10px);
  color: var(--clr-white);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; letter-spacing: -0.02em;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
}


/* ============================================================
   15. 반응형 (모바일 ≤ 960px)
   ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  html, body { overflow: hidden; }

  /* GNB */
  .gnb-nav, .gnb-right { display: none; }
  #mob-menu-btn { display: flex; }

  /* 사이드바 — 이제는 전체화면 메뉴 */
  .branch_nav {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    transform: none !important;
  }

  /* 지도 컨테이너 - 메인 맵 숨김, 팝업만 필요함 */
  .branch_map {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
  }
  
  #fastfiveMaps {
    display: none !important;
  }

  /* 지도 이동 힌트 숨김 */
  .mob-map-hint { display: none !important; }

  /* 상세 팝업 — 풀스크린 */
  .branch_detail_popup { padding: 0; pointer-events: auto; }
  .branch_detail_layout { border-radius: 0; }
  .branch_detail_header { flex-direction: column; padding: 32px 24px 40px; }
  .branch_detail_name { width: 100%; }
  .branch_detail_name h2 { font-size: 26px; }
  .branch_detail_content { padding: 0 24px 40px; }
  .branch_detail_button { left: 16px; width: calc(100% - 32px); bottom: 16px; }

  .mob-only { display: inline; }

  /* 새 상세 팝업 (모바일 최적화) */
  .sp-hero { height: 420px; padding: 40px 20px; }
  .sp-hero-title { font-size: 32px; letter-spacing: -1px; margin-bottom: 16px; }
  .sp-hero-highlight { font-size: 22px; padding: 2px 8px; }
  .sp-hero-desc { font-size: 14px; }
  
  .sp-features, .sp-price-list, .sp-facilities, .sp-gallery { padding: 40px 20px; }
  .sp-location { padding: 40px 20px 20px; }
  .sp-features h3, .sp-price-list h3, .sp-location h3, .sp-facilities h3 { font-size: 22px; margin-bottom: 20px; }
  
  .sp-gallery-grid { flex-direction: column; height: auto; gap: 8px; }
  .sp-gal-main { height: 240px; flex: none; }
  .sp-gal-sub { height: auto; flex-direction: row; gap: 8px; flex: none; }
  .sp-gal-item { height: 120px; flex: 1; }
  
  .sp-facility-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sp-fac-icon { width: 48px; height: 48px; margin-bottom: 8px; }
  .sp-fac-item p { font-size: 13px; }
  
  .sp-price-list li { flex-direction: row; align-items: flex-start; gap: 12px; padding: 16px 0; }
  .sp-price-name { font-size: 14px; }
  .sp-price-list li strong { font-size: 16px; white-space: nowrap; }
  
  .sp-sticky-bottom { padding: 16px 20px; gap: 8px; }
  .sp-btn-outline, .sp-btn-primary { height: 48px; font-size: 14px; }
  
  .sp_close_btn { top: 16px; right: 16px; width: 36px; height: 36px; }
}
