/* =============== DESIGN SYSTEM =============== */

:root {

    --bg: #FFFFFF;

    --bg-alt: #F5F6F8;

    --bg-card: #FFFFFF;

    --text: #0a1628;

    --text-sub: #5a6677;

    --accent: #1a56db;

    --accent-light: #e8f0fe;

    --gold: #d4a853;

    --gold-light: #fdf6e3;

    --border: #e2e5ea;

    --success: #0d9488;

    --danger: #dc2626;

    --radius: 12px;

    --shadow: 0 2px 12px rgba(10, 22, 40, 0.06);

    --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.10);

    --transition: all 0.25s ease;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;

}



/* =============== HEADER =============== */

#site-header {

    position: sticky;

    top: 0;

    z-index: 100;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    padding: 0 24px;

}



.header-inner {

    max-width: 1400px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 60px;

}



.logo {

    display: flex;

    align-items: center;

    gap: 8px;

}



.logo-icon {

    font-size: 24px;

}



.logo-text {

    font-size: 20px;

    color: var(--text);

    font-weight: 400;

}



.logo-text b {

    color: var(--accent);

    font-weight: 800;

}



.logo-sub {

    font-size: 11px;

    color: var(--text-sub);

    margin-left: 4px;

}



.main-nav {

    display: flex;

    gap: 4px;

}



.nav-item {

    text-decoration: none;

    color: var(--text-sub);

    padding: 8px 16px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 500;

    transition: var(--transition);

}



.nav-item:hover,

.nav-item.active {

    background: var(--accent-light);

    color: var(--accent);

}



.btn-login {

    text-decoration: none;

    background: var(--accent);

    color: #fff;

    padding: 8px 20px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);

}



.btn-login:hover {

    background: #1545b0;

}



/* =============== HERO =============== */

#hero {

    position: relative;

    min-height: 480px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(135deg, #0a1628 0%, #1a2d50 50%, #0d3b66 100%);

    overflow: hidden;

}



.hero-bg {

    position: absolute;

    inset: 0;

    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff08" d="M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,186.7C672,192,768,160,864,154.7C960,149,1056,171,1152,170.7C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;

    background-size: cover;

    opacity: 0.3;

}



.hero-content {

    position: relative;

    z-index: 2;

    text-align: center;

    padding: 40px 20px;

    max-width: 700px;

    width: 100%;

}



.hero-badge {

    display: inline-block;

    background: var(--accent);

    color: #fff;

    padding: 6px 16px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 20px;

    letter-spacing: 0.5px;

}



#hero h1 {

    color: #fff;

    font-size: 36px;

    font-weight: 300;

    margin-bottom: 12px;

    line-height: 1.3;

}



#hero h1 strong {

    font-weight: 800;

    color: var(--gold);

}



.hero-sub {

    color: rgba(255, 255, 255, 0.7);

    font-size: 15px;

    margin-bottom: 32px;

}



.hero-cred {

    color: rgba(255, 255, 255, 0.5);

    font-size: 12px;

    margin-top: 20px;

}



/* Search Box */

.search-box {

    background: #fff;

    border-radius: 16px;

    padding: 6px;

    box-shadow: var(--shadow-lg);

}



.search-input-wrap {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 4px 8px;

}



.search-icon {

    font-size: 20px;

}



#address-input {

    flex: 1;

    border: none;

    outline: none;

    font-size: 16px;

    font-family: inherit;

    padding: 12px 8px;

    background: transparent;

}



#btn-search,

#btn-direct {

    border: none;

    border-radius: 10px;

    padding: 12px 20px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);

    font-family: inherit;

}



#btn-search {

    background: var(--accent);

    color: #fff;

}



#btn-search:hover {

    background: #1545b0;

}



#btn-direct {

    background: linear-gradient(135deg, #e67e22, #f39c12);

    color: #fff;

}



#btn-direct:hover {

    background: linear-gradient(135deg, #d35400, #e67e22);

}



.search-features {

    display: flex;

    justify-content: center;

    gap: 16px;

    padding: 8px 16px;

    font-size: 12px;

    color: var(--text-sub);

}



/* =============== ANALYSIS SECTION =============== */

#analysis-section {

    background: var(--bg-alt);

    border-top: 1px solid var(--border);

}



#analysis-section.hidden {

    display: none;

}



.analysis-layout {
    display: flex;
    flex-wrap: wrap;
    height: calc(100vh - 60px);
}



/* MAP */

.map-panel {
    flex: 1 1 65%;
    min-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
}



.map-tabs {

    display: flex;

    gap: 4px;

    padding: 8px 10px;

    background: #0d1f3c;

    flex-shrink: 0;

    position: relative;

    z-index: 20;

    align-items: center;

    border-bottom: 2px solid #1a56db;

}



