/* ==========================================================================
   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;
}

/* 기본(PC) 모드에선 모바일 전용 줄바꿈 숨김 */
.mobile-only {
    display: none !important;
}

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

@media (max-width: 768px) {
    /* 모바일 화면(767px 이하)에서만 줄바꿈 적용 */
    .mobile-only {
        display: block; /* 줄바꿈 실행 */
    }
}



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

/* 공통 레이아웃 컨테이너 (1280px 최대폭 고정) */
.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; }

.accent-red {
    color: #FF0000;
}

/* ==========================================================================
   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;
}

/* PC 전용 네비게이션 (768px 이상) */
.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; 
}


/* 1. 모바일 햄버거 버튼 (.mobile-menu-btn 클래스명 유지) */
.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;
}

/* 햄버거 버튼 클릭 시 X자 애니메이션 */
.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);
}

/* 2. 모바일 드롭다운 메뉴 (.mobile-nav 클래스명 유지) */
.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);
}

/* 2. PC / 태블릿 구간 (768px 이상) */
@media (min-width: 768px) {
    /* 모바일 전용 요소들 일괄 숨김 */
    .mobile-menu-btn { display: none; }
    .mobile-nav { display: none !important; }
    
    /* PC 전용 상단 메뉴 노출 */
    .gnb-nav {
        display: flex;
        font-size: 16px; /* 768px ~ 959px 폰트 크기 */
    }
}

/* 3. 데스크톱 대형 화면 (960px 이상) */
@media (min-width: 960px) {
    .logo-img { height: 40px; }
    
    .gnb-nav {
        font-size: 18px; /* 960px 이상 폰트 크기 확대 */
    }
}

/* ==========================================================================
   3. 메인 배너 영역 (기본: PC / 데스크톱 대형 1024px 이상 기준)
   ========================================================================== */
.banner-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 0 16px;
}

/* PC 기본 배너 높이 및 레이아웃 */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 540px;
    max-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/main.png');
    background-position: 50% 40%;
    background-repeat: no-repeat;
    background-size: cover;
}

/* PC 기본 히어로 컨텐츠 */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 720px;
    padding: 0 40px;
    margin-top: 160px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(30px);
    text-align: center;
}

/* PC 기본 배지 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 50px; 
    font-weight: 600;
    letter-spacing: -1px;
    padding: 14px 36px;
    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;
}

/* PC 기본 타이틀 & 설명 */
.hero-title {
    font-size: 52px;
    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);
}

.hero-description {
    width: 100%;
    max-width: 560px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 16px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.35) 70%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
}

.hero-description strong { color: #facc15; }

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

/* 애니메이션 Keyframes */
@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); }
}


/* ==========================================================================
   4. 반응형 예외 분기 (모바일 & 태블릿)
   ========================================================================== */

/* 1) 태블릿 / 소형 PC (1023px 이하) */
@media (max-width: 1023px) {
    .hero-banner {
        min-height: 400px;
    }
    
    .hero-content {
        margin-top: 80px;
        padding: 0 24px;
    }

    .badge {
        font-size: 38px;
        padding: 10px 24px;
    }

    .hero-title {
        font-size: 32px;
    }
}

/* 2) 모바일 (640px 이하) */
@media (max-width: 640px) {
    .hero-banner {
        min-height: 240px;
        max-height: 320px;
    }

    .hero-content {
        max-width: 640px;
        margin-top: 40px;
        padding: 16px;
    }

    .badge {
        font-size: 20px;
        padding: 6px 16px;
        margin-bottom: 12px;
        border-width: 2px;
    }

    .badge-pulse {
        width: 8px;
        height: 8px;
    }

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

    .hero-description {
        font-size: 13px;
        padding: 10px;
        margin-bottom: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }
}


/* ==========================================================================
   독립된 이벤트 배너 영역
   ========================================================================== */
.event-banner-wrapper {
    width: 100%;
    max-width: 1280px; /* 메인 배너 wrapper와 동일한 최대폭 */
    margin: 24px auto 0; /* 메인 배너와의 상단 간격 및 중앙 정렬 */
    padding: 0 16px;
}

