/*
 * MU:N munbunyang — skin-01/style.css
 * 섹션별 스타일 + 헤더/푸터/네비 보완
 * base.css → palettes.css → variations.css → style.css 순서로 로드
 * 순수 CSS (Tailwind 의존 없음)
 * --p-primary 등 팔레트 변수는 palettes.css 에서 정의됨
 */

/* ============================================================
   scroll-snap 메인 컨테이너
   ============================================================ */
html:has(#munMain) { height: 100%; overflow: hidden; }
body:has(#munMain) { height: 100%; overflow: hidden; }

#munMain {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
}

.mun-snap-sec {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.mun-snap-sec--hero {
    overflow: hidden; /* 켄번스 애니메이션 클리핑 유지 */
}

.mun-snap-sec--footer {
    height: auto;
    min-height: unset;
    scroll-snap-align: start;
}

/* magazine 섹션 스크롤 격리 */
#sec-magazine {
    overflow: hidden;
}

/* premium 섹션 스크롤 격리 */
#sec-premium {
    overflow: hidden;
}

/* 모바일 768px: snap 해제 */
@media (max-width: 768px) {
    html:has(#munMain) { height: auto; overflow: auto; }
    body:has(#munMain) { height: auto; overflow: auto; }
    #munMain {
        height: auto;
        overflow-y: auto;
        scroll-snap-type: none;
    }
    .mun-snap-sec {
        height: auto;
        min-height: unset;
    }
}

/* ============================================================
   도트 네비게이션
   ============================================================ */
.mun-dot-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
}
.mun-dot-nav.is-visible {
    opacity: 1;
    pointer-events: all;
}
.mun-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    border: 1.5px solid rgba(255, 255, 255, .7);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s, border-color .2s;
}
.mun-dot:hover {
    background: rgba(255, 255, 255, .8);
    transform: scale(1.3);
}
.mun-dot.is-active {
    background: var(--mun-point, #1e3a8a);
    border-color: var(--mun-point, #1e3a8a);
    transform: scale(1.25);
}
/* 스크롤 후(헤더 배경 전환 시) 도트 색상도 어둡게 */
.mun-header.is-scroll ~ .mun-dot-nav .mun-dot {
    background: rgba(0, 0, 0, .2);
    border-color: rgba(0, 0, 0, .3);
}
.mun-header.is-scroll ~ .mun-dot-nav .mun-dot:hover {
    background: rgba(0, 0, 0, .45);
}
.mun-header.is-scroll ~ .mun-dot-nav .mun-dot.is-active {
    background: var(--mun-point, #1e3a8a);
    border-color: var(--mun-point, #1e3a8a);
}
@media (max-width: 768px) {
    .mun-dot-nav { display: none; }
}

/* ============================================================
   헤더 — 흰 배경 고정 (운정 푸르지오 파크라인 스타일)
   ============================================================ */
.mun-header {
    background: #fff !important;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.mun-header.is-fixed {
    background: #fff !important;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}
/* 메인 페이지 투명 헤더 OFF - 흰 배경 고정 */
body[data-page="main"] .mun-header:not(.is-fixed) {
    background: #fff !important;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
body[data-page="main"] .mun-header:not(.is-fixed) .mun-nav-link {
    color: #333 !important;
}
body[data-page="main"] .mun-header:not(.is-fixed) .mun-logo-text {
    color: #081C15 !important;
}
body[data-page="main"] .mun-header:not(.is-fixed) .mun-header-tel {
    color: #081C15 !important;
    border-color: #52B788 !important;
}
.mun-nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.2s;
}
.mun-nav-link:hover {
    color: #081C15 !important;
}
/* is-fixed 시에도 nav-link 다크 유지 */
.mun-header.is-fixed .mun-nav-link {
    color: #333 !important;
}
.mun-header.is-fixed .mun-nav-link:hover {
    color: #081C15 !important;
}
/* 전화번호 버튼 기본 색상 (tel-effects 미적용 시) */
.mun-header-tel {
    color: #fff;
    transition: color 0.2s, box-shadow 0.2s;
}
.mun-header-tel:hover {
    opacity: .88;
}
/* 드롭다운 메뉴 배경 */
.mun-header .mun-nav-dropdown,
.mun-header [class*="rounded-xl bg-gray-900"] {
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    border: 1px solid #e8e8e8 !important;
}
.mun-header .mun-nav-dropdown a,
.mun-header [class*="rounded-xl"] a {
    color: #333 !important;
}
.mun-header .mun-nav-dropdown a:hover,
.mun-header [class*="rounded-xl"] a:hover {
    background: #f0faf5 !important;
    color: #081C15 !important;
}

/* ============================================================
   GNB 네비 보완
   ============================================================ */
/* 데스크탑 */
.mun-gnb {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    list-style: none;
}
.mun-gnb li { position: relative; }
.mun-gnb__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    transition: color .2s;
    position: relative;
}
.mun-gnb__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 16px; right: 16px;
    height: 2px;
    background: var(--p-primary, #333);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
    border-radius: 2px;
}
.mun-gnb__link:hover {
    color: var(--p-primary, #333);
}
.mun-gnb__link:hover::after {
    transform: scaleX(1);
}

/* 모바일 drawer */
@media (max-width: 900px) {
    .mun-gnb {
        position: fixed;
        top: var(--mun-header-h, 60px);
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 0 40px;
        transform: translateX(-100%);
        transition: transform .35s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, .12);
        z-index: 500;
        overflow-y: auto;
    }
    .mun-gnb.is-open {
        transform: translateX(0);
    }
    .mun-gnb li { width: 100%; }
    .mun-gnb__link {
        display: block;
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid #f3f4f6;
        font-size: 15px;
    }
    .mun-gnb__link::after { display: none; }
}

/* ============================================================
   섹션 공통
   ============================================================ */
.mun-section {
    padding: 80px 0;
}
.mun-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.mun-section__title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #111;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.mun-section__sub {
    color: #888;
    margin-top: .5rem;
    font-size: clamp(.875rem, 1.5vw, 1rem);
    line-height: 1.6;
}
.mun-section__head {
    margin-bottom: 48px;
}

/* ============================================================
   메인 슬라이드 (#sec-main_visual)
   ============================================================ */
#sec-main_visual {
    height: 100dvh;
    min-height: 480px;
    padding: 0;
    position: relative;
    overflow: hidden;
}
#sec-main_visual .swiper {
    height: 100%;
    width: 100%;
}
#sec-main_visual .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#sec-main_visual .swiper-pagination-bullet {
    background: rgba(255, 255, 255, .5);
    opacity: 1;
}
#sec-main_visual .swiper-pagination-bullet-active {
    background: var(--p-primary, #333) !important;
}
#sec-main_visual .swiper-button-prev,
#sec-main_visual .swiper-button-next {
    color: #fff;
    width: 44px;
    height: 44px;
}
#sec-main_visual .swiper-button-prev::after,
#sec-main_visual .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

