/* ==================== 1. 기본 스타일 리셋 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; word-break: keep-all; }
html { scroll-behavior: smooth; }
body { color: #333; line-height: 1.6; background-color: #fff; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; color: #111; margin-bottom: 25px; }

/* ==================== 2. 헤더 (Navbar) ==================== */
header { position: fixed; top: 0; left: 0; width: 100%; height: 80px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
header .logo img { height: 45px; width: auto; }
header nav ul { display: flex; gap: 30px; }
header nav a { font-size: 1.05rem; font-weight: 500; color: #444; transition: color 0.3s; padding: 5px 0; }
header nav a:hover { color: #c49a45; font-weight: 700; }

/* 1. 햄버거 버튼 기본 숨김 (PC용) */
.hamburger-btn {
    display: none; /* PC에서는 숨김 */
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: #fbbf24; /* 포인트 골드색 */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 2. 모바일 반응형 (768px 이하에서만 동작) */
@media (max-width: 768px) {
    /* 기존 header .container에 기준점 부여 */
    header .container {
        position: relative;
    }

    /* 모바일에서 햄버거 버튼 출력 */
    .hamburger-btn {
        display: flex;
    }

    /* 모바일 상태의 nav (초기에는 숨김) */
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #11141d; /* 모바일 메뉴 배경색 */
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    /* 모바일 ul 세로 정렬 */
    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0;
        margin: 0;
    }

    header nav ul li a {
        color: #ffffff !important; /* 흰색 글씨 */
        font-size: 16px;
        font-weight: 600;
        display: block;
        padding: 10px 0;
        text-align: center;
        transition: color 0.3s ease;
    }
    
    header nav ul li a:hover,
    header nav ul li a:active {
        color: #fbbf24 !important; /* 골드색으로 강조 */
    }

    /* 자바스크립트로 active 클래스가 붙을 때만 메뉴 열림 */
    header nav.active {
        display: block;
    }

    /* 햄버거 X 변신 애니메이션 */
    .hamburger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==================== 3. 메인 배너 (Hero Section) ==================== */
/*.hero { position: relative; width: 100%; height: 85vh; min-height: 550px; margin-top: 80px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.45); z-index: 2; }
.hero-content { position: relative; z-index: 3; padding: 0 20px; }
.hero-sub { font-size: 1.25rem; font-weight: 400; letter-spacing: 2px; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-title { font-size: 3rem; font-weight: 900; line-height: 1.2; margin-bottom: 25px; text-shadow: 0 3px 6px rgba(0,0,0,0.6); }
.hero-desc { font-size: 1.15rem; font-weight: 300; opacity: 0.95; max-width: 800px; margin: 0 auto; }*/

/* ==========================================================================
   호반써밋 첨단3지구 히어로 배너 (이미지 없이 텍스트 타이틀 적용)
   ========================================================================== */

/* 배너 전체 (검은 배경은 화면 100% 꽉 채움) */
.hero-split {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 350px;
    background-color: #1a1c20;
    margin-top: 80px; /* 헤더 여백 */
    overflow: hidden;
}

.hero-inner {
    display: flex;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    align-items: center;
}

/* 이미지 반응형 축소 허용 */
.hero-left {
    height: 100%;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-left img {
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    display: block;
}

.hero-right {
    flex: 1 1 auto;
    min-width: 0; /* 텍스트 오버플로우 방지 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    color: #ffffff;
}

.hero-subhead {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #e2c288;
    word-break: keep-all;
}

/* 텍스트 타이틀 스타일 */
.hero-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -1px;
    word-break: keep-all;
}

.hero-desc {
    font-size: 17px;
    font-weight: 300;
    color: #d1d5db;
    line-height: 1.5;
    word-break: keep-all;
}


/* ==========================================================================
   반응형 미디어 쿼리 (창 폭에 따른 단계별 폰트 축소)
   ========================================================================== */

/* 1. [중간 데스크탑 & 태블릿] (769px ~ 1100px) */
@media (max-width: 1100px) and (min-width: 769px) {
    .hero-right {
        padding: 0 24px;
    }
    .hero-subhead {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .hero-title {
        font-size: 32px;
        margin-bottom: 8px;
    }
    .hero-desc {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* 2. [모바일] (768px 이하) */
@media (max-width: 768px) {
    .hero-split {
        position: relative;
        width: 100%;
        height: 320px;
        display: block;
    }

    .hero-inner {
        max-width: 100%;
        height: 100%;
    }

    .hero-left {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 1;
    }

    .hero-left img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 30% !important;
    }

    .hero-right {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65) !important;
        text-align: center;
        padding: 0 20px;
        align-items: center;
    }

    .hero-subhead {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* ==================== 4. 브랜드/그룹 소개 텍스트 ==================== */
.group-intro { padding: 60px 0; text-align: center; background-color: #f9f9f9; border-bottom: 1px solid #eee; }
.group-intro p { font-size: 1rem; color: #777; margin-bottom: 8px; }
.group-intro h2 { font-size: 2.2rem; font-weight: 800; color: #111; }

/* ==================== 5. 사업 실적 (3개 카드) ==================== */
/*
.business-section { padding: 80px 0; }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.business-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: transform 0.3s ease; }
.business-card:hover { transform: translateY(-8px); }
.business-card img { width: 100%; height: auto; object-fit: cover; }
/*
/* ===== 인벤테라그룹 포트폴리오(사업 실적) 섹션 공통 ===== */
.portfolio-section {
    width: 100%;
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 20px;
}

/* 헤더 중앙 정렬 */
.portfolio-header {
    text-align: center;
    margin-bottom: 45px;
}

.portfolio-sub {
    font-size: 15px;
    color: #888888;
    margin-bottom: 10px;
}

/* ★ 글자 너비만큼만 수평선이 그려지는 메인 타이틀 ★ */
.portfolio-title.main-title {
    display: inline-block; /* 텍스트 가로 길이만큼만 영역 차지 */
    position: relative;
    font-size: 28px;
    font-weight: 800;
    color: #111111;
    padding-bottom: 14px; /* 글자와 수평선 사이 간격 */
    margin-bottom: 14px;  /* 수평선과 아래 글자 사이 간격 */
}

/* 수평선 (글자 너비 100% 맞춤) */
.portfolio-title.main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* inline-block 부모 글자 길이에 딱 맞춤 */
    height: 2px; /* 선 두께 */
    background-color: #111111; /* 선 색상 (골드로 하려면 #e2c288) */
}

/* 두 번째 서브 타이틀 */
.portfolio-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #555555;
    margin-top: 4px;
}

/* ===== 3단 인터랙티브 아코디언 핵심 ===== */
.accordion-container {
    display: flex;
    gap: 15px;
    width: 100%;
    height: 420px; /* PC에서 시원하고 큼직한 높이 */
}

/* 기본 상태: 3개가 1:1:1로 공간 분배 */
.accordion-item {
    position: relative;
    flex: 1; /* 동일 비율 */
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    /* 부드럽게 펼쳐지는 애니메이션 속도 */
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ★ 핵심: 마우스 올린 항목은 3배로 확 넓어짐 ★ */
.accordion-container:hover .accordion-item {
    flex: 1; /* 기본값 */
}

.accordion-item:hover {
    flex: 3.2 !important; /* 마우스 올린 카드가 쫙 펼쳐짐 */
}

/* 배경 이미지 설정 */
.accordion-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.accordion-item:hover .accordion-bg {
    transform: scale(1.05); /* 마우스 올렸을 때 사진 살짝 확대 */
}

/* 어두운 반투명 덮개 (글자 가독성용) */
.accordion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

/* 텍스트 내용 */
.accordion-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: #ffffff;
    z-index: 2;
}

.acc-year {
    display: inline-block;
    padding: 4px 10px;
    background-color: #e2c288;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 10px;
}

.acc-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    white-space: nowrap;
}

.acc-desc {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.6;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* 마우스 올렸을 때 설명 글씨 더 선명하게 */
.accordion-item:hover .acc-desc {
    opacity: 1;
}

/* ===== 모바일 대응 (768px 이하): 세로 카드형으로 전환 ===== */
@media (max-width: 768px) {
    .accordion-container {
        flex-direction: column;
        height: auto;
    }
    .accordion-item {
        height: 250px;
        flex: none !important; /* 모바일에선 펼치기 해제 */
    }
}



/* ============== 프로모션 섹션 =========== */
/* 프로모션 섹션 헤더 스타일 */
.benefits-section .section-header {
    text-align: center;
    margin-bottom: 36px;
}

/* 메인 타이틀: 어두운 진회색/검은색 계열로 변경 */
.benefits-section .section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #111827; /* 흰색 배경에서 선명하게 보이는 다크 칼라 */
    margin: 12px 0 8px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* 골드 포인트 글자 색상 */
.accent-gold {
    color: RED; 
    font-weight: 800;
}

/* 서브 설명 문구 */
.benefits-section .section-subtext {
    font-size: 0.95rem;
    color: #6b7280; /* 깔끔한 중간 회색 */
    word-break: keep-all;
    margin: 0;
}

/* 모바일 화면 반응형 스타일 */
@media (max-width: 768px) {
    .benefits-section .section-header {
        margin-bottom: 24px;
    }
    .benefits-section .section-title {
        font-size: 1.45rem;
    }
    .benefits-section .section-subtext {
        font-size: 0.88rem;
    }
}



/* ===== 신규 분양안내 섹션 ===== */
.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;
    }
}


/* ==================== 7. 카운트다운 섹션 (모던 스타일) ==================== */
.promo-section { padding: 50px 0; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; text-align: center; position: relative; }
.timer-box { display: flex; justify-content: center; gap: 20px; margin: 35px 0; }
.timer-unit { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; width: 110px; padding: 20px 10px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
.timer-num { font-size: 2.8rem; font-weight: 900; color: #f59e0b; display: block; line-height: 1; }
.timer-label { font-size: 0.9rem; color: #cbd5e1; margin-top: 8px; display: block; }
.notice-text { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; }
/*
.benefit-badge { background: rgba(245, 158, 11, 0.15); border: 1px solid #f59e0b; color: #fbbf24; padding: 12px 25px; border-radius: 50px; display: inline-block; font-weight: 600; margin-top: 10px; }
*/

/* 혜택 강조 뱃지 박스 */
.promo-highlight-badge {
    display: inline-block;
    background: rgba(226, 194, 136, 0.1); /* 브랜드 골드톤 반투명 배경 */
    border: 1px solid #e2c288;              /* 골드 테두리 */
    border-radius: 12px;
    padding: 16px 28px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(226, 194, 136, 0.15); /* 은은한 골드 빛 글로우 효과 */
    backdrop-filter: blur(8px);
}

/* 각 줄 스타일 */
.promo-highlight-badge .promo-line {
    word-break: keep-all;
}

/* 상단 소형 태그 */
.promo-highlight-badge .badge-tag {
    display: inline-block;
    background-color: #e2c288;
    color: #111111;
    font-size: 16px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* 메인 문구 스타일 */
.promo-highlight-badge .promo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

/* 강조 숫자/컬러 포인트 */
.promo-highlight-badge .accent-gold {
    color: #f59e0b; /* 또는 #e2c288 골드 포인트 */
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/*
.promo-highlight-badge .urgent-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(226, 194, 136, 0.25);
    font-size: 1.4rem;
    font-weight: 600;
    color: #f87171;
}
*/

/* 서두르라는 서브 메시지 / 중도금 무이자 강조 영역 */
.promo-highlight-badge .urgent-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 8px 18px;
    
	background: linear-gradient(135deg, rgba(153, 27, 27, 0.85) 0%, rgba(185, 28, 28, 0.95) 100%);
    border: 1px solid #f87171;
    border-radius: 20px;
    
    /* 테두리와 외곽에만 은은한 빛 효과 */
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
    animation: borderGlow 2.2s infinite ease-in-out;
}

/* 텍스트 자체 강조 포인트 */
.promo-highlight-badge .urgent-notice span {
    color: #ffffff !important;           /* 붉은 배경에서 가장 대비가 선명한 순백색 */
    font-size: 1.1rem;
    font-weight: 900;                    /* 아주 두꺼운 폰트로 시인성 극대화 */
    letter-spacing: 0.5px;
    
    /* 텍스트 가독성을 올려주는 또렷한 검은 선명 가공 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 실시간 감을 주는 붉은 점 애니메이션 효과 */
.promo-highlight-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* 은은하게 부드럽게 밝아지는 펄스 애니메이션 */
@keyframes badgeHighlight {
    0%, 100% {
        border-color: rgba(248, 113, 113, 0.5);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
    }
    50% {
        border-color: rgba(252, 165, 165, 0.9);
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
    }
}

/* 테두리/배경에만 부드럽게 감도는 호흡 애니메이션 */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(248, 113, 113, 0.6);
        box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    }
    50% {
        border-color: #fca5a5;
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.6);
    }
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .promo-highlight-badge {
        padding: 14px 20px;
        width: 90%;
        max-width: 360px;
    }
    .promo-highlight-badge .promo-text {
        font-size: 1.15rem;
    }
    .promo-highlight-badge .accent-gold {
        font-size: 1.25rem;
    }
    
    .promo-highlight-badge .urgent-notice {
        font-size: 0.95rem;
        padding: 6px 14px;
        margin-top: 12px;
    }
}

/* 중앙 정렬 감싸기 */
.reservation-cta-box {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    padding: 0 16px;
}

/* 기존 색상 구조 유지 + 위아래 2단 배치 카드 */
.benefit-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; /* 문구와 버튼 사이 간격 */
    
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #fbbf24;
    
    padding: 16px 28px;
    border-radius: 28px; /* 2단 구조에 맞춰 자연스러운 둥근 라인 */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 마우스 호버 시 살짝 밝아지는 효과 */
.benefit-badge:hover {
    background: rgba(245, 158, 11, 0.25);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
    transform: translateY(-2px);
}

/* 위쪽 텍스트 스타일 */
.benefit-badge .badge-title {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1.3;
    text-align: center;
}

.benefit-badge .badge-title i {
    margin-right: 4px;
}

/* 아래쪽 '예약하러 가기' 검은색 캡슐 버튼 (글자 길이에 딱 맞게 핏) */
.benefit-badge .badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    
    background-color: #111111; /* 단단한 검은색 배경 */
    color: #ffffff; /* 흰색 글자 */
    
    padding: 7px 18px; /* 텍스트 주변만 컴팩트하게 여백 지정 */
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.benefit-badge .badge-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

/* 호버 시 화살표 이동 */
.benefit-badge:hover .badge-btn i {
    transform: translateX(3px);
}

/* ===== 모바일 대응 (768px 이하) ===== */
@media (max-width: 768px) {
    .benefit-badge {
        padding: 14px 18px;
        width: 100%;
        max-width: 380px;
    }
    
    .benefit-badge .badge-title {
        font-size: 13.5px;
    }
}

.compact-booking-btn {
  /* 버튼 기본 스타일 리셋 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  outline: none;
  cursor: pointer;

  /* 네이비 & 골드 테두리 스타일 */
  background-color: transparent;
  color: #0f172a; /* 딥 네이비 */
  border: 1.5px solid #d97706; /* 골드 테두리 */
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s ease-in-out;
}

.compact-booking-btn:hover {
  background-color: #0f172a;
  color: #f59e0b; /* 마우스 올리면 네이비 배경 + 골드 글자 */
  border-color: #0f172a;
}

.compact-booking-btn i {
  font-size: 0.8rem;
  color: #d97706;
  transition: transform 0.2s ease, color 0.2s ease;
}

.compact-booking-btn:hover i {
  color: #f59e0b;
  transform: translateX(3px);
}

/* ==================== 8. 네이버 폼 사전 예약 구역 ==================== */
.form-section { padding: 80px 0; background-color: #f8fafc; text-align: center; }
.form-wrapper { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-placeholder { width: 100%; min-height: 450px; border: 2px dashed #cbd5e1; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 1.1rem; }





/* ==================== 9. 오시는 길 (지도 & 안내) ==================== */
.location-section { padding: 80px 0; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.map-box { width: 100%; height: 380px; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.info-box h3 { font-size: 2rem; color: #111; margin-bottom: 25px; }
.info-box p { font-size: 1.1rem; color: #444; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.info-box i { color: #c49a45; font-size: 1.3rem; }

/* ==================== 10. 푸터 (Footer) ==================== */
footer { background: #111; color: #888; padding: 50px 0; font-size: 0.9rem; }
footer .footer-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; padding-bottom: 25px; margin-bottom: 25px; }
footer .footer-logo img { height: 40px; filter: brightness(0) invert(1); }
footer .social-icons a { color: #888; font-size: 1.4rem; margin-left: 15px; transition: color 0.3s; }
footer .social-icons a:hover { color: #fff; }
footer p { margin-bottom: 8px; line-height: 1.6; }

/* 푸터 버튼 감싸는 박스 (여백 정렬) */
.footer-booking-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center; /* 중앙 정렬 (필요 시 flex-start로 변경 가능) */
}

/* 푸터 화이트 컴팩트 버튼 */
.footer-booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  outline: none;
  cursor: pointer;

  /* 흰색 바탕 & 테두리 포인트 */
  background-color: #ffffff;
  color: #0f172a; /* 딥 네이비 텍스트 */
  border: 1.5px solid #e2e8f0;
  border-radius: 50px; /* 라운드 알약 형태 */
  font-size: 0.95rem;
  font-weight: 700;
  
  /* 어두운 배경에서 부드럽게 떠보이는 그림자 */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease-in-out;
}

/* 마우스 호버 시 효과 */
.footer-booking-btn:hover {
  background-color: #f8fafc;
  color: #d97706; /* 호버 시 텍스트 골드 전환 */
  border-color: #d97706; /* 테두리 골드 전환 */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.footer-booking-btn:active {
  transform: translateY(0);
}

/* 화살표 아이콘 */
.footer-booking-btn i {
  font-size: 0.8rem;
  color: #d97706; /* 골드 포인트 아이콘 */
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-booking-btn:hover i {
  color: #d97706;
  transform: translateX(3px); /* 오른쪽으로 살짝 이동 */
}

/* ==================== 11. 반응형 스타일 (모바일) ==================== */
@media (max-width: 768px) {
    header nav { display: none; } /* 필요시 모바일 토글 메뉴 추가 가능 */
    /* hero-subhead 텍스트 크기 확대 및 스타일 조정 */
    .hero-subhead {
        font-size: 1.2rem !important; /* 기존보다 확대 (필요시 1.15rem ~ 1.2rem까지 조정 가능) */
        font-weight: 700;              /* 굵기를 주어 시인성 강화 */
        line-height: 1.4;
        margin-bottom: 8px;           /* 아래 메인 타이틀과의 간격 조정 */
        word-break: keep-all;         /* 모바일 단어 단위 줄바꿈 유지 */
    }

    /* 메인 타이틀과의 비율 조정을 위해 참고용 */
    .hero-title {
        font-size: 1.8rem;            /* 서브헤드와 시각적 위계(계층) 균형 유지 */
        line-height: 1.3;
    }
    
    /* hero-desc 문구에 은은한 오버레이 배경 추가 */
    .hero-desc {
        color: #ffffff !important;
        /* 텍스트 주변에 선명하고 은은한 어두운 그림자 부여 */
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 
                    0 0 4px rgba(0, 0, 0, 0.8);
        font-weight: 500;                    /* 글자 두께를 살짝 두껍게 */
        font-size: 0.95rem;
        line-height: 1.6;
        word-break: keep-all;
    }
    
    
    
    .business-grid { grid-template-columns: 1fr; }
    .location-grid { grid-template-columns: 1fr; }
    .timer-unit { width: 75px; padding: 15px 5px; }
    .timer-num { font-size: 1.8rem; }
    .tab-btn { font-size: 0.95rem; padding: 12px 0; }
}


/* =========== 모델하우스 둘러보기 섹션 전체 =============== */
/* 모델하우스 둘러보기 섹션 전체 */
.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;
    }
}


/* =================== 공통 섹션 구분선 스타일 ===================== */
.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;
}




/* 예약자 카운트 */
.counter-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 8px 18px;
    margin-top: 15px;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 12px;
    
    white-space: nowrap;          /* [핵심] 텍스트가 아래 줄로 넘어가지 않도록 강제 */
	flex-wrap: nowrap;             /* flex 요소 줄바꿈 방지 */
}

.counter-box strong {
    color: #fbbf24; /* 오렌지 골드 */
    font-size: 18px;
    font-weight: 800;
}

/* 실시간 점 */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 모바일 화면이 작아 박스 전체가 화면을 넘어갈 경우 대응 */
@media (max-width: 768px) {
    .counter-box {
        font-size: 0.95rem;       /* 필요시 모바일 폰트 크기를 살짝 줄여 여백 확보 */
        gap: 3px;                 /* 요소 간 간격 미세 조정 */
    }
}

/* ====================== 이미지 모달 ========================== */
/* 모달 기본 스타일 */
.modal {
  display: none; /* 기본은 숨김 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);

  /* flexbox 중앙 정렬 */
  justify-content: center;
  align-items: center;
  overflow: auto; /* 모달 전체에 스크롤 허용 */
}

/* 모달 안의 이미지 */
.modal-content {
  margin: 5% auto;
  display: block;
  max-width: 80%;
  border-radius: 8px;
}

/* 닫기 버튼 */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
	.modal {
	    align-items: center;   /* 모바일에서도 세로 중앙 유지 */
	    justify-content: center;
	    padding: 0;            /* 혹시 상단 여백이 있으면 제거 */
	    overflow: auto;
	    top: 80px; /* 모바일 헤더 높이에 맞춰 조정 */
		height: calc(100% - 80px);
	}
	
	.modal-content {
		max-width: 95vw;
		max-height: 80vh;
	}
}


/* ===== Q&A 섹션 전체 컨테이너 ===== */
.qa-section {
  width: 100%;
  max-width: 1300px;
  margin: 80px auto;
  padding: 0 20px;
}

/* ===== Q&A 헤더 ===== */
.qa-section .tab-header-box {
  text-align: center;
  margin-bottom: 35px;
}

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

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

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

/* ===== Q&A 카드 그리드 ===== */
.qa-section .location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ===== Q&A 카드 ===== */
.qa-section .grid-card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 22px;
  text-align: left;
  transition: all 0.3s ease;
}

.qa-section .grid-card:hover {
  background-color: #f6f3eb;
  border-color: #e2c288;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.qa-section .card-title {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 10px;
}

.qa-section .card-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
}

.qa-red-bold {
	color: red;
	font-weight: 500;
}

.qa-blue-bold {
	color: blue;
	font-weight: 500;
}

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

  .qa-section .grid-card {
    padding: 20px 18px;
  }

  .qa-section .card-title {
    font-size: 16px;
  }

  .qa-section .card-desc {
    font-size: 13px;
  }
}


/* --------------------------------------------------
예약 폼 카트 디자인 (럭셔리 네이비/골드 컨셉)
-------------------------------------------------- */
/* 메인 페이지에서 모달을 열어주는 버튼 */
.btn-open-modal {
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #d97706;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
  transition: all 0.2s ease;
}

.btn-open-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

/* --------------------------------------------------
   [2] 모달 오버레이 및 창 스타일
-------------------------------------------------- */
/* 모달 전체 배경 (어둡게 처리) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65); /* 딥 네이비 기반 투명 배경 */
  backdrop-filter: blur(4px); /* 배경 딤 처리 및 블러 효과 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
}

/* 모달 활성화 시 */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 모달 컨테이너 카드 */
.booking-card {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh; /* 모바일 화면 벗어남 방지 */
  overflow-y: auto; /* 내용 길어질 경우 내부 스크롤 */
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(217, 119, 6, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: all 0.25s ease-in-out;
  position: relative;
}

.modal-overlay.active .booking-card {
  transform: translateY(0) scale(1);
}

/* Header */
.booking-header {
  background: #0f172a;
  color: #ffffff;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  background-image: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.2), transparent 75%);
}

.booking-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.booking-header p {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* 우측 상단 X 닫기 버튼 */
.btn-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.btn-close-icon:hover {
  color: #ffffff;
}

/* Body & Controls */
.booking-body {
  padding: 24px 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-label .required {
  color: #d97706;
  margin-left: 2px;
}

.form-label .optional {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 0.92rem;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  background-color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

textarea.form-control {
  height: 80px;
  padding: 10px 14px;
  resize: none;
}

/* 방문인원 라디오 세그먼트 */
.radio-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + label {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #f59e0b;
  font-weight: 700;
}

/* --------------------------------------------------
   [3] 하단 버튼 그룹 (신청하기 + 취소)
-------------------------------------------------- */
.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* 취소 버튼 */
.btn-cancel {
  flex: 1;
  height: 50px;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* 신청하기 버튼 */
.btn-submit {
  flex: 2; /* 신청 버튼 비율을 크게 배치 */
  height: 50px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

/* 모바일 스크린 대응 */
@media (max-width: 400px) {
  .radio-group {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* 기본 상태: 모바일 전용 플로팅 버튼 숨김 */
.mobile-floating-booking-btn {
    display: none;
}

/* ==================================================
   모바일 화면 전용 스타일 (768px 이하)
   ================================================== */
@media screen and (max-width: 768px) {
    /* 1. 모바일 상단 헤더에서 기존 예약 버튼 숨기기 */
    header .compact-booking-btn {
        display: none !important;
    }

    /* 2. 상단 헤더 요소 간격 정리 (로고 - 햄버거 메뉴 양끝 정렬) */
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    /* 3. 모바일 하단 우측 플로팅 예약 버튼 스타일 */
    .mobile-floating-booking-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        background-color: #004085; /* 브랜드 주요 포인트 색상으로 변경 가능 */
        color: #ffffff;
        border: none;
        padding: 12px 20px;
        border-radius: 50px;
        font-size: 15px;
        font-weight: bold;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        cursor: pointer;
        transition: transform 0.2s ease, background-color 0.2s;
    }

    /* 버튼 터치 시 미세한 효과 */
    .mobile-floating-booking-btn:active {
        transform: scale(0.95);
        background-color: #002752;
    }
}