.event-banner {
    width: 70%; /* 요청하신 너비 비율 */
    margin: 0 auto; /* 중앙 정렬 */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 마우스 호버 효과 */
.event-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.15);
}

/* 모바일 반응형 조절 */
@media (max-width: 768px) {
    .event-banner-wrapper {
        margin-top: 16px;
    }
    
    .event-banner {
        width: 90%; /* 모바일 화면에서는 가독성을 위해 너비를 90%로 확대 */
        border-radius: 16px;
    }
}

/* ==========================================================================
   이벤트 배너 하단 전화문의 강조 박스
   ========================================================================== */
.event-call-box {
    width: 70%; /* 이벤트 배너와 동일한 너비 지정 */
    margin: 16px auto 0; /* 배너와의 간격 및 중앙 정렬 */
    text-align: center;
}

.event-call-box .call-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: #000000;
    border: 2px solid #e2c288;
    border-radius: 16px;
    text-decoration: none;
    
    /* PC 클릭 방지 */
    pointer-events: none; 
    cursor: default;
}

/* 전화번호 텍스트 애니메이션 */
.event-call-box .call-number {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.5px;
    animation: textBlink 1.2s infinite;
}

@keyframes textBlink {
    0%, 100% {
        color: #ffffff;
        text-shadow: 0 0 0px transparent;
    }
    50% {
        color: #ff0000; /* 눈에 가장 잘 띄는 비비드 옐로우 */
        text-shadow: 0 0 12px rgba(255, 50, 50, 0.8);
    }
}

.event-call-box .call-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}


/* 전화문의 라벨 (작은 글씨) */
.event-call-box .call-label {
    font-size: 18px;
    font-weight: 700;
    color: #e2c288; /* 골드 컬러 */
    letter-spacing: -0.5px;
}

/* 전화번호 텍스트 (크고 굵게 강조) */
/*
.event-call-box .call-number {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-family: 'Pretendard', sans-serif;
}
*/

/* 모바일 반응형 조절 */
@media (max-width: 768px) {
    .event-call-box {
        width: 90%; /* 모바일에서는 배너 너비(90%)와 동일하게 맞춤 */
        margin-top: 12px;
    }

    .event-call-box .call-link {
        padding: 14px 16px;
        gap: 8px;
        border-radius: 12px;
        
        pointer-events: auto; /* 클릭 활성화 */
        cursor: pointer;
    }

    .event-call-box .call-label {
        font-size: 24px;
    }

    .event-call-box .call-number {
        font-size: 34px; /* 모바일 화면에 맞춰 폰트 크기 조정 */
    }
}


/* ==========================================================================
   사업개요 (Project Overview) 섹션 스타일
   ========================================================================== */
.project-info-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

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

.section-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary, #2563eb);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 40px;
}

/* 테이블 그리드 레이아웃 */
.info-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px; /* 테두리 라인을 표현하기 위한 간격 */
    background-color: #e2e8f0; /* 셀 사이 경계선 색상 */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    background-color: #ffffff;
}

.info-row.full-width {
    grid-column: 1 / -1; /* 사업명은 상단 전체 폭 차지 */
}

