/* =====================================================
   location.css  ─  오시는길 페이지 전용 스타일
   common.css 로드 후 이 파일을 추가로 로드합니다.
   ===================================================== */


/* ─── 오시는길 섹션 ──────────────────────────────── */
#location-section {
  padding: 100px 0 140px;
  background: var(--white);
}

.loc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}


/* ─── 섹션 헤더 ──────────────────────────────────── */
.loc-header {
  text-align: center;
  margin-bottom: 64px;
  animation: fadeUp 0.7s ease both;
}

.loc-sec-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
}

.loc-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.25;
  color: var(--navy);
}
.loc-headline em { color: var(--blue); font-style: normal; }

.loc-divider {
  width: 48px; height: 3px;
  background: var(--accent);
  margin: 20px auto 24px;
}

.loc-desc {
  font-size: 15px; line-height: 1.9;
  color: var(--text-sub);
  word-break: keep-all;
}


/* ─── 지도 + 정보 2단 그리드 ────────────────────── */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  animation: fadeUp 0.7s 0.12s ease both;
}


/* ─── 지도 영역 ──────────────────────────────────── */
.loc-map-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 지도 이미지 컨테이너 */
.loc-map-img {
  width: 100%;
  height: 460px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(37,99,200,0.10);
  overflow: hidden;
}
.loc-map-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 외부 지도 링크 버튼 바 */
.map-ext-links {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-top: none;
}

.map-ext-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 0;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.map-ext-naver {
  background: #03c75a;
  color: #fff;
}
.map-ext-naver:hover { background: #02a94e; color: #fff; }

.map-ext-kakao {
  background: #fee500;
  color: #3c1e1e;
  border-left: 1px solid rgba(0,0,0,0.08);
}
.map-ext-kakao:hover { background: #f5dc00; color: #3c1e1e; }

.map-ext-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
  background: rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* 네이버 지도 정보창 커스텀 스타일 */
.naver-info-window {
  padding: 14px 18px;
  min-width: 200px;
  font-family: 'Noto Sans KR', sans-serif;
}
.niw-title {
  font-size: 15px; font-weight: 700;
  color: #1a3a6b;
  margin-bottom: 6px;
}
.niw-addr {
  font-size: 12px; color: #4a5f80;
  line-height: 1.6; margin-bottom: 4px;
}
.niw-tel {
  font-size: 12px; color: #2563c8;
  font-weight: 600;
}

/* 네이버 지도 링크 버튼 (fallback 내부) */
.map-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px; padding: 11px 28px;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  transition: background 0.2s;
}
.map-link-btn:hover { background: var(--navy); color: #fff; }


/* ─── 정보 사이드바 ──────────────────────────────── */
.loc-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

/* 공통 카드 */
.loc-info-card,
.loc-transport-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  padding: 28px 28px 24px;
  box-shadow: 0 4px 16px rgba(37,99,200,0.07);
}

.loc-info-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* 연락처 아이템 */
.loc-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--light);
}
.loc-item:last-child { border-bottom: none; }

.loc-icon-box {
  width: 40px; height: 40px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.loc-item-body { flex: 1; }

.loc-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--steel);
  margin-bottom: 4px;
}

.loc-value {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.65;
  word-break: keep-all;
}
.loc-value a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s;
}
.loc-value a:hover { color: var(--navy); }
.loc-value-sub {
  font-size: 12px;
  color: var(--steel);
}


/* ─── 교통 안내 카드 ─────────────────────────────── */
.loc-transport-card {
  border-top-color: var(--navy);
}

.loc-transport-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loc-transport-item:last-child { border-bottom: none; padding-bottom: 0; }

.loc-transport-item p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  word-break: keep-all;
}

.transport-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}


/* ─── 애니메이션 ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── 반응형 ─────────────────────────────────────── */
@media (max-width: 960px) {
  .loc-grid {
    grid-template-columns: 1fr;
  }
  .loc-info-col {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .loc-map-img { height: 380px; }
}

@media (max-width: 640px) {
  .loc-info-col {
    grid-template-columns: 1fr;
  }
  .loc-map-img { height: 300px; }
  .map-ext-btn { font-size: 12px; padding: 11px 0; }
}