/* 메인 슬라이드 캡션 오버레이 */
.mv-caption {
    position: absolute;
    left: 50%;
    bottom: 15%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    pointer-events: none;
}
.mv-caption__title {
    font-size: clamp(1.75rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.03em;
}
.mv-caption__sub {
    font-size: clamp(.875rem, 2vw, 1.25rem);
    margin-top: .75rem;
    opacity: .88;
}

/* ============================================================
   사업개요 (#sec-project_info)
   ============================================================ */
#sec-project_info { background: #fafafa; }

.pi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
}
.pi-table th {
    background: var(--p-primary, #333);
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    width: 30%;
    text-align: left;
    vertical-align: top;
}
.pi-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    line-height: 1.6;
}
.pi-table tr:last-child td { border-bottom: none; }

.pi-table-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
@media (max-width: 768px) {
    .pi-table-2col { grid-template-columns: 1fr; }
    .pi-table th { width: 38%; }
}

/* ============================================================
   프리미엄 (#sec-premium)
   ============================================================ */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.premium-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px;
    transition: box-shadow .2s, transform .2s;
}
.premium-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
    transform: translateY(-4px);
}
.premium-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--p-primary, #333);
    line-height: 1;
}
.premium-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #111;
}
.premium-desc {
    font-size: .875rem;
    color: #666;
    line-height: 1.6;
}
.premium-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