.info-label {
    width: 140px;
    min-width: 120px;
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.info-value {
    flex: 1;
    padding: 16px 24px;
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.info-value.highlight {
    font-weight: 700;
    color: #0f172a;
}

/* 분양 상태 배지 스타일 */
.badge-status {
    display: inline-block;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

/* 신규: 84A 마감 배지 */
.badge-closed {
    display: inline-block;
    background-color: #64748b; /* 회색/슬레이트 계열 (마감 강조) */
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin-left: 5px;
    padding: 4px 12px;
    border-radius: 20px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 모바일 반응형 처리 (768px 미만) */
@media (max-width: 767px) {
    .project-info-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .info-table {
        grid-template-columns: 1fr; /* 모바일에서는 1열로 정렬 */
    }

    .info-label {
        width: 100px;
        min-width: 100px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .info-value {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 카드 헤더 (태그 + '+' 버튼 양끝 정렬) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* 동그라미 안의 '+' 버튼 스타일 */
.card-plus-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: var(--brand-primary, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    pointer-events: none; /* 카드 전체 클릭을 활용하므로 버튼의 포인터 이벤트 무시 */
}

/* 카드 호버 & 클릭 가능 스타일 */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.clickable-card:hover .card-plus-btn {
    background-color: var(--brand-primary, #2563eb);
    color: #ffffff;
    border-color: var(--brand-primary, #2563eb);
    transform: rotate(90deg); /* 호버 시 + 버튼 회전 효과 */
}

/* 활성화된 카드 표시 (선택사항) */
.clickable-card.active {
    border-color: var(--brand-primary, #2563eb);
    background-color: #f0f7ff;
}

/* 카드 하단 이미지 슬라이더 영역 */
.card-feature-slider {
    position: relative;
    max-width: 900px;
    margin: 32px auto 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

/* --------------------------------------------------------------------------
   카드 하단 슬라이더 전용: 컨트롤 요소 상단 배치
   -------------------------------------------------------------------------- */

/* 1. 인디케이터(도트): 상단 중앙 배치 */
#cardFeatureSlider .slider-dots {
    top: auto;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.6); /* 시독성 강화를 위한 반투명 배경 */
    z-index: 6;
}

/* 2. 이전/다음 화살표 버튼: 상단 양끝 배치 */
#cardFeatureSlider .slider-btn {
    top: 16px;             /* 중앙(50%)에서 상단(16px)으로 이동 */
    transform: none;       /* Y축 중앙 정렬 해제 */
    width: 36px;           /* 상단 배치를 고려해 크기 상향 다듬기 */
    height: 36px;
    font-size: 14px;
    z-index: 6;
}

#cardFeatureSlider .prev-btn {
    left: 16px;            /* 상단 좌측 */
}

#cardFeatureSlider .next-btn {
    right: 16px;           /* 상단 우측 */
}

/* 3. (선택사항) 좌측 상단 텍스트 태그와의 충돌 방지 */
/* 버튼이 상단 좌측으로 올라오면서 기존 .slide-badge 위치를 약간 오른쪽으로 이동시킵니다. */
#cardFeatureSlider .slide-badge {
    left: 60px;            /* 이전 버튼 우측 옆으로 배치 */
}


/* 카드 전용 모달 스타일 */
.card-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 16px;
}
.card-modal.active { display: flex; }

.card-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modal-header {
    padding: 16px 20px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-category-tag {
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.05em;
}
#modalCardTitle { font-size: 16px; font-weight: 700; margin-top: 2px; }
.modal-close-btn { background: none; border: none; color: white; font-size: 28px; cursor: pointer; }



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

/* 모달 내 이미지 랩퍼 (클릭 요소 제거) */
.modal-img-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f172a; /* 이미지 배경을 다크 톤으로 맞춰 몰입감 상승 */
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.modal-img-wrap img {
    max-width: 100%;
    max-height: 75vh; /* 화면 높이의 75% 내에서 비율 맞춰 선명하게 표시 */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 모달 컨테이너 스타일 보완 */
.card-modal-content {
    background: #0f172a;
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
}

.card-modal-header {
    padding: 16px 20px;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.modal-category-tag {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
}

#modalCardTitle {
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

/* ==========================================================================
   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; }

.btn-cancel { 
	width: 100%; 
	padding: 10px 0; 
	background-color: #334155; 
	color: #ffffff; 
	border: none; 
    border-radius: 12px;
	font-size: 1.0rem; 
	font-weight: bold; 
	cursor: pointer; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	gap: 6px;
}
.btn-cancel:hover { background-color: #475569; color: #fff; }

.download-notice {
    text-align: center;
    font-size: 1.0rem;
    color: #e2c288;
    margin-top: 4px;
    font-weight: 500;
}

.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;
}


/* 핵심가치 탭 관련 CSS */
.premium-info-header {
    margin-bottom: 20px;
    text-align: center;
}

.premium-info-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0;
}

.premium-info-header p {
    font-size: 15px;
    color: #475569;
}

.inline-slider-wrap {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0f172a;
    border: 1px solid #334155;
}

/* 상단 분양가 강조 박스 */
.price-highlight-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid #f59e0b; /* 고급스러운 골드 포인트 Border */
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.2);
}

.price-badge {
    display: inline-block;
    background-color: #f59e0b;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 65px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.price-content h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.price-content .text-accent {
    color: #fbbf24; /* 4억원대 글자 색상 강조 */
    font-size: 30px;
}

.price-content p {
    color: #94a3b8;
    font-size: 18px;
    margin: 0;
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .price-highlight-box {
        padding: 18px 14px;
    }
    
    .price-badge {
    	font-size: 16px;	
    }
    
    .price-content h3 {
        font-size: 24px;
    }
    .price-content .text-accent {
        font-size: 28px;
    }
    .price-content p {
        font-size: 16px;
    }
}

/* ==========================================================================
   5. 탭 및 갤러리 섹션
   ========================================================================== */
.section-title h2 { font-size: 24px; font-weight: 800; color: var(--text-slate-900); }
.section-title p { color: var(--text-slate-600); font-size: 15px; margin-top: 8px; }

@media (min-width: 768px) {
    .section-title h2 { font-size: 36px; }
}

.sub-tag { font-size: 13px; font-weight: 700; color: var(--brand-primary); }
.sub-tag.accent { color: var(--brand-accent); letter-spacing: 1px; }

.tab-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0; }
.tab-btn {
	min-width: 160px;
	margin: 0 10px;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background-color: white;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

@media (max-width: 768px) { .tab-btn { min-width: 110px; font-size: 14px; margin: 0 3px; } }

.tab-btn.active { background-color: var(--brand-primary); color: white; border-color: var(--brand-primary); }

.tab-content-box {
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
@media (min-width: 768px) { .tab-content-box { padding: 40px; } }

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-title { font-size: 24px; font-weight: 800; margin: 8px 0 16px 0; color: var(--text-slate-900); }
.feature-list { list-style: none; margin-bottom: 24px; }
.feature-list li { display: flex; align-items: center; gap: 8px; color: var(--text-slate-600); font-size: 14px; margin-bottom: 12px; }
.feature-list i { color: var(--brand-primary); }

/* --------------------------------------------------------------------------
   [추가/보완] 그리드 상단 정렬 및 좌측 기본 정보 이미지 스타일
   -------------------------------------------------------------------------- */
.grid.items-start {
    align-items: flex-start;
}

.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, #64748b);
    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 {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 30px;
    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;
}

.slide-item .site-plan-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 이미지 하단 중앙 정보 태그 */
.slide-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* 좌우 컨트롤 버튼 */
.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, #2563eb);
    color: white;
    border-color: var(--brand-primary, #2563eb);
}

.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;
}


/* ==========================================================================
   상세 이미지 모달 (라이트박스)
   ========================================================================== */
   
   
.img-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

.img-modal-overlay.active { opacity: 1; visibility: visible; }

.img-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    text-align: center;
}

.img-modal-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.img-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.img-modal-caption {
    margin-top: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   갤러리
   -------------------------------------------------------------------------- */
.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);
    cursor: pointer;
}
.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;
    letter-spacing: -0.5px;
    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;
    word-break: keep-all;              /* 모바일에서 단어 단위 깔끔한 줄바꿈 */
}

.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; }

