@charset "utf-8";

/* ========================================
   UNIT (평면정보)
   Figma PC 1147:8156 / MO 1147:8647
   단위: 시안 1px = var(--px)
======================================== */
.temp_unit_skin1 .page_container {
    max-width: calc(1200 * var(--px));
    margin-left: auto;
    margin-right: auto;
}

.unit_page {
    color: #fff;
    font-family: var(--font-pretendard);
}

.unit_page img {
    display: block;
    max-width: 100%;
}

.unit_page ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ========================================
   UNIT ::: 타입 탭 (타입이 2개 이상일 때만 노출) — 공통 탭(.sub_tab, temp_contents.css) 사용
======================================== */
.unit_page .unit_tab {
    margin-bottom: calc(30 * var(--px));
}

/* ========================================
   UNIT ::: 타이틀 배너 (1147:8188)
======================================== */
.unit_page .unit_top_info {
    display: flex;
    flex-direction: column;
}

.unit_page .info_left {
    position: relative;
    height: calc(270 * var(--px));
    overflow: hidden;
    background: #baa48e;
}

.unit_page .unit_head_img {
    position: absolute;
    inset: 0;
}

.unit_page .unit_head_img picture {
    display: block;
    width: 100%;
    height: 100%;
}

.unit_page .unit_head_img img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center bottom;
}

.unit_page .unit_head_img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.unit_page .unit_head_cap {
    position: absolute;
    right: calc(12 * var(--px));
    bottom: calc(13 * var(--px));
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: calc(11 * var(--px));
    font-weight: 400;
    line-height: 1;
    text-align: right;
}

.unit_page .unit_head_info {
    position: absolute;
    top: calc(50% + 5.5 * var(--px));
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(40 * var(--px));
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    white-space: nowrap;
}

.unit_page .unit_head_txt {
    margin: 0;
    font-size: calc(24 * var(--px));
    line-height: 1;
}

.unit_page .unit_head_txt strong {
    font-weight: 700;
}

.unit_page .unit_head_txt span {
    font-weight: 300;
}

.unit_page .unit_head_type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(16 * var(--px));
}

.unit_page .unit_head_type .tit {
    margin: 0;
    font-size: calc(74 * var(--px));
    font-weight: 700;
    letter-spacing: calc(-1.48 * var(--px));
    line-height: 1;
}

.unit_page .unit_head_type .count {
    display: flex;
    align-items: center;
    gap: calc(16 * var(--px));
    margin: 0;
    font-size: calc(20 * var(--px));
    font-weight: 700;
    line-height: normal;
}

.unit_page .unit_head_type .count::before,
.unit_page .unit_head_type .count::after {
    content: "";
    width: 1px;
    height: calc(23.13 * var(--px));
    background: #fff;
}

/* ========================================
   UNIT ::: 면적 · 키맵 (1147:8202)
======================================== */
.unit_page .info_right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(50 * var(--px));
    padding: calc(40 * var(--px)) 0 calc(20 * var(--px));
}

.unit_page .unit_area {
    display: flex;
    justify-content: center;
    gap: calc(60 * var(--px));
}

.unit_page .unit_area dl {
    display: flex;
    align-items: center;
    gap: calc(14 * var(--px));
    margin: 0;
}

.unit_page .unit_area dt {
    padding-right: calc(14 * var(--px));
    border-right: 1px solid #505050;
    color: #ccc;
    font-size: calc(18 * var(--px));
    font-weight: 700;
    letter-spacing: calc(3.6 * var(--px));
    line-height: 1;
    white-space: nowrap;
}

.unit_page .unit_area dd {
    margin: 0;
    color: #808080;
    font-size: calc(18 * var(--px));
    font-weight: 600;
    line-height: normal;
    text-align: right;
    white-space: nowrap;
}

.unit_page .unit_keymap {
    width: calc(360 * var(--px));
    height: calc(256 * var(--px));
}

.unit_page .unit_keymap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   UNIT ::: 하위 탭 (1147:8163)
======================================== */
.unit_page .unit_tab_con {
    margin-top: calc(60 * var(--px));
}

.unit_page .unit_tab_con .tab_list {
    display: flex;
    justify-content: center;
}