/* 좌측 레이블 "▼ 지도선택" — 이음지도 내부탭과 구분 */

.map-tabs::before {

    content: '▼ 지도선택';

    font-size: 10px;

    font-weight: 800;

    color: rgba(255, 255, 255, 0.4);

    letter-spacing: 0.5px;

    margin-right: 6px;

    white-space: nowrap;

}



.map-tab {

    background: rgba(255, 255, 255, 0.1);

    color: rgba(255, 255, 255, 0.75);

    border: 1px solid rgba(255, 255, 255, 0.15);

    padding: 8px 16px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    font-family: inherit;

    transition: var(--transition);

    white-space: nowrap;

    letter-spacing: -0.2px;

}



.map-tab:hover {

    background: rgba(255, 255, 255, 0.22);

    color: #fff;

    border-color: rgba(255, 255, 255, 0.3);

}



.map-tab.active {

    background: var(--accent);

    color: #fff;

    border-color: var(--accent);

    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.4);

}



/* ⚡ 자체엔진 구분 배지 */

.tab-sep {

    display: flex;

    align-items: center;

    color: #f6c90e;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.3px;

    padding: 4px 8px;

    white-space: nowrap;

    border-left: 1px solid rgba(255, 255, 255, 0.25);

    border-right: 1px solid rgba(255, 255, 255, 0.25);

    margin: 0 3px;

    text-shadow: 0 0 10px rgba(246, 201, 14, 0.7);

    cursor: default;

    user-select: none;

}



.map-container {

    width: 100%;

    flex: 1;

    min-height: 0;

    overflow: hidden;

    position: relative;

    background: #e0e5ec;

}



.map-controls {

    position: absolute;

    top: 16px;

    left: 16px;

    z-index: 10;

    display: flex;

    gap: 4px;

}



.map-btn {

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid var(--border);

    padding: 8px 14px;

    border-radius: 8px;

    font-size: 12px;

    cursor: pointer;

    font-weight: 600;

    font-family: inherit;

    transition: var(--transition);

}



.map-btn:hover {

    background: var(--accent-light);

}



.map-btn.active {

    background: var(--accent);

    color: #fff;

    border-color: var(--accent);

}



.map-info {

    position: absolute;

    bottom: 16px;

    left: 16px;

    z-index: 10;

}



.map-badge {

    background: rgba(0, 0, 0, 0.6);

    color: #fff;

    padding: 4px 10px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: 700;

}



/* DATA PANEL */

.data-panel {
    flex: 1 1 30%;
    min-width: 280px;
    background: #fff;
    overflow-y: auto;
    border-left: 1px solid var(--border);
}



.panel-header {

    padding: 12px 16px;

    border-bottom: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: var(--bg-alt);

    position: sticky;

    top: 0;

    z-index: 5;

}



.panel-header h2 {

    font-size: 14px;

    font-weight: 700;

}



.panel-badge {

    font-size: 11px;

    background: var(--accent-light);

    color: var(--accent);

    padding: 4px 10px;

    border-radius: 6px;

    font-weight: 600;

}



.panel-body {

    padding: 10px 14px;

}



/* Info Cards */

.info-card {

    border: none;

    background: none;

    padding: 4px 0;

    margin-bottom: 4px;

    border-bottom: 1px solid var(--border);

}



.info-card:hover {}



.info-card h3 {

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 8px;

    color: var(--text);

}



.info-table {

    width: 100%;

    border-collapse: collapse;

}



.info-table th {

    text-align: left;

    font-weight: 600;

    font-size: 11px;

    color: var(--text-sub);

    padding: 5px 0;

    width: 60px;

    border-bottom: 1px solid var(--border);

}



.info-table td {

    font-size: 12px;

    padding: 5px 0;

    font-weight: 500;

    border-bottom: 1px solid var(--border);

}



/* Zoning badges */

.zoning-badges {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

}



.zone-badge {

    display: inline-block;

    padding: 2px 0;

    font-size: 11px;

    font-weight: 500;

    color: var(--text);

}



.zone-badge::before {

    content: '· ';

    color: var(--accent);

    font-weight: 700;

}



.zone-badge.primary {

    color: var(--accent);

}



.zone-badge.warning {

    color: #92400e;

}



.zone-badge.info {

    color: #065f46;

}



.zone-badge.danger {

    color: #991b1b;

}



/* Multi parcel */

.multi-input {

    display: flex;

    gap: 8px;

    margin-bottom: 12px;

}



.multi-input input {

    flex: 1;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 8px 12px;

    font-size: 13px;

    font-family: inherit;

}



.multi-input button {

    background: var(--accent);

    color: #fff;

    border: none;

    padding: 8px 16px;

    border-radius: 8px;

    font-size: 13px;

    cursor: pointer;

    font-weight: 600;

    font-family: inherit;

}