/* input, select, textarea 공통 다크 스타일 */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 포커스 효과 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    border-color: var(--brand-accent, #38bdf8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Placeholder 색상 */
.form-group ::placeholder { color: #64748b; }

/* 날짜/시간 선택기 아이콘 색상 (다크모드 대응) */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* 기타 문의사항 (textarea) */
.form-group textarea,
textarea.form-control {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
    resize: none;
}

/* --------------------------------------------------------------------------
   방문 인원 라디오 버튼 커스텀 (다크 칩 스타일)
   -------------------------------------------------------------------------- */
.radio-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 2px;
}

/* 모바일 화면에서는 3열 / 2열로 자동 정렬 */
@media (max-width: 576px) {
    .radio-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

.radio-option {
    position: relative;
}

/* 실제 라디오 input은 숨김 */
.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 라벨을 클릭 가능한 버튼 칩 형태로 디자인 */
.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* Hover 효과 */
.radio-option label:hover {
    border-color: #475569;
    color: #f1f5f9;
}

/* 선택되었을 때 (Checked) 액센트 컬러 하이라이트 */
.radio-option input[type="radio"]:checked + label {
    background-color: rgba(56, 189, 248, 0.1);
    border-color: var(--brand-accent, #38bdf8);
    color: var(--brand-accent, #38bdf8);
    font-weight: 700;
}

.site-footer {
    background-color: #020617;
    color: #64748b;
    margin-bottom: 50px;
    padding: 32px 0;
    border-top: 1px solid #1e293b;
    font-size: 12px;
    line-height: 1.6;
}

/* 하단 고정 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;
}

/* PC 기본 환경 - 전화상담 버튼 숨김, 방문예약 버튼 넓게 */
.btn-cta-call {
    display: none;
}

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

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

/* 모바일 환경 (768px 이하) - 전화상담 버튼, 방문예약 버튼 1:1 비율 표시 */
@media (max-width: 768px) {
	.btn-cta {
	    flex: 1;
	}
	
	.btn-cta-call {
		display: flex;	
	    background-color: #059669;
	    color: #ffffff;
	    font-size: 20px;
	}
	
	.btn-cta-reserve {
	    background-color: var(--brand-primary);
	    color: #ffffff;
	    font-size: 20px;
	}
}



/* 모달 배경 (어둡게 처리) */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px); /* 배경 흐림 효과 */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* 모달 본체 박스 */
.custom-modal-box {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    
    max-height: 85vh; /* 화면 높이의 85%를 넘어가면 높이 고정 */
    overflow-y: auto; /* 내용이 넘치면 세로 스크롤바 생성 */
    -webkit-overflow-scrolling: touch; /* 모바일 부드러운 스크롤 지원 */
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

/* 아이콘 및 텍스트 */
/* 아이콘과 타이틀을 inline-flex로 변경 */
.modal-icon {
    display: inline-flex;
    vertical-align: middle;
    font-size: 24px;
    margin-bottom: 0;
    margin-right: 6px; /* 아이콘 우측 간격 */
}

.modal-title {
    display: inline-flex;
    vertical-align: middle;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px; /* 타이틀 아래로 마진 설정 */
}

.modal-message {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 24px;
    word-break: keep-all;
}

/* 버튼 */
.modal-btn {
    width: 100%;
    padding: 12px 0;
    background-color: #2563eb; /* 원하는 메인 컬러로 변경 가능 */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-btn:hover {
    background-color: #1d4ed8;
}


/* ==========================================
   Location Section Styles
   ========================================== */
.location {
    padding: 60px 0;
    background-color: #f8fafc;
}

.location .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.location-header {
    text-align: center;
    margin-bottom: 40px;
}

.location-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.location-header p {
    font-size: 15px;
    color: #64748b;
}

/* Grid Layout */
.location-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Map Box Wrapper */
.map-box {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid #e2e8f0;
}

/* 카카오 지도 고정폭 반응형 강제 오버라이드 */
.custom-kakao-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 380px;
}

.custom-kakao-map .wrap_map {
    height: 380px !important;
}

/* Info Box */
.info-box {
    background: #ffffff;
    padding: 36px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 24px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-item i {
    font-size: 18px;
    color: #2563eb; /* 포인트 블루 컬러 */
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.info-item strong {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0;
    line-height: 1.4;
}

/* Navigation Button */
.nav-btn-wrap {
    margin-top: auto;
}

.btn-kakao-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background-color: #fee500; /* 카카오 시그니처 옐로우 */
    color: #191919;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-kakao-nav:hover {
    background-color: #fada0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 218, 10, 0.3);
}

/* Responsive (Mobile) */
@media (max-width: 991px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .custom-kakao-map,
    .custom-kakao-map .wrap_map {
        height: 300px !important;
    }

    .info-box {
        padding: 24px 20px;
    }
}