/* =======================
   Contact Page (오시는 길) - 반응형 버전
   ======================= */

:root {
    --contact-red: #e11d2e;
    --contact-gray: #555;
    --contact-black: #111;
}

/* 기본 래퍼 */
.contact-wrap {
    width: min(1500px, 92%);
    margin: clamp(4rem, 6vw, 8rem) auto;
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: "Noto Sans KR", system-ui, sans-serif;
    color: var(--contact-black);
}

/* 상단 영역 */
.contact-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.contact-header .highlight {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 800;
    color: var(--contact-black);
    margin-bottom: 0.5rem;
}
.contact-header p {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--contact-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.contact-logo {
    width: clamp(120px, 10vw, 160px);
    margin: 0 auto;
    display: block;
}

/* =======================
   주소 정보
   ======================= */
.contact-info {
    margin: clamp(2rem, 4vw, 3rem) auto;
    font-size: clamp(0.85rem, 1.2vw, 0.9rem);
    color: var(--contact-gray);
    line-height: 1.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 5rem);
    flex-wrap: wrap;
}
.contact-info strong {
    color: var(--contact-black);
    margin-right: 0.3rem;
}

/* =======================
   지도 섹션
   ======================= */
.map-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1rem, 3vw, 1.5rem);
    flex-wrap: wrap;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.map-item {
    flex: 1;
    min-width: 320px;
    text-align: center;
    max-width: 600px;
}
.map {
    width: 100%;
    height: clamp(300px, 40vw, 400px);
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.map:hover {
    transform: scale(1.02);
}

.map-address {
    margin-top: clamp(0.6rem, 1vw, 0.8rem);
    font-size: clamp(0.85rem, 1.2vw, 0.9rem);
    color: #333;
    text-align: center;
    line-height: 1.5;
}
.map-address strong {
    color: var(--contact-black);
    margin-right: 0.3rem;
}
.map-item h4 {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 600;
    margin-top: clamp(0.6rem, 1vw, 0.8rem);
    color: var(--contact-black);
}

/* 구글 지도 기본 UI 크기 보정 */
.gm-style-mtc, .gm-style-cc {
    transform: scale(0.85);
    transform-origin: bottom right;
}

/* =======================
   하단 CONTACT 정보
   ======================= */
.contact-bottom {
    border-top: 1px solid #eee;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: #333;
}
.contact-bottom h3 {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    font-weight: 700;
    margin-bottom: clamp(0.8rem, 1vw, 1rem);
}
.contact-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
}
.contact-bottom li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1200px / 800px / 600px)
   ========================================================= */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    .contact-info {
        gap: 2rem;
        font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    }
    .map {
        height: clamp(280px, 35vw, 360px);
    }
}

/* --- 800px 이하 --- */
@media (max-width: 800px) {
    .map-section {
        flex-direction: column;
        align-items: center;
    }

    .map-item {
        width: 100%;
        max-width: 500px;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .map {
        height: 320px;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .contact-wrap {
        width: 94%;
        margin: 4rem auto 6rem;
    }

    .contact-info {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .map-item {
        width: 100%;
        min-width: unset;
    }

    .map {
        height: 260px;
        border-radius: 8px;
    }

    .contact-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    .contact-bottom h3 {
        font-size: 1rem;
    }
}