/* 탭 너비는 3개 기준(1/3) 그대로 두고 가운데 정렬, 모바일은 아래에서 반반 */
.unit_page .unit_tab_con .tab_list li {
    flex: 0 1 calc(100% / 3);
    max-width: calc(300 * var(--px));
    min-width: 0;
}

.unit_page .unit_tab_con .tab_list li + li {
    margin-left: -1px;
}

.unit_page .unit_tab_con .tab_list li a {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: calc(60 * var(--px));
    padding-left: calc(32 * var(--px));
    border: 1px solid #808080;
    color: #808080;
    font-family: var(--font-suit);
    font-size: calc(16 * var(--px));
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
}

.unit_page .unit_tab_con .tab_list li a.is-on {
    border-color: #c9a063;
    background: #c9a063;
    color: #fff;
}

.unit_page .ico_unit {
    position: absolute;
    top: 50%;
    right: calc(28.5 * var(--px));
    width: calc(24 * var(--px));
    height: calc(24 * var(--px));
    transform: translateY(-50%);
    color: #949494;
}

.unit_page .ico_unit_type {
    --ico: url("../img/icon/unit_plan.png");
    right: calc(30 * var(--px));
    height: calc(22 * var(--px));
}

.unit_page .ico_unit_material {
    --ico: url("../img/icon/unit_material.png");
}

.unit_page .ico_unit_vr {
    --ico: url("../img/icon/unit_vr.png");
    width: calc(18 * var(--px));
    color: #b2b8c6;
}

.unit_page .unit_tab_con .tab_list li a.is-on .ico_unit {
    color: #fff;
}

/* ========================================
   UNIT ::: 평면도 박스 (1147:8157) — 흰 배경 박스 안에 평면도 · 범례 · 추가 선택 품목
======================================== */
.unit_page .unit_plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(60 * var(--px));
    box-sizing: border-box;
    margin-top: calc(30 * var(--px));
    padding: calc(100 * var(--px)) 0;
    border: 1px solid #404040;
    background: #fff;
    overflow: hidden;
}

/* 평면도 : 타입마다 시안 크기가 달라 --plan_w(시안 px)로 폭을 받는다. 이미지 둘레 8 */
.unit_page .unit_plan_img {
    box-sizing: content-box;
    padding: calc(8 * var(--px));
    line-height: 0;
}

.unit_page .unit_plan_img img {
    display: block;
    width: calc(var(--plan_w, 967) * var(--px));
    max-width: 100%;
    height: auto;
}

/* 모바일 전용 크게보기 버튼은 PC 에서 .m-only 로 숨김 */
.unit_page .unit_plan .button_group {
    padding: 0;
}

.unit_page .unit_plan_legend {
    display: block;
    width: calc(1044 * var(--px));
}

.unit_page .unit_plan_legend img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   UNIT ::: 유니트 살펴보기(VR)
======================================== */
.unit_page .unit_info_vr {
    margin-top: calc(30 * var(--px));
}

.unit_page .vr_responsive {
    position: relative;
    padding-top: 56.25%;
}

