/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans KR',sans-serif;line-height:1.7;color:#1e293b;background:#f8fafc;padding-bottom:120px}
a{color:#2563eb;text-decoration:none;-webkit-tap-highlight-color:transparent}
a:hover{text-decoration:underline}
a:focus-visible{outline:2px solid #2563eb;outline-offset:2px;border-radius:4px}
img{max-width:100%;height:auto;display:block;content-visibility:auto}
ul,ol{list-style:none}
button,a{min-height:44px;min-width:44px}

/* ===== HEADER ===== */
.site-header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:100;contain:layout style}
.header-inner{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between}
.logo{font-size:1.25rem;font-weight:800;color:#2563eb;letter-spacing:-.02em;min-height:44px;display:inline-flex;align-items:center}
.logo span{color:#1e293b}
.nav-links{display:flex;gap:6px;flex-wrap:wrap}
.nav-links a{font-size:.85rem;padding:8px 14px;border-radius:8px;color:#475569;font-weight:500;transition:background .2s;min-height:44px;display:inline-flex;align-items:center}
.nav-links a:hover,.nav-links a.active{background:#eff6ff;color:#2563eb;text-decoration:none}
.hamburger{display:none;background:none;border:none;font-size:1.5rem;cursor:pointer;min-height:44px;min-width:44px;color:#1e293b}

/* ===== HERO (dark image = WHITE text) ===== */
.hero{background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%);color:#fff;padding:60px 20px;text-align:center}
.hero h1{font-size:2rem;font-weight:800;margin-bottom:12px;line-height:1.3;color:#fff;text-shadow:1px 1px 4px rgba(0,0,0,.5)}
.hero p{font-size:1.05rem;color:#fff;max-width:600px;margin:0 auto;line-height:1.7;text-shadow:1px 1px 3px rgba(0,0,0,.4)}

/* ===== SECTION ===== */
.section{max-width:1200px;margin:0 auto;padding:48px 20px}
.section-title{font-size:1.5rem;font-weight:700;margin-bottom:8px;color:#1e293b}
.section-sub{font-size:.95rem;color:#64748b;margin-bottom:32px}

/* ===== CATEGORY GRID ===== */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.cat-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px 20px;text-align:center;transition:box-shadow .25s,transform .25s;min-height:44px}
.cat-card:hover{box-shadow:0 8px 30px rgba(37,99,235,.12);transform:translateY(-4px);text-decoration:none}
.cat-card .cat-icon{font-size:2.4rem;margin-bottom:10px}
.cat-card .cat-name{font-size:1rem;font-weight:700;color:#1e293b}
.cat-card .cat-count{font-size:.8rem;color:#64748b;margin-top:4px}

/* ===== PROPERTY CARDS ===== */
.prop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}
.prop-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;transition:box-shadow .25s,transform .25s;contain:layout style}
.prop-card:hover{box-shadow:0 8px 30px rgba(37,99,235,.12);transform:translateY(-4px);text-decoration:none}
.prop-thumb{height:200px;background:#dbeafe;display:flex;align-items:center;justify-content:center;font-size:3rem;color:#2563eb}
.prop-body{padding:20px}
.prop-badge{display:inline-block;font-size:.75rem;font-weight:700;padding:5px 12px;border-radius:6px;background:#1e40af;color:#fff;margin-bottom:10px}
.prop-badge.hot{background:#dc2626;color:#fff}
.prop-name{font-size:1.15rem;font-weight:700;color:#1e293b;margin-bottom:6px}
.prop-location{font-size:.85rem;color:#64748b;margin-bottom:8px}
.prop-info{display:flex;gap:12px;flex-wrap:wrap;font-size:.8rem;color:#475569}
.prop-info span{background:#f1f5f9;padding:4px 8px;border-radius:6px}

/* ===== DETAIL PAGE ===== */
.detail-hero{background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 100%);color:#fff;padding:48px 20px}
.detail-hero .container{max-width:1200px;margin:0 auto}
.detail-hero h1{font-size:1.75rem;font-weight:800;margin-bottom:8px;color:#fff;text-shadow:2px 2px 6px rgba(0,0,0,.7)}
.detail-hero .subtitle{color:#fff;font-size:1rem;text-shadow:1px 1px 4px rgba(0,0,0,.5)}
.detail-content{max-width:900px;margin:0 auto;padding:40px 20px}
.detail-content h2{font-size:1.3rem;font-weight:700;color:#1e293b;margin:32px 0 12px;padding-left:12px;border-left:4px solid #2563eb}
.detail-content p{margin-bottom:16px;color:#334155;line-height:1.8;font-size:1rem}
.detail-content .info-table{width:100%;border-collapse:collapse;margin:16px 0 24px}
.detail-content .info-table th,.detail-content .info-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #e2e8f0;font-size:.9rem}
.detail-content .info-table th{background:#f8fafc;font-weight:600;color:#475569;width:140px}
.detail-content .info-table td{color:#1e293b}

/* ===== STATS BAR ===== */
.stats-bar{display:flex;gap:16px;flex-wrap:wrap;margin:32px 0}
.stat-item{flex:1;min-width:120px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;text-align:center}
.stat-num{font-size:1.5rem;font-weight:800;color:#2563eb}
.stat-label{font-size:.8rem;color:#64748b;margin-top:4px}

/* ===== BREADCRUMB ===== */
.breadcrumb{max-width:1200px;margin:0 auto;padding:14px 20px;font-size:.82rem;color:#94a3b8}
.breadcrumb a{color:#64748b;min-height:44px;display:inline-flex;align-items:center}
.breadcrumb span{margin:0 6px}

/* ===== BOTTOM FIXED BAR ===== */
.bottom-bar{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:2px solid #e2e8f0;z-index:200;box-shadow:0 -4px 24px rgba(0,0,0,.08);display:flex;flex-direction:column;align-items:center;padding:0}
.bottom-bar .bar-top{width:100%;display:flex;align-items:center;justify-content:center;gap:16px;padding:12px 20px;background:#2563eb;color:#fff;flex-wrap:wrap}
.bottom-bar .call-btn{display:inline-flex;align-items:center;gap:8px;color:#fff;font-weight:700;font-size:1.25rem;min-height:44px;text-decoration:none}
.bottom-bar .call-btn:hover{text-decoration:none;opacity:.9}
.bottom-bar .email-link{color:#fff;font-size:.85rem;min-height:44px;display:inline-flex;align-items:center}
.bottom-bar .bar-bottom{width:100%;text-align:center;padding:8px 20px;background:#fff}
.bottom-bar .main-link{font-size:.9rem;color:#2563eb;font-weight:700;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.bottom-bar .main-link:hover{text-decoration:underline}

/* ===== FOOTER ===== */
.site-footer{background:#0f172a;color:#94a3b8;padding:40px 20px;text-align:center;font-size:.82rem;line-height:1.8}
.site-footer a{color:#60a5fa;min-height:44px;display:inline-flex;align-items:center}

/* ===== SEARCH BAR ===== */
.search-wrap{max-width:1200px;margin:0 auto;padding:16px 20px}
.search-box{position:relative}
.search-box input{width:100%;padding:14px 20px 14px 44px;border:2px solid #e2e8f0;border-radius:12px;font-size:1rem;min-height:44px;background:#fff;transition:border-color .2s}
.search-box input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.search-box::before{content:'🔍';position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:1.1rem}
.search-results{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin-top:4px;max-height:320px;overflow-y:auto;z-index:300;display:none;box-shadow:0 8px 30px rgba(0,0,0,.1)}
.search-results.show{display:block}
.sr-item{padding:14px 20px;border-bottom:1px solid #f1f5f9;cursor:pointer;min-height:44px;display:flex;flex-direction:column;gap:2px}
.sr-item:hover{background:#eff6ff}
.sr-item:last-child{border-bottom:none}
.sr-name{font-weight:700;color:#1e293b;font-size:.95rem}
.sr-meta{font-size:.78rem;color:#64748b}
.sr-empty{padding:20px;text-align:center;color:#94a3b8;font-size:.9rem}

/* ===== PC: hide bottom bar, show top nav ===== */
@media(min-width:769px){
  .bottom-bar{display:none}
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .hero h1{font-size:1.5rem}
  .hero p{font-size:.95rem}
  .nav-links{display:none}
  .hamburger{display:inline-flex;align-items:center;justify-content:center}
  .header-inner{padding:12px 16px}
  .section{padding:32px 16px}
  .prop-grid{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .detail-hero h1{font-size:1.35rem}
  .stats-bar{gap:10px}
  .stat-item{min-width:80px;padding:14px 10px}
  .stat-num{font-size:1.2rem}
  .bottom-bar .call-btn{font-size:1.1rem}
}
@media(max-width:480px){
  .cat-grid{grid-template-columns:repeat(2,1fr)}
  .bottom-bar .bar-top{flex-direction:column;gap:4px;padding:10px 16px}
}

/* ===== INTERACTIVE WIDGETS ===== */

/* Price Simulator */
.sim-box{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px;margin:32px 0}
.sim-box h3{font-size:1.15rem;font-weight:700;color:#1e293b;margin-bottom:16px}
.sim-row{display:flex;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.sim-row label{font-size:.9rem;color:#475569;min-width:100px;font-weight:600}
.sim-row input,.sim-row select{flex:1;min-width:120px;padding:10px 14px;border:1px solid #cbd5e1;border-radius:8px;font-size:1rem;min-height:44px}
.sim-row input:focus,.sim-row select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.sim-result{margin-top:16px;padding:20px;background:#eff6ff;border-radius:12px;text-align:center}
.sim-result .amount{font-size:1.75rem;font-weight:800;color:#2563eb}
.sim-result .desc{font-size:.85rem;color:#475569;margin-top:4px}

/* Comparison Table */
.comp-table{width:100%;border-collapse:collapse;margin:24px 0;font-size:.88rem}
.comp-table th,.comp-table td{padding:12px 14px;border:1px solid #e2e8f0;text-align:center}
.comp-table thead th{background:#1e3a5f;color:#fff;font-weight:600}
.comp-table thead th:first-child{background:#0f172a}
.comp-table tbody td:first-child{font-weight:600;background:#f8fafc;text-align:left}
.comp-table .highlight{background:#eff6ff;font-weight:700;color:#2563eb}

/* Timeline */
.timeline{position:relative;padding-left:32px;margin:24px 0}
.timeline::before{content:'';position:absolute;left:11px;top:0;bottom:0;width:3px;background:#dbeafe;border-radius:2px}
.tl-item{position:relative;padding-bottom:28px}
.tl-item:last-child{padding-bottom:0}
.tl-item::before{content:'';position:absolute;left:-25px;top:4px;width:14px;height:14px;background:#2563eb;border-radius:50%;border:3px solid #dbeafe}
.tl-item.done::before{background:#22c55e}
.tl-item.active::before{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.25)}
.tl-date{font-size:.78rem;color:#64748b;font-weight:600;margin-bottom:2px}
.tl-title{font-size:.95rem;font-weight:700;color:#1e293b}
.tl-desc{font-size:.82rem;color:#64748b;margin-top:2px}

/* Neighborhood */
.nbr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin:20px 0}
.nbr-item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;display:flex;gap:12px;align-items:flex-start}
.nbr-icon{font-size:1.5rem;flex-shrink:0}
.nbr-name{font-size:.9rem;font-weight:700;color:#1e293b}
.nbr-dist{font-size:.78rem;color:#64748b}

/* Expert Quote */
.expert-box{background:linear-gradient(135deg,#0f172a,#1e3a5f);color:#fff;border-radius:16px;padding:28px;margin:24px 0;position:relative}
.expert-box::before{content:'"';position:absolute;top:8px;left:16px;font-size:4rem;color:rgba(255,255,255,.15);font-family:Georgia,serif;line-height:1}
.expert-box p{font-size:1rem;line-height:1.8;color:rgba(255,255,255,.92);padding-left:12px}
.expert-box .expert-name{margin-top:12px;font-size:.82rem;color:#60a5fa;font-weight:600;padding-left:12px}

/* FAQ Accordion */
.faq-list{margin:20px 0}
.faq-item{border:1px solid #e2e8f0;border-radius:12px;margin-bottom:10px;overflow:hidden}
.faq-q{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;cursor:pointer;background:#fff;font-weight:600;font-size:.95rem;color:#1e293b;min-height:44px;user-select:none;transition:background .2s}
.faq-q:hover{background:#f8fafc}
.faq-q .arrow{transition:transform .3s;font-size:1.2rem;color:#64748b}
.faq-item.open .faq-q .arrow{transform:rotate(180deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease;background:#f8fafc}
.faq-a-inner{padding:0 20px 16px;font-size:.9rem;color:#475569;line-height:1.8}
.faq-item.open .faq-a{max-height:400px}

/* Alert Box */
.alert-box{background:#eff6ff;border:2px solid #2563eb;border-radius:16px;padding:24px;margin:28px 0;text-align:center}
.alert-box h3{font-size:1.05rem;font-weight:700;color:#1e293b;margin-bottom:12px}
.alert-form{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.alert-form input[type="email"]{padding:10px 16px;border:1px solid #cbd5e1;border-radius:8px;font-size:1rem;min-height:44px;min-width:220px}
.alert-form button{background:#2563eb;color:#fff;border:none;padding:10px 24px;border-radius:8px;font-weight:700;font-size:.95rem;cursor:pointer;min-height:44px;transition:background .2s}
.alert-form button:hover{background:#1d4ed8}
.alert-msg{margin-top:10px;font-size:.85rem;color:#22c55e;font-weight:600;display:none}
