/* ============================================
   사이드 홈페이지 - 메인 스타일 (와이어프레임)
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a3a8f;
  --primary-light: #3258c8;
  --accent: #ff6b35;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --text: #1a1a1a;
  --text-soft: #666;
  --border: #e5e7eb;
  --radius: 10px;
}

html, body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text);
  background: #f5f7fb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.header-inner .logo { justify-self: start; }
.header-inner .nav { justify-self: center; gap: 0; }
.header-inner .header-search { justify-self: end; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.nav { display: flex; }
.nav a {
  padding: 0 20px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 64px;
}
.nav a:hover { color: var(--primary); }

/* 헤더 검색창 */
.header-search { position: relative; width: 280px; }
.header-search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a3a8f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 14px center;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.header-search input::placeholder { color: var(--text-soft); }
.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,143,0.15);
}
.header-search-results {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 360px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  max-height: 420px; overflow-y: auto;
  z-index: 200;
  padding: 6px 0;
}
.header-search-results[hidden] { display: none; }
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .header-inner .header-search { display: none; }
  .header-inner .nav { justify-self: end; }
  .nav a { padding: 0 12px; font-size: 14px; }
}
.header-cta {
  padding: 8px 16px; background: var(--primary); color: #fff;
  border-radius: 6px; font-size: 14px; font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 0;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.hero-text h1 { font-size: 36px; font-weight: 800; line-height: 1.25; letter-spacing: -1px; }
.hero-text p { margin-top: 12px; font-size: 16px; opacity: 0.9; }
.hero-stats { display: flex; gap: 24px; margin-top: 28px; }

/* ===== Hero 검색 ===== */
.hero-search {
  position: relative;
  margin-top: 24px;
  max-width: 520px;
}
.hero-search input {
  width: 100%; padding: 16px 20px;
  font-size: 16px; font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.hero-search input::placeholder { color: var(--text-soft); font-weight: 500; }
.hero-search input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}
.hero-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  max-height: 420px; overflow-y: auto;
  z-index: 100;
  padding: 6px 0;
}
.hero-search-results[hidden] { display: none; }
.search-result {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--bg-soft);
  transition: background .1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: var(--bg-soft); }
.search-name { font-size: 14px; font-weight: 600; }
.search-cat { font-size: 12px; color: var(--text-soft); font-weight: 500; margin-left: 4px; }
.search-region { font-size: 12px; color: var(--text-soft); }
.search-badge-official {
  display: inline-block; margin-left: 6px;
  font-size: 10px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 2px 6px; border-radius: 4px;
  vertical-align: middle;
}
.stat-box {
  flex: 1; padding: 18px 20px; background: rgba(255,255,255,0.12);
  border-radius: var(--radius); backdrop-filter: blur(6px);
  color: inherit; text-decoration: none; display: block;
  transition: transform .15s, background .15s;
  cursor: pointer;
}
.stat-box:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.stat-box .num { font-size: 32px; font-weight: 800; }
.stat-box .label { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.hero-slider {
  background: rgba(255,255,255,0.15); border-radius: var(--radius);
  aspect-ratio: 16/9;
}

/* ===== Quick Bar ===== */
.quickbar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: -30px auto 0; max-width: 1160px; padding: 0 20px;
  position: relative; z-index: 10;
}
.quickbar a {
  background: #fff; padding: 24px 20px; text-align: center;
  border-radius: var(--radius); border: 1px solid var(--border);
  font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform .15s;
}
.quickbar a:hover { transform: translateY(-2px); }
.quickbar .icon { font-size: 24px; display: block; margin-bottom: 6px; }

/* ===== 메인 페이지 모바일 대응 (Hero + Quickbar + 공통) ===== */
@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 50px; overflow-x: hidden; }
  .hero-inner { display: block !important; grid-template-columns: 1fr !important; gap: 24px !important; }
  .hero-inner > * { min-width: 0 !important; max-width: 100% !important; }
  .hero-tab-panel-right { margin-top: 20px !important; }
  .hero-text h1 { font-size: 24px; line-height: 1.3; }
  .hero-text p { font-size: 14px; }
  .hero-search { margin-top: 20px; max-width: 100%; }
  .hero-search input { padding: 14px 18px; font-size: 15px; }
  .hero-stats { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; margin-top: 20px !important; }
  .hero-stats button.stat-box,
  .stat-box { padding: 12px 4px !important; min-width: 0 !important; flex: unset !important; width: auto !important; }
  .stat-box .num { font-size: 20px !important; }
  .stat-box .label { font-size: 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .quickbar { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -24px; padding: 0 16px; }
  .quickbar a { padding: 18px 10px; font-size: 15px; }
  .quickbar .icon { font-size: 22px; }
  section.block { padding: 40px 0; }
  .section-head h2 { font-size: 20px; }
  .section-head .more { font-size: 12px; }
}

/* ===== Sections ===== */
section.block { padding: 60px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 24px;
}
.section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.section-head .more { font-size: 14px; color: var(--text-soft); }

/* ===== Card Grid (분양현장) ===== */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

