/* sub5.css - 오시는길 페이지 */

:root {
    --accent-color: #82b429;
}

/* ============================================
   1. 기본 서브 구조 - 공통 동기화 (sub3, 4 동일)
   ============================================ */
.sub_wrapper { background-color: #fff; min-height: 100vh; }

.sub_hero { position: relative; width: 100%; margin: -1px 0 !important; padding: 0 !important; line-height: 0; font-size: 0; overflow: hidden; background: none !important; }
.sub_hero img { width: 100%; height: auto !important; display: block; margin: 0 !important; padding: 0 !important; border: none !important; }
.hero_text_overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; background-color: rgba(0,0,0,0.2); z-index: 10; }
.hero_text_overlay .hero_title { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 10px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); letter-spacing: -1px; }
.hero_text_overlay .hero_subtitle { font-size: 18px; color: #eee; font-weight: 500; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.sub_lnb { border-bottom: 1px solid #eee; background-color: #fcfcfc; position: relative; z-index: 900; height: 60px; display: flex; align-items: center; margin: 0 !important; padding: 5px !important; border-top: none !important; }
.sub_lnb .lnb_inner { display: flex; align-items: center; gap: 15px; }
.sub_lnb .home_btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background-color: #fff; border: 1px solid #eee; border-radius: 50%; font-size: 16px; color: #444; transition: 0.3s; }
.sub_lnb .home_btn:hover { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.sub_lnb .lnb_item { position: relative; }
.sub_lnb .lnb_btn { height: 44px; padding: 0 25px; background-color: #fff; border: 1px solid #eee; border-radius: 30px; font-size: 14px; font-weight: 600; color: #444; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.sub_lnb .lnb_btn:hover { border-color: var(--accent-color); }
.sub_lnb .lnb_btn.color_accent { border-color: var(--accent-color); color: var(--accent-color); background-color: rgba(130,180,41,0.05); }
.sub_lnb .lnb_dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 160px; background-color: #fff; border: 1px solid #eee; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: none; padding: 10px 0; overflow: hidden; z-index: 1000; }
.sub_lnb .lnb_dropdown.show { display: block; }
.sub_lnb .lnb_dropdown li a { display: block; padding: 10px 20px; font-size: 14px; color: #666; transition: 0.2s; }
.sub_lnb .lnb_dropdown li a:hover,
.sub_lnb .lnb_dropdown li.active a { background-color: #f9f9f9; color: var(--accent-color); font-weight: 700; }

.sub_content_area { padding: 80px 0 120px; }
.sub_content_area .content_inner { display: flex; gap: 80px; }

.sub_sidebar { width: 260px; flex-shrink: 0; }
.sub_sidebar .side_title_box { background: linear-gradient(45deg, var(--accent-color), #6e9a0f); padding: 30px 25px; margin-bottom: 0; border-radius: 8px 8px 0 0; }
.sub_sidebar .side_title { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.sub_sidebar .side_menu_list { border: 1px solid #eee; border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; }
.sub_sidebar .side_menu_list li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; font-size: 16px; color: #555; font-weight: 500; border-bottom: 1px solid #f2f2f2; transition: 0.3s; }
.sub_sidebar .side_menu_list li.active a { background-color: #f8faf2; color: var(--accent-color); font-weight: 700; }

.sub_main_content { flex: 1; }
.content_header { margin-bottom: 60px; }
.content_header .page_title { font-size: 36px; font-weight: 800; color: #111; margin-bottom: 15px; }
.content_header .title_bar { width: 40px; height: 4px; background-color: var(--accent-color); }


/* ============================================
   2. 오시는 길 전용 UI 컴포넌트
   ============================================ */
.map_section_wrap {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.map_card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* 상단 타이포 및 리본 영역 */
.map_card_header {
    padding: 25px 30px;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fafbfc;
}

.map_card_header i {
    font-size: 28px;
    color: var(--accent-color);
}

.map_card_header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    margin: 0;
}

/* 지도 영역 */
.map_frame_area {
    width: 100%;
    height: 400px;
    position: relative;
    background-color: #eaeaea;
}

.map_frame_area .naver_map_container {
    width: 100%;
    height: 100%;
}

.map_placeholder_overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    text-align: center;
    z-index: 100;
}
.map_placeholder_overlay i { font-size: 40px; color: #aaa; margin-bottom: 15px; }
.map_placeholder_overlay p { font-size: 16px; color: #555; }
.map_placeholder_overlay span { display: inline-block; background: var(--accent-color); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 13px; margin-top: 10px; }


/* 정보 영역 */
.map_info_area {
    padding: 35px 30px;
    background-color: #fff;
}

.info_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.info_list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info_list li .icon_box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(130, 180, 41, 0.08); /* accent color very light */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info_list li .icon_box i {
    font-size: 18px;
    color: var(--accent-color);
}

.info_list li .text_box {
    flex: 1;
}

.info_list li .label {
    display: block;
    font-size: 13px;
    color: #888;
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.info_list li .value {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    word-break: keep-all;
}

.info_list li .value a {
    color: #333;
    transition: color 0.2s;
}
.info_list li .value a:hover {
    color: var(--accent-color);
}

/* 풀위드 아이템 (주소 주로 사용) */
.info_list li.full_width {
    grid-column: 1 / -1;
}

/* 네이버 커스텀 인포 윈도우 스타일 (js에서 그릴때) */
.iw_inner {
    padding: 15px;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background-color: #fff;
}
.iw_inner h3 { margin: 0 0 5px; font-size: 16px; font-weight: 800; color: var(--accent-color); }
.iw_inner p { margin: 0; color: #555; }


/* ============================================
   3. 모바일 반응형 처리
   ============================================ */
@media screen and (max-width: 1024px) {
    .sub_content_area .content_inner { display: block; }
    .sub_sidebar { display: none; }
    .sub_main_content { width: 100%; }
}

@media screen and (max-width: 768px) {
    .sub_content_area { padding: 40px 0 80px; }
    .content_header .page_title { font-size: 28px; }
    
    .sub_lnb { height: auto; padding: 5px 0 10px 0 !important; }
    .sub_lnb .lnb_inner { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .sub_lnb .home_btn { width: 40px; height: 40px; min-width: 40px; }
    .sub_lnb .lnb_btn { padding: 0 15px; font-size: 13px; }
    
    .hero_text_overlay .hero_title { font-size: 24px; margin-bottom: 5px; }
    .hero_text_overlay .hero_subtitle { font-size: 13px; }

    /* Map Card Mobile adjustments */
    .map_section_wrap { gap: 40px; }
    
    .map_card_header { padding: 20px 20px; }
    .map_card_header h3 { font-size: 20px; }
    
    .map_frame_area { height: 300px; }
    
    .map_info_area { padding: 25px 20px; }
    .info_list { grid-template-columns: 1fr; gap: 20px; }
    
    .info_list li .icon_box { width: 36px; height: 36px; }
    .info_list li .icon_box i { font-size: 16px; }
    .info_list li .value { font-size: 15px; }
}
