/* ================================================
   component_main_map_tab.css
   탭 UI 전용 — 기존 CSS 파일 건드리지 않음
   ================================================ */

/* ---------- 전체 섹션 래퍼 ---------- */
.section-map-unified {
  width: 100%;
  background: #ffffff;
  padding: 70px 0 0;
  box-sizing: border-box;
  position: relative;
  z-index: 11;
  isolation: isolate;
}

/* ---------- 섹션 헤더 ---------- */
.map-unified-header {
  text-align: left;
  padding: 0 48px 48px;
  max-width: 1800px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.map-unified-header-copy h2 {
  font-size: 13px;
  font-weight: 600;
  color: #4a5a2a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: 'Pretendard', sans-serif;
}

.map-unified-header-copy strong {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: #000;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-family: 'Pretendard', sans-serif;
  margin-bottom: 14px;
}

.map-unified-header-copy p {
  font-size: 16px;
  color: rgba(0,0,0,0.65);
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  line-height: 1.7;
}

/* ---------- 탭 바 ---------- */
.map-tab-outer {
  padding: 0 48px;
  max-width: 1800px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 20;
}

.map-tab-bar {
  display: inline-flex;
  gap: 4px;
  background: transparent;
  padding: 0;
}

/* ---------- 탭 버튼 ---------- */
.map-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border: 1.5px solid #d0d0d0;   /* 구분선 */
  border-bottom: none;            /* 하단은 패널과 연결되므로 제거 */
  background: #f8f8f8;
  border-radius: 12px 12px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Pretendard', sans-serif;
  letter-spacing: -0.02em;
  transform-origin: bottom center;
  transform: scale(1) translateY(0px);
  transition:
    transform     0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background    0.2s ease,
    color         0.2s ease,
    border-color  0.2s ease,
    box-shadow    0.2s ease;
  position: relative;
}

.map-tab:hover:not(.active) {
  background: #efefef;
  color: #444;
  border-color: #bbb;
}

/* 선택된 탭 */
.map-tab.active {
  background: #fff;
  color: #222;
  border-color: #d0d0d0;
  border-bottom: 2px solid #fff;  /* 패널과 이어지도록 흰색으로 덮음 */
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.map-tab .tab-icon {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-tab.active .tab-icon {
  transform: scale(1.15);
}

.map-tab .tab-label {
  font-size: 1.1rem;
  color: inherit;
}

/* ---------- 패널 래퍼 ---------- */
.map-panel-wrap {
  background: #fff;
  box-shadow: 0 -2px 60px rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #d0d0d0;
  border-radius: 0 0 12px 12px;
}

/* ---------- 패널: 숨김 / 표시 ---------- */
.map-panel {
  display: none;
}

.map-panel.active {
  display: block;
}

/* 패널 내부 기존 섹션의 상단 패딩 줄이기 */
.map-panel > .section-main08,
.map-panel > .section-main09,
.map-panel > .section-main02 {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1200px) {
  .map-unified-header {
    padding: 0 32px 40px;
    flex-direction: column;
    align-items: flex-start;
  }

  .map-unified-header-copy strong {
    font-size: 34px;
  }

  .map-tab-outer {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .section-map-unified {
    padding: 50px 0 0;
  }

  .map-unified-header {
    padding: 0 20px 32px;
  }

  .map-unified-header-copy strong {
    font-size: 26px;
  }

  .map-unified-header-copy p {
    font-size: 14px;
  }

  .map-tab-outer {
    padding: 0 20px;
    overflow-x: auto;
  }

  .map-tab-bar {
    min-width: max-content;
  }

  .map-tab {
    padding: 12px 18px;
    font-size: 0.82rem;
    border-radius: 10px 10px 0 0;
  }

  .map-tab .tab-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .map-tab {
    padding: 10px 14px;
    font-size: 0.78rem;
    gap: 0;
  }
}