/* ===== Featured Slider (추천 분양현장 — 3장 슬라이더) ===== */
.featured-slider { position: relative; }
.featured-viewport { overflow: hidden; }
.featured-track {
  display: flex; gap: 20px;
  transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.featured-track .card {
  flex: 0 0 calc((100% - 40px) / 3);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none; color: inherit;
}
.featured-track .card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.featured-track .card .thumb {
  aspect-ratio: 16/10; background: var(--bg-soft);
  overflow: hidden;
}
.featured-track .card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.featured-track .card .body { padding: 14px 16px; }
.featured-track .card .name-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.featured-track .card .name-row .name {
  font-size: 16px; font-weight: 700; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.featured-track .card .name-row .card-cta {
  flex: 0 0 auto; color: var(--primary); font-weight: 600; font-size: 13px;
}
.slider-arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.08);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; color: #333;
  transition: all .15s; z-index: 2;
}
.slider-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.slider-arrow.prev { left: -21px; }
.slider-arrow.next { right: -21px; }
.slider-arrow:disabled { opacity: .35; cursor: not-allowed; }
.slider-arrow:disabled:hover { background: #fff; color: #333; border-color: var(--border); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slider-dots .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #d1d5db;
  cursor: pointer; transition: all .15s; border: none; padding: 0;
}
.slider-dots .dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card .thumb {
  aspect-ratio: 4/5; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 13px;
  overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.card .body { padding: 14px 16px; }
.card .badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.badge.on { background: #e8f5e9; color: #2e7d32; }
.badge.soon { background: #fff3e0; color: #e65100; }
.badge.done { background: #eee; color: #888; }
.badge.featured-badge { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-weight: 700; }
.card .name { font-size: 15px; font-weight: 700; margin-top: 8px; }
.card .meta { font-size: 13px; color: var(--text-soft); margin-top: 4px; }

/* ===== Schedule Table ===== */
.schedule {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.schedule th, .schedule td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.schedule th { background: var(--bg-soft); font-size: 13px; color: var(--text-soft); font-weight: 600; }
.schedule tr:last-child td { border-bottom: none; }
.schedule .date { font-weight: 700; color: var(--primary); }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item {
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff;
}
.news-item .src { font-size: 12px; color: var(--primary); font-weight: 600; }
.news-item .ttl { font-size: 15px; font-weight: 700; margin-top: 6px; line-height: 1.4; }
.news-item .sum { font-size: 13px; color: var(--text-soft); margin-top: 8px; }
.news-item .date { font-size: 12px; color: #999; margin-top: 10px; }

/* ===== Info Cards ===== */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-card {
  padding: 28px 20px; text-align: center;
  background: var(--bg-soft); border-radius: var(--radius);
  transition: background .15s;
}
.info-card:hover { background: #eef2fb; }
.info-card .ico { font-size: 32px; }
.info-card .ttl { font-weight: 700; margin-top: 10px; }
.info-card .desc { font-size: 13px; color: var(--text-soft); margin-top: 4px; }

/* ===== Footer ===== */
footer { background: #1a1f2e; color: #aab; padding: 40px 0 24px; margin-top: 60px; font-size: 13px; }
footer .src-note {
  padding: 14px 16px; background: rgba(255,255,255,0.05);
  border-radius: 6px; margin-bottom: 20px; line-height: 1.6;
}
footer .biz { line-height: 1.8; }
footer .biz strong { color: #fff; }
footer .links { margin-top: 16px; display: flex; gap: 16px; }
footer .links a:hover { color: #fff; }

/* ===== Reset bg for soft sections ===== */
.bg-soft { background: var(--bg-soft); }

/* ===== 부동산정보 (info.html) ===== */
.info-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.info-desc { color: var(--text-soft); font-size: 14px; margin-bottom: 18px; }
.info-form {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-bottom: 16px;
  padding: 22px; background: var(--bg-soft); border-radius: 10px;
}
.info-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.info-form input, .info-form select {
  padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
}
.info-form input:focus, .info-form select:focus {
  outline: none; border-color: var(--primary);
}
.info-calc-btn {
  grid-column: 1 / -1;
  padding: 12px; font-size: 15px; font-weight: 700;
  background: var(--primary); color: #fff;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: inherit;
  transition: background .12s;
}
.info-calc-btn:hover { background: var(--primary-light); }

/* 대출 계산기 — 2단 레이아웃 (좌: 폼 / 우: 결과) */
.loan-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.loan-form-col, .loan-result-col { display: flex; height: 630px; }
.loan-layout-short .loan-form-col,
.loan-layout-short .loan-result-col { height: auto; min-height: 560px; }
.loan-layout-short .loan-form-vertical { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.loan-layout-short .loan-form-vertical .loan-btn-row { margin-top: 0; }
.loan-form-col > .info-form, .loan-result-col > .info-result { flex: 1; }
.loan-form-vertical { grid-template-columns: 1fr !important; padding: 22px; align-content: space-between; min-height: 100%; box-sizing: border-box; margin-bottom: 0; }
.loan-result-col .info-result { margin-top: 0; display: flex; flex-direction: column; overflow: hidden; }
.loan-result-empty { align-items: center; justify-content: center; }
.loan-empty { text-align: center; color: var(--text-soft); font-size: 15px; line-height: 1.8; }
.loan-empty strong { color: var(--primary); }
/* 결과 박스 (네이버 스타일) */
.loan-sum-intro { font-size: 15px; color: var(--text); line-height: 1.6; margin-bottom: 14px; }
.loan-sum-headline { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 22px; line-height: 1.5; }
.loan-sum-headline strong { color: var(--primary); font-weight: 800; font-size: 22px; }
.loan-sum-list { border-top: 1px solid var(--border); padding: 18px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.loan-sum-list > div { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.loan-sum-list > div > span:first-child { color: var(--text-soft); }
.loan-sum-list > div > span:last-child { font-weight: 600; color: var(--text); }
.loan-sum-monthly { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 18px; font-size: 15px; }
.loan-sum-monthly span { font-weight: 700; color: var(--text); }
.loan-sum-monthly strong { color: var(--primary); font-size: 20px; font-weight: 800; }
/* 월별 상환 스케줄 */
.loan-schedule { margin-top: 18px; border-top: 1px solid var(--border); }
.loan-schedule > summary {
  list-style: none; cursor: pointer; text-align: center;
  padding: 14px 0 4px; font-size: 14px; font-weight: 600; color: var(--text-soft);
}
.loan-schedule > summary::-webkit-details-marker { display: none; }
.loan-schedule > summary::after { content: ' ▾'; font-size: 11px; }
.loan-schedule[open] > summary::after { content: ' ▴'; }
.loan-schedule-wrap { flex: 1 1 auto; min-height: 0; max-height: 240px; overflow-y: scroll; margin: 10px 0 4px; border: 1px solid var(--border); border-radius: 8px; }
.loan-schedule-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.loan-schedule-table thead th {
  position: sticky; top: 0; background: #f8fafc; padding: 10px 8px;
  font-weight: 700; color: var(--text-soft); text-align: right;
  border-bottom: 1px solid var(--border);
}
.loan-schedule-table thead th:first-child { text-align: center; }
.loan-schedule-table tbody td { padding: 8px; text-align: right; border-bottom: 1px solid #f1f3f5; color: var(--text); }
.loan-schedule-table tbody td:first-child { text-align: center; color: var(--text-soft); font-weight: 600; }
.loan-schedule-table tbody tr:last-child td { border-bottom: none; }
.loan-schedule-table tbody td.hl { color: var(--primary); font-weight: 700; }
.ta-right { text-align: right; }
.loan-readable { display: block; text-align: right; font-size: 12px; color: var(--text-soft); margin-top: 4px; min-height: 16px; }
.loan-quick-add { display: flex; gap: 8px; margin-top: 8px; }
.loan-quick-add[hidden] { display: none; }
.loan-quick-add button {
  flex: 1; padding: 8px 4px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--text);
  border: 1px solid #94a3b8; border-radius: 6px; cursor: pointer;
  font-family: inherit; transition: background .12s, border-color .12s;
}
.loan-quick-add button:hover { background: #f1f5f9; border-color: #64748b; }
@media (max-width: 900px) {
  .loan-layout { grid-template-columns: 1fr; }
  .loan-form-col, .loan-result-col { height: auto; }
}
/* 인풋 스피너 화살표 제거 */
.info-form input[type="number"]::-webkit-outer-spin-button,
.info-form input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.info-form input[type="number"] { -moz-appearance: textfield; }
/* 단위 suffix 인풋 */
.loan-input-suffix { position: relative; display: flex; align-items: stretch; }
.loan-input-suffix input { width: 100%; padding-right: 36px; }
.loan-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-soft); font-weight: 600; pointer-events: none; }
/* 기간 토글, 상환방법 토글, 버튼 row */
.loan-period-row { display: flex; gap: 8px; align-items: stretch; }
.loan-period-row input { flex: 1; }
.loan-period-toggle, .loan-method-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff;
}
.loan-method-toggle { display: flex; width: 100%; }
.loan-period-tab, .loan-method-tab {
  flex: 1; padding: 10px 14px; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--text-soft);
  border: none; cursor: pointer; font-family: inherit;
  border-right: 1px solid var(--border);
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.loan-period-toggle { min-width: 130px; }
.loan-period-tab { padding: 10px 8px; }
.loan-period-tab:last-child, .loan-method-tab:last-child { border-right: none; }
.loan-period-tab.active, .loan-method-tab.active {
  background: #e6f4ea; color: #1a7c3a; font-weight: 700;
}
.loan-btn-row { grid-column: 1 / -1; display: flex; gap: 10px; }
.loan-btn-row .info-calc-btn { grid-column: auto; flex: 1; }
.loan-reset-btn { background: #fff !important; color: var(--text) !important; border: 1px solid var(--border) !important; flex: 0 0 140px !important; }
.loan-reset-btn:hover { background: var(--bg-soft) !important; }

.info-result {
  margin-top: 18px; padding: 22px;
  background: #fff; border: 1.5px solid var(--primary); border-radius: 10px;
}
.info-result h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; color: var(--primary); }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 18px; cursor: pointer;
  transition: border-color .12s;
}
.faq-list details:hover { border-color: var(--primary); }
.faq-list summary {
  font-size: 15px; font-weight: 700; cursor: pointer;
  list-style: none;
  position: relative; padding-right: 24px;
}
.faq-list summary::after {
  content: '+';
  position: absolute; right: 0; top: 0;
  font-size: 20px; color: var(--primary); font-weight: 800;
  transition: transform .15s;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list p {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text); line-height: 1.7;
}

.info-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.info-link-card {
  display: block; padding: 22px 18px; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.info-link-card:hover {
  transform: translateY(-2px); border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.il-icon { font-size: 28px; margin-bottom: 8px; }
.il-name { font-size: 15px; font-weight: 700; }
.il-desc { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

@media (max-width: 700px) {
  .info-form { grid-template-columns: 1fr; }
  .info-links { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  /* 부동산정보 페이지 모바일 */
  .info-section h2 { font-size: 18px; }
  .info-desc { font-size: 12px; margin-bottom: 12px; line-height: 1.5; }
  /* 탭 (대출/취득세/FAQ) */
  .sale-tabs { gap: 2px; margin-bottom: 16px !important; overflow-x: auto; }
  .sale-tab { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  /* 대출 폼 & 결과 (높이 자동) */
  .loan-form-col, .loan-result-col { height: auto !important; }
  .loan-layout-short .loan-form-col,
  .loan-layout-short .loan-result-col { height: auto !important; min-height: auto !important; }
  .loan-form-vertical { padding: 14px !important; }
  .info-result { padding: 14px !important; }
  /* 요약 결과 */
  .loan-sum-headline { font-size: 15px; margin-bottom: 14px; }
  .loan-sum-headline strong { font-size: 18px; }
  .loan-sum-monthly strong { font-size: 16px; }
  .loan-sum-list > div { font-size: 12px; }
  /* 상환 스케줄 */
  .loan-schedule-table { font-size: 11px; }
  .loan-schedule-table thead th,
  .loan-schedule-table tbody td { padding: 5px; }
  /* 링크 카드 */
  .info-link-card { padding: 14px 8px; }
  .il-icon { font-size: 22px; margin-bottom: 4px; }
  .il-name { font-size: 13px; }
  .il-desc { font-size: 10px; }
  /* FAQ */
  .faq-list details { padding: 12px 14px; }
  .faq-list summary { font-size: 13px; padding-right: 20px; }
  .faq-list p { font-size: 12px; line-height: 1.6; margin-top: 10px; padding-top: 10px; }
  /* 대출 buttons */
  .loan-period-toggle { min-width: 100px; }
  .loan-period-tab, .loan-method-tab { padding: 8px 6px; font-size: 12px; }
  .info-calc-btn { padding: 12px; font-size: 14px; }
  .loan-reset-btn { flex: 0 0 100px !important; }
  .loan-readable { font-size: 11px; }
  .loan-quick-add button { padding: 4px 8px; font-size: 11px; }
}

/* ===== 청약캘린더 (calendar.html) ===== */
.cal-nav {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.cal-month { font-size: 22px; font-weight: 800; flex: 1; text-align: center; }
.cal-btn {
  padding: 8px 16px; border: 1px solid var(--border); background: #fff;
  border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 14px;
  color: var(--text);
}
.cal-btn:hover { border-color: var(--primary); color: var(--primary); }
.cal-today-btn { background: var(--primary); color: #fff; border-color: var(--primary); margin-left: 8px; }
.cal-today-btn:hover { background: var(--primary-light); color: #fff; }

/* ===== 캘린더 필터 ===== */
.cal-filters {
  display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; align-items: center;
  padding: 14px 18px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.cal-filter-select {
  padding: 11px 36px 11px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff
    url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e")
    no-repeat right 10px center / 14px 14px;
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; min-width: 200px;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  transition: border-color .12s, box-shadow .12s;
}
.cal-filter-select:hover { border-color: var(--primary); }
.cal-filter-select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,143,0.10);
}
.cal-filter-reset {
  padding: 11px 18px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--text-soft); transition: all .12s;
}
.cal-filter-reset:hover { border-color: var(--primary); color: var(--primary); background: #f4f7fc; }

/* ===== 커스텀 드롭다운 (색 칩 포함) ===== */
.cs-wrap { position: relative; min-width: 240px; }
.cs-trigger {
  width: 100%; padding: 11px 36px 11px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff
    url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e")
    no-repeat right 10px center / 14px 14px;
  font-size: 14px; font-weight: 700; color: var(--text);
  text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: border-color .12s, box-shadow .12s;
}
.cs-trigger:hover { border-color: var(--primary); }
.cs-trigger:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,143,0.10); }
.cs-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  min-width: 360px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  max-height: 360px; overflow-y: auto;
}
.cs-option { white-space: nowrap; }
.cs-menu[hidden] { display: none; }
.cs-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: background .12s;
}
.cs-option:hover { background: var(--bg-soft); }
.cs-option.selected { background: #eef2fb; color: var(--primary); }
.cs-chip {
  display: inline-block; width: 14px; height: 14px; border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1); flex-shrink: 0;
}
@media (max-width: 700px) {
  .cs-wrap { min-width: 180px; }
}

/* ===== 12종 분류 색상 (조화로운 톤, ~500 saturation) ===== */
.evt-special      { background: #4338ca; color: #fff; }   /* 특별공급 - 인디고 */
.evt-rank1        { background: #3b82f6; color: #fff; }   /* 1순위 - 블루 */
.evt-rank2        { background: #14b8a6; color: #fff; }   /* 2순위 - 틸 */
.evt-urban        { background: #fbbf24; color: #78350f; }/* 도시형 - 앰버 */
.evt-officetel    { background: #f97316; color: #fff; }   /* 오피스텔 - 오렌지 */
.evt-pvtrent      { background: #f87171; color: #fff; }   /* 민간임대 - 레드라이트 */
.evt-livinglodge  { background: #f472b6; color: #fff; }   /* 생숙 - 핑크 */
.evt-pblsupport   { background: #a3e635; color: #365314; }/* 공공지원 - 라임 */
.evt-remnd        { background: #94a3b8; color: #fff; }   /* 무순위 - 슬레이트라이트 */
.evt-resupply     { background: #475569; color: #fff; }   /* 재공급 - 슬레이트다크 */
.evt-arbitrary    { background: #c084fc; color: #fff; }   /* 임의공급 - 바이올렛 */
.evt-result       { background: #a855f7; color: #fff; }   /* 발표일 */

/* ===== 캘린더 그리드 ===== */
.cal-wrap {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff;
}
.cal-header {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg-soft); padding: 12px 0; font-weight: 700; text-align: center;
  font-size: 14px;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.cal-cell {
  min-height: 150px; padding: 8px 5px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px; overflow: hidden;
}
.cal-cell:nth-child(5n) { border-right: none; }
.cal-cell.empty { background: var(--bg-soft); }
.cal-cell.today { background: #fff8e1; }
.cal-cell.today .cal-day-num { color: #f57c00; font-weight: 800; }
.cal-day-num { font-size: 14px; font-weight: 700; padding: 0 4px 3px; }
.cal-day-num.sunday { color: #d32f2f; }
.cal-day-num.saturday { color: #1976d2; }

/* 단지 이벤트 pill */
.cal-event {
  display: block;
  font-size: 13px; padding: 4px 8px; border-radius: 5px;
  font-weight: 700; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter .12s, transform .12s;
  border: 1px solid rgba(0,0,0,0.06);
}
.cal-event:hover { filter: brightness(1.08); transform: translateX(2px); }
.cal-event-more {
  font-size: 11px; padding: 3px 8px; color: var(--text-soft); font-weight: 700;
  cursor: pointer;
}

/* 셀 클릭시 상세 패널 (기존) */
.day-detail {
  margin-top: 30px; padding: 24px; background: #fff;
  border: 1px solid var(--primary); border-radius: 10px;
}
.day-detail h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: var(--primary); }
.day-event-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; margin-bottom: 8px;
  background: var(--bg-soft); border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.day-event-card:hover { background: #eef2fb; }
.day-event-type {
  padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700;
  min-width: 60px; text-align: center;
}
.day-event-info strong { font-size: 15px; }
.day-event-info span { display: block; font-size: 13px; color: var(--text-soft); margin-top: 2px; }

@media (max-width: 700px) {
  /* 상단 필터 (전국/청약유형/초기화 한 줄) */
  .cal-filters { padding: 10px !important; gap: 6px !important; border-radius: 10px !important; flex-wrap: nowrap !important; align-items: center; }
  .cal-filter-select { min-width: 0 !important; flex: 0 0 95px !important; padding: 9px 24px 9px 10px !important; font-size: 12px !important; background-position: right 6px center !important; }
  .cs-wrap { min-width: 0 !important; flex: 1 1 auto !important; }
  .cs-trigger { padding: 9px 24px 9px 10px !important; font-size: 12px !important; background-position: right 6px center !important; white-space: nowrap; overflow: hidden; }
  .cs-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .cal-filter-reset { flex: 0 0 auto; padding: 9px 10px !important; font-size: 12px !important; }

  /* 월 이동 네비 (이전 · 월 · 다음 한 줄) */
  .cal-nav { gap: 6px !important; flex-wrap: nowrap; margin-bottom: 10px !important; }
  .cal-month { font-size: 16px !important; }
  .cal-btn { padding: 6px 10px !important; font-size: 12px !important; white-space: nowrap; }

  /* 캘린더 셀 & 이벤트 */
  .cal-header { padding: 8px 0 !important; font-size: 11px !important; }
  .cal-cell { min-height: 70px !important; padding: 3px 1px !important; gap: 2px !important; }
  .cal-day-num { font-size: 11px !important; padding: 0 2px 2px !important; }
  .cal-event { font-size: 9px !important; padding: 1px 3px !important; border-radius: 3px !important; }
  .cal-event-more { font-size: 9px !important; padding: 1px 3px !important; }

  /* 페이지 헤더 */
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 13px; margin-top: 4px; }

  /* 하루 상세 팝업 */
  .day-detail { padding: 14px !important; margin-top: 16px !important; }
  .day-event-card { gap: 8px !important; padding: 10px !important; }
  .day-event-type { min-width: 50px !important; font-size: 10px !important; padding: 3px 6px !important; }
  .day-event-info strong { font-size: 13px; }
  .day-event-info span { font-size: 11px; }
}

/* ===== 분양뉴스 (news.html) ===== */
.news-list {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.news-card {
  display: block; padding: 18px 22px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.news-card.has-thumb {
  display: grid; grid-template-columns: 180px 1fr; gap: 18px;
  padding: 16px;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  border-color: var(--primary);
}
.news-card-thumb {
  width: 180px; height: 120px; overflow: hidden; border-radius: 6px; background: var(--bg-soft);
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { min-width: 0; }
.news-card-head {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}
.news-card-source {
  background: var(--primary); color: #fff;
  padding: 3px 10px; border-radius: 4px;
  font-weight: 600;
}
.news-card-time { color: var(--text-soft); }
.news-card-meta { color: var(--text-soft); font-weight: 600; }
.article-views { color: var(--text-soft); }
.article-views strong, .article-time strong { color: var(--text); margin-right: 4px; }
.news-card-title {
  font-size: 17px; font-weight: 700; line-height: 1.4; margin: 4px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-summary {
  font-size: 14px; color: var(--text-soft); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 700px) {
  .news-list { gap: 10px; }
  .news-card { padding: 10px 12px; }
  .news-card.has-thumb { grid-template-columns: 90px 1fr; gap: 10px; padding: 10px; align-items: center; }
  .news-card-thumb { width: 90px; height: 90px; border-radius: 8px; }
  .news-card-head { gap: 6px; font-size: 10px; margin-bottom: 4px; flex-wrap: wrap; }
  .news-card-source { padding: 2px 6px; font-size: 10px; }
  .news-card-meta { font-size: 10px; }
  .news-card-title { font-size: 14px; margin: 2px 0 4px; line-height: 1.3; -webkit-line-clamp: 2; }
  .news-card-summary { display: none; }
}

/* ===== 실시간 뉴스 텍스트 피드 ===== */
.news-feed {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: #fff;
}
.news-feed-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.news-feed-item:last-child { border-bottom: none; }
.news-feed-item:hover { background: var(--bg-soft); }
.news-feed-cat {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 4px 8px; border-radius: 4px;
  text-align: center;
}
.news-feed-cat.cat-청약        { background: #60A5FA; }
.news-feed-cat.cat-분양        { background: #60A5FA; }
.news-feed-cat.cat-재건축      { background: #FB923C; }
.news-feed-cat.cat-재개발      { background: #FBBF24; }
.news-feed-cat.cat-임대        { background: #66B758; }
.news-feed-cat.cat-아파트값    { background: #4ADE80; }
.news-feed-cat.cat-주택공급    { background: #A3E635; }
.news-feed-cat.cat-부동산      { background: #1A3A8F; }
.news-feed-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-feed-time {
  font-size: 12px; color: var(--text-soft); font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .news-feed-item { grid-template-columns: 52px 1fr auto; gap: 8px; padding: 9px 10px; }
  .news-feed-cat { padding: 3px 4px; font-size: 10px; }
  .news-feed-title { font-size: 12px; }
  .news-feed-time { font-size: 10px; }
  .news-section-head { margin-bottom: 10px; padding-bottom: 8px; }
  .news-section-title { font-size: 17px; }
  .news-section-title .count { font-size: 12px; }
  /* 뉴스 페이지 필터도 apartments처럼 균등 배치 */
  .apt-filters > .apt-filter { flex: 1 1 0; min-width: 0; }
}

/* ===== 뉴스 섹션 헤더 ===== */
.news-section-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.news-section-title {
  font-size: 22px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.news-section-title .count {
  font-size: 14px; color: var(--primary); font-weight: 700;
}
.news-section-sub {
  margin-top: 6px; font-size: 13px; color: var(--text-soft);
}

/* 사이드 자체글 카드 강조 */
.news-card.is-mine { border-left: 4px solid var(--primary); }
.news-card-source.mine {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.news-card-thumb.thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 2px;
}

/* ===== 기사 페이지 (article.html) ===== */
.article-container { max-width: 760px; padding: 30px 0 60px; }
.article-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; color: var(--text-soft);
  margin-bottom: 14px;
}
.article-source {
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: 4px;
  font-weight: 700; font-size: 12px;
}
.article-source.mine {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.article-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.article-tag {
  font-size: 12px; padding: 4px 10px; border-radius: 20px;
  background: var(--bg-soft); color: var(--text-soft); font-weight: 600;
}
.article-author-note {
  font-size: 13px; color: var(--text-soft); font-style: italic;
}
.article-title {
  font-size: 28px; font-weight: 800; line-height: 1.35;
  margin-bottom: 24px;
}
.article-image {
  width: 100%; max-height: 500px; object-fit: cover;
  border-radius: 8px; margin-bottom: 24px;
}
.article-content {
  font-size: 16px; line-height: 1.85; color: var(--text);
}
.article-content p { margin-bottom: 14px; }
.article-foot {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; gap: 16px; justify-content: space-between; align-items: center;
}
.article-origin-link {
  padding: 10px 18px; background: var(--primary); color: #fff;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px;
}
.article-origin-link:hover { background: var(--primary-light); }
.article-back-link {
  color: var(--text-soft); text-decoration: none; font-size: 14px; font-weight: 600;
}
.article-back-link:hover { color: var(--primary); }

@media (max-width: 700px) {
  .article-title { font-size: 22px; }
  .article-content { font-size: 15px; }
}

/* ===== 단지 상세 (sale.html) ===== */
.sale-main { padding: 40px 0 60px; }
.sale-loading, .sale-empty {
  padding: 80px 20px; text-align: center;
  color: var(--text-soft); font-size: 15px;
}
.sale-empty h2 { font-size: 22px; margin-bottom: 8px; color: var(--text); }
.sale-empty p { margin: 6px 0; }
.btn-back {
  display: inline-block; padding: 10px 20px;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 600;
  background: #fff;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); }

.sale-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  margin-bottom: 40px;
}
.sale-hero-thumb {
  background: var(--bg-soft); border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.sale-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sale-hero-info { display: flex; flex-direction: column; }
.sale-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sale-hero-title { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 6px; }
.sale-hero-region { font-size: 15px; color: var(--text-soft); margin-bottom: 20px; }
.sale-hero-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 18px; background: var(--bg-soft); border-radius: 10px;
  margin-bottom: 20px;
}
.sale-hero-summary > div { display: flex; flex-direction: column; gap: 4px; }
.sale-hero-summary span { font-size: 12px; color: var(--text-soft); }
.sale-hero-summary strong { font-size: 16px; font-weight: 700; }
.sale-cta {
  display: block; padding: 14px; text-align: center;
  border-radius: 8px; font-weight: 700; text-decoration: none;
  margin-bottom: 8px;
}
.sale-cta.primary { background: var(--primary); color: #fff; }
.sale-cta.primary:hover { background: var(--primary-light); }
.sale-cta.outline { border: 1.5px solid var(--primary); color: var(--primary); }
.sale-cta.outline:hover { background: var(--primary); color: #fff; }

.sale-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.sale-tab {
  padding: 12px 22px; background: transparent; border: none;
  font-size: 15px; font-weight: 600; color: var(--text-soft);
  cursor: pointer; font-family: inherit;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.sale-tab:hover { color: var(--primary); }
.sale-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.sale-section { margin-bottom: 36px; }
.sale-section h3 {
  font-size: 18px; font-weight: 800; margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 8px;
}

.sale-table-wrap { overflow-x: auto; }
.sale-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.sale-table th, .sale-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.sale-table th {
  background: var(--bg-soft); font-weight: 600;
  color: var(--text-soft); width: 140px;
}
.sale-table tr:last-child th, .sale-table tr:last-child td { border-bottom: none; }

/* 날짜 옆 상태 배지 (완료/오늘/D-N) */
.date-badge {
  display: inline-block; margin-left: 8px;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 12px;
  vertical-align: middle;
}
.date-badge.done     { background: #e5e7eb; color: #6b7280; }
.date-badge.today    { background: #3b82f6; color: #fff; }
.date-badge.upcoming { background: #fb923c; color: #fff; }
.sale-table.types-table th { background: var(--primary); color: #fff; width: auto; text-align: center; }
.sale-table.types-table td { text-align: center; }

.sale-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.sale-section-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sale-section-head h3 { margin-bottom: 0; }
.sale-section-addr { color: var(--text-soft); font-size: 14px; }
.flag-chip {
  display: inline-block; padding: 4px 10px;
  background: #fff3e0; color: #e65100; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}

.sale-related {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.sale-related-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.sale-related-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.sale-related-thumb {
  aspect-ratio: 4/3; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 12px;
  overflow: hidden;
}
.sale-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sale-related-body { padding: 12px 14px; }
.sale-related-name { font-size: 14px; font-weight: 700; margin: 4px 0; }
.sale-related-meta { font-size: 12px; color: var(--text-soft); }

@media (max-width: 800px) {
  .sale-hero { grid-template-columns: 1fr; }
  .sale-hero-title { font-size: 24px; }
  .sale-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .sale-hero-summary { grid-template-columns: 1fr; }
  .sale-tabs { overflow-x: auto; }
  .sale-table th { width: 100px; padding: 10px 12px; }
}

/* ===== 페이지 헤더 / 얇은 블록 ===== */
.page-head {
  padding: 50px 0 30px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: 32px; font-weight: 800; letter-spacing: -1px;
  display: flex; align-items: baseline; gap: 12px;
}
.page-head h1 .count {
  font-size: 18px; color: var(--primary); font-weight: 700;
}
.page-head p { color: var(--text-soft); margin-top: 8px; font-size: 15px; }
section.block-thin { padding: 30px 0; }

/* ===== 상태 탭 ===== */
.status-tabs {
  display: flex; gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.status-tab {
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 14px; font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all .15s;
}
.status-tab:hover { border-color: var(--primary); color: var(--primary); }
.status-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.status-tab .cnt {
  margin-left: 6px; padding: 2px 8px;
  background: rgba(0,0,0,0.08); border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.status-tab.active .cnt { background: rgba(255,255,255,0.25); }

/* ===== 분양정보 필터 ===== */
.apt-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.apt-filter, .apt-search, .apt-filter-reset {
  padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit;
  background: #fff; color: var(--text);
  cursor: pointer;
}
.apt-filter { padding-right: 30px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.apt-search { min-width: 220px; cursor: text; }
.apt-filter:focus, .apt-search:focus, .apt-filter:hover { border-color: var(--primary); outline: none; }
.apt-filter-reset { color: var(--text-soft); }
.apt-filter-reset:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 분양 카드 리스트 ===== */
.apt-list {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.apt-card {
  display: grid; grid-template-columns: 240px 1fr;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-decoration: none; color: inherit;
}
.apt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.apt-card.self { border-color: var(--accent); border-width: 2px; }
.apt-card.highlight { background: #fffbe6; border-color: #f57f17; box-shadow: 0 0 0 4px rgba(255,200,0,0.3); }
.apt-card-thumb {
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.apt-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.thumb-placeholder::before {
  content: '🏢';
  font-size: 48px;
  opacity: 0.2;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(3);
  pointer-events: none;
}
.thumb-placeholder .ph-name {
  font-size: 16px; font-weight: 800; line-height: 1.3;
  z-index: 1; position: relative;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  word-break: keep-all;
}
.thumb-placeholder .ph-region {
  font-size: 12px; opacity: 0.85; margin-top: 6px;
  z-index: 1; position: relative;
}
/* 상태별 그라데이션 색상 */
.thumb-placeholder.status-오늘청약 { background: linear-gradient(135deg, #c62828, #e53935); }
.thumb-placeholder.status-분양예정 { background: linear-gradient(135deg, #e65100, #fb8c00); }
.thumb-placeholder.status-당첨발표 { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.thumb-placeholder.status-정당계약 { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.thumb-placeholder.status-선착순   { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.thumb-placeholder.status-계약종료 { background: linear-gradient(135deg, #555, #888); }
.apt-card-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.apt-card-badges {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-bottom: 4px;
}
.badge-status {
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; color: #fff;
}
.badge-dday {
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 800; color: #fff;
  background: #d32f2f;
}
.badge-tag {
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: var(--text-soft);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.badge-tag.self-tag { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge-tag.badge-official {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border-color: var(--primary); font-weight: 700;
}
.apt-card-title {
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px;
  margin: 2px 0 6px;
}
.apt-card-desc {
  font-size: 14px; color: var(--text); line-height: 1.5;
  margin: 0 0 8px;
}
.apt-card-row { font-size: 14px; color: var(--text); }
.apt-card-meta {
  margin-top: 6px; padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--text-soft);
}
.apt-empty {
  padding: 60px 20px; text-align: center;
  background: var(--bg-soft); border-radius: 10px;
  color: var(--text-soft); font-size: 15px;
}

/* ===== 페이지네이션 ===== */
.apt-pagination {
  display: flex; justify-content: center; gap: 4px;
  margin-top: 30px; flex-wrap: wrap;
}
.apt-pagination button {
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--border); background: #fff;
  border-radius: 6px; cursor: pointer;
  font-size: 14px; font-family: inherit; color: var(--text);
}
.apt-pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.apt-pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.apt-pagination button:disabled { color: #ccc; cursor: not-allowed; }
.apt-pagination span { padding: 0 6px; line-height: 38px; color: var(--text-soft); }

/* ===== 모바일 (분양정보 페이지) ===== */
@media (max-width: 700px) {
  /* reby 스타일: 좌 정사각 썸네일 + 우 정보 */
  .apt-card { grid-template-columns: 90px 1fr !important; padding: 10px; gap: 10px; align-items: center; }
  .apt-card-thumb { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; align-self: start; }
  .apt-card-body { padding: 0 !important; gap: 3px; min-width: 0; }
  .apt-card-badges { margin-bottom: 2px; gap: 4px; }
  .badge-status, .badge-dday, .badge-tag { padding: 2px 6px; font-size: 10px; }
  .apt-card-title { font-size: 14px; margin: 1px 0 3px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .apt-card-desc { display: none; }
  .apt-card-row { font-size: 11px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .apt-card-meta { display: none; }
  .apt-list { gap: 10px; }

  /* 필터: 1줄 (지역/건물유형/초기화) + 2줄 (단지명 검색) */
  .apt-filters { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: stretch; gap: 6px; }
  #filterRegion, #filterType { flex: 1 1 0; min-width: 0; }
  #resetBtn { flex: 0 0 auto; order: 3; padding: 10px 14px; }
  #searchQ { flex: 1 1 100%; order: 4; min-width: 0; }
  .apt-filter, .apt-search, .apt-filter-reset { padding: 10px 12px; font-size: 14px; }

  /* 상태 탭: reby 스타일 카드형 그리드 */
  .status-tabs { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 6px !important; overflow: visible !important; margin-bottom: 12px; padding-bottom: 0; }
  .status-tab {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    padding: 10px 2px !important; border-radius: 10px !important;
    gap: 4px; font-size: 11px !important; line-height: 1.2;
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border: 1.5px solid var(--border) !important;
  }
  .status-tab .cnt {
    margin-left: 0 !important; padding: 0 !important; background: transparent !important;
    font-size: 15px !important; font-weight: 800; color: var(--primary);
  }
  .status-tab.active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
  .status-tab.active .cnt { color: #fff !important; background: transparent !important; }

  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 13px; margin-top: 4px; }

  /* 2단 레이아웃 컨테이너 여백 축소 */
  .main-layout { padding-left: 12px !important; padding-right: 12px !important; padding-top: 12px !important; padding-bottom: 24px !important; gap: 12px !important; }
  .main-col > section.block > .container,
  .main-col > section.block-thin > .container,
  .main-col > section.page-head > .container { padding: 10px !important; border-radius: 10px !important; }
  .main-col > section.block,
  .main-col > section.block-thin,
  .main-col > section.page-head { margin-bottom: 10px !important; }

  .apt-pagination button { min-width: 34px; height: 34px; font-size: 13px; }
}

/* ===== 분양맵 필터 ===== */
.map-filters {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.map-filter {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 20px;
  background: #fff; font-size: 14px; cursor: pointer;
  font-family: inherit; color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.map-filter:focus, .map-filter:hover { border-color: var(--primary); outline: none; }
.map-filter-reset {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 20px;
  background: #fff; font-size: 14px; cursor: pointer; color: var(--text-soft);
  font-family: inherit;
}
.map-filter-reset:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 커스텀 마커 박스 ===== */
.apt-marker {
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  min-width: 90px;
  overflow: hidden;
  transition: transform .12s;
}
.apt-marker:hover {
  transform: translateY(-2px) scale(1.04);
  z-index: 10;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
.apt-marker::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--primary);
}
.apt-marker-top {
  display: flex;
  font-size: 10px;
}
.apt-marker-type {
  padding: 3px 7px;
  background: rgba(0,0,0,0.18);
  font-weight: 600;
}
.apt-marker-status {
  flex: 1;
  padding: 3px 7px;
  text-align: right;
  font-weight: 700;
}
.apt-marker-status.on    { background: #2e7d32; }
.apt-marker-status.soon  { background: #e65100; }
.apt-marker-status.done  { background: #555; }
.apt-marker-name {
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 사이드 패널 ===== */
.apt-panel {
  position: fixed;
  top: 0; right: 0;
  width: 400px; max-width: 90vw; height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.apt-panel.open { transform: translateX(0); }
.apt-panel-dim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.apt-panel-dim.open { opacity: 1; pointer-events: auto; }
.apt-panel-close {
  position: absolute; top: 14px; right: 18px;
  border: none; background: transparent;
  font-size: 30px; cursor: pointer; color: #444;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.apt-panel-close:hover { background: var(--bg-soft); }
.apt-panel-body { padding: 60px 26px 40px; }
.apt-panel-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 14px;
  overflow: hidden;
}
.apt-panel-img img { width: 100%; height: 100%; object-fit: cover; }
.apt-panel-status { margin-bottom: 8px; display: inline-block; }
.apt-panel-status .apt-marker-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
}
.apt-panel-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin: 4px 0 4px; }
.apt-panel-region { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; }
.apt-panel-row {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 12px; font-size: 14px;
}
.apt-panel-row .lbl { font-weight: 600; color: var(--text-soft); min-width: 80px; }
.apt-panel-row .val { color: var(--text); flex: 1; }
.apt-panel-cta {
  display: block; margin-top: 24px;
  padding: 14px; text-align: center;
  background: var(--primary); color: #fff;
  border-radius: 8px; font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.apt-panel-cta:hover { background: var(--primary-light); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .quickbar { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero-text h1 { font-size: 28px; }
}
@media (max-width: 500px) {
  .grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .map-filter, .map-filter-reset { font-size: 13px; padding: 8px 12px; padding-right: 26px; }
  .apt-panel { width: 100%; }
}

/* ===== 메인 2단 레이아웃 (좌: 콘텐츠 / 우: 사이드바) ===== */
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; max-width: none; margin: 0; padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px)); padding-right: 24px; background: #f5f7fb; padding-top: 24px; padding-bottom: 40px; }
/* 메인 컬럼 내 섹션을 흰 카드 박스로 분리 */
.main-col > section.block,
.main-col > section.block-thin,
.main-col > section.page-head { padding: 0; margin-bottom: 18px; background: transparent !important; }
.main-col > section.block > .container,
.main-col > section.block-thin > .container,
.main-col > section.page-head > .container { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.main-col > section.hero-slider-section { padding: 0; margin-bottom: 18px; }
.main-col > section.hero-slider-section > .container { background: transparent; border: none; box-shadow: none; padding: 0 !important; }
.main-layout .main-col { min-width: 0; }
.main-layout .main-col .container { max-width: none !important; padding: 0 !important; }
.main-layout .main-col section.block,
.main-layout .main-col section.block-thin { padding-left: 0; padding-right: 0; }
.sidebar-col { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.sidebar-banner { min-height: 360px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); font-size: 13px; border: 1.5px dashed var(--border); border-radius: 12px; background: #fafbfc; }
.sidebar-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.sidebar-quick-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-quick-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-soft); border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600; transition: background .12s; }
.sidebar-quick-list a:hover { background: #e9eef5; }
.sidebar-quick-list a .ico { font-size: 18px; }
@media (max-width: 980px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-col { padding-top: 0; }
}

/* ===== FAQ 섹션 (index.html footer 위) ===== */
.main-faq-section {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
.main-faq-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
}
.main-faq-header-left { display: flex; flex-direction: column; gap: 2px; }
.main-faq-eyebrow {
  font-size: 10px; font-weight: 700; color: var(--primary);
  letter-spacing: 2px; text-transform: uppercase;
}
.main-faq-title { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin: 0; }
.main-faq-more {
  font-size: 12px; font-weight: 700; color: var(--primary);
  text-decoration: underline; text-underline-offset: 4px;
  white-space: nowrap;
}
.main-faq-list { display: flex; flex-direction: column; gap: 10px; }
.main-faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.main-faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.main-faq-item summary {
  padding: 16px 20px;
  font-size: 15px; font-weight: 700; color: var(--text);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  transition: background .15s;
}
.main-faq-item summary::-webkit-details-marker { display: none; }
.main-faq-item summary:hover { background: #f8fafc; }
.main-faq-item[open] summary { background: var(--primary); color: #fff; }
.main-faq-icon {
  font-size: 20px; font-weight: 300; flex-shrink: 0; line-height: 1;
  transition: transform .25s;
}
.main-faq-item[open] .main-faq-icon { transform: rotate(45deg); }
.main-faq-answer {
  padding: 20px;
  font-size: 14px; color: #444; line-height: 1.75;
  background: #f8faff;
}
.main-faq-answer a {
  color: var(--primary); font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px;
}
.main-faq-answer .highlight { color: var(--primary); font-weight: 700; }
.main-faq-answer table {
  width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 13px;
}
.main-faq-answer table th,
.main-faq-answer table td {
  padding: 8px 12px; border: 1px solid var(--border); text-align: center;
}
.main-faq-answer table th {
  background: var(--primary); color: #fff; font-weight: 700;
}
.main-faq-answer table td:first-child {
  background: #f1f5f9; font-weight: 700; color: var(--text);
}

/* ===== 사이드바 프로모 카드 (index 우측) ===== */
.sidebar-card.featured-promo { padding: 0; overflow: hidden; }
.sidebar-card.featured-promo .promo-slide { text-decoration: none; color: inherit; display: block; }
.sidebar-card.featured-promo .promo-thumb {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  margin: 0; display: block;
}
.sidebar-card.featured-promo .promo-body { padding: 16px 18px 16px; }
.sidebar-card.featured-promo .promo-name {
  font-size: 19px; font-weight: 800; color: var(--text);
  margin-bottom: 10px;
}
.sidebar-card.featured-promo .promo-desc {
  font-size: 13px; color: var(--text-soft); line-height: 1.6;
  margin-bottom: 12px;
}
.sidebar-card.featured-promo .promo-info {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-top: 1px dashed var(--border);
  margin-bottom: 12px;
}
.sidebar-card.featured-promo .promo-label {
  background: linear-gradient(135deg, #ff5757, #ff8a3d);
  color: #fff; padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.sidebar-card.featured-promo .promo-phone {
  font-size: 15px; font-weight: 900; color: var(--text);
  letter-spacing: -0.5px;
}
.sidebar-card.featured-promo .promo-cta {
  display: block; width: 100%; text-align: center;
  background: var(--primary); color: #fff;
  padding: 12px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: background .15s; box-sizing: border-box;
}
.sidebar-card.featured-promo .promo-cta:hover { background: var(--primary-light); }

/* ===== 모바일 최종 오버라이드 (뒤에 오는 데스크탑 !important 이기기 위해 파일 마지막에 배치) ===== */
@media (max-width: 700px) {
  .main-col > section.block > .container,
  .main-col > section.block-thin > .container,
  .main-col > section.page-head > .container { padding: 10px !important; }
  /* 모바일에서는 사이드바(빠른 청약, 동래 프로모 등) 숨김. PC는 그대로 */
  .sidebar-col { display: none !important; }
  /* 캘린더 필터 드롭다운 메뉴: 2열 + 좌측 정렬 (right:0 오버라이드) */
  .cal-filters .cs-menu { grid-template-columns: 1fr 1fr !important; min-width: 240px !important; left: 0 !important; right: auto !important; }
}
