/* ════════ 페이지 스코프 ════════ */
.sj-loc-page {
  --sj-walnut:   #3B2314;
  --sj-bark:     #6B4C3B;
  --sj-amber:    #C17F3B;
  --sj-honey:    #E8A84C;
  --sj-cream:    #F5EFE4;
  --sj-linen:    #FAF7F2;
  --sj-mist:     #F9F5EE;
  --sj-charcoal: #2C2420;
  --sj-muted:    #6B5D52;
  --sj-line:     #E4D7C5;
  --sj-shadow:   0 6px 24px rgba(59, 35, 20, .08);
  --sj-shadow-lg:0 14px 40px rgba(59, 35, 20, .12);

  position: relative;
  background: var(--sj-mist);
  color: var(--sj-charcoal);
  font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
  letter-spacing: -.01em;
  line-height: 1.6;
}
.sj-loc-page *, .sj-loc-page *::before, .sj-loc-page *::after { box-sizing: border-box; }

.sj-loc-wrap {
  margin: 0 auto;
}

/* ════════ 헤더 ════════ */
.sj-loc-header {
  text-align: center;
  margin-bottom: 56px;
}
.sj-loc-header__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .25em;
  color: var(--sj-amber);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sj-loc-header__eyebrow::before,
.sj-loc-header__eyebrow::after {
  content: ''; display: block;
  width: 28px; height: 1px;
  background: var(--sj-amber);
  opacity: .6;
}
.sj-loc-header__title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--sj-walnut);
  margin: 0 0 14px;
  line-height: 1.25;
}
.sj-loc-header__lead {
  font-size: 15px;
  color: var(--sj-muted);
  margin: 0;
  word-break: keep-all;
}

/* ════════ 정보 카드 (상단 3분할) ════════ */
.sj-loc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.sj-loc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--sj-line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--sj-shadow);
  transition: transform .25s, box-shadow .25s;
}
.sj-loc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sj-shadow-lg);
}
.sj-loc-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sj-amber), var(--sj-honey));
  color: #fff;
  border-radius: 12px;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(193, 127, 59, .3);
}
.sj-loc-card__label {
  font-size: 12px; font-weight: 600;
  color: var(--sj-amber);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sj-loc-card__value {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px; font-weight: 600;
  color: var(--sj-walnut);
  line-height: 1.45;
  word-break: keep-all;
}
.sj-loc-card__sub {
  font-size: 13px;
  color: var(--sj-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.sj-loc-card__action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--sj-bark);
  background: var(--sj-cream);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  margin-top: 12px;
  cursor: pointer;
  transition: background .2s;
}
.sj-loc-card__action:hover { background: var(--sj-honey); color: #fff; }
.sj-loc-card__action.is-copied { background: var(--sj-walnut); color: #fff; }

/* tel link reset */
.sj-loc-card a { color: inherit; text-decoration: none; }
.sj-loc-card a:hover .sj-loc-card__value { color: var(--sj-amber); }

/* ════════ 지도 섹션 ════════ */
.sj-loc-map-section {
  background: #fff;
  border: 1px solid var(--sj-line);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--sj-shadow);
  overflow: hidden;
}
.sj-loc-map-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sj-loc-map-head__title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Noto Serif KR', serif;
  font-size: 20px; font-weight: 700;
  color: var(--sj-walnut);
  margin: 0;
}
.sj-loc-map-head__title::before {
  content: ''; display: inline-block;
  width: 4px; height: 20px;
  background: var(--sj-amber);
  border-radius: 2px;
}

/* 지도 컨테이너 ─ daum roughmap 감싸기 */
.sj-loc-map-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sj-line);
}
.sj-loc-map-frame .root_daum_roughmap {
  width: 100% !important;
  border: none !important;
}
.sj-loc-map-frame .root_daum_roughmap .wrap_map {
  height: 420px !important;
}

