/* --- 히어로 섹션 --- */
.hero {
    position: relative;
    background: url('/img/main_header.jpg') center/cover no-repeat;
    height: 60vh;
    display: flex; justify-content: center; align-items: center; text-align: center; color: var(--white);
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(5, 10, 16, 0.7), rgba(5, 10, 16, 0.5));
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-content .sub-title { color: var(--gold); letter-spacing: 4px; font-size: 0.9rem; margin-bottom: 15px; display: block; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; color: #ddd; }
.hero-btns { display: flex; justify-content: center; gap: 15px; }

/* --- 서브 페이지 헤더 --- */
.sub-hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1554774853-719586f8c277?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    height: 20vh; min-height: 180px; 
    display: flex; justify-content: center; align-items: center; text-align: center; color: var(--white);
}
.sub-hero .hero-content h1 { font-size: 2.2rem; margin-bottom: 5px; } 
.sub-hero .hero-content p { margin-bottom: 0; opacity: 0.9; font-size: 1rem; }

/* --- 섹션 공통 여백 --- */
.service-detail-section, .contact-page-section, .about-section, .property-detail-section, .membership-section {
    padding: 60px 0 100px 0; background: var(--bg-dark);
}
.service-detail-section .container, .contact-page-section .container, .about-section .container, 
.property-detail-section .container, .membership-section .container { padding-top: 10px; }

/* --- 서비스 그리드 (메인) --- */
.services { background: var(--section-dark); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item-link { display: block; height: 100%; }
.service-item {
    background: var(--bg-dark); text-align: center; padding: 40px 20px;
    border: 1px solid rgba(197, 160, 89, 0.2); border-radius: 10px; transition: 0.3s;
    height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer;
}
.service-item:hover { border-color: var(--gold); background: rgba(197, 160, 89, 0.05); transform: translateY(-10px); }
.service-item i { font-size: 3.5rem; color: var(--gold); margin-bottom: 20px; }
.service-item h3 { color: var(--text-light); font-size: 1.3rem; margin: 0; }

/* --- 서비스 상세 (Tabs) --- */
.service-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 30px; margin-bottom: 50px; }
.tab-item {
    background: var(--section-dark); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px;
    padding: 20px 10px; text-align: center; cursor: pointer; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tab-item i { font-size: 1.8rem; color: var(--grey-cool); margin-bottom: 10px; }
.tab-item span { font-size: 0.9rem; color: var(--grey-cool); font-weight: 500; }
.tab-item:hover, .tab-item.active { background: var(--gold); border-color: var(--gold); }
.tab-item:hover i, .tab-item.active i, .tab-item:hover span, .tab-item.active span { color: var(--bg-dark); }
.service-content-area { background: var(--section-dark); padding: 50px; border-radius: 12px; border: 1px solid rgba(197, 160, 89, 0.2); min-height: 400px; }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
.content-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 30px; }
.content-header h2 { text-align: left; margin-bottom: 0; font-size: 2rem; color: var(--gold); }
.content-body li { position: relative; padding-left: 25px; margin-bottom: 15px; color: var(--grey-cool); }
.content-body li::before { content: '\f00c'; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 3px; color: var(--gold); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 매물 리스트 (Gallery) --- */
.gallery { background: var(--bg-dark); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

/* [수정됨] 매물 카드 스타일: 최대 너비 제한 및 중앙 정렬 추가 */
.property-card { 
    background: var(--section-dark); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: 0.3s;
    max-width: 450px; /* 카드가 너무 커지지 않도록 제한 */
    width: 100%;      /* 기본 너비는 꽉 차게 */
    margin: 0 auto;   /* 그리드 셀 안에서 가운데 정렬 */
}

.property-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.property-img { height: 260px; background-size: cover; background-position: center; position: relative; }
.tag { position: absolute; top: 15px; left: 15px; background: var(--gold); color: var(--bg-dark); padding: 4px 12px; font-size: 0.7rem; border-radius: 4px; font-weight: bold; }
.property-info { padding: 25px; }
.property-info h3 { font-size: 1.25rem; color: var(--text-light); margin-bottom: 10px; }
.property-info .description { color: var(--grey-cool); font-size: 0.95rem; }
.property-meta { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; margin-top: 15px; }
.property-meta .price { font-size: 1.3rem; font-weight: 700; color: var(--white); }
.property-meta .yield { text-align: right; font-size: 0.85rem; color: var(--grey-cool); line-height: 1.2; }
.property-meta .yield span { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold); margin-top: 5px; }
.view-more-container { text-align: center; margin-top: 50px; }

/* --- 매물 상세 페이지 (Detail) - PC 스타일 --- */
.detail-top-header { margin-bottom: 40px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; }

/* 지역 태그 스타일: 금색 배경에 검은 글씨 */
.detail-location-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-dark);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.2);
}

