/* =================================================================
   SH·LH 청년·신혼부부 공공주택 & 도면 탐색기 메인 스타일시트
   ================================================================= */

:root {
  --primary: #0284c7;       /* SH 블루 */
  --primary-dark: #0369a1;
  --secondary: #ea580c;     /* LH 오렌지 */
  --secondary-dark: #c2410c;
  --success: #10b981;
  --warning: #f59e0b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #38bdf8;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
.header-container {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  line-height: 1;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-header-link:hover {
  background: #e2e8f0;
}

.btn-header-link.active {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

/* Main Layout */
.main-wrapper {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 20px;
}

/* Filter Box */
.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.filter-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* Room Structure Filter (Primary Focus) */
.room-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--border);
  align-items: center;
}

.room-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s ease;
  user-select: none;
}

.room-chip-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.room-chip-label:hover {
  border-color: var(--primary);
  background: #f0f9ff;
}

.room-chip-label:has(input:checked) {
  background: #e0f2fe;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.room-chip-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
}

/* Secondary Filter Rows */
.filter-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.btn-pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pill:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.btn-pill.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
}

.btn-pill.active[data-agency="SH"] {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-pill.active[data-agency="LH"] {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* Search & Sort Bar */
.search-bar-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.search-input-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
}

.custom-select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.custom-select:focus {
  border-color: var(--primary);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.stats-bar b {
  color: var(--primary);
}

/* Cards Container */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Housing Card */
.housing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.housing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-sh {
  background: #e0f2fe;
  color: var(--primary);
  border: 1px solid #bae6fd;
}

.badge-lh {
  background: #ffedd5;
  color: var(--secondary);
  border: 1px solid #fed7aa;
}

.badge-type {
  background: #f1f5f9;
  color: #475569;
}

.badge-youth {
  background: #ecfdf5;
  color: #059669;
}

.badge-newlywed {
  background: #fdf2f8;
  color: #db2777;
}

.badge-dday {
  background: #fef3c7;
  color: #d97706;
}

.btn-bookmark {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s ease;
}

.btn-bookmark.active {
  color: #eab308;
}

.btn-bookmark:hover {
  transform: scale(1.15);
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-location {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.loc-subway {
  color: #0284c7;
  font-weight: 600;
}

.card-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-pill {
  font-size: 12px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Units Table */
.units-table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.units-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.units-table th {
  background: #f1f5f9;
  padding: 10px 14px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.units-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.units-table tr:last-child td {
  border-bottom: none;
}

.room-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.room-pill.1room {
  background: #e0f2fe;
  color: #0369a1;
}

.room-pill.2room {
  background: #fef3c7;
  color: #b45309;
}

.room-pill.3room {
  background: #fce7f3;
  color: #be185d;
}

.unit-type-cell b {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.unit-area-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.price-cell {
  display: flex;
  flex-direction: column;
}

.price-deposit {
  font-weight: 700;
  color: var(--text-main);
}

.price-rent {
  font-size: 12px;
  color: #ea580c;
  font-weight: 600;
}

.price-rent.min {
  color: #059669;
}

.price-cell.highlight {
  background: #f0fdf4;
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 3px solid #10b981;
}

.table-action-btns {
  display: flex;
  gap: 6px;
}

.btn-table-action {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-plan {
  background: #0284c7;
  color: #ffffff;
}

.btn-plan:hover {
  background: #0369a1;
}

.btn-calc {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-calc:hover {
  background: #e2e8f0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.btn-notice-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-notice-summary:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.btn-official-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-official-link:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Status Badges */
.badge-dday.status-active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.badge-dday.status-upcoming {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

/* Notice Modal Styles */
.notice-detail-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.notice-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.notice-status-banner.active {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.notice-status-banner.upcoming {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.notice-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.notice-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notice-info-item .label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.notice-info-item .val {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 700;
}

.notice-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}

.notice-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.notice-list, .notice-doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.notice-doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.doc-check {
  color: #16a34a;
  font-weight: bold;
}

.notice-doc-note {
  font-size: 11px;
  color: #64748b;
  margin-top: 8px;
}

.notice-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.btn-notice-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-notice-external:hover {
  background: #0369a1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.btn-reset-filters {
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .room-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .room-chip-label {
    width: 100%;
  }
  .stats-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Recruitment Badges & Cells */
.badge-recruit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.recruit-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recruit-sub {
  font-size: 11px;
  color: #047857;
  font-weight: 600;
}

.recruit-target {
  font-size: 11px;
  color: #64748b;
}

/* Floor Plan recruiting badge */
.plan-subtitle-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.plan-recruiting-badge {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #86efac;
}

.plan-target-badge {
  background: #eff6ff;
  color: #1e40af;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}

.plan-notice-info {
  margin-top: 6px;
  font-size: 12px;
  color: #b45309;
  background: #fffbeb;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 3px solid #f59e0b;
}

/* Action Buttons for Notice & Copy */
.btn-copy-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-copy-notice:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-naver-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #03c75a;
  color: #ffffff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-naver-search:hover {
  background: #02b150;
  color: #ffffff;
}

/* Toast */
.toast-box {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: pre-line;
  text-align: center;
  max-width: 90vw;
}

.toast-box.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Current official notice cards */
.live-data-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #86efac;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
}

.live-data-banner span { color: #475569; }
.notice-card { border-top: 4px solid #0ea5e9; }
.notice-card .card-title { margin-bottom: 6px; }
.notice-name { margin: 0 0 12px; color: #334155; font-size: 13px; font-weight: 700; line-height: 1.55; }
.status-closed { background: #e2e8f0 !important; color: #475569 !important; }

.notice-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.notice-facts > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.notice-facts span { color: #64748b; font-size: 11px; font-weight: 700; }
.notice-facts b, .notice-facts strong { color: #0f172a; font-size: 13px; line-height: 1.4; }
.official-unit-table-wrap { margin: 4px 0 14px; overflow-x: auto; border: 1px solid #dbeafe; border-radius: 10px; }
.official-unit-table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; font-size: 12px; }
.official-unit-table th { padding: 9px 10px; background: #eff6ff; color: #1e3a8a; text-align: left; font-size: 11px; }
.official-unit-table td { padding: 10px; border-top: 1px solid #e2e8f0; color: #0f172a; vertical-align: top; }
.official-unit-table td:first-child { min-width: 210px; }
.official-unit-table td b { display: block; line-height: 1.45; }
.official-unit-table td small { display: block; margin-top: 3px; color: #64748b; line-height: 1.4; }

.verification-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:12px 0 8px; }
.verification-item { display:flex; flex-direction:column; gap:4px; padding:11px 12px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; font-size:12px; }
.verification-item b { color:#334155; }
.verification-item span { font-weight:750; color:#0f172a; }
.verification-item.verified { border-color:#86efac; background:#f0fdf4; }
.verification-item.reference { border-color:#fde68a; background:#fffbeb; }
.verification-item.missing { border-color:#cbd5e1; background:#f8fafc; }
.verification-warning { margin:5px 0; color:#92400e; font-size:12px; line-height:1.5; }
.notice-gate-card { border-color:#fed7aa; }

@media (max-width: 720px) {
  .verification-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.notice-note { margin: 14px 0 8px; padding: 10px 12px; border-left: 3px solid #0ea5e9; background: #f0f9ff; color: #334155; font-size: 12px; line-height: 1.55; }
.notice-source { color: #64748b; font-size: 11px; }
.notice-actions { justify-content: flex-end; gap: 8px; }

.btn-official-notice, .btn-apply-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-official-notice { background: #0369a1; }
.btn-apply-now { background: #059669; }
.btn-official-notice:hover, .btn-apply-now:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(15, 23, 42, .18); }
.verified-at { margin-left: 8px; color: #64748b; font-size: 11px; font-weight: 500; }

@media (max-width: 720px) {
  .live-data-banner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .notice-facts { grid-template-columns: 1fr; }
  .notice-actions { align-items: stretch; flex-direction: column; }
  .btn-official-notice, .btn-apply-now { width: 100%; }
  .verified-at { display: block; margin: 4px 0 0; }
}

/* =================================================================
   Zipzikeo (집지켜) Integrated Search Hero & Report Box
   ================================================================= */
.zipzikeo-hero-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #eff6ff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
}

.zipzikeo-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.zipzikeo-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.zipzikeo-sub-badge {
  background: #ffffff;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.zipzikeo-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.zipzikeo-hero-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 18px;
}

.zipzikeo-search-container {
  display: flex;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 16px;
}

.zipzikeo-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.zipzikeo-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: #64748b;
  pointer-events: none;
}

#zipzikeo-input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

#zipzikeo-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.btn-zipzikeo-clear {
  position: absolute;
  right: 14px;
  background: #cbd5e1;
  color: #334155;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.btn-zipzikeo-clear:hover {
  background: #94a3b8;
  color: #ffffff;
}

.btn-zipzikeo-submit {
  padding: 13px 24px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-zipzikeo-submit:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.zipzikeo-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.chips-title {
  font-weight: 700;
  color: #0369a1;
}

.chip-btn {
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Report Card Container */
.zipzikeo-report-box {
  margin-top: 24px;
  background: #ffffff;
  border: 2px solid #0284c7;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.report-title-group h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.report-notice-sub {
  font-size: 13px;
  color: #0284c7;
  font-weight: 700;
  margin-top: 4px;
}

.report-safe-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.report-safe-banner.grade-1 {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.report-safe-banner.grade-2 {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.report-safe-title {
  font-weight: 800;
  font-size: 14px;
  display: block;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.report-grid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-grid-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.report-grid-val {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

.report-table-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-unit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.report-unit-table th {
  background: #f1f5f9;
  padding: 10px 12px;
  font-weight: 700;
  color: #334155;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.report-unit-table td {
  padding: 12px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.btn-report-plan {
  padding: 6px 12px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-report-plan:hover {
  background: #0369a1;
}

.btn-report-calc {
  padding: 6px 12px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-report-calc:hover {
  background: #059669;
}

.report-footer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}



/* Modal Core Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex !important;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header-bar {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.modal-header-info h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.modal-header-info p {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.modal-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-toggle-cad {
  padding: 7px 14px;
  background: #0f172a;
  color: #38bdf8;
  border: 1.5px solid #38bdf8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-cad:hover {
  background: #1e293b;
}

.btn-toggle-cad.active {
  background: #38bdf8;
  color: #0f172a;
}

.btn-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background 0.15s ease;
}

.btn-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-body-scroll {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.plan-canvas-wrapper {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-detail-bar {
  margin-top: 14px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.room-detail-tag {
  font-weight: 700;
  color: #0284c7;
}

.room-detail-area {
  color: #166534;
  font-weight: 600;
}

.room-detail-desc {
  color: #475569;
}

/* Calculator Modal Styles */
.calc-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-complex-header {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 14px 18px;
  border-radius: 12px;
}

.calc-complex-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e3a8a;
}

.calc-complex-header p {
  font-size: 12px;
  color: #3b82f6;
  margin-top: 2px;
}

.calc-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calc-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
}

.calc-card.highlight {
  border-color: #10b981;
  background: #f0fdf4;
}

.calc-card-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-row .lbl {
  color: #64748b;
}

.calc-row .val {
  font-weight: 700;
  color: #0f172a;
}

.calc-total-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.calc-card.highlight .calc-total-box {
  background: #dcfce7;
  color: #15803d;
}

.calc-savings-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.calc-savings-banner h4 {
  font-size: 18px;
  font-weight: 800;
}

.calc-savings-banner p {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

/* Spinner & Loading */
.report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 14px;
  color: #0284c7;
  font-weight: 700;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #bae6fd;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fallback Card */
.report-fallback-box {
  padding: 24px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  text-align: left;
}

.report-fallback-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.report-fallback-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.report-fallback-clean-kw {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
}

.report-fallback-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-fallback-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-fallback-lh {
  background: #ea580c;
  color: #ffffff;
}

.btn-fallback-sh {
  background: #0284c7;
  color: #ffffff;
}

.btn-fallback-naver {
  background: #03c75a;
  color: #ffffff;
}

.btn-fallback-action:hover {
  transform: translateY(-2px);
}


/* Not Found Honest Card */
.report-not-found-card {
  padding: 24px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.not-found-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.not-found-icon {
  font-size: 32px;
  line-height: 1;
}

.not-found-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.not-found-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.not-found-truth-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #166534;
}

.not-found-truth-box p {
  margin-top: 4px;
  color: #15803d;
  font-size: 12px;
}

.not-found-tips {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.not-found-tips h4 {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 8px;
}

.not-found-tips ul {
  padding-left: 20px;
  font-size: 12px;
  color: #475569;
  line-height: 1.7;
}

.not-found-chips {
  margin-bottom: 16px;
}

.chips-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  display: block;
  margin-bottom: 8px;
}

.not-found-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-portal-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-portal-search.btn-lh {
  background: #ea580c;
  color: #ffffff;
}

.btn-portal-search.btn-soco {
  background: #0284c7;
  color: #ffffff;
}

.btn-portal-search.btn-naver {
  background: #03c75a;
  color: #ffffff;
}

.btn-portal-search:hover {
  transform: translateY(-2px);
}

.btn-villa-guide {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.btn-villa-guide:hover {
  background: #fde68a !important;
}