.unit_page .vr_responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   UNIT ::: Responsive
======================================== */
/* Tablet */
@media (max-width: 1024px) {
    .sub_wrap .page_content .page_container.unit_page {
        width: 100%;
    }

    .unit_page .unit_tab {
        margin-bottom: calc(16 * var(--px));
    }

    .unit_page .info_left {
        height: calc(200 * var(--px));
    }

    .unit_page .unit_head_img::after {
        background: rgba(0, 0, 0, 0.15);
    }

    .unit_page .unit_head_cap {
        display: none;
    }

    .unit_page .unit_head_info {
        top: calc(50% - 0.4 * var(--px));
        left: calc(50% + 0.4 * var(--px));
        gap: calc(28 * var(--px));
    }

    .unit_page .unit_head_txt {
        font-size: calc(16.8 * var(--px));
    }

    .unit_page .unit_head_type {
        gap: calc(11.2 * var(--px));
    }

    .unit_page .unit_head_type .tit {
        font-size: calc(51.8 * var(--px));
        letter-spacing: calc(-1.036 * var(--px));
    }

    .unit_page .unit_head_type .count {
        gap: calc(11.2 * var(--px));
        font-size: calc(14 * var(--px));
    }

    .unit_page .unit_head_type .count::before,
    .unit_page .unit_head_type .count::after {
        height: calc(16.19 * var(--px));
    }

    .unit_page .info_right {
        gap: calc(36 * var(--px));
        padding: calc(32 * var(--px)) 0 0;
    }

    .unit_page .unit_area {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(14 * var(--px));
    }

    .unit_page .unit_area li {
        width: calc(176 * var(--px));
    }

    .unit_page .unit_area dl {
        justify-content: space-between;
        gap: 0;
        width: 100%;
    }

    .unit_page .unit_area dt {
        padding-right: calc(11.9 * var(--px));
        font-size: calc(15.3 * var(--px));
        letter-spacing: calc(3.06 * var(--px));
    }

    .unit_page .unit_area dd {
        font-size: calc(15.3 * var(--px));
    }

    .unit_page .unit_keymap {
        width: calc(300 * var(--px));
        max-width: 100%;
        height: auto;
        aspect-ratio: 300 / 213.3;
    }

    .unit_page .unit_tab_con {
        margin-top: calc(48 * var(--px));
    }

    .unit_page .unit_tab_con .tab_list li {
        flex: 1 1 0;
        max-width: none;
    }

    .unit_page .unit_tab_con .tab_list li a {
        justify-content: center;
        height: calc(44 * var(--px));
        padding: 0;
        font-size: calc(13 * var(--px));
    }

    .unit_page .ico_unit {
        display: none;
    }

    .unit_page .unit_plan {
        display: block;
        margin-top: calc(16 * var(--px));
        padding: calc(60 * var(--px)) 0;
    }

    /* 평면도는 PC 이미지를 줄여 쓴다. 이미지 자체에 여백이 거의 없어서 좌우 --mo_inset(기본 17)씩 띄운다.
       84OA 는 이미지 안에 좌우 여백(약 4%)이 있어 띄우지 않는다(데이터 moInset 0) */
    .unit_page .unit_plan_img {
        width: calc(100% - 2 * var(--mo_inset, 17) * var(--px));
        margin: 0 auto;
        padding: 0;
    }

    .unit_page .unit_plan_img img {
        width: 100%;
    }

    .unit_page .unit_plan .button_group {
        margin-top: calc(36 * var(--px));
    }

    /* 크게보기 버튼 테두리(시안 1414:320) : 1px #d9d9d9, 120×42 안쪽에 포함 */
    .unit_page .unit_plan .button_group .round_btn {
        box-sizing: border-box;
        border: 1px solid #d9d9d9;
    }

    .unit_page .unit_plan_legend {
        width: calc(320 * var(--px));
        margin: calc(38 * var(--px)) auto 0;
    }

    .unit_page .unit_info_vr {
        margin-top: calc(16 * var(--px));
    }
}

/* ========================================
   UNIT MATERIAL POPUP (마감재리스트)
   설비·인테리어·전기 탭 + 표(정적 마크업 inc/unit_material.php)
======================================== */
html.is-material-open,
body.is-material-open {
    overflow: hidden;
}

.unit_material_dim {
    touch-action: none;
}

.unit_material_pop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9990;
}

.unit_material_pop[hidden] {
    display: none;
}

.unit_material_dim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
}

.unit_material_box {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(1264px, calc(100% - 40px));
    background: #fff;
    border-radius: 8px;
    transform: translateX(-50%);
    outline: 0;
    overflow: hidden;
    color: #333;
}

.unit_material_head {
    position: relative;
    flex: 0 0 auto;
    padding: 24px 64px 20px 32px;
}

.unit_material_title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.unit_material_close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.unit_material_close::before,
.unit_material_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
}

.unit_material_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.unit_material_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 탭 : 홈페이지 공통 탭(.sub_tab)과 같은 색·밑줄(글자 너비), 가운데 정렬 */
.unit_material_tabs {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #505050;
}

.unit_material_tabs li {
    flex: 1 1 0;
    min-width: 0;
}

.unit_material_tab {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-suit, inherit);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: #808080;
    cursor: pointer;
    transition: color 0.3s ease;
}

.unit_material_tab_txt {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.unit_material_tab_txt::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #dac2a3;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.unit_material_tab.is-on {
    font-weight: 700;
    color: #dac2a3;
}

.unit_material_tab.is-on .unit_material_tab_txt::after {
    transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
    .unit_material_tab:not(.is-on):hover {
        color: #dac2a3;
    }

    .unit_material_tab:not(.is-on):hover .unit_material_tab_txt::after {
        transform: scaleX(1);
    }
}

