/* =================================================================
   map.css — 오시는 길 페이지(map.php) 전용
   - 불러오는 곳: map.php ($page_styles, 구글 폰트 Noto Sans KR/Montserrat와 함께)
   - 구성: 주소 카드 → 전화·이메일 줄 → 지도 탭 + 지도 → 교통 안내 카드
   - 탭 전환 동작은 assets/js/pages/map.js (.active 붙이기)
   - 참고: 변수 이름은 --green-* 이지만 실제 값은 파란색 계열
   - 참고: 아래 * / body 규칙 때문에 이 페이지만 기본 글꼴이 Noto Sans KR이 됨
   - 상단 배너 모양은 style.css "6. 서브 페이지 상단 배너" 구역
   ================================================================= */

/* ── 색상 변수 · 기본 초기화 ── */
:root {
    --green-primary: #1a6fc4;
    --green-dark: #0d4f96;
    --green-light: #e3eef9;
    --green-mid: #4a96e0;
    --gray-dark: #2c2c2c;
    --gray-mid: #555;
    --gray-light: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--gray-dark);
    background: var(--white);
}

/* ── 본문 전체 틀 ── */
.location-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ── 주소 카드 (아이콘 + 주소 줄) ── */
.address-card {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    background: var(--white);
    border-radius: 10px;
    padding: 36px 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.address-icon-wrap {
    width: 64px;
    height: 64px;
    background: #0057FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.address-icon-wrap svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.address-content {
    flex: 1;
    min-width: 220px;
}

.address-content h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.address-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-mid);
}

.address-row .label {
    font-weight: 700;
    color: var(--gray-dark);
    white-space: nowrap;
    min-width: 80px;
    font-size: 13px;
}

/* ── 연락처 줄 (전화 / 팩스 / 이메일 아이콘) ── */
.contact-strip {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 100px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-item .ci-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item.tel .ci-icon {
    background: #e8f5e4;
}

.contact-item.email .ci-icon {
    background: #e3f2fd;
}

.contact-item .ci-icon svg {
    width: 16px;
    height: 16px;
}

.contact-item.tel .ci-icon svg {
    fill: var(--green-primary);
}

.contact-item.email .ci-icon svg {
    fill: #1976d2;
}

.contact-item .ci-label {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-dark);
}

.contact-item .ci-value {
    font-size: 14px;
    color: var(--gray-mid);
    margin-left: 2px;
}

/* ── 지도 탭 버튼 (선택된 탭 = .active, 밑줄 표시) ── */
.tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 13px 30px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    border: none;
    background: none;
    color: var(--gray-mid);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    letter-spacing: -0.3px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--green-primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.tab-btn.active {
    color: var(--green-primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    color: var(--green-primary);
}

/* ── 지도 영역 (구글 지도 iframe) ── */
.map-container {
    width: 100%;
    height: 460px;
    border: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: var(--gray-light);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── 탭 내용 (.active 붙은 탭만 보임) ── */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── 교통 안내 카드 (자가용 / 지하철 / 버스) ── */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.transport-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 28px 24px;
    background: var(--white);
    transition: box-shadow 0.2s, transform 0.2s;
}

.transport-card:hover {
    box-shadow: 0 8px 28px rgba(26, 111, 196, 0.12);
    transform: translateY(-3px);
}

.transport-card .tc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--green-light);
}

.transport-card .tc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-light);
    flex-shrink: 0;
}

.transport-card .tc-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--green-primary);
}

.transport-card .tc-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-dark);
}

.transport-card ul {
    list-style: none;
    padding: 0;
}

.transport-card ul li {
    font-size: 13.5px;
    color: var(--gray-mid);
    line-height: 1.65;
    padding: 5px 0 5px 18px;
    position: relative;
    border-bottom: 1px dashed #eee;
    /* 한글 단어 중간에서 줄바꿈되지 않도록 ("모라 / 로", "하 / 차" 방지) */
    word-break: keep-all;
    overflow-wrap: break-word;
}

.transport-card ul li:last-child {
    border-bottom: none;
}

.transport-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--green-primary);
    font-size: 11px;
    top: 7px;
}

.transport-card ul li strong {
    color: var(--gray-dark);
    font-weight: 600;
}

/* ── 반응형 (모바일 768px 이하) ── */
@media (max-width: 768px) {
    .address-card {
        padding: 24px;
        flex-direction: column;
        gap: 20px;
    }

    .contact-strip {
        padding-left: 0;
        gap: 20px;
    }

    .tab-btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .transport-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 320px;
    }
}

/* ── 예전 인라인 style="" 속성을 옮긴 규칙 (여백 · 지도 테두리) ── */
.map-spacer-top {
    margin-bottom: 50px;
}

/* 모바일(768px 이하): 배너 → 주소 카드 사이 빈 공간 줄임 (배너 아래 여백 약 56px로 통일) */
@media (max-width: 768px) {
    .map-spacer-top {
        margin-bottom: 0;
    }

    .location-wrap {
        padding-top: 32px;
    }
}

.map-spacer-bottom {
    margin-bottom: 20px;
}

#tab-hq .map-container iframe {
    border: 0;
}

/* ── 지점이 본사 1곳뿐이라 탭 줄은 숨김 (마크업은 지점 추가 대비 유지 — 탭이 2개 이상이 되면 이 규칙 삭제) ── */
.tab-nav {
    display: none;
}

/* 탭 줄이 없으므로 지도 네 모서리를 모두 둥글게 */
.map-container {
    border-radius: 10px;
}

/* 주소가 "(모라 / 동"처럼 한글 단어 중간에서 끊기지 않게 단어 단위로 줄바꿈 */
.address-row {
    word-break: keep-all;
    overflow-wrap: break-word;
}
