/* ==============================================================================
   부동산 ON (RealEstate Hub) - 플랫폼 구축 플랜 스타일시트 (plan/style.css)
   Conforming to GEMINI.md & Modern UI/UX Standards:
   - PropTech Luxury Navy & Amber Gold Color Palette
   - Full Responsive Layout (Desktop / Tablet / Mobile)
   - Glassmorphism & High-contrast typography
   - Dark / Light Mode Switching
   ============================================================================== */

:root {
  /* Dark Theme Variables (Default) */
  --bg-app: #080d1a;
  --bg-header: rgba(11, 18, 33, 0.88);
  --bg-alt: #0d1527;
  --bg-card: rgba(18, 29, 51, 0.75);
  --bg-card-hover: rgba(26, 41, 71, 0.9);
  --bg-input: #101c33;
  --bg-surface: #142340;
  --bg-surface-elevated: #1a2c4e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  --border-highlight: rgba(56, 189, 248, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --accent-gold: #f59e0b;
  --accent-blue: #0284c7;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #f59e0b 100%);
  --accent-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --accent-glow: rgba(56, 189, 248, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-alt: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --bg-surface: #e2e8f0;
  --bg-surface-elevated: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: #0284c7;
  --border-highlight: rgba(2, 132, 199, 0.3);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-faint: #94a3b8;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
}

/* -------------------------------------------------------------
   Reset & Base Setup
   ------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* -------------------------------------------------------------
   Sticky Header
   ------------------------------------------------------------- */
.re-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo .logo-icon {
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.brand-logo .logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-logo .logo-text strong {
  color: var(--accent-cyan);
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-left: 6px;
}

.header-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}
.nav-link:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}
.nav-link.highlight-link {
  color: var(--accent-gold);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.db-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.external-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-link {
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}
.icon-link:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.theme-toggle-btn, .mobile-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.light-icon { display: none; }
body[data-theme="light"] .dark-icon { display: none; }
body[data-theme="light"] .light-icon { display: inline-block; color: #f59e0b; }

.mobile-toggle-btn { display: none; }

/* -------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 70px 0 50px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.stat-content span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}
.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent-gradient-gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--border-highlight);
}

/* -------------------------------------------------------------
   Common Section Wrapper
   ------------------------------------------------------------- */
.section-wrapper {
  padding: 70px 0;
}
.section-wrapper.bg-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 36px;
}
.section-head.text-center {
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 680px;
}
.section-head.text-center .section-desc {
  margin: 0 auto;
}

.feature-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 10px;
}

/* -------------------------------------------------------------
   Section 1: Plan Summary Cards (6 Requirements)
   ------------------------------------------------------------- */
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.plan-card.featured-glow {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 100%);
}

.card-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
}

.card-header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.card-heading {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-bullet-list {
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-bullet-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}
.card-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}
.card-bullet-list li strong {
  color: var(--text-main);
}

.card-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.c-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* -------------------------------------------------------------
   Section 2: Real Estate News Feed
   ------------------------------------------------------------- */
.news-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tab-group {
  display: flex;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-tab:hover {
  color: var(--text-main);
}
.filter-tab.active {
  background: var(--accent-blue);
  color: #fff;
}

.news-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  width: 300px;
}
.news-search-box i {
  color: var(--text-faint);
}
.news-search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.88rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}
.news-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.news-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.76rem;
}

.news-cat-pill {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.news-cat-pill.policy { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.news-cat-pill.presale { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.news-cat-pill.tax { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.news-cat-pill.market { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.news-date {
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.news-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-card-summary {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* -------------------------------------------------------------
   Section 3: Policy Guide & Interactive Q&A
   ------------------------------------------------------------- */
.policy-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

.policy-cards-col h3.col-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: var(--transition-fast);
}
.policy-item:hover {
  border-color: var(--border-highlight);
}

.policy-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.policy-item-head strong {
  font-size: 0.95rem;
}

.policy-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.policy-badge.red { background: rgba(244, 63, 94, 0.18); color: var(--accent-rose); }
.policy-badge.green { background: rgba(16, 185, 129, 0.18); color: var(--accent-emerald); }
.policy-badge.blue { background: rgba(56, 189, 248, 0.18); color: var(--accent-cyan); }
.policy-badge.purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; }

.policy-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Q&A Widget */
.qa-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qa-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.qa-header h4 {
  font-size: 1.08rem;
  font-weight: 700;
}
.qa-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.qa-preset-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.preset-label {
  font-size: 0.74rem;
  color: var(--text-faint);
}

.preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}
.preset-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
  border-color: var(--border-highlight);
}

.qa-input-wrapper {
  display: flex;
  gap: 10px;
}

.qa-input-wrapper input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}
.qa-input-wrapper input:focus {
  border-color: var(--border-focus);
}

.qa-answer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 140px;
}

.qa-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
  padding: 20px 10px;
  text-align: center;
  justify-content: center;
}