.unit_material_body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px 32px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* 마감재리스트 팝업 내부 스크롤바 (팝업 안에서만 적용) */
/* 표준 속성(Firefox)은 ::-webkit-scrollbar 를 지원하지 않는 브라우저에만 적용(크롬은 표준 속성이 있으면 webkit 스타일을 무시함) */
@supports not selector(::-webkit-scrollbar) {
    .unit_material_body,
    .unit_material_scroll {
        scrollbar-width: thin;
        scrollbar-color: #8a8a8a #1a1a1a;
    }
}

.unit_material_body::-webkit-scrollbar,
.unit_material_scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.unit_material_body::-webkit-scrollbar-track,
.unit_material_scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.unit_material_body::-webkit-scrollbar-thumb,
.unit_material_scroll::-webkit-scrollbar-thumb {
    background: #8a8a8a;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.unit_material_body::-webkit-scrollbar-thumb:hover,
.unit_material_scroll::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
    background-clip: padding-box;
}

.unit_material_panel[hidden] {
    display: none;
}

.unit_material_ttl {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    color: #1a1a1a;
}

.unit_material_sub {
    margin: 4px 0 16px;
    font-size: 14px;
    line-height: 20px;
    color: #666;
}

.unit_material_note {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: #666;
}

.unit_material_table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-top: 2px solid #001241;
    border-left: 1px solid #ccc;
    background: #fff;
}

.unit_material_table th,
.unit_material_table td {
    padding: 10px 8px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    color: #333;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.unit_material_table th {
    height: 52px;
    padding: 0 8px;
    background: #dce3ee;
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
    color: #1a1a1a;
}

.unit_material_table td.is-label {
    background: #f2f2f2;
    font-weight: 500;
}

.unit_material_table td.is-img {
    padding: 8px;
}

.unit_material_table td img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.unit_material_table .mat_red {
    font-weight: 500;
    color: #e60012;
}

.unit_material_table .mat_blue {
    font-weight: 500;
    color: #0070c0;
}

/* ========================================
   UNIT MATERIAL POPUP ::: Responsive
======================================== */
/* Tablet */
@media (max-width: 1024px) {
    .unit_material_box {
        top: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
    }

    .unit_material_head {
        padding: 18px 52px 14px 16px;
    }

    .unit_material_title {
        font-size: 20px;
    }

    .unit_material_close {
        top: 12px;
        right: 8px;
    }

    .unit_material_tab {
        height: 48px;
        font-size: 15px;
    }

    .unit_material_body {
        padding: 16px 16px 24px;
    }

    .unit_material_ttl {
        font-size: 15px;
        line-height: 22px;
    }

    .unit_material_sub,
    .unit_material_note {
        font-size: 12px;
        line-height: 18px;
    }

    /* 표 : 폭을 줄여 가로 스크롤로 본다.
       스크롤은 표 영역(.unit_material_scroll) 하나로 몰아 가로 스크롤바가 팝업 하단에 고정되어 항상 보이게 한다 */
    .unit_material_body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 16px 16px 12px;
    }

    .unit_material_panel:not([hidden]) {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    .unit_material_scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    @supports not selector(::-webkit-scrollbar) {
        .unit_material_scroll {
            scrollbar-width: auto;
            scrollbar-color: #8a8a8a #1a1a1a;
        }
    }

    .unit_material_scroll::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .unit_material_scroll::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 999px;
    }

    .unit_material_scroll::-webkit-scrollbar-thumb {
        background: #b0b0b0;
        border: 0;
        border-radius: 999px;
    }

    .unit_material_note {
        flex: 0 0 auto;
        margin-top: 10px;
    }

    .unit_material_table {
        width: 900px;
    }

    .unit_material_table th,
    .unit_material_table td {
        padding: 8px 4px;
        font-size: 12px;
        line-height: 17px;
    }

    .unit_material_table th {
        height: 40px;
        padding: 0 4px;
        font-size: 13px;
        line-height: 18px;
    }

    .unit_material_table td.is-img {
        padding: 6px 4px;
    }

    .unit_material_table td img {
        max-width: 64px;
        max-height: 64px;
        width: auto;
    }
}

