/* ==========================================================================
   1. 기본 리셋 및 공통 변수
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-dark: #0f172a;
    --brand-card: #1e293b;
    --brand-primary: #0284c7;
    --brand-accent: #38bdf8;
    --brand-bg: #f8fafc;
    --text-slate-900: #0f172a;
    --text-slate-600: #475569;
    --text-slate-400: #94a3b8;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--brand-bg);
    color: #334155;
    line-height: 1.5;
    padding-bottom: 60px; /* 모바일 CTA 영역 공간 확보 */
}

body.is-mobile-device .mobile-only {
    display: block;
}

.mobile-only {
    display: none !important;
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-sm { max-width: 768px; }

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.bg-white { background-color: #ffffff; }
.bg-light { background-color: #f1f5f9; }
.bg-dark { background-color: var(--brand-dark); }
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.text-primary { color: var(--brand-primary); }
.text-muted { color: var(--text-slate-400); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.items-center { align-items: center; }

/* ==========================================================================
   2. 상단 헤더 및 모바일 드롭다운 메뉴
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.gnb-nav {
    display: none;
    gap: 32px;
    font-size: 20px;
    font-weight: 700;
    color: #334155;
}

.gnb-nav a:hover { 
    color: var(--brand-primary); 
    transition: 0.2s; 
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--text-slate-900);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 12px 0;
    z-index: 999;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-slate-900);
}

.mobile-nav a:hover {
    background-color: var(--brand-bg);
    color: var(--brand-primary);
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
    .mobile-nav { display: none !important; }
    .gnb-nav { display: flex; font-size: 16px; }
}

@media (min-width: 960px) {
    .logo-img { height: 40px; }
    .gnb-nav { font-size: 18px; }
}

/* ==========================================================================
   3. 메인 배너 영역 (송암공원 네온 배지 적용)
   ========================================================================== */
.banner-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    margin-top: 16px;
}

.hero-banner {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/banner_main.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 640px;
    padding: 24px 20px;
    margin-top: 60px;
    transform: translateY(30px);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 50px; 
    font-weight: 600;
    letter-spacing: -1px;
    padding: 12px 32px;
    border-radius: 9999px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #facc15 0%, #eab308 50%, #ca8a04 100%);
    color: #0f172a;
    border: 3px solid #fef08a;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.8), 0 8px 16px rgba(0, 0, 0, 0.4);
    animation: badgeHighlight 2s infinite alternate ease-in-out;
}

.badge-pulse {
    width: 14px;
    height: 14px;
    background-color: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 10px #dc2626;
    animation: pulseRing 1.5s infinite;
}

@keyframes badgeHighlight {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(250, 204, 21, 0.6); }
    100% { transform: scale(1.04); box-shadow: 0 0 40px rgba(250, 204, 21, 1); }
}

@keyframes pulseRing {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: 46px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 16px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
}

.hero-title .highlight {
    color: #facc15;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
    .badge {
        font-size: 24px;
        padding: 8px 16px;
        margin-bottom: 12px;
        border-width: 2px;
    }
    .badge-pulse { width: 8px; height: 8px; }
    .hero-title { font-size: 20px; margin-bottom: 8px; }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .badge { font-size: 44px; padding: 10px 24px; }
    .hero-title { font-size: 25px; }
}

@media (min-width: 1024px) {
    .hero-banner { min-height: 680px; }
    .hero-content { margin-top: 160px; padding: 0 40px; max-width: 720px; }
    .badge { font-size: 50px; padding: 14px 36px; }
    .hero-title { font-size: 52px; }
}

@media (max-width: 768px) {
    .banner-wrapper {
        padding: 0 12px;
        /* 모바일 헤더 높이에 맞춘 상단 여백 */
        margin-top: 70px; 
    }
}

/* ===== 신규 분양안내 섹션 ===== */
.upcoming-section {
    width: 100%;
    max-width: 1300px; /* 아코디언과 동일한 너비 유지 */
    margin: 80px auto;
    padding: 0 20px;
}

.upcoming-container {
    display: flex;
    gap: 40px;
    background-color: #1a1c20; /* 메인 배너와 동일한 프리미엄 다크 */
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    align-items: center;
}

/* --- 좌측 정보 구역 --- */
.upcoming-info {
    flex: 1.1; /* 텍스트 공간 약간 확대 */
}

.upcoming-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e2c288;
    color: #1a1c20;
    font-size: 25px;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.upcoming-title {
    font-size: 50px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
}

.upcoming-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 25px;
}

/* 스펙 리스트 표 형태 */
.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spec-list li {
    display: flex;
    font-size: 20px;
    line-height: 1.5;
}

.spec-label {
    width: 90px;
    color: #a0a5b1;
    font-weight: 500;
    flex-shrink: 0;
}

.spec-value {
    color: #ffffff;
    font-weight: 400;
}

.spec-value.highlight {
    color: #e2c288; /* 강조 색상 */
    font-weight: 600;
}

.sub-text {
    font-size: 13px;
    color: #8e939e;
}

/* --- 우측 이미지 구역 --- */
.upcoming-media {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.img-box {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 조감도 유의사항 문구 */
.img-notice {
    font-size: 12px;
    color: #888888;
    margin-top: 10px;
    text-align: right;
    letter-spacing: -0.3px;
}

/* ===== 모바일 화면 대응 (768px 이하) ===== */
@media (max-width: 768px) {
    .upcoming-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .upcoming-title {
        font-size: 30px;
    }

    .img-box {
        height: 240px; /* 모바일 이미지 높이 */
    }

    .spec-label {
        width: 80px;
        font-size: 14px;
    }

    .spec-value {
        font-size: 14px;
    }
}



/* ==================== 6. 탭 메뉴 구역 ==================== */
/*
.tab-section { padding: 80px 0; background: #fff; }
.tab-buttons { display: flex; border-bottom: 2px solid #ddd; margin-bottom: 40px; }
.tab-btn { flex: 1; padding: 18px 0; text-align: center; font-size: 1.2rem; font-weight: 600; color: #888; background: #f7f7f7; border: none; cursor: pointer; transition: all 0.3s; }
.tab-btn.active { background: #fff; color: #111; border-top: 4px solid #c49a45; border-left: 1px solid #ddd; border-right: 1px solid #ddd; border-bottom: 2px solid #fff; margin-bottom: -2px; }

.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.tab-text-box { text-align: center; margin-bottom: 35px; }
.tab-text-box h3 { font-size: 1.8rem; color: #111; margin-bottom: 15px; }
.tab-text-box p { font-size: 1.05rem; color: #555; line-height: 1.8; margin-bottom: 8px; }
.tab-img-box { text-align: center; margin-top: 25px; }
.tab-img-box img { margin: 0 auto; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
*/
/* ===== 탭 전체 컨테이너 ===== */
.tab-section {
    width: 100%;
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 20px;
}

/* ===== 1. 상단 탭 버튼 ===== */
.tab-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-num {
    font-size: 12px;
    font-weight: 700;
    color: #888888;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.tab-txt {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
}

.tab-btn.active {
    background-color: #1a1c20;
    border-color: #1a1c20;
}

.tab-btn.active .tab-num { color: #e2c288; }
.tab-btn.active .tab-txt { color: #ffffff; }

/* ===== 2. 본문 헤더 ===== */
.tab-header-box {
    text-align: center;
    margin-bottom: 35px;
}

.tab-badge {
    display: inline-block;
    color: #e2c288;
    background-color: #1a1c20;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.tab-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 10px;
}

.tab-main-desc {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
}

/* ===== 3. 카드 그리드 (컴팩트화, 중앙 정렬) ===== */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

/* 일반 카드 (가운데 정렬) */
.grid-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center; /* ★ 전체 가운데 정렬 ★ */
}

/* 제목 (위) */
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 10px; /* 제목과 내용 사이 간격 */
}

/* 내용 (아래) */
.card-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
}

/* 5번 하이라이트 띠 바 (중앙 정렬 + 위아래 줄바꿈) */
.grid-banner {
    grid-column: span 2;
    display: flex;
    flex-direction: column; /* ★ 위아래 세로 배치 ★ */
    align-items: center;    /* ★ 가로 중앙 정렬 ★ */
    justify-content: center;
    text-align: center;     /* ★ 텍스트 중앙 정렬 ★ */
    background-color: #f6f3eb;
    border: 1px solid #e2c288;
    border-radius: 12px;
    padding: 22px 20px;
}

/* 5번 제목 영역 (배지 + 제목) */
.banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px; /* 제목과 아래 설명 사이 간격 */
}

.banner-badge {
    background-color: #e2c288;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.banner-title {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
}

/* 5번 내용 영역 */
.banner-desc {
    font-size: 14px;
    font-weight: 500;
    color: #444444;
    line-height: 1.6;
}

/* ★ 핵심: active가 없는 탭 본문은 무조건 숨김 ★ */
.tab-pane {
    display: none !important; 
}

/* active 클래스가 붙은 탭만 화면에 표시 */
.tab-pane.active {
    display: block !important;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 모바일 대응 (768px 이하) ===== */
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .grid-banner {
        grid-column: span 1;
    }
}

/* ===== 4. 지도 이미지 ===== */
.map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 모바일 화면 대응 (768px 이하) ===== */
@media (max-width: 768px) {
    
    /* 1. 모바일에서도 3개 탭 가로(수평) 한 줄 정렬 유지 */
    .tab-nav {
        flex-direction: row; /* 세로 정렬 방지 */
        gap: 6px; /* 탭 간격 좁힘 */
        margin-bottom: 25px;
    }

    /* 2. 탭 버튼 크기 및 패딩 축소 */
    .tab-btn {
        padding: 10px 4px; /* 높이와 좌우 여백을 줄여 한줄에 쏙 들어가게 함 */
        border-radius: 8px;
    }

    /* 3. 영문 소제목 글자 크기 축소 */
    .tab-num {
        font-size: 10px;
        margin-bottom: 2px;
        letter-spacing: -0.2px;
    }

    /* 4. 한글 메인 제목 글자 크기 축소 (줄바꿈 없이 한 줄) */
    .tab-txt {
        font-size: 13px;
        white-space: nowrap; /* 글자 잘림/줄바꿈 방지 */
    }

    /* (이하 기존 모바일 카드 정렬 코드) */
    .location-grid {
        grid-template-columns: 1fr;
    }

    .grid-banner {
        grid-column: span 1;
    }
}


/* ===== 탭 2: 커뮤니티 그리드 (2열 중앙 정렬) ===== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* 오픈 테라스 강조 띠 바 */
.terrace-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f6f3eb;
    border: 1px solid #e2c288;
    border-radius: 12px;
    padding: 22px 20px;
    margin-bottom: 30px;
}

