/* ==========================================
   Course1 — 탐방코스 안내 스킨
   - 좌측: 지도 이미지 (탭별 교체, 폭 ~2/3)
   - 우측: 타이틀 + 탭 + 상세 (z-index 더 위)
   ========================================== */

/* ===== 최상위 래퍼 (Facility1과 동일 패턴) ===== */
.Course1 {
  width: 100%;
  float: left;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.Course1 .wg_side { width: 100%; }
.Course1 .wg_box { width: 100%; position: relative; max-width: 100%; box-sizing: border-box; }

/* === 메인 컨테이너 (좌 이미지 + 우 정보 겹침 레이아웃) === */
.Course1 .course-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* === 좌측 지도 이미지 === */
/* PC: 원본(1100px) 1:1 렌더로 고정 → 소수점 폭/미세 확대로 인한 흐림 방지 */
.Course1 .course-map {
  position: relative;
  width: 1100px;
  max-width: 1100px;
  z-index: 1;
  box-sizing: border-box;
}
.Course1 .course-map-image {
  display: none;
  width: 100%;
}
.Course1 .course-map-image.active {
  display: block;
}
.Course1 .course-map-image .wg_img_box {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.Course1 .course-map-image .wg_img_box img {
  width: 100%;
  height: auto;
  display: block;
  /* 원본보다 커져 흐려지지 않도록 최대 폭 제한 (원본 1100px) */
  max-width: 1100px;
  margin: 0 auto;
}

/* === 우측 정보 박스 === */
.Course1 .course-info {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  max-width: 42%;
  background: transparent;
  z-index: 2;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  box-sizing: border-box;
}
.Course1 .course-info * { box-sizing: border-box; }
/* container 가 inner 폭을 가지도록 보호 */
.Course1 .com_f, .Course1.com_f { max-width: 100%; }

/* === 타이틀 === */
.Course1 .course-titles { margin-bottom: clamp(12px, 1.6vw, 22px); }
.Course1 .sub_stit2 {
  font-size: clamp(13px, 1.05vw, 16px);
  color: #9ca3af;
  margin-bottom: 6px;
  font-weight: 400;
}
.Course1 .sub_stit3 {
  font-size: clamp(20px, 2.2vw, 32px);
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: clamp(12px, 1.4vw, 18px);
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
}

/* === 탭 버튼 영역 === */
.Course1 .course-tabs {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(6px, 0.8vw, 12px);
  margin: clamp(14px, 1.8vw, 24px) 0 clamp(16px, 2vw, 28px);
  padding-bottom: clamp(12px, 1.4vw, 18px);
  border-bottom: 1px solid #e5e7eb;
}
.Course1 .course-tab {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(10px, 1.2vw, 16px) 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.18s;
  font-size: clamp(15px, calc(0.86vw + 12.25px), 26px);
  color: #666;
  font-weight: 600;
  min-height: clamp(60px, 7vw, 90px);
  box-sizing: border-box;
}
.Course1 .course-tab:hover {
  color: #111827;
}
.Course1 .course-tab.active {
  color: #111827;
  font-weight: 700;
}
.Course1 .course-tab-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(20px, 2vw, 28px);
  height: clamp(20px, 2vw, 28px);
  color: transparent;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
}
.Course1 .course-tab.active .course-tab-pin {
  color: #f59e0b;
}
.Course1 .course-tab-label {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* === 항목별 상세 === */
.Course1 .course-details {
  position: relative;
}
.Course1 .course-detail {
  display: none;
}
.Course1 .course-detail.active {
  display: block;
  animation: course-fadein 0.25s ease;
}
@keyframes course-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 파란 3 = 설명문 (+2px) */
.Course1 .course-desc {
  font-size: clamp(15px, calc(0.234vw + 14.25px), 18px);
  color: #374151;
  line-height: 1.5;
  margin-bottom: clamp(12px, 1.4vw, 20px);
}

/* 파란 4 = 메타정보 (아이콘 + 텍스트) */
.Course1 .course-meta {
  font-size: clamp(14px, calc(0.156vw + 13.5px), 16px);
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.95vw, 28px);
  align-items: center;
}
.Course1 .course-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.Course1 .course-meta .meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 2.97vw, 44px);
  height: clamp(34px, 2.97vw, 44px);
  border-radius: 50%;
  background: #f3f3f3;
  flex-shrink: 0;
}
.Course1 .course-meta .meta-icon svg {
  width: 60%;
  height: 60%;
  stroke: #6b7280;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.Course1 .course-meta .meta-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}
.Course1 .course-meta .meta-text {
  font-weight: 500;
}

/* === 태블릿 (1024px 이하: 우측 박스 폭 확장) === */
@media screen and (max-width: 1024px) {
  .Course1 .course-info {
    width: 55%;
    max-width: 55%;
  }
  /* 태블릿: 1100 고정 풀고 80% 비율로 축소 */
  .Course1 .course-map {
    width: 80%;
    max-width: 80%;
  }
}

/* === 모바일 (768px 이하: 위아래 배치, 100% 폭) === */
@media screen and (max-width: 768px) {
  .Course1 .course-container { min-height: auto; }
  .Course1 .course-map {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
  }
  .Course1 .course-info {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: clamp(16px, 4vw, 28px);
    z-index: 3;
  }
  .Course1 .course-tabs {
    margin: clamp(10px, 3vw, 18px) 0 clamp(12px, 3.5vw, 20px);
    padding-bottom: clamp(10px, 2.5vw, 14px);
  }
  .Course1 .course-tab {
    font-size: clamp(14px, 3.6vw, 17px);
    min-height: clamp(50px, 12vw, 70px);
    padding-left: 2px;
    padding-right: 2px;
  }
  .Course1 .course-meta {
    gap: clamp(12px, 3.4vw, 18px);
  }
  .Course1 .course-meta .meta-icon {
    width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
  }
}
