/* 코스 전체 지도 — 최소 헤더 (뒤로·내위치) */
html,
body.walk-course-viewer {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--gywf-font-sans, Pretendard, system-ui, sans-serif);
  background: #0f1419;
  color: #fff;
}

.walk-course-viewer__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.5rem 0.75rem;
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  background: rgba(15, 20, 25, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.walk-course-viewer__title {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.walk-course-viewer__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}

.walk-course-viewer__btn:hover,
.walk-course-viewer__btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.walk-course-viewer__map {
  position: fixed;
  inset: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 확대/축소·레이어 컨트롤이 고정 헤더에 가리지 않도록 */
.walk-course-viewer .leaflet-top {
  top: calc(3.6rem + env(safe-area-inset-top, 0px));
}

.walk-course-viewer .leaflet-control-zoom {
  margin-top: 0.35rem !important;
  border: 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.walk-course-viewer__status {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(15, 20, 25, 0.85);
  font-size: 0.8125rem;
  pointer-events: none;
}

.walk-course-viewer__status:empty {
  display: none;
}

.walk-course-viewer__credit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  padding: 0.4rem 0.75rem;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  color: #333;
  font-size: 0.6875rem;
  line-height: 1.35;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.walk-course-viewer__credit a {
  color: #0b57d0;
  text-decoration: underline;
}

.walk-course-viewer__credit-note {
  color: #666;
}

/* Leaflet 기본 출처도 헤더/크레딧과 겹치지 않게 */
.walk-course-viewer .leaflet-control-attribution {
  margin-bottom: 2.4rem !important;
  max-width: calc(100vw - 1rem);
  font-size: 10px !important;
}
