@charset "utf-8";

/* =========================== 공통 변수 =========================== */
:root {
  --primary: #3ec890;
  --primary-20: rgba(62, 200, 144, .2);
  --second: #102e48;
  --mainsize: 1460px;
  --enfont: 'Wix Madefor Display';
  --line: #e9ecef;
  --text: #222;
  --muted: #666;
  --bg: #fff;
  --radius: 16px;
}

/* =========================== SUB (서브 상단 비주얼) =========================== */
#shSub {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  margin: 0 auto;
  background: url(../img/sub/company1_bg.jpg) center no-repeat;
  background-size: cover;
}

#shSub .txt_area {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--k-font);
}

#shSub .txt_area p {
  margin-bottom: 20px;
  font-size: 46px;
  font-weight: 700;
}

#shSub .txt_area div {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

#shSub .txt_area div a { padding-top: 3px; }
#shSub .txt_area div svg { fill: #fff; }
#shSub .txt_area div i { margin: 0 20px; font-size: 14px; }
#shSub .sub_tit { display: none; }

/* 반응형 서브 비주얼 */
@media (max-width: 1024px) {
  #shSub { height: 350px; }
  #shSub .txt_area p { margin-bottom: 10px; font-size: 36px; }
  #shSub .txt_area div { font-size: 15px; }
  #shSub .txt_area div i { margin: 0 15px; }
}

@media (max-width: 480px) {
  #shSub {
    height: 55px;
    background: none;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
  }
  #shSub .txt_area p { margin: 0; font-size: 16px; color: #000; }
  #shSub .txt_area div { display: none; }
}

/* =========================== SNB (서브 네비게이션) =========================== */
#shSnb {
  display: flex;
  justify-content: center;
  margin: 0 auto 50px;
  background: var(--primary);
}

#shSnb li + li { border-left: 1px solid rgba(255, 255, 255, .15); }

#shSnb li a {
  display: block;
  min-width: 160px;
  height: 62px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 500;
  line-height: 62px;
  text-align: center;
  color: #fff;
  font-family: var(--k-font);
}

#shSnb li.on a {
  font-weight: 600;
  color: var(--primary);
  background: #fff;
}

@media (max-width: 1024px) {
  #shSnb { display: none; }
}

/* =========================== 오시는 길 (LOCATION PAGE) =========================== */
#locationPage {
  color: var(--text);
  font-family: system-ui, -apple-system, "Pretendard", "Noto Sans KR", Arial, sans-serif;
  background: #fff;
  overflow: hidden; /* 가로 스크롤 방지 */
}

#locationPage * { box-sizing: border-box; }

/* 상단 헤더 섹션 */
#locationPage .loc-hero {
  text-align: center;
  padding: 80px 20px 40px;
}

#locationPage .loc-hero-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--primary);
  text-transform: uppercase;
}

#locationPage .loc-hero-line {
  display: block;
  width: 1px;
  height: 30px;
  margin: 15px auto;
  background: var(--primary);
}

#locationPage .loc-hero-sub {
  margin: 0 0 10px;
  font-size: 18px;
  color: #aaa;
  font-weight: 400;
}

#locationPage .loc-hero-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

#locationPage .loc-hero-title b { color: var(--primary); font-weight: 800; }

/* 탭 버튼 스타일 */
#locationPage .loc-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

#locationPage .loc-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: #000;
  height: 45px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}

#locationPage .loc-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-20);
}

/* 본문 레이아웃 */
#locationPage .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* 오시는 길 상단 텍스트 중앙 정렬 */
#locationPage .location-head {
    display: flex;
    flex-direction: column;
    align-items: center; /* 가로 중앙 정렬 */
    text-align: center;  /* 텍스트 중앙 정렬 */
    gap: 15px;
    margin-bottom: 50px;
}

/* 타이틀 하단 포인트 라인 중앙 배치 */
#locationPage .location-title {
    font-size: 24px;
    font-weight: 800;
    position: relative;
    padding-bottom: 30px;
    color: #111;
}

#locationPage .location-title::after {
    content: '';
    position: absolute;
    left: 50%;           /* 중앙 배치 */
    transform: translateX(-50%);
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

/* 주소 및 메타 정보 중앙 정렬 */
#locationPage .location-meta .addr {
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0;
    color: var(--muted);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    #locationPage .meta-row {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

#locationPage .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  color: var(--muted);
}

#locationPage .meta-item b {
  color: #333;
  margin-right: 8px;
}

/* 지도: 안정형(추천) */
#locationPage .map-box,
#locationPage .map-box.full-bleed{
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 !important;
  left: auto !important;
  right: auto !important;
  height: 500px !important;
  position: relative !important;
}

#locationPage .map-box iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 1. 전체 배경 및 프레임 구분 제거 (강력 초기화) */
#sh_wrapper, 
#sh_container, 
#sh_container_wrapper, 
#sh_content, 
#locationPage {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important; /* 회색 테두리 느낌을 주는 그림자 제거 */
    max-width: 100% !important;
}

