@charset "utf-8";

/* 레이아웃 관련 grid 코드는 HTML flex로 대체되어 삭제 */

.floor-plan-copy-col {
    display: flex;
    flex-direction: column;
}

.floor-plan-copy-line {
    display: block;
    width: 58px;
    height: 2px;
    background: #212121;
    margin-bottom: 24px;
}

.floor-plan-copy-text {
    font-family: "NanumSquareNeo", sans-serif;
    font-size: 38px;
    line-height: 1.35;
    color: #212121;
    letter-spacing: -0.03em;
    font-weight: 400;
}

.floor-plan-banner-mask {
    overflow: hidden;
    background: #fff;
    /* 모바일에서는 높이를 고정, PC에서는 부모(flex) 높이에 맞춤 */
    min-height: 260px; 
}

.floor-plan-top-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* 애니메이션을 위해 transform-origin 고정 */
.floor-plan-banner-image {
    transform-origin: right center; 
    will-change: transform, clip-path;
}

.floor-plan-tabs-section {
    padding-bottom: 120px;
}

.floor-plan-tabs {
    margin-bottom: 34px;
}

.floor-plan-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.floor-plan-tab-row--top {
    margin-bottom: 10px;
}

.floor-plan-tab-btn {
    padding: 10px 35px;
    border: 1px solid #fff;
    background: #fff;
    color: #212121;
    font-size: 22px;
    line-height: 1.2;
    white-space: nowrap;
}

.floor-plan-tab-btn.is-active {
    border-color: #A08773;
    color: #212121;
}

.floor-plan-image-wrap {
    position: relative;
    background: #F5F5F5;
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floor-plan-hint-badge {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    background: rgba(141, 117, 98, 0.9);
    color: #fff;
    font-family: "NanumSquareNeo", sans-serif;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s;
}

.floor-plan-zoom-btn {
    position: absolute;
    right: 40px;
    top: 40px;
    width: 50px;
    height: 50px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 3;
    transition: opacity 0.3s;
}

.floor-plan-zoom-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.floor-plan-detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.floor-plan-soldout-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
}

.floor-plan-tab-content {
    padding-top: 48px;
}

.floor-plan-info-header {
    gap: 32px;
    margin-bottom: 96px;
}

.floor-plan-info-title {
    color: #656565;
    font-size: 28px;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.025em;
}

.floor-plan-info-bar {
    display: inline-block;
    width: 3px;
    height: 36px;
    background: #656565;
    margin-right: 12px;
}

.floor-plan-info-tools {
    gap: 32px;
    margin: 0;
}

.floor-plan-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #A08773;
    font-size: 24px;
    padding: 12px 32px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.floor-plan-tool-btn:hover {
    background: #eaeaea;
}

.floor-plan-tool-icon {
    width: 18px;
    margin-right: 8px;
}

.floor-plan-tool-icon.is-vr {
    width: 24px;
}

@media (max-width: 1279px) {
    .floor-plan-top-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .floor-plan-tabs-section {
        padding-bottom: 80px;
    }
}


@media (max-width: 1023px) {
    .floor-plan-top-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .floor-plan-copy-col {
        margin-top: 64px;
    }

    .floor-plan-tabs-section {
        padding-bottom: 60px;
    }

    .floor-plan-tabs {
        margin-bottom: 24px;
    }

    .floor-plan-copy-line {
        width: 40px;
        height: 1px;
        margin-bottom: 16px;
    }

    .floor-plan-copy-text {
        font-size: 28px;
        line-height: 1.4;
    }

    .floor-plan-tab-btn {
        font-size: 14px;
        padding: 8px 12px;
    }

    .floor-plan-tab-content {
        padding-top: 24px;
    }

    .floor-plan-info-header {
        gap: 16px;
        margin-bottom: 48px;
    }

    .floor-plan-info-title {
        font-size: 24px;
    }

    .floor-plan-info-bar {
        height: 24px;
    }

    .floor-plan-info-tools {
        gap: 8px; /* Tailwind's gap-8 on mobile is actually margin issue, let's use gap-4 (16px) or gap-2 (8px). Tailwind gap-8 is 32px, gap-4 md:gap-8 was there. So mobile is 16px. */
    }

    .floor-plan-tool-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 15px;
    }

    .floor-plan-tool-icon {
        width: 10px;
    }

    .floor-plan-tool-icon.is-vr {
        width: 15px;
    }
    
    .floor-plan-image-wrap {
        min-height: 240px; /* Reduces the huge grey box */
    }

    .floor-plan-hint-badge {
        top: 24px;
        font-size: 13px;
        min-height: 32px;
        padding: 0.35rem 0.9rem;
    }

    .floor-plan-zoom-btn {
        right: 24px;
        top: 24px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .floor-plan-top-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .floor-plan-copy-col {
        margin-top: 40px;
    }

    .floor-plan-tabs-section {
        padding-bottom: 40px;
    }

    .floor-plan-tabs {
        margin-bottom: 16px;
    }

    .floor-plan-tab-row {
        gap: 6px;
    }

    .floor-plan-tab-row--top {
        margin-bottom: 6px;
    }

    .floor-plan-copy-line {
        width: 34px;
        margin-bottom: 10px;
    }

    .floor-plan-copy-text {
        font-size: 22px;
        line-height: 1.45;
        word-break: keep-all;
    }

    .floor-plan-tab-btn {
        font-size: 13px;
        padding: 6px 10px;
        flex: 1; /* Makes tabs fill the row evenly on mobile for better touch target */
        text-align: center;
    }

    .floor-plan-info-header {
        margin-bottom: 32px;
    }

    .floor-plan-info-title {
        font-size: 20px;
    }

    .floor-plan-info-bar {
        height: 20px;
        margin-right: 8px;
    }

    .floor-plan-info-tools {
        gap: 8px;
        flex-direction: row; /* 모바일에서도 가로로 배치 (screenshot 기준) */
        width: 100%;
        display: flex; /* 보장 */
        justify-content: space-between;
    }

    .floor-plan-tool-btn {
        width: calc(50% - 4px); /* 2분할 (gap:8px 감안) */
        margin: 0;
        padding: 12px 0;
        font-size: 14px;
        flex-direction: row; 
        text-align: left;
        line-height: 1.3;
        white-space: normal; /* 글자 길면 자동 줄바꿈 허용 */
        align-items: center; /* 수직 중앙 정렬 */
        justify-content: center; /* 수평 중앙 정렬 */
    }

    .floor-plan-image-wrap {
        min-height: 180px;
    }

    .floor-plan-hint-badge {
        top: 16px;
        font-size: 11px;
        min-height: 24px;
        padding: 0.3rem 0.7rem;
    }

    .floor-plan-zoom-btn {
        right: 16px;
        top: 16px;
        width: 32px;
        height: 32px;
    }

    .floor-plan-soldout-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }
}