/* =========================================================
   수정본 파일명 : directions.css
   다운로드용 TXT : directions.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 directions.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 이미지 및 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. 상단 서브 비주얼 영역은 과도하게 높아지지 않도록 기존 compact 높이 기준을 유지합니다.
   5. 유지보수자가 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   6. 애니메이션을 지원하지 않거나 모션 최소화를 설정한 사용자 환경을 고려했습니다.
   ========================================================= */

/* =========================================================
   directions.css
   ---------------------------------------------------------
   사업안내 > 오시는 길 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/directions.css

   [설명]
   - 기존 사업개요 / 교통환경 / 입지환경 / 특장점 페이지와
     동일한 페이지 톤 유지
   - 상단 서브 비주얼은 기존 서브페이지와 같은 구조로 구성
   - 본문은 지도 상단, 교통편 카드 하단 배치
   - PC / 태블릿 / 모바일 모두 자연스럽게 대응
   ========================================================= */

/* =========================================================
   1. 공통 변수
   ========================================================= */
:root {
    --directions-primary: #006655;
    --directions-primary-dark: #01483c;
    --directions-primary-deep: #003d33;
    --directions-primary-soft: #edf5f3;
    --directions-primary-soft-2: #f5faf8;

    --directions-text-main: #1b2624;
    --directions-text-sub: #61706c;
    --directions-text-white: #ffffff;

    --directions-border: #d8e5e1;
    --directions-border-strong: #bdd4cd;
    --directions-line: rgba(0, 0, 0, 0.06);

    --directions-bg: #ffffff;
    --directions-bg-soft: #f7fbfa;

    --directions-shadow: 0 14px 34px rgba(0, 102, 85, 0.08);
    --directions-shadow-hover: 0 18px 42px rgba(0, 102, 85, 0.12);

    --directions-radius-md: 20px;
    --directions-radius-lg: 28px;

    --directions-width: 1280px;
}

/* =========================================================
   2. 기본 초기화
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /*
       사이트 전체 기본 글꼴입니다.
       header.css 또는 공통 CSS에서 이미 지정되어 있더라도,
       개별 페이지 CSS만 단독으로 로딩되는 경우를 대비해 동일한 폰트 스택을 명시합니다.
    */
    font-family:
        "Pretendard",
        "Noto Sans KR",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--directions-text-main);
    word-break: keep-all;
    overflow-x: hidden;
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   - 이미지가 부모 영역보다 커져서 가로 스크롤을 만드는 문제를 방지합니다.
   - 각 페이지의 개별 이미지 클래스에서 object-fit을 별도로 지정하므로,
     여기서는 기본 안전값만 제공합니다.
   ========================================================= */
img {
    max-width: 100%;
}

/* =========================================================
   3. 페이지 전체 배경
   ========================================================= */
.directions-page {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

/* =========================================================
   4. 상단 서브 비주얼
   - 기존 서브페이지와 동일한 톤 유지
   ========================================================= */
.sub-hero-section {
    position: relative;
    width: 100%;
    min-height: 140px; /* 기존 대화 반영: 현재 페이지/입지환경 텍스트 영역처럼 상단 배경이 과도하게 높지 않도록 compact 기준 유지 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    background:
        linear-gradient(135deg, rgba(0, 102, 85, 0.92), rgba(1, 72, 60, 0.88)),
        url("/hgaebong/assets/images/index/slide1.webp") center center / cover no-repeat;
    overflow: hidden;
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.10), transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08), transparent 24%),
        rgba(0, 0, 0, 0.08);
}

.sub-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--directions-width);
    margin: 0 auto;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.84);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.breadcrumb a:hover {
    opacity: 0.78;
}

.breadcrumb-separator {
    opacity: 0.7;
}

.breadcrumb-current {
    font-weight: 700;
    color: #ffffff;
}

.sub-hero-title {
    margin: 0 0 10px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.sub-hero-description {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   5. 본문 공통 폭
   ========================================================= */
.page-content-wrap {
    width: 100%;
    max-width: var(--directions-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

.directions-main-section {
    width: 100%;
}

/* =========================================================
   6. 섹션 제목 공통
   ========================================================= */
.section-title-wrap {
    margin-bottom: 34px;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--directions-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--directions-text-main);
}

.section-description {
    max-width: 860px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--directions-text-sub);
}

/* =========================================================
   7. 지도 블록 영역
   ========================================================= */
.directions-map-block {
    width: 100%;
    margin-bottom: 70px;
}

.directions-info-card {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid var(--directions-border);
    border-radius: var(--directions-radius-lg);
    box-shadow: var(--directions-shadow);
    overflow: hidden;
}

/* ---------------------------------------------------------
   상단 정보 영역
   --------------------------------------------------------- */
.directions-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 32px 26px;
    border-bottom: 1px solid var(--directions-line);
    background: linear-gradient(135deg, #ffffff 0%, #f6fbf9 100%);
}

.directions-info-left {
    flex: 1;
    min-width: 0;
}

.directions-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--directions-primary);
}

.directions-info-title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--directions-text-main);
    letter-spacing: -0.03em;
}

.directions-info-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--directions-text-sub);
}

.directions-info-right {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.directions-address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--directions-primary-soft);
    border: 1px solid var(--directions-border-strong);
    border-radius: 18px;
}

.directions-address-icon {
    font-size: 22px;
    color: var(--directions-primary);
    flex-shrink: 0;
}

.directions-address-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--directions-text-main);
}

.directions-map-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--directions-primary), var(--directions-primary-dark));
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 102, 85, 0.18);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.directions-map-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 102, 85, 0.24);
    opacity: 0.96;
}