.terrace-banner .banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.terrace-banner .banner-badge {
    background-color: #e2c288;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.terrace-banner .banner-title {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
}

.terrace-banner .banner-desc {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    line-height: 1.5;
}

/* 서브 섹션 여백 */
.sub-section {
    margin-bottom: 35px;
}

/* 두 섹션 사이를 가르는 깔끔한 경계선 */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 45px 0;
}

/* 골드 배지 스타일 (오픈 테라스 강조용) */
.tab-badge.gold {
    background-color: #e2c288;
    color: #1a1c20;
}

/* ===== 세대별 오픈 테라스 독립 카드 디자인 ===== */
.terrace-feature-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1a1c20 0%, #2a2d34 100%); /* 프리미엄 다크 그라데이션 */
    border-radius: 14px;
    padding: 28px 32px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.terrace-icon {
    font-size: 32px;
    background-color: rgba(226, 194, 136, 0.15);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.terrace-content {
    text-align: left; /* 좌측 정렬로 가독성 향상 */
}

.terrace-title {
    font-size: 19px;
    font-weight: 700;
    color: #e2c288; /* 골드 포인트 */
    margin-bottom: 6px;
}

.terrace-text {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

/* ===== 모바일 대응 ===== */
@media (max-width: 768px) {
    .terrace-feature-box {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
    }

    .terrace-content {
        text-align: center;
    }

    .section-divider {
        margin: 30px 0;
    }
}

/* ===== 통합 이미지 컨테이너 (map.png, community.png 공통) ===== */
.map-container,
.img-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.map-container img,
.img-container img {
    width: 100%;
    height: auto; /* 이미지 원본 비율 보존 (세로가 짧으면 알아서 슬림하게 맞춰짐) */
    display: block;
}

/* ===== 모바일 대응 ===== */
@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr; /* 모바일 1열 정렬 */
    }

    .terrace-banner .banner-desc {
        font-size: 13px;
    }
}