.parcel-list {

    margin-bottom: 12px;

}



.parcel-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 8px 12px;

    border-bottom: 1px solid var(--border);

    font-size: 13px;

}



.parcel-item .remove {

    color: var(--danger);

    cursor: pointer;

    font-weight: 700;

}



.parcel-summary {

    padding: 12px;

    background: var(--accent-light);

    border-radius: 8px;

}



.summary-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.summary-val {

    font-weight: 700;

    font-size: 18px;

    color: var(--accent);

}



.summary-val .sub {

    font-size: 13px;

    color: var(--text-sub);

    font-weight: 500;

}



/* =============== CURRICULUM =============== */

#curriculum {

    padding: 80px 24px;

    background: var(--bg);

}



.section-inner {

    max-width: 1200px;

    margin: 0 auto;

    text-align: center;

}



.section-title {

    font-size: 28px;

    font-weight: 800;

    margin-bottom: 8px;

}



.section-sub {

    color: var(--text-sub);

    font-size: 15px;

    margin-bottom: 48px;

}



.step-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;

    margin-bottom: 32px;

}



.step-card {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 28px 20px;

    text-align: left;

    transition: var(--transition);

    cursor: pointer;

}



.step-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-lg);

    border-color: var(--accent);

}



.step-card.highlight {

    border-color: var(--gold);

    background: var(--gold-light);

}



.step-num {

    font-size: 32px;

    font-weight: 900;

    color: var(--accent);

    opacity: 0.3;

    margin-bottom: 8px;

}



.step-card.highlight .step-num {

    color: var(--gold);

    opacity: 0.5;

}



.step-card h4 {

    font-size: 16px;

    font-weight: 700;

    margin-bottom: 4px;

}



.step-card p {

    font-size: 13px;

    color: var(--text-sub);

    margin-bottom: 12px;

}



.step-price {

    font-size: 14px;

    font-weight: 700;

    color: var(--accent);

    display: none;

    /* 가격 숫자 숨김 */

}



.step-card.highlight .step-price {

    color: #b8860b;

}



/* 마스터 패키지 배너 숨김 */

.package-banner {

    display: none;

}



.package-banner {

    background: linear-gradient(135deg, #0a1628, #1a2d50);

    color: #fff;

    padding: 24px 40px;

    border-radius: var(--radius);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

}



.package-label {

    font-size: 18px;

    font-weight: 700;

}



.package-original {

    text-decoration: line-through;

    color: rgba(255, 255, 255, 0.5);

    font-size: 18px;

}



.package-price {

    font-size: 32px;

    font-weight: 900;

    color: var(--gold);

}



.package-save {

    background: var(--gold);

    color: #0a1628;

    padding: 4px 12px;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 700;

}



/* =============== CTA =============== */

#cta {

    padding: 80px 24px;

    background: linear-gradient(135deg, var(--accent) 0%, #0d3b66 100%);

    text-align: center;

    color: #fff;

}



.cta-inner h2 {

    font-size: 28px;

    font-weight: 300;

    margin-bottom: 12px;

}



.cta-inner h2 strong {

    font-weight: 800;

    color: var(--gold);

}



.cta-inner p {

    color: rgba(255, 255, 255, 0.7);

    margin-bottom: 32px;

}



.cta-inner button {

    background: var(--gold);

    color: #0a1628;

    border: none;

    padding: 16px 40px;

    border-radius: 12px;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    font-family: inherit;

    transition: var(--transition);

}



.cta-inner button:hover {

    transform: scale(1.05);

    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.4);

}



/* =============== FOOTER =============== */

#site-footer {

    background: #0a1628;

    color: rgba(255, 255, 255, 0.6);

    padding: 40px 24px;

}



.footer-inner {

    max-width: 1200px;

    margin: 0 auto;

}



.footer-info {

    font-size: 13px;

    line-height: 1.8;

    margin-bottom: 16px;

}



.footer-info strong {

    color: #fff;

}



.footer-copy {

    font-size: 12px;

    opacity: 0.5;

}



/* =============== RESPONSIVE =============== */

/* flex-wrap으로 세로 전환될 때 */
@media (max-width: 1024px) {
    .analysis-layout {
        height: auto;
    }

    .map-panel {
        height: 60vh;
        min-height: 420px;
    }

    .data-panel {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

/* data-panel이 wrap되어 아래로 내려갔을 때 */
@media (max-width: 768px) {

    .analysis-layout {
        height: auto;
    }

    .map-panel {
        min-width: 100%;
        height: 65vh;
        min-height: 450px;
    }

    .data-panel {
        min-width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .map-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }

    .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        display: none;
    }

    .package-banner {
        flex-direction: column;
        gap: 8px;
    }

}