.directions-map-link-icon {
    font-size: 20px;
    line-height: 1;
}

/* ---------------------------------------------------------
   지도 패널
   --------------------------------------------------------- */
.directions-map-panel {
    width: 100%;
    padding: 26px 32px 32px;
}

.directions-map-frame {
    width: 100%;
    min-height: 620px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--directions-border);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.kakao-map-link {
    display: block;
    width: 100%;
    height: 100%;
}

.kakao-static-map-image {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
    object-fit: cover;
}

.kakao-map-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #f9fbfb;
}

.kakao-map-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: #eef5f3;
}

.kakao-map-logo-text .material-symbols-rounded {
    font-size: 18px;
    color: var(--directions-primary);
}

.kakao-map-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kakao-map-more-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--directions-primary-deep);
    text-decoration: none;
}

.kakao-map-more-link:hover {
    text-decoration: underline;
}

/* =========================================================
   8. 교통편 안내 영역
   ========================================================= */
.transport-guide-section {
    width: 100%;
}

.transport-guide-heading {
    margin-bottom: 28px;
}

.transport-guide-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--directions-primary);
}

.transport-guide-title {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--directions-text-main);
}

.transport-guide-description {
    margin: 0;
    max-width: 840px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--directions-text-sub);
}

/* ---------------------------------------------------------
   교통편 카드 그리드
   --------------------------------------------------------- */
.transport-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* ---------------------------------------------------------
   교통편 카드 공통
   --------------------------------------------------------- */
.transport-guide-card {
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid var(--directions-border);
    border-radius: var(--directions-radius-lg);
    box-shadow: var(--directions-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.transport-guide-card:hover {
    box-shadow: var(--directions-shadow-hover);
    transform: translateY(-4px);
}

.transport-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 24px 0;
}

.transport-card-icon {
    font-size: 24px;
    color: var(--directions-primary);
    flex-shrink: 0;
}

.transport-card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--directions-text-main);
}

.transport-card-body {
    padding: 20px 24px 26px;
}

.transport-card-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: var(--directions-text-main);
}

/* =========================================================
   9. 등장 애니메이션
   ========================================================= */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal-up {
    transform: translateY(44px);
}

.reveal-left {
    transform: translateX(-44px);
}

.reveal-right {
    transform: translateX(44px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================================
   10. 반응형 대응
   ========================================================= */
@media (max-width: 1280px) {
    .transport-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .directions-info-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .directions-info-right {
        max-width: 100%;
        width: 100%;
    }

    .directions-map-frame {
        min-height: 560px;
    }

    .kakao-static-map-image {
        min-height: 500px;
    }
}

@media (max-width: 900px) {
    .sub-hero-section {
        min-height: 200px;
        padding: 50px 20px 30px;
    }

    .sub-hero-title {
        font-size: 42px;
    }

    .sub-hero-description {
        font-size: 17px;
    }

    .page-content-wrap {
        padding: 70px 20px 90px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-description {
        font-size: 16px;
    }

    .directions-info-top {
        padding: 26px 24px 22px;
    }

    .directions-info-title {
        font-size: 28px;
    }

    .directions-map-panel {
        padding: 22px 24px 24px;
    }

    .directions-map-frame {
        min-height: 500px;
        border-radius: 24px;
    }

    .kakao-static-map-image {
        min-height: 440px;
    }

    .transport-guide-title {
        font-size: 30px;
    }

    .transport-card-title {
        font-size: 21px;
    }

    .transport-card-text {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .sub-hero-section {
        min-height: 180px;
        padding: 42px 16px 24px;
    }

    .sub-hero-title {
        font-size: 28px;
    }

    .sub-hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .page-content-wrap {
        padding: 55px 16px 80px;
    }

    .section-title-wrap {
        margin-bottom: 24px;
    }

    .section-kicker,
    .transport-guide-kicker {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description,
    .transport-guide-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .directions-map-block {
        margin-bottom: 50px;
    }

    .directions-info-card {
        border-radius: 22px;
    }

    .directions-info-top {
        padding: 22px 18px 18px;
        gap: 18px;
    }

    .directions-info-title {
        font-size: 24px;
    }

    .directions-info-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .directions-address-box {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .directions-address-text {
        font-size: 14px;
    }

    .directions-map-link-btn {
        min-height: 48px;
        font-size: 14px;
        padding: 0 16px;
    }

    .directions-map-panel {
        padding: 18px 18px 18px;
    }

    .directions-map-frame {
        min-height: 380px;
        border-radius: 20px;
    }

    .kakao-static-map-image {
        min-height: 320px;
    }

    .kakao-map-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .transport-guide-title {
        font-size: 26px;
    }

    .transport-guide-grid {
        grid-template-columns: 1fr;
    }

    .transport-card-header {
        padding: 20px 18px 0;
    }

    .transport-card-title {
        font-size: 20px;
    }

    .transport-card-body {
        padding: 18px 18px 22px;
    }

    .transport-card-text {
        font-size: 15px;
        line-height: 1.8;
    }
}


/* =========================================================
   접근성 보완 : 모션 최소화 설정 대응
   ---------------------------------------------------------
   사용자의 브라우저 또는 OS에서 '동작 줄이기'가 설정되어 있으면
   스크롤 등장 애니메이션과 hover 이동 효과를 최소화합니다.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal.active {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .overview-image,
    .community-card,
    .community-card-image,
    .directions-map-link-btn,
    .transport-guide-card,
    .finance-link-btn,
    .floor-plan-card {
        transition: none;
    }
}