/* ============================================================
   입지환경 (#sec-location)
   ============================================================ */
.loc-cat-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.loc-cat-btn {
    padding: 8px 20px;
    border: 1.5px solid #ddd;
    border-radius: 100px;
    cursor: pointer;
    font-size: .875rem;
    font-family: inherit;
    background: #fff;
    transition: all .15s;
}
.loc-cat-btn:hover {
    border-color: var(--p-primary, #333);
    color: var(--p-primary, #333);
}
.loc-cat-btn.active {
    background: var(--p-primary, #333);
    border-color: var(--p-primary, #333);
    color: #fff;
}

.loc-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.loc-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.loc-item:last-child { border-bottom: none; }
.loc-item__strong {
    font-weight: 700;
    color: var(--p-primary, #333);
    min-width: 120px;
    flex-shrink: 0;
    font-size: .9375rem;
}
.loc-item__text {
    color: #555;
    font-size: .9375rem;
    line-height: 1.5;
}

/* 지도 이미지 */
.loc-map-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 32px;
}
.loc-map-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   오시는길 (#sec-map)
   ============================================================ */
.map-block {
    margin-bottom: 40px;
}
.map-block:last-child { margin-bottom: 0; }
.map-block__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}
.map-block__iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}
@media (max-width: 768px) {
    .map-block__iframe { height: 260px; }
}

.map-transport-list {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.map-transport-item {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 16px 20px;
}
.map-transport-item__label {
    font-weight: 700;
    color: var(--p-primary, #333);
    font-size: .875rem;
    margin-bottom: 6px;
}
.map-transport-item__text {
    font-size: .875rem;
    color: #555;
    line-height: 1.5;
}

/* ============================================================
   평면도 (#sec-unit)
   ============================================================ */
.unit-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.unit-tabs::-webkit-scrollbar { display: none; }
.unit-tab-btn {
    padding: 8px 20px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: .875rem;
    font-family: inherit;
    background: #fff;
    transition: all .15s;
    flex-shrink: 0;
}
.unit-tab-btn:hover {
    border-color: #111;
}
.unit-tab-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.unit-slide-wrap {
    position: relative;
}
.unit-swiper-main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}
.unit-swiper-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.unit-swiper-main .swiper-slide img {
    max-height: 600px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.unit-swiper-thumb {
    margin-top: 12px;
}
.unit-swiper-thumb .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: opacity .2s, border-color .2s;
}
.unit-swiper-thumb .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--p-primary, #333);
}
.unit-swiper-thumb .swiper-slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   main_features snap 섹션: 콘텐츠 높이에 맞게 자동
   ============================================================ */
#sec-main_features {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
    scroll-snap-align: start;
}

/* ============================================================
   방문예약 (#sec-contact)
   ============================================================ */
#sec-contact { background: #f7f8fa; }

/* snap 섹션 contact overflow 방지: 상하 패딩을 줄여 100vh 내에 수용 */
#sec-contact .mun-contact-section { padding-top: 48px; padding-bottom: 48px; }

.contact-form {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 4px 40px rgba(0, 0, 0, .06);
}
.mun-form-group {
    margin-bottom: 20px;
}
.mun-form-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}
.mun-form-label .required {
    color: var(--p-primary, #e53e3e);
    margin-left: 2px;
}
.mun-form-input,
.mun-form-select,
.mun-form-textarea {
    width: 100%;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.mun-form-input:focus,
.mun-form-select:focus,
.mun-form-textarea:focus {
    outline: none;
    border-color: var(--p-primary, #333);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-primary, #333) 12%, transparent);
}
.mun-form-input::placeholder,
.mun-form-textarea::placeholder {
    color: #bbb;
    font-size: .9375rem;
}
.mun-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 개인정보 동의 */
.mun-privacy-wrap {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    font-size: .8125rem;
    color: #666;
    line-height: 1.6;
    border: 1px solid #eee;
}
.mun-privacy-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: .875rem;
    cursor: pointer;
}

.mun-submit-btn {
    width: 100%;
    background: var(--p-primary, #333);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    font-family: inherit;
    margin-top: 8px;
}
.mun-submit-btn:hover {
    opacity: .85;
}
.mun-submit-btn:active {
    transform: scale(.99);
}
.mun-submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ============================================================
   푸터 보완
   ============================================================ */
.mun-footer {
    background: #111;
    color: #aaa;
    padding: 40px 20px;
    font-size: .8125rem;
    line-height: 1.8;
}
.mun-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.mun-footer__logo {
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 16px;
    display: block;
}

/* ============================================================
   GSAP 애니 클래스
   ============================================================ */
.mun-fade-up {
    opacity: 0;
    transform: translateY(30px);
}
.mun-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s ease, transform .7s ease;
}
.mun-fade-in {
    opacity: 0;
}
.mun-fade-in.is-visible {
    opacity: 1;
    transition: opacity .7s ease;
}

/* ============================================================
   Variation overrides (data-v 속성)
   ============================================================ */
/* Variation B: 넓은 여백 */
[data-v="b"] .mun-section {
    padding: 120px 0;
}
[data-v="b"] .mun-section__inner {
    max-width: 1000px;
}

/* Variation C: 컴팩트 */
[data-v="c"] .mun-section {
    padding: 48px 0;
}
[data-v="c"] .premium-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ============================================================
   반응형 (태블릿 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .mun-section__inner { padding: 0 24px; }
    .pi-table-2col { grid-template-columns: 1fr; }
    .premium-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ============================================================
   반응형 (모바일)
   ============================================================ */
@media (max-width: 768px) {
    .mun-section {
        padding: 60px 0;
    }
    .mun-section__head {
        margin-bottom: 32px;
    }
    .premium-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 24px 20px;
        border-radius: 14px;
    }
    .loc-item__strong {
        min-width: 90px;
    }
    .map-transport-list {
        grid-template-columns: 1fr;
    }
    /* #2: 오시는길 loc-cat-btn 모바일 정리 */
    .loc-cat-btn { padding: 6px 14px; font-size: .8125rem; }
    .loc-cat-list { gap: 6px; margin-bottom: 16px; }
    /* #3: footer 모바일 정렬 */
    .mun-footer { padding: 32px 16px; text-align: center; }
    .mun-footer__logo { display: block; margin-bottom: 12px; }
    /* #4: Roughmap/지도 iframe 모바일 비율 */
    .map-block iframe, .map-roughmap { height: 280px !important; }
    /* #5: Variation 모바일 padding */
    [data-v="b"] .mun-section {
        padding: 60px 0;
    }
    [data-v="c"] .mun-section {
        padding: 36px 0;
    }
}

@media (max-width: 480px) {
    .mun-section__inner {
        padding: 0 16px;
    }
    .premium-card {
        padding: 20px;
    }
}

/* ============================================================
   skin-01 강화: 켄번스 히어로 (메인 슬라이드)
   ============================================================ */
@keyframes skin01-kenburns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}
/* .mun-slide-inner: background-image 방식 슬라이드 div */
.skin01-kenburns,
.mun-kenburns {
    animation: skin01-kenburns 8s ease-out forwards;
    transform-origin: center center;
}
@media (max-width: 768px) {
    .skin01-kenburns,
    .mun-kenburns { animation: skin01-kenburns 8s ease-out forwards; }
}
@media (max-width: 480px) {
    .skin01-kenburns,
    .mun-kenburns { animation: skin01-kenburns 8s ease-out forwards; }
}

/* ── 팝업 ── */
.mun-popup {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.mun-popup__inner {
  background: #fff;
  width: min(520px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 4px;
}
.mun-popup__body { padding: 0; }
.mun-popup__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
}
.mun-popup__today { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.mun-popup__close {
  background: #333; color: #fff;
  border: none; padding: 6px 16px;
  border-radius: 3px; cursor: pointer; font-size: 13px;
}
