/* =========================================================
   수정본 파일명 : floor_plan.css
   다운로드용 TXT : floor_plan.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 floor_plan.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 이미지 및 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. 상단 서브 비주얼 영역은 과도하게 높아지지 않도록 기존 compact 높이 기준을 유지합니다.
   5. 유지보수자가 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   6. 애니메이션을 지원하지 않거나 모션 최소화를 설정한 사용자 환경을 고려했습니다.
   ========================================================= */

/* =========================================================
   floor_plan.css
   ---------------------------------------------------------
   단지안내 > 호수 배치도 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/floor_plan.css

   [설명]
   - 기존 하위 페이지와 동일한 전체 톤 유지
   - 상단 서브 비주얼 / 본문 공통 폭 / 제목 구성을 동일하게 유지
   - 본문은 층별 호수 배치도 카드형 구조로 구성
   - 젊은층이 선호할 수 있도록 너무 무겁지 않고
     깔끔한 카드 / 배지 / 범례 UI 적용
   - PC : 넓은 카드형 배치
   - 태블릿 / 모바일 : 세로 1열, 이미지 우선 구조
   ========================================================= */

/* =========================================================
   1. 공통 변수
   ========================================================= */
:root {
    --fp-primary: #006655;
    --fp-primary-dark: #01483c;
    --fp-primary-deep: #003d33;
    --fp-primary-soft: #edf5f3;
    --fp-primary-soft-2: #f5faf8;

    --fp-text-main: #1b2624;
    --fp-text-sub: #61706c;
    --fp-text-white: #ffffff;

    --fp-border: #d8e5e1;
    --fp-line: rgba(0, 0, 0, 0.06);

    --fp-bg: #ffffff;
    --fp-bg-soft: #f7fbfa;

    --fp-shadow: 0 14px 34px rgba(0, 102, 85, 0.08);
    --fp-shadow-hover: 0 18px 42px rgba(0, 102, 85, 0.13);

    --fp-radius-md: 20px;
    --fp-radius-lg: 28px;
    --fp-radius-xl: 34px;

    --fp-width: 1280px;

    /* -----------------------------------------------------
       평형 컬러 예시
       - 실제 평형 구성에 따라 자유롭게 변경 가능
       ----------------------------------------------------- */
    --fp-type-26: #63c7b2;
    --fp-type-36: #7cb8ff;
    --fp-type-common: #ffd36d;
    --fp-type-service: #c7b7ff;
}

/* =========================================================
   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(--fp-text-main);
    word-break: keep-all;
    overflow-x: hidden;
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   - 이미지가 부모 영역보다 커져서 가로 스크롤을 만드는 문제를 방지합니다.
   - 각 페이지의 개별 이미지 클래스에서 object-fit을 별도로 지정하므로,
     여기서는 기본 안전값만 제공합니다.
   ========================================================= */
img {
    max-width: 100%;
}

/* =========================================================
   3. 페이지 전체 배경
   ========================================================= */
.floor-plan-page {
    width: 100%;
    background:
        radial-gradient(circle at top right, rgba(99, 199, 178, 0.12), transparent 24%),
        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(--fp-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(--fp-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

/* =========================================================
   6. 섹션 제목 공통
   ========================================================= */
.floor-plan-intro-section {
    width: 100%;
    margin-bottom: 42px;
}

.section-title-wrap {
    margin-bottom: 30px;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--fp-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--fp-text-main);
}

.section-description {
    max-width: 900px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--fp-text-sub);
}

/* =========================================================
   7. 평형 컬러 범례 박스
   ========================================================= */
.plan-legend-box {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfa 100%);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-xl);
    box-shadow: var(--fp-shadow);
    padding: 26px 28px 28px;
}

.plan-legend-header {
    margin-bottom: 18px;
}

.plan-legend-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--fp-text-main);
}

.plan-legend-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--fp-text-sub);
}

.plan-legend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 102, 85, 0.10);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 16px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.legend-type-26 {
    background: var(--fp-type-26);
}

.legend-type-36 {
    background: var(--fp-type-36);
}

.legend-type-common {
    background: var(--fp-type-common);
}