.detail-main-title { font-size: 2.5rem; font-weight: 700; color: var(--white); margin: 0; line-height: 1.3; }

.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.detail-gallery { margin-bottom: 40px; }
.main-image img { width: 100%; height: 450px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.thumb-grid img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.7; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.thumb-grid img:hover { opacity: 1; border: 1px solid var(--gold); }

.detail-box { margin-bottom: 50px; background: var(--section-dark); padding: 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.detail-box h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* 투자 포인트 리스트 (FontAwesome 아이콘 사용) */
.point-list li { position: relative; padding-left: 25px; margin-bottom: 12px; color: var(--white); font-size: 1.05rem; }
.point-list li::before { 
    content: '\f00c'; /* FontAwesome Check Icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute; left: 0; top: 4px;
    color: var(--gold); 
    font-size: 0.9em;
}

.detail-text p { color: var(--grey-cool); margin-bottom: 15px; line-height: 1.8; }

/* PC 테이블 스타일 */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; }
.spec-table th { color: var(--grey-cool); font-weight: 500; width: 20%; white-space: nowrap; }
.spec-table td { color: var(--white); }

/* 사이드바 & 금융 정보 */
.detail-sidebar { position: sticky; top: 100px; height: fit-content; }
.info-card { background: var(--section-dark); padding: 30px; border-radius: 12px; border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.info-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 15px; }
.status-badge { background: var(--gold); color: var(--bg-dark); padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }
.prop-id { color: var(--grey-cool); font-size: 0.85rem; }

.finance-block { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.finance-block:last-of-type { border-bottom: none; }
.finance-block h4 { color: var(--text-light); font-size: 1rem; margin-bottom: 15px; font-weight: 500; border-left: 3px solid var(--gold); padding-left: 10px; }

.row-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; color: var(--grey-cool); }
.row-item strong { color: var(--white); font-weight: 500; }
.main-price { font-size: 1.1rem; margin-bottom: 10px; }
.main-price strong { font-size: 1.5rem; color: var(--gold); }
.sub-cost { font-size: 0.85rem; color: #777; }
.total-cost { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.2); font-size: 1.1rem; }
.gold-text { color: var(--gold) !important; font-weight: 700; }

.yield-box { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 8px; margin-bottom: 10px; }
.yield-box.gross { border: 1px solid rgba(255,255,255,0.1); border-left: 3px solid #666; }
.yield-box.net { background: rgba(197, 160, 89, 0.1); border: 1px solid rgba(197, 160, 89, 0.3); border-left: 3px solid var(--gold); }
.yield-box .result { margin-top: 5px; margin-bottom: 0; align-items: center; }
.row-item.result span { font-weight: 700; }
.percent { font-size: 1.4rem; font-weight: 800; }

.expense-list { margin: 10px 0 15px 15px; padding-left: 10px; border-left: 2px solid rgba(255,255,255,0.1); }
.row-item.minus { font-size: 0.85rem; color: #888; }
.row-item.minus span::before { content: '- '; }

/* 상세 페이지 버튼 컨테이너 */
.action-btns { 
    display: flex; 
    flex-direction: column; 
    margin-top: 25px;
}
.action-btns .btn { 
    margin-bottom: 15px; /* 버튼 사이 15px 공백 */
    width: 100%;
}
.action-btns .btn:last-child {
    margin-bottom: 0;
}

.note { font-size: 0.75rem; color: #555; margin-top: 15px; line-height: 1.4; }

/* --- JPPP 소개 페이지 (About) --- */
.about-section { text-align: center; }
.about-brand { margin-bottom: 60px; padding: 40px 20px; }
.about-brand h2 { color: var(--gold); font-size: 2.2rem; margin-bottom: 10px; font-weight: 700; }
.about-brand .lead-text { font-size: 1.3rem; color: var(--white); margin-bottom: 30px; font-family: 'Noto Serif KR', serif; font-style: italic; }
.about-desc p { color: var(--grey-cool); max-width: 800px; margin: 0 auto 15px auto; font-size: 1.05rem; line-height: 1.8; }

.about-company h3, .about-partners h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 30px;
    margin-top: 20px;
}
.about-company { margin-bottom: 60px; }
.company-info-box { background: var(--section-dark); padding: 40px; max-width: 700px; margin: 0 auto; border-radius: 12px; border: 1px solid rgba(197, 160, 89, 0.2); }
.company-logo { height: 60px; width: auto; margin-bottom: 20px; }
.company-name { font-size: 1.3rem; color: var(--white); margin-bottom: 15px; }
.company-address p { color: var(--grey-cool); margin-bottom: 5px; font-size: 1rem; }
.company-address .tel { color: var(--gold); font-weight: 700; margin-top: 15px; font-size: 1.1rem; }

.about-partners { padding: 20px 0 60px 0; }
.partner-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.partner-item { width: 220px; text-align: center; }
.logo-box { width: 100%; height: 120px; background: #ffffff; border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; padding: 20px; }
.partner-item:hover .logo-box { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 5px 20px rgba(197, 160, 89, 0.2); }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* --- 상담 CTA & 폼 --- */
.contact { background: var(--section-dark); }
.consulting-cta { text-align: center; background: var(--bg-dark); padding: 60px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.consulting-cta p { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-light); }

.contact-box {
    background: var(--section-dark); padding: 50px 30px; 
    max-width: 1000px; margin: 30px auto 0; 
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    transition: 0.3s;
}
.contact-box:hover { border-color: var(--gold); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.contact-intro { text-align: center; color: var(--grey-cool); margin-bottom: 30px; font-size: 1.1rem; word-break: keep-all; }
.contact-box form { display: grid; gap: 20px; }
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-box input, .contact-box textarea { width: 100%; padding: 15px; background: var(--bg-dark); border: 1px solid #333; border-radius: 8px; font-size: 1rem; color: var(--white); transition: 0.3s; }
.contact-box input:focus, .contact-box textarea:focus { outline: none; border-color: var(--gold); }

/* 보안문자(CAPTCHA) 스타일 */
.captcha-group {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 50px; background: var(--bg-dark); padding: 15px;
    border: 1px solid #333; border-radius: 8px;
    width: fit-content; margin-left: auto; margin-right: auto;
}
.captcha-img { display: flex; align-items: center; gap: 0; position: relative; }
.captcha-img img { height: 60px; width: auto; border-radius: 4px; border: 1px solid #444; }
.captcha-img button {
    position: absolute; bottom: 2px; right: 2px;
    background: rgba(0,0,0,0.7); border: 1px solid #555; 
    color: var(--gold); width: 22px; height: 22px; 
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; font-size: 0.7rem; padding: 0; z-index: 10;
}
.captcha-img button:hover { background: var(--gold); color: var(--bg-dark); border-color: var(--gold); transform: rotate(180deg); }
.captcha-group input {
    flex: initial; width: 140px; 
    border: none; border-bottom: 1px solid #555; border-radius: 0;
    background: transparent; color: var(--white);
    font-size: 1.1rem; padding: 10px; text-align: center; letter-spacing: 3px;
}
.captcha-group input:focus { border-color: var(--gold); }

.alert-success { text-align: center; padding: 40px 20px; color: var(--white); animation: fadeIn 0.5s ease; }
.alert-success h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 15px; }
.alert-error { background: rgba(255, 0, 0, 0.1); color: #ff6b6b; padding: 15px; border-radius: 6px; margin-bottom: 20px; text-align: center; border: 1px solid rgba(255, 0, 0, 0.2); }

/* --- 멤버십 로그인 --- */
.login-box { background: var(--section-dark); padding: 50px 40px; max-width: 480px; margin: 30px auto 0; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.3); text-align: center; }
.login-box:hover { border-color: var(--gold); }
.login-header h3 { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; }
.input-group { margin-bottom: 20px; }
.login-footer { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.lost-info { color: var(--grey-cool); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.lost-info strong { color: var(--gold); font-weight: 500; }

/* --- 모바일 대응 (콘텐츠) --- */
@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; gap: 30px; }
    .detail-sidebar { position: static; margin-top: 40px; }
    .detail-main-title { font-size: 1.8rem; }
    .property-detail-section { padding-top: 40px; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    
    /* 서비스 카드(2열) 간격 및 여백 최소화 */
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .service-item { padding: 25px 5px; } 
    
    /* 서비스 제목 한 줄 강제 */
    .service-item h3 { 
        font-size: 0.8rem; 
        white-space: nowrap; 
        letter-spacing: -1px; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        width: 100%;
        display: block;
    }

    .service-tabs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .main-image img { height: 250px; }
    .contact-box { padding: 40px 15px; }
    .form-group { grid-template-columns: 1fr; }
    .partner-grid { flex-direction: column; align-items: center; }
    .partner-item { width: 100%; max-width: 280px; }
    
    .captcha-group { flex-direction: row; flex-wrap: nowrap; width: 100%; justify-content: center; }
    .captcha-img { flex-shrink: 0; }
    .captcha-img img { height: 50px; } 
    .captcha-group input { width: 120px; font-size: 1rem; }

    /* 모바일에서 스펙 테이블을 리스트 형식으로 변환 */
    .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
        display: block; 
        width: 100%;
    }
    .spec-table tr {
        margin-bottom: 20px; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }
    .spec-table tr:last-child { border-bottom: none; }
    
    .spec-table th {
        width: 100%;
        color: var(--gold);
        padding: 0 0 5px 0;
        border: none;
        font-size: 0.9rem;
    }
    .spec-table td {
        width: 100%;
        padding: 0;
        border: none;
        font-size: 1.1rem;
        color: var(--white);
    }
}