/* ============================================================
   지점 상세 (branch.php) — 피그마 sub_지점안내(리더스사진관)_1920 (4212:1067)
   5개 지점 공용 템플릿. 데스크톱 1920 캔버스 / ≤360 모바일 360 캔버스
   (반응형 원칙: 경계 360 단 하나, 중간 브레이크포인트 없음)
   ============================================================ */

:root {
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --serif: "Nanum Myeongjo", "NanumMyeongjo", serif;
  --en: "Cormorant Infant", "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: #111; background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; } /* clip — hidden과 달리 body를 스크롤 컨테이너로 만들지 않아 세로 이중 스크롤바 원천 차단 */ }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; }

#page { position: relative; width: 1920px; transform-origin: 0 0; background: #fff; }

/* ---------- 히어로 타이틀 — 시안 중앙 정렬 (sub-hero.css 공용) ---------- */
.bv-hero-tit { left: 0; top: 302px; width: 100%; text-align: center; }

/* ---------- 본문 컨테이너 (360~1560, 700~) ---------- */
.bv-wrap { position: absolute; left: 360px; top: 700px; width: 1200px; }

/* ---------- 지점 카드: 그라디언트 1200x625 r30 (시안 122deg #a7352c→#832922) ---------- */
.bv-card {
  position: relative; width: 1200px; height: 625px;
  border-radius: 30px;
  background: linear-gradient(122deg, #a7352c 1.5%, #832922 75.9%);
}
.bv-card__brand {
  position: absolute; left: 50px; top: 40px;
  font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.2;
  letter-spacing: -0.68px; color: #fff;
}
.bv-card__addr {
  position: absolute; right: 50px; top: 45px;
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; line-height: 1.2; letter-spacing: -0.36px; color: #fff;
}
.bv-card__pin { width: 19px; height: 26px; flex: none; }
.bv-card__map {
  position: absolute; left: 40px; top: 119px; width: 1120px; height: 466px;
  border-radius: 20px; overflow: hidden;
}
.bv-card__map img { width: 100%; height: 100%; object-fit: cover; }
.bv-card__map-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 상담 버튼 3종 (카드 하단 50px 간격, 중앙 정렬) ---------- */
.bv-ctas {
  margin-top: 50px;
  display: flex; justify-content: center; gap: 8px;
}
.bv-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 240px; height: 60px; border-radius: 50px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.32px;
  transition: opacity 0.2s;
}
.bv-cta:hover { opacity: 0.85; }
.bv-cta--place { background: #00ce27; color: #fff; }
.bv-cta--kakao { background: #ffe132; color: #111; }
.bv-cta--tel { background: #504745; color: #fff; }
.bv-cta__ic--place { width: 16px; height: 16px; }
.bv-cta__ic--kakao { width: 20px; height: 19px; }
.bv-cta__ic--tel { width: 16px; height: 17px; }

/* ---------- 지점 정보 + 이벤트&뉴스 (버튼 하단 70px 간격, 블록 간 50) ---------- */
.bv-body { margin-top: 70px; display: flex; flex-direction: column; gap: 50px; }
.bv-hr { border: 0; height: 1px; background: #d9d9d9; width: 100%; }
.bv-tit {
  font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.4;
  letter-spacing: -0.3px; color: #000;
}

/* 지점 정보 — 라벨(굵게)+값, 항목 간 34 / 넘치면 줄바꿈 */
.bv-info { width: 784px; display: flex; flex-direction: column; gap: 30px; }
/* 행 1줄 유지 — 주소가 긴 지점도 세 항목이 한 행에 들어가도록 간격·폰트 축소
   (784px에 최장 지점 기준 여유 확보. 미달 시 wrap되며 2줄로 갈라짐) */
.bv-info__row { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.bv-info__item { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px 6px; }
.bv-info__label { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -0.15px; color: #000; white-space: nowrap; }
.bv-info__val { font-size: 15px; line-height: 22px; letter-spacing: -0.15px; color: #000; white-space: nowrap; }
.bv-dot { width: 5px; height: 5px; flex: none; }

/* 이벤트&뉴스 — 배너(텍스트·버튼 포함 익스포트, 통째 링크) — 높이 고정 없이 원본 비율 그대로 */
.bv-event { display: flex; flex-direction: column; gap: 30px; }
.bv-event__banner { display: block; transition: opacity 0.2s; }
.bv-event__banner:hover { opacity: 0.9; }
.bv-event__img { width: 1200px; height: auto; }
.bv-event__img--m { display: none; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(10px);
  background: #333; color: #fff; padding: 12px 24px; border-radius: 6px;
  font-size: 15px; z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   모바일 (html.is-m — 360 캔버스) — 피그마 리더스_360 (4212:292)
   GNB 60 / 히어로 60~260 / 카드 320~799 / 버튼 823~991 / 본문 1029~ /
   푸터 1957~2659 (main.js 실측 보정)
   ============================================================ */
html.is-m #page { width: 360px; }

html.is-m .sub-hero { top: 60px; height: 200px; }
html.is-m .bv-hero-tit { top: 82px; }

html.is-m .bv-wrap { left: 20px; top: 320px; width: 320px; }

/* 지점 카드 320x479 r20 — 브랜드(30) → 주소(가운데 정렬, 2행) → 지도 280x324 */
html.is-m .bv-card {
  width: 320px; height: auto; border-radius: 20px; padding: 30px 20px 20px;
  background: linear-gradient(102deg, #a7352c 1.5%, #832922 75.9%);
}
html.is-m .bv-card__brand { position: static; font-size: 22px; letter-spacing: -0.44px; }
html.is-m .bv-card__addr {
  position: static; margin: 14px auto 0; width: fit-content; max-width: 100%;
  align-items: flex-start; gap: 10px;
  font-size: 16px; line-height: 22px; letter-spacing: -0.24px;
}
html.is-m .bv-card__pin { width: 15px; height: 26px; }
html.is-m .bv-card__map { position: static; margin: 20px auto 0; width: 280px; height: 324px; border-radius: 12px; }

/* 버튼 — 3단 스택 280x50 */
html.is-m .bv-ctas { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 20px; }
html.is-m .bv-cta { width: 100%; height: 50px; font-size: 15px; letter-spacing: -0.3px; }
html.is-m .bv-cta__ic--place { width: 14px; height: 14px; }
html.is-m .bv-cta__ic--kakao { width: 14px; height: 13px; }
html.is-m .bv-cta__ic--tel { width: 14px; height: 14px; }

/* 본문 — 정보 3행 세로, 배너 모바일용 320x520 */
html.is-m .bv-body { margin-top: 38px; gap: 34px; }
html.is-m .bv-tit { font-size: 24px; letter-spacing: -0.24px; }
html.is-m .bv-info { width: 100%; gap: 20px; }
html.is-m .bv-info__row { flex-direction: column; gap: 16px; }
/* 지점 정보 한 줄 유지 — 긴 주소도 줄바꿈 없이 한 줄로 표시 (13px = 캔버스 2배 확대 시 화면 26px) */
html.is-m .bv-info__item { flex-wrap: nowrap; align-items: baseline; }
html.is-m .bv-info__label { font-size: 13px; line-height: 20px; letter-spacing: -0.13px; }
html.is-m .bv-info__label .bv-dot { width: 9px; height: 9px; }
html.is-m .bv-info__val { font-size: 13px; line-height: 20px; letter-spacing: -0.13px; white-space: nowrap; }
html.is-m .bv-event { gap: 20px; }
html.is-m .bv-event__img { display: none; }
html.is-m .bv-event__img--m { display: block; width: 320px; height: auto; }