.qa-answer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.25s ease-out;
}

.qa-ans-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.qa-ans-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
}
.qa-ans-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.qa-hl-pill {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--accent-gold);
}
.qa-ans-source {
  font-size: 0.72rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 4px;
}

/* -------------------------------------------------------------
   Section 4: Real Estate Tax Calculator
   ------------------------------------------------------------- */
.tax-calculator-container {
  max-width: 1040px;
  margin: 0 auto;
}

.calc-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.calc-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.calc-tab:hover {
  color: var(--text-main);
}
.calc-tab.active {
  background: var(--accent-gradient-gold);
  color: #fff;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.calc-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
.calc-panel.active {
  display: block;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}

.calc-inputs-card, .calc-results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.btn-group-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-toggle.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.input-unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-unit-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 40px 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: 600;
  outline: none;
}
.input-unit-wrap input:focus {
  border-color: var(--border-focus);
}
.input-unit-wrap .unit {
  position: absolute;
  right: 14px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 600;
}

.quick-price-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.price-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.price-chip:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.form-row {
  display: flex;
  gap: 12px;
}
.col-6 { flex: 1; }

.form-select, .form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}
.form-select:focus, .form-input:focus {
  border-color: var(--border-focus);
}

.form-check-group {
  margin-top: 14px;
  background: var(--bg-surface);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.custom-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-gold);
}
.check-label {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.4;
}

/* Results Card */
.results-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold);
  color: #fff;
}
.results-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.total-tax-highlight {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
}
.total-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.total-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: block;
}
.total-sub {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 4px;
  display: block;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.breakdown-item strong {
  font-family: var(--font-mono);
  color: var(--text-main);
}
.breakdown-item.discount-item strong {
  color: var(--accent-emerald);
}

.tax-tip-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--accent-cyan);
  line-height: 1.45;
}

/* -------------------------------------------------------------
   Section 5: Real Estate Presales Directory
   ------------------------------------------------------------- */
.presale-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 14px;
  flex-wrap: wrap;
}

.region-chips-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.region-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}
.region-chip:hover {
  color: var(--text-main);
}
.region-chip.active {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.form-select-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
}

.presale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.presale-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.presale-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.presale-card-head {
  padding: 16px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.presale-region-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.presale-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.presale-status-pill.청약접수중 { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); }
.presale-status-pill.분양예정 { background: rgba(56, 189, 248, 0.2); color: var(--accent-cyan); }
.presale-status-pill.당첨자발표 { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.presale-status-pill.선착순계약중 { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }

.presale-card-body {
  padding: 18px;
  flex: 1;
}

.presale-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.presale-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.spec-item small {
  color: var(--text-faint);
  display: block;
}
.spec-item strong {
  color: var(--text-main);
  font-size: 0.85rem;
}

.presale-price-bar {
  background: var(--bg-surface);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
}
.presale-price-bar strong {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.presale-highlight {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.presale-card-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.74rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* -------------------------------------------------------------
   Section 6: Vision & Lead Generation
   ------------------------------------------------------------- */
.lead-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-app) 100%);
  padding: 80px 0;
}

.lead-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  box-shadow: var(--shadow-glow);
}

.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.lead-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.lead-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.lead-stats-row {
  display: flex;
  gap: 20px;
}
.l-stat {
  display: flex;
  flex-direction: column;
}
.l-stat strong {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}
.l-stat small {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.lead-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}
.lead-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lead-form .req {
  color: var(--accent-rose);
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.re-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-app);
  padding: 40px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.f-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 6px;
}
.f-copy {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-cyan);
}

/* -------------------------------------------------------------
   Toast Notifications
   ------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.success i { color: var(--accent-emerald); }
.toast.error i { color: var(--accent-rose); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-cards-grid, .presale-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .policy-layout-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .lead-card-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .header-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .plan-cards-grid, .news-cards-grid, .presale-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .news-control-bar, .presale-control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .news-search-box {
    width: 100%;
  }
}