/* ===== 탭 3: 미래가치 그리드 ===== */
/* 세 번째 탭 인포그래픽 이미지 선명도 및 반응형 연출 */
#tab3 .img-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

#tab3 .img-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* 전체 레이아웃 컨테이너 */
.benefits-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 카드 고급화 디테일 */
.benefit-card {
    background: #fdfbf7;
    border: 1px solid #e5decf;
    border-radius: 18px;
    padding: 36px 24px 26px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(226, 194, 136, 0.25);
    border-color: #e2c288;
}

.benefit-card.full-width-card {
    grid-column: span 2;
}

/* 상단 뱃지 디테일 */
.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2b2b2b 0%, #111111 100%);
    color: #e2c288;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 20px;
    border-radius: 20px;
    border: 1px solid #e2c288;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 아이콘 3D 후광 배경 효과 */
.card-icon-wrapper {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: radial-gradient(circle, rgba(226, 194, 136, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.card-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}

/* 타이틀 및 리스트 */
.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    color: #18181b;
    margin-bottom: 16px;
    word-break: keep-all;
}

.card-title .accent-gold {
    color: #b45309;
}

.card-title .sub-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    border-top: 1px dashed #e2e8f0;
    padding-top: 16px;
    margin-top: auto;
}

.bullet-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.93rem;
    line-height: 1.55;
    color: #334155;
    margin-bottom: 8px;
    word-break: keep-all;
}

.bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b45309;
    font-weight: bold;
}

.bullet-list strong {
    color: #b45309;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card.full-width-card {
        grid-column: span 1;
    }

    .benefit-card {
        padding: 32px 18px 22px;
    }

    .card-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .card-icon-img {
        width: 60px;
        height: 60px;
    }

    .card-title {
        font-size: 1.15rem;
    }
}



/* =========== 모델하우스 둘러보기 섹션 전체 =============== */
/* 모델하우스 둘러보기 섹션 전체 */
.modelhouse-section {
    padding: 80px 0;
    background-color: #11141d; /* 다크 테마 배경톤 지정 */
    color: #ffffff;
}

/* 섹션 헤더 */
.modelhouse-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.modelhouse-section .sub-title {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 6px;
}

.modelhouse-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.modelhouse-section p {
    font-size: 15px;
    color: #9ca3af;
}

/* 2개(또는 N개)의 카드가 항상 중앙에 균형 있게 배치되도록 수정 */
.modelhouse-grid {
    display: flex;
    justify-content: center; /* 중앙 정렬 */
    gap: 20px; /* 카드 사이 간격 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    flex-wrap: wrap; /* 화면이 좁아지면 자연스럽게 줄바꿈 */
}

/* 카드 크기 및 형태 유지 */
.mh-card {
    flex: 1;
    min-width: 280px; /* 최소 너비 */
    max-width: 580px; /* 2개일 때 카드가 너무 지나치게 커지지 않도록 제한 */
    background: #1a1f2c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* 이미지 박스 높이 */
.mh-card .img-box {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}

.mh-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mh-card .img-box.fit-contain img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 비율 유지하며 축소 */
    transition: transform 0.4s ease;
}

/* 이미지 카드 텍스트 */
.mh-card .mh-info {
    padding: 14px;
    text-align: center;
    background-color: #1a1f2c;
}

.mh-card .mh-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

/* 호버(마우스 올림) 시 모션 및 골드 빛 효과 */
.mh-card:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.mh-card:hover .img-box img {
    transform: scale(1.1); /* 이미지 부드럽게 확대 */
}

/* ===== 모바일 반응형 (768px 이하) ===== */
@media (max-width: 768px) {
    .mh-card {
        max-width: 100%; /* 모바일에서는 너비 100% 사용 */
    }
    
    .mh-card .img-box {
        height: 180px;
    }
}


@media (max-width: 480px) {
    .modelhouse-section {
        padding: 50px 0;
    }
    
    .mh-card .mh-info h4 {
        font-size: 13.5px;
    }
}



/* ==========================================================================
   4. 버튼 및 카드 컴포넌트
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-header {
    background-color: var(--brand-primary);
    color: white;
    border-radius: 9999px;
    padding: 8px 16px;
}
.btn-header:hover { background-color: #0284c7; }

.btn-primary { background-color: #0284c7; color: white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); }
.btn-primary:hover { background-color: #0369a1; }

.btn-dark {
    background-color: rgba(15, 23, 42, 0.8);
    color: white;
    border: 1px solid #334155;
    backdrop-filter: blur(4px);
}
.btn-dark:hover { background-color: #0f172a; }

.btn-submit {
    width: 100%;
    background-color: var(--brand-primary);
    color: white;
    padding: 16px;
    font-size: 18px;
    border-radius: 12px;
}
.btn-submit:hover { background-color: #38bdf8; }

.card {
    background-color: var(--brand-bg);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08); }

.card-tag {
    display: inline-block;
    color: #e2c288;
    background-color: #1a1c20;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* =================== 공통 섹션 구분선 스타일 ===================== */
.section-divider-line {
    width: 100%;
    max-width: 1200px; /* 컨텐츠 최대 폭에 맞춤 */
    height: 1px;
    margin: 80px auto; /* 위아래 여백을 넉넉히 주어 답답함 해소 */
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0), 
        rgba(226, 194, 136, 0.6), /* 브랜드 골드 포인트 컬러 (또는 #e5e7eb) */
        rgba(0, 0, 0, 0)
    );
    border: none;
}