/* 2. 푸터 상단에 생기는 흰색/회색 도형이나 구분선 강제 제거 */
footer, .ft_upper, .white-shape, #sh_ft_upper {
    display: block !important; /* 푸터 상단 디자인 요소가 있다면 제거 */
}
footer {
    display: block !important; /* 푸터 본문은 보여야 함 */
}

/* 3. 탭 버튼 활성화 스타일 */
.loc-tab {
    transition: all 0.3s ease;
}
.loc-tab.is-active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* 4. 탭 패널 제어 */
.loc-panel { display: none; }
.loc-panel.is-active { display: block !important; }

/* 5. 지도 위치 보정 (풀블리드) */
.map-box.full-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
}
.map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 컨테이너 배경 고정 */
#sh_container,
#sh_container_wrapper,
#sh_content {
  background: #fff !important;
}

/* 모바일 반응형 추가 수정 */
@media (max-width: 768px) {
  #locationPage .loc-hero { padding: 50px 20px 30px; }
  #locationPage .loc-hero-title { font-size: 24px; }
  #locationPage .map-box { height: 350px; }
  #locationPage .meta-row { flex-direction: column; gap: 10px; }
}

/* 가로 스크롤 방지를 위해 body에 추가 */
body { overflow-x: hidden; }

/* 탭 패널 기본 숨김 */
.loc-panel { display: none !important; }
.loc-panel.is-active { display: block !important; }

/* 지도 풀블리드 교정 */
#locationPage .map-box.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: 500px;
  position: relative;
  left: 0;
  border: none;
}

/* 탭 버튼 스타일 보강 */
.loc-tab {
  transition: all 0.3s ease;
  outline: none;
  border: 1px solid #ddd;
}
.loc-tab.is-active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(62, 200, 144, 0.3);
}

/* 1. 탭 컨텐츠 숨김/표시 로직 확실히 하기 */
.loc-panel { 
    display: none !important; 
}
.loc-panel.is-active { 
    display: block !important; 
}

/* 2. 지도 풀블리드(너비 100%) 깨짐 방지 */
#locationPage .map-box.full-bleed {
    width: 100%; /* 부모 너비에 맞춤 */
    max-width: 100vw;
    margin: 20px 0;
    left: auto;
    right: auto;
}

/* 정보 영역을 가로 카드 형태로 변경 */
#locationPage .info {
    display: flex;             /* 가로 정렬 */
    justify-content: center;   /* 가운데 정렬 */
    gap: 20px;                 /* 카드 사이 간격 */
    margin-top: 70px;
    padding: 0 10px;
}

#locationPage .info-row {
    flex: 1;                   /* 동일한 너비 배분 */
    max-width: 380px;          /* 최대 너비 제한 */
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 20px;       /* 둥근 모서리 */
    border: 1px solid #f0f0f0; /* 연한 테두리 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 은은한 그림자 */
    display: flex;
    flex-direction: column;    /* 아이콘과 텍스트 세로 배치 */
    align-items: center;       /* 중앙 정렬 */
    text-align: center;
    transition: all 0.3s ease;
}

/* 마우스 올렸을 때 효과 */
#locationPage .info-row:hover {
    transform: translateY(-10px);
    border-color: #3EC890;
    box-shadow: 0 15px 35px rgba(62, 200, 144, 0.15);
}

/* 아이콘 박스 스타일 */
#locationPage .info-row .icon {
    width: 60px;
    height: 60px;
    background: #f4fbf8;
    color: #3EC890;
    border-radius: 50%;        /* 원형 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* 텍스트 스타일 */
#locationPage .info-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
}

#locationPage .info-desc {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    word-break: keep-all;      /* 단어 단위 줄바꿈 */
}

/* 모바일 대응: 화면이 좁아지면 세로로 나열 */
@media (max-width: 1024px) {
    #locationPage .info {
        flex-direction: column;
        align-items: center;
    }
    #locationPage .info-row {
        width: 100%;
        max-width: 500px;
    }
}
/* 기본 상태: 숨김 */
.loc-panel {
    display: none;
}

/* 활성화 상태: 표시 (자바스크립트가 클래스를 붙여줄 것임) */
.loc-panel.is-active {
    display: block !important;
}

/* 추가로 확인: 지도가 안 보일 수 있으니 iframe 크기를 잡습니다 */
.map-box iframe {
    width: 100%;
    height: 500px !important;
    min-height: 400px;
    border: 0;
}
/* [최종] 탭 패널 표시 제어: 이게 맨 아래 1순위 */
#locationPage .loc-panel{display:none !important;}
#locationPage .loc-panel.is-active{display:block !important;}

/* 오시는 길 페이지에서만 잘림 방지 */
#locationPage { overflow: visible !important; }
#locationPage .wrap { overflow: visible !important; }
#sh_content:has(#locationPage) { overflow: visible !important; } /* 최신 브라우저 */