/* 길찾기 버튼 그룹 */
.sj-loc-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.sj-loc-nav__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff;
  border: 1.5px solid var(--sj-line);
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 14px; font-weight: 600;
  color: var(--sj-walnut);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  min-height: 52px;
}
.sj-loc-nav__btn:hover {
  border-color: var(--sj-amber);
  background: var(--sj-linen);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(193, 127, 59, .18);
}
.sj-loc-nav__btn .ico {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sj-loc-nav__btn[data-svc="kakao"]  .ico { background: #FAE100; color: #3C1E1E; }
.sj-loc-nav__btn[data-svc="naver"]  .ico { background: #03C75A; }
.sj-loc-nav__btn[data-svc="tmap"]   .ico { background: #1F62B9; }
.sj-loc-nav__btn[data-svc="google"] .ico { background: #4285F4; }

/* ════════ 교통 안내 (3분할) ════════ */
.sj-loc-transit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.sj-loc-transit__item {
  background: #fff;
  border: 1px solid var(--sj-line);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--sj-shadow);
}
.sj-loc-transit__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--sj-line);
}
.sj-loc-transit__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sj-cream);
  color: var(--sj-bark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.sj-loc-transit__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px; font-weight: 700;
  color: var(--sj-walnut);
  margin: 0;
}
.sj-loc-transit__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sj-loc-transit__list li {
  position: relative;
  font-size: 14px;
  color: var(--sj-charcoal);
  padding: 5px 0 5px 14px;
  line-height: 1.65;
  word-break: keep-all;
}
.sj-loc-transit__list li::before {
  content: ''; position: absolute;
  left: 0; top: 13px;
  width: 5px; height: 5px;
  background: var(--sj-honey);
  border-radius: 50%;
}
.sj-loc-transit__list b {
  color: var(--sj-walnut);
  font-weight: 700;
}

/* ════════ 하단 CTA ════════ */
.sj-loc-cta {
  position: relative;
  background: linear-gradient(135deg, var(--sj-walnut) 0%, var(--sj-bark) 100%);
  border-radius: 20px;
  padding: 44px 32px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.sj-loc-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sj-loc-cta__title {
  position: relative;
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--sj-honey);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.sj-loc-cta__sub {
  position: relative;
  font-size: 14px;
  color: rgba(245, 239, 228, .8);
  margin: 0 0 28px;
}
.sj-loc-cta__buttons {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.sj-loc-cta__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(245, 239, 228, .3);
  border-radius: 50px;
  padding: 14px 26px;
  font-size: 15px; font-weight: 600;
  color: var(--sj-cream);
  text-decoration: none;
  transition: all .25s;
  backdrop-filter: blur(8px);
}
.sj-loc-cta__btn:hover {
  background: var(--sj-honey);
  border-color: var(--sj-honey);
  color: var(--sj-walnut);
  transform: translateY(-2px);
}
.sj-loc-cta__btn--primary {
  background: var(--sj-honey);
  border-color: var(--sj-honey);
  color: var(--sj-walnut);
}
.sj-loc-cta__btn--primary:hover {
  background: var(--sj-cream);
  border-color: var(--sj-cream);
}

/* ════════ 반응형 ════════ */
@media (max-width: 900px) {
  .sj-loc-page { padding: 40px 14px 80px; }
  .sj-loc-cards,
  .sj-loc-transit { grid-template-columns: 1fr; gap: 14px; }
  .sj-loc-nav { grid-template-columns: repeat(2, 1fr); }
  .sj-loc-map-section { padding: 20px; }
  .sj-loc-map-frame .root_daum_roughmap .wrap_map { height: 320px !important; }
  .sj-loc-cta { padding: 36px 22px; }
}
@media (max-width: 480px) {
  .sj-loc-card { padding: 22px 18px; }
  .sj-loc-cta__btn { padding: 12px 20px; font-size: 14px; }
  .sj-loc-map-head { flex-direction: column; align-items: flex-start; }
}