/* 모바일에서는 여백 살짝 축소 */
@media (max-width: 768px) {
    .section-divider-line {
        margin: 50px auto;
    }
}

/* 짝수 번째 섹션 배경색 다르게 지정 */
.main-section:nth-child(even) {
    background-color: #f8f9fa; /* 은은한 연회색 background */
    padding-top: 60px;
    padding-bottom: 60px;
}

/* 홀수 번째 섹션 */
.main-section:nth-child(odd) {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
}



.grid.items-end { align-items: flex-end; }
.tab-left-content { display: flex; flex-direction: column; }

.info-img-box {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    text-align: center;
}
.info-img-box img { width: 100%; height: auto; display: block; object-fit: contain; }

.img-box img, .site-plan-img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; }
.img-box .img-caption { font-size: 13px; color: var(--text-slate-600); margin-top: 10px; text-align: center; }

.clickable-img-wrap { position: relative; cursor: pointer; overflow: hidden; border-radius: 12px; }
.clickable-img-wrap img { transition: transform 0.3s ease; }
.clickable-img-wrap:hover img { transform: scale(1.02); }

.img-hover-hint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.clickable-img-wrap:hover .img-hover-hint { opacity: 1; }

.site-plan-slider, .card-feature-slider {
    position: relative;
    max-width: 900px;
    margin: 30px auto 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.slider-track { display: flex; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }
.slide-item { min-width: 100%; position: relative; box-sizing: border-box; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 5;
}
.slider-btn:hover { background: var(--brand-primary); color: white; border-color: var(--brand-primary); }
.prev-btn { left: 16px; }
.next-btn { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active { background-color: white; width: 20px; border-radius: 10px; }

/* 모달 및 라이트박스 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center; align-items: center;
    padding: 20px;
}
.modal-content { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.modal-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }

.gallery-card { border-radius: 16px; overflow: hidden; background-color: white; border: 1px solid #f1f5f9; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.gallery-card .img-wrap { overflow: hidden; height: 240px; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.gallery-card:hover img { transform: scale(1.05); }
.card-info { padding: 16px; }
.card-info h4 { font-weight: 700; color: var(--text-slate-900); }
.card-info p { font-size: 12px; color: #64748b; margin-top: 4px; }

/* ==========================================================================
   6. 입력 폼, 하단 고정 CTA 및 푸터
   ========================================================================== */
#contact-form .section-title h2 {
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px; margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) { #contact-form .section-title h2 { font-size: 34px; } }

#contact-form .section-title .text-muted { color: #cbd5e1 !important; font-size: 15px; font-weight: 400; line-height: 1.6; }

.form-box { background-color: var(--brand-card); border: 1px solid #334155; padding: 32px 20px; border-radius: 24px; }
@media (min-width: 768px) { .form-box { padding: 48px; } }

.consult-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label, .form-label { font-size: 14px; color: #cbd5e1; font-weight: 500; }
.form-label .required { color: #ef4444; margin-left: 4px; }
.form-label .optional { color: #64748b; font-size: 12px; margin-left: 4px; }

.form-control {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-option input[type="radio"] { display: none; }
.radio-option label {
    display: inline-block;
    padding: 10px 16px;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.radio-option input[type="radio"]:checked + label {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.site-footer {
    background-color: #020617;
    color: #64748b;
    padding: 40px 0;
    font-size: 13px;
    border-top: 1px solid #1e293b;
}

/* 하단 고정 CTA 바 (공통) */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(15, 23, 42, 0.95);
    border-top: 1px solid #1e293b;
    padding: 12px 0;
    backdrop-filter: blur(8px);
}

.cta-container {
    display: flex;
    gap: 12px;
    max-width: 600px; /* PC에서도 너무 넓어지지 않도록 중앙 정렬 */
    margin: 0 auto;
}

.btn-cta-call {
    flex: 1;
    background-color: #059669;
    color: #ffffff;
    font-size: 16px;
}

.btn-cta-reserve {
    flex: 1;
    background-color: var(--brand-primary);
    color: #ffffff;
    font-size: 16px;
}

.btn-cta-call:hover { background-color: #047857; }
.btn-cta-reserve:hover { background-color: #0369a1; }


/* 알림 커스텀 모달 */
.custom-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 16px;
}
.custom-modal-overlay.active { display: flex; }

.custom-modal-box {
    background: white;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-title { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.modal-btn {
    width: 100%;
    padding: 12px 0;
    margin-top: 16px;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}