.legend-type-service {
    background: var(--fp-type-service);
}

.legend-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--fp-text-main);
}

/* =========================================================
   8. 층별 카드 목록
   ========================================================= */
.floor-plan-list-section {
    width: 100%;
}

.floor-plan-card-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* =========================================================
   9. 층별 카드 공통
   ========================================================= */
.floor-plan-card {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-xl);
    box-shadow: var(--fp-shadow);
    overflow: hidden;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.floor-plan-card:hover {
    box-shadow: var(--fp-shadow-hover);
    transform: translateY(-4px);
}

.floor-plan-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 30px 0;
}

.floor-plan-card-title-wrap {
    min-width: 0;
}

.floor-plan-card-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--fp-primary);
}

.floor-plan-card-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--fp-text-main);
}

.floor-plan-badge-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.floor-plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--fp-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.floor-plan-badge-soft {
    background: var(--fp-primary-soft);
    color: var(--fp-primary-dark);
}

.floor-plan-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 26px;
    align-items: stretch;
    padding: 24px 30px 30px;
}

/* =========================================================
   10. 배치도 이미지 영역
   ========================================================= */
.floor-plan-image-wrap {
    position: relative;
    min-height: 420px;
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(99, 199, 178, 0.10), rgba(124, 184, 255, 0.10)),
        #eef5f3;
    border: 1px solid rgba(0, 102, 85, 0.10);
}

.floor-plan-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================================================
   11. 카드 텍스트 영역
   ========================================================= */
.floor-plan-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.floor-plan-content-text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--fp-text-sub);
}

.floor-plan-point-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floor-plan-point-list li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--fp-text-main);
}

.floor-plan-point-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fp-primary);
}

/* =========================================================
   12. 하단 안내 박스
   ========================================================= */
.floor-plan-note-section {
    margin-top: 34px;
}

.floor-plan-note-box {
    width: 100%;
    padding: 28px 30px;
    border-radius: var(--fp-radius-lg);
    background: linear-gradient(135deg, rgba(0, 102, 85, 0.06), rgba(1, 72, 60, 0.04));
    border: 1px solid rgba(0, 102, 85, 0.10);
}

.floor-plan-note-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--fp-text-main);
}

.floor-plan-note-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--fp-text-sub);
}

/* =========================================================
   13. 등장 애니메이션
   ========================================================= */
.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);
}

/* =========================================================
   14. 태블릿 대응
   ========================================================= */
@media (max-width: 1180px) {
    .floor-plan-card-body {
        grid-template-columns: 1fr;
    }

    .floor-plan-image-wrap {
        min-height: 360px;
    }
}

@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;
    }

    .plan-legend-box {
        padding: 22px 22px 24px;
    }

    .floor-plan-card-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 24px 0;
    }

    .floor-plan-badge-group {
        justify-content: flex-start;
    }

    .floor-plan-card-title {
        font-size: 26px;
    }

    .floor-plan-card-body {
        padding: 22px 24px 24px;
    }

    .floor-plan-image-wrap {
        min-height: 300px;
    }
}

/* =========================================================
   15. 모바일 대응
   ========================================================= */
@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 {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .plan-legend-title {
        font-size: 20px;
    }

    .plan-legend-text {
        font-size: 14px;
    }

    .plan-legend-list {
        gap: 10px;
    }

    .legend-item {
        width: 100%;
        justify-content: flex-start;
    }

    .floor-plan-card-list {
        gap: 22px;
    }

    .floor-plan-card-top {
        padding: 20px 18px 0;
    }

    .floor-plan-card-title {
        font-size: 22px;
    }

    .floor-plan-card-body {
        gap: 18px;
        padding: 18px 18px 20px;
    }

    .floor-plan-image-wrap {
        min-height: 220px;
    }

    .floor-plan-content-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .floor-plan-point-list li {
        font-size: 14px;
        line-height: 1.75;
    }

    .floor-plan-note-box {
        padding: 22px 18px;
    }

    .floor-plan-note-title {
        font-size: 19px;
    }

    .floor-plan-note-text {
        font-size: 14px;
        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;
    }
}
