/* ═══════════════════════════════════════════════
   동네보험 — main.css (v88)
   메인페이지 전용 스타일
   
   v2 → v3 변경사항:
   - 슬라이더: 배경 테마 + 데코 엘리먼트 + 높이 확대
   - 주소 검색 UI: 카드형 중앙정렬 디자인
   - 보험 팁: 카드 배경색/border 강화
   ═══════════════════════════════════════════════ */

/* ── (location-bar 제거됨 — v38: 위치는 헤더/모바일 pill로 통합) ── */

/* ═══ 콘텐츠 래퍼 (PC: 흰색 배경 컨테이너, 모바일: 투명) ═══ */
.main-content {
  /* 모바일: 배경 없음, padding 없음 */
}

/* ═══ 카드 로딩 스켈레톤 ═══ */
.skeleton-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px;
  min-height: 110px; /* CLS: 실제 카드와 높이 일치 */
  animation: skeletonPulse 1.5s ease-in-out infinite;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.skeleton-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  flex-shrink: 0;
}
.skeleton-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.skeleton-card__line {
  height: 12px;
  border-radius: 4px;
  background: var(--bg-tertiary);
}
.skeleton-card__line--short { width: 60%; }
.skeleton-card__line--long { width: 90%; }
.skeleton-card__line--tags { width: 40%; height: 10px; }
@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Location Change Modal (Postcode embed 직접 표시) ── */
.bottom-sheet--location {
  max-height: 80vh;
}
.bottom-sheet-body--location {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.bottom-sheet__close {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-tertiary);
  transition: all var(--transition);
}
.bottom-sheet__close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.location-modal__current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}
.location-modal__label {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.location-modal__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.postcode-embed {
  height: 450px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ═══ 광고 배너 슬라이더 ═══ */
.ad-banner {
  position: relative;
  margin: 16px 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 1;
  background: #1a2740;
}
.ad-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.ad-slide.active { opacity: 1; }
.ad-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.ad-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  display: flex; align-items: center;
  padding: 0 20px;
}
.ad-text { color: #fff; position: relative; z-index: 1; }
.ad-main {
  font-size: 15px; font-weight: 800; line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.ad-sub {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.ad-controls {
  position: absolute; bottom: 6px; right: 8px; z-index: 3;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: rgba(0,0,0,0.35); border-radius: 5px;
}
.ad-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all 0.3s;
}
.ad-dot.active {
  width: 14px; border-radius: 2.5px; background: #fff;
}

/* ═══ 히어로 메인 — 타이포 중심 (슬라이더 대체) ═══ */
.hero-main {
  background: linear-gradient(145deg, #f0f4ff 0%, #e8f4ec 100%);
  border-radius: var(--radius-md);
  padding: 40px 40px 34px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-main::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(50, 114, 199, 0.06);
}
.hero-main::after {
  content: '';
  position: absolute; bottom: -30px; left: 60%;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(46, 158, 110, 0.05);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 8px;
  background: rgba(50, 114, 199, 0.1);
  border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #3272c7;
  width: fit-content; margin-bottom: 14px;
}
.hero-badge svg { flex-shrink: 0; }
.hero-title {
  font-size: 24px; font-weight: 800; line-height: 1.3;
  letter-spacing: -0.5px; margin-bottom: 8px;
  position: relative; z-index: 1;
}
.hero-title em { font-style: normal; color: #3272c7; }
.hero-sub {
  font-size: 13.5px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 22px;
  position: relative; z-index: 1;
}
.hero-actions {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 1;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  background: #3272c7; color: #fff; border-radius: 8px;
  font-size: 15px; font-weight: 700; transition: all 0.2s;
  text-decoration: none;
}
.hero-cta:hover {
  background: #2860b0; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(50, 114, 199, 0.3);
}
.hero-link {
  font-size: 13px; font-weight: 600; color: #3272c7;
  display: inline-flex; align-items: center; gap: 4px;
  transition: opacity 0.2s;
}
.hero-link:hover { opacity: 0.7; }
.hero-bottom {
  margin-top: 18px;
  position: relative; z-index: 1;
}
.hero-mini-stats {
  display: flex; align-items: center;
}
.hero-mini-stat {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-tertiary);
}
.hero-mini-stat + .hero-mini-stat::before {
  content: '';
  width: 1px; height: 12px;
  background: var(--border);
  margin: 0 12px;
}
.hero-mini-stat strong {
  font-weight: 800; color: var(--text-secondary);
}

/* ═══ 헤더 내 검색박스 + 위치 pill (PC) ═══ */
.search-box {
  display: none; /* 모바일에서 숨김, PC에서 표시 */
  flex: 1; max-width: 480px; margin: 0 20px;
  align-items: center;
  border: 1.5px solid var(--border); border-radius: 24px;
  padding: 0 16px; height: 40px;
  background: var(--bg-secondary); transition: all 0.2s;
}
.search-box:focus-within { border-color: #3272c7; background: #fff; box-shadow: 0 0 0 3px rgba(50,114,199,0.10); }
.search-box svg.s-icon { color: var(--text-tertiary); flex-shrink: 0; margin-right: 10px; transition: color 0.2s; }
.search-box:focus-within svg.s-icon { color: #3272c7; }
.search-box input {
  flex: 1; border: none; background: transparent; font-size: 14px;
  font-family: inherit; outline: none; min-width: 0; color: var(--text-primary);
}
.search-box input::placeholder { color: #B0B0B0; }

/* ═══ 검색 드롭다운 ═══ */
.search-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200; margin-top: 6px;
  max-height: 360px; overflow-y: auto;
}
.sd-section { padding: 4px 0; }
.sd-section + .sd-section { border-top: 1px solid var(--border-light); }
.sd-label {
  font-size: 10px; font-weight: 700; color: var(--text-tertiary);
  padding: 8px 14px 4px; text-transform: uppercase; letter-spacing: 0.03em;
}
.sd-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 14px;
  text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.sd-item:hover { background: var(--bg-secondary); }
.sd-title {
  flex: 1; font-size: 13px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-meta {
  font-size: 11px; color: var(--text-tertiary); white-space: nowrap; flex-shrink: 0;
}
.sd-more {
  display: block; text-align: center; padding: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  text-decoration: none; border-top: 1px solid var(--border-light);
  transition: background 0.15s;
}
.sd-more:hover { background: var(--bg-secondary); }
.sd-empty {
  padding: 20px 14px; text-align: center;
  font-size: 13px; color: var(--text-tertiary);
}

.actions-loc {
  display: none; /* 모바일에서 숨김, PC에서 표시 */
  align-items: center; gap: 4px;
  padding: 5px 12px;
  background: var(--bg-tertiary); border: none; border-radius: 14px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: inherit; transition: all 0.15s;
  margin-right: 4px;
}
.actions-loc:hover { background: var(--border); color: var(--text-primary); }
.actions-loc svg { flex-shrink: 0; }

/* ═══ 모바일 검색행 (헤더 아래 sticky) ═══ */
.mobile-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.m-search-box {
  flex: 1; display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 24px;
  padding: 0 14px; height: 40px; background: var(--bg-secondary);
  position: relative; transition: all 0.2s;
}
.m-search-box:focus-within { border-color: #3272c7; background: #fff; }
.m-search-box svg { color: var(--text-tertiary); flex-shrink: 0; margin-right: 8px; transition: color 0.2s; }
.m-search-box:focus-within svg { color: #3272c7; }
.m-search-box input {
  flex: 1; border: none; background: transparent; font-size: 14px;
  font-family: inherit; outline: none; min-width: 0;
}
.m-search-box input::placeholder { color: #B0B0B0; }
.m-loc-pill {
  display: flex; align-items: center; gap: 3px;
  padding: 6px 10px;
  background: var(--bg-tertiary); border: none; border-radius: 14px;
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: inherit;
}
.m-loc-pill svg { width: 12px; height: 12px; flex-shrink: 0; }

/* 모바일 헤더 위치 버튼 */
.m-loc-header {
  display: flex; align-items: center; gap: 3px;
  padding: 5px 9px;
  background: var(--bg-tertiary); border: none; border-radius: 14px;
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: inherit;
  margin-left: auto; margin-right: 8px;
  max-width: 80px;
}
.m-loc-header svg { width: 12px; height: 12px; flex-shrink: 0; }
.m-loc-header .m-loc-text {
  overflow: hidden; text-overflow: ellipsis; max-width: 52px;
}

/* (모바일 인기질문 제거 — 사이드바에서 처리) */

/* ═══ PC 히어로 (히어로 메인 + 사이드바) ═══ */
/* ── 히어로: 모바일 기본 (히어로 위, 사이드바 아래) ── */
.hero-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding: 0 16px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ═══ PC 사이드바 (S1 여유형) ═══ */
.side-head {
  padding: 12px 16px 8px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.side-head-title { display: flex; align-items: center; gap: 5px; }
/* 세그먼트 토글 */
.side-seg {
  position: relative; display: flex; background: #f1f5f9;
  border-radius: 7px; padding: 2px;
}
.side-seg-bg {
  position: absolute; top: 2px; left: 2px; width: calc(50% - 2px); height: calc(100% - 4px);
  background: #fff; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-seg[data-active="view"] .side-seg-bg { transform: translateX(100%); }
.side-seg-btn {
  position: relative; z-index: 1; font-size: 12px; padding: 5px 12px;
  border: none; background: none; color: #94A3B8; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: color 0.25s;
  white-space: nowrap;
}
.side-seg-btn.active { color: #1C1F26; font-weight: 600; }

/* 질문 리스트 패널 — E3 포커스 하이라이트 + 크로스페이드 세트 교체 */
.rank-panel { padding: 4px 12px 8px; flex: 1; position: relative; min-height: 210px; }
.rank-panel-group { display: none; }
.rank-panel-group.active {
  display: block;
  position: relative;
  height: 210px;
}
/* 세트 A/B 크로스페이드 */
.rank-set {
  position: absolute; inset: 0;
  transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
}
.rank-set.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.rank-set.out { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.rank-set.standby { opacity: 0; transform: translateY(6px); pointer-events: none; }

.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px;
  text-decoration: none; color: inherit;
  border-radius: 8px;
  min-height: 40px; box-sizing: border-box;
  transition: all 0.35s ease-in-out;
  border-left: 3px solid transparent;
  opacity: 0.35;
}
.rank-item:hover { background: var(--bg-secondary); opacity: 0.8; }
.rank-item.focus {
  opacity: 1;
  background: var(--primary-50);
  border-left-color: #3272c7;
}
.rank-item.near { opacity: 0.65; }
/* 진행 바 */
.rank-progress { height: 2px; background: var(--border-light); border-radius: 2px; overflow: hidden; margin: 0 12px 6px; }
.rank-progress-bar { height: 100%; background: #3272c7; border-radius: 2px; transition: width 0.1s linear; width: 0; }

.rank-num {
  font-size: 15px; font-weight: 800; min-width: 22px; text-align: center;
  color: var(--text-tertiary);
}
.rank-item.rank-top1 .rank-num { color: #2e9e6e; }
.rank-item.rank-top2 .rank-num { color: #3272c7; }
.rank-item.rank-top3 .rank-num { color: #c9892a; }
.rank-title { font-size: 13px; font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; color: #1C1F26; }
.rank-stat { font-size: 11px; color: #94A3B8; white-space: nowrap; }

/* 3버튼 가로 — S1 여유형 */
.side-actions {
  display: flex;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.side-action {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
}
.side-action:not(:last-child) { border-right: 1px solid var(--border-light); }
.side-action:hover { background: var(--bg-secondary); }
.sa-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sa-icon svg { width: 16px; height: 16px; }
.sa-icon--mint { background: #EDFAF3; color: #2e9e6e; }
.sa-icon--blue { background: #EBF2FA; color: #3272c7; }
.sa-icon--amber { background: #FDF5E9; color: #c9892a; }
.sa-label { font-size: 13px; font-weight: 700; color: var(--text-primary); }

/* ═══ 게시판 공용: 뱃지·텍스트·서브 ═══ */
/* 칼럼 pill 뱃지 */
.col-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.col-pill--blue { background: #edf3fb; color: #3272c7; }
.col-pill--mint { background: #edfaf3; color: #2e9e6e; }
.col-pill--amber { background: #fef8ec; color: #c9892a; }
.col-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.col-title {
  font-size: 13px; font-weight: 500; color: #1F2937;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4;
}
.col-author { font-size: 11px; color: #94A3B8; }
.board-preview--column .board-item {
  display: flex; align-items: center; gap: 12px;
}
.board-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-secondary);
}
.board-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══ 인기 설계사 카드 (v2) ═══ */
.pp-loading {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.pp-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  margin: 0 -8px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background 0.15s;
}
.pp-card + .pp-card {
  border-top: 1px solid var(--border-light);
}
.pp-card:hover { background: var(--bg-secondary); }
.pp-card--first { background: rgba(201, 137, 42, 0.05); }
.pp-card--first:hover { background: rgba(201, 137, 42, 0.10); }
/* 아바타 + 순위 래퍼 */
.pp-av-wrap { position: relative; flex-shrink: 0; }
.pp-av-wrap--gold .pp-av { box-shadow: 0 0 0 3px #d4a032; }
.pp-av-wrap--silver .pp-av { box-shadow: 0 0 0 3px #9aacbe; }
.pp-av-wrap--bronze .pp-av { box-shadow: 0 0 0 3px #c4886a; }
.pp-rank-num {
  position: absolute; bottom: -3px; right: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; background: #d1d5db;
  z-index: 1;
}
.pp-av-wrap--gold .pp-rank-num { background: #d4a032; }
.pp-av-wrap--silver .pp-rank-num { background: #9aacbe; }
.pp-av-wrap--bronze .pp-rank-num { background: #c4886a; }
.pp-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EBF2FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #3272c7;
  overflow: hidden;
  flex-shrink: 0;
}
.pp-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pp-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.pp-badge--exclusive { background: #EBF2FA; color: #3272c7; }
.pp-badge--compare   { background: #FEF3E2; color: #c9892a; }
.pp-insurer {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-intro {
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.pp-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pp-views {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.pp-views svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.pp-pviews {
  font-size: 11px;
  color: #2e9e6e;
  font-weight: 500;
}
.pp-activity {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-left: auto;
  white-space: nowrap;
}

/* ═══ 게시판 미리보기 ═══ */
/* ── Board Section (D-1 디자인) ── */
.board-preview {
  padding: 28px 16px 20px;
}
.board-preview + .board-preview {
  border-top: none;
  margin-top: 0;
}
.board-preview + .board-preview::before {
  content: ''; display: block;
  height: 10px; background: #f4f6f8;
  margin: -28px -16px 24px;
}
.board-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.board-preview__title-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.board-preview__title-link::before {
  content: ''; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background-size: 16px; background-repeat: no-repeat; background-position: center;
}
.board-preview--column .board-preview__title-link::before {
  background-color: #edf3fb;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%233272c7' stroke-width='1.8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}
.board-preview--qa .board-preview__title-link::before {
  background-color: #edf3fb;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%233272c7' stroke-width='1.8' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 9a3 3 0 015.12 2.13c0 2-3.12 2.5-3.12 2.5'/%3E%3Ccircle cx='12' cy='17' r='.5' fill='%233272c7'/%3E%3C/svg%3E");
}
.board-preview--news .board-preview__title-link::before {
  background-color: #fef8ec;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23c9892a' stroke-width='1.8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E");
}
.board-preview--planner .board-preview__title-link::before {
  background-color: #edfaf3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%232e9e6e' stroke-width='1.8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.board-preview__title-link:hover {
  opacity: 0.7;
}
.board-preview__title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.board-preview__sub {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 5px;
}
.board-preview__more {
  font-size: 12px;
  font-weight: 500;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
  padding-top: 2px;
  flex-shrink: 0;
}
.board-preview__more:hover {
  color: #374151;
  border-bottom: 1px solid #374151;
}

/* 하단 CTA (전체보기 대체) */
.section-footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border-top: 1px solid var(--border);
  transition: background var(--transition);
  text-decoration: none;
}
.section-footer-cta:hover {
  background: var(--primary-50);
}

/* ── 보험소식: 공지 카드 ── */
.news-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), border-color var(--transition);
}
.news-notice:hover {
  background: #FEF3C7;
  border-color: #FCD34D;
}
.news-notice__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D97706;
  flex-shrink: 0;
}
.news-notice__body {
  flex: 1;
  min-width: 0;
}
.news-notice__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-notice__label {
  font-size: 11px;
  font-weight: 700;
  color: #92400E;
}
.news-notice__date {
  font-size: 11px;
  color: #B45309;
}
.news-notice__title {
  font-size: 14px;
  font-weight: 600;
  color: #78350F;
  line-height: 1.4;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-notice__arrow {
  flex-shrink: 0;
  color: #B45309;
}

/* ── 보험소식: 일반 글 카드 래핑 ── */
.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 200px; /* CLS: 비동기 로딩 전 높이 예약 */
}

/* ── 보험소식: 개별 아이템 ── */
.news-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.news-item:last-of-type {
  border-bottom: none;
}
.news-item:hover {
  background: var(--bg-secondary);
}
.news-item:hover .news-item__title {
  color: var(--primary);
}
.news-item--fresh {
  background: #FAFCFF;
}
.news-item--fresh:hover {
  background: #F0F6FF;
}
.news-item__title--fresh {
  font-weight: 600;
}
.news-item__new-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 4px;
  vertical-align: middle;
}
.news-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.news-item__date {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border: 1px solid;
  border-radius: 3px;
  background: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-badge--tip { color: #2e9e6e; border-color: #2e9e6e; }
.news-badge--news { color: #3272c7; border-color: #3272c7; }
.news-item__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  transition: color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-item__preview {
  display: none;
}

.board-preview__list {
  display: flex;
  flex-direction: column;
  min-height: 220px; /* CLS: 비동기 로딩 전 높이 예약 */
}

/* ── Q&A 글 카드 ── */
.board-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
}
.board-item + .board-item {
  border-top: 1px solid transparent;
  background-image: linear-gradient(90deg, transparent, #E5E7EB 20%, #E5E7EB 80%, transparent);
  background-size: 100% 1px;
  background-position: top;
  background-repeat: no-repeat;
}
@media (hover: hover) {
  .board-item:hover {
    background: #F8F9FB;
    transform: none;
  }
}

/* 답변 수 카운터 (Q&A 좌측) — 코발트 원형 */
.board-item__count {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%; background: #edf3fb;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.board-item__count-num {
  font-size: 16px;
  font-weight: 800;
  color: #3272c7;
  line-height: 1;
  letter-spacing: -0.04em;
}
.board-item__count-label {
  font-size: 8px;
  color: #7baad6;
  display: block;
  margin-top: 1px;
}
/* 미답변 */
.board-item__count--zero { background: #fef2f2; }
.board-item__count--zero .board-item__count-num { color: #ef4444; }
.board-item__count--zero .board-item__count-label { color: #fca5a5; }
@media (hover: hover) {
  .board-item:hover .board-item__count { background: #dce8f7; }
  .board-item:hover .board-item__count-num { color: #2860b0; }
  .board-item:hover .board-item__count-label { color: #2860b0; }
  .board-item:hover .board-item__count--zero .board-item__count-num { color: #EF4444; }
  .board-item:hover .board-item__count--zero .board-item__count-label { color: #EF4444; }
}

/* Q&A 본문 */
.board-item__body { flex: 1; min-width: 0; }
.board-item__title {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
}
.board-item__meta-nick { font-weight: 500; color: #6B7280; }
.board-item__meta-dot { color: #D1D5DB; }
.board-item__meta-date { color: #B0B0B0; }

/* 미답변 펄스 닷 */
.board-item__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── 보험소식 글 카드 ── */
.board-item__icon {
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.board-item__icon svg {
  width: 20px;
  height: 20px;
  transition: color 0.3s;
}
.board-item__icon--notice svg { color: #D4A24E; }
.board-item__icon--normal svg { color: #D1D5DB; }
@media (hover: hover) {
  .board-item:hover .board-item__icon--notice svg { color: #B8912E; }
  .board-item:hover .board-item__icon--normal svg { color: #9CA3AF; }
}

/* 공지 행 */
.board-item--pinned {
  border-left: 2.5px solid #D4A24E;
  background: #FFFEF8;
  border-radius: 10px;
}
@media (hover: hover) {
  .board-item--pinned:hover { background: #FFFDF2; }
}
.board-item--pinned .board-item__title { font-weight: 500; }

/* pill 뱃지 */
.board-item__pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.board-item__pill--notice { background: #FEF3C7; color: #92400E; }
.board-item__pill--tip { background: #D1FAE5; color: #065F46; }
.board-item__pill--news { background: #EDE9FE; color: #5B21B6; }

/* ═══ 필터 패널 (A-1: 결과 직상단 패널형) ═══ */
.filter-panel {
  margin: 12px 16px 0;
  background: #f7f8fb;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  padding: 14px;
}
.filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.filter-panel__head .results-header {
  padding: 0; flex: 1;
}
.filter-panel__clear {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-panel__clear svg { width: 12px; height: 12px; }
.filter-panel__clear:hover {
  color: #DC2626;
  border-color: #fecaca;
  background: #fef2f2;
}
.filter-panel__filters {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.filter-panel__filters:last-child { margin-bottom: 0; }
/* 필터 버튼 (패널 내부용) */
.filter-btn {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit; color: inherit;
}
.filter-btn:active { background: var(--bg-secondary); }
.filter-btn.active.filter-btn--blue { border-color: #3272c7; }
.filter-btn.active.filter-btn--amber { border-color: #c9892a; }
.filter-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.filter-icon svg { width: 16px; height: 16px; }
.filter-icon--blue { background: #EBF2FA; color: #3272c7; }
.filter-icon--amber { background: #FDF5E9; color: #c9892a; }
.filter-label { font-size: 12.5px; font-weight: 700; }
.filter-count {
  margin-left: auto;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: none; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.filter-count.active { display: flex; }
.filter-btn--blue .filter-count { background: #3272c7; }
.filter-btn--amber .filter-count { background: #c9892a; }

/* 선택 뱃지 (아웃라인 칩 + 컬러 도트) */
.selected-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.selected-badges:empty { display: none; }
.filter-panel__filters + .selected-badges:empty { display: none; }
.filter-panel__filters + .selected-badges:empty + * { margin-top: 0; }
.selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px 5px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg);
  animation: badgeIn 0.2s ease;
}
.selected-badge--insurer {
  color: #2860b0;
  border: 1px solid rgba(50,114,199,0.25);
}
.selected-badge--category {
  color: #9a6b1e;
  border: 1px solid rgba(201,137,42,0.25);
}
@keyframes badgeIn { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }
.selected-badge__dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.selected-badge--insurer .selected-badge__dot { background: #3272c7; }
.selected-badge--category .selected-badge__dot { background: #c9892a; }
.selected-badge__remove {
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text-tertiary);
  background: var(--bg-tertiary);
  cursor: pointer; margin-left: 2px;
  transition: all 0.15s;
}
.selected-badge__remove:hover { color: #DC2626; background: #fef2f2; }

/* ── Category Bottom Sheet: 2열 그리드 + 인라인 확장 ── */
.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.cat-grid__item {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer;
  font-family: inherit; color: var(--text-primary);
  transition: all 0.15s;
}
.cat-grid__item:active { background: var(--bg-secondary); }
.cat-grid__item.active {
  border-color: #c9892a; background: #fef8ec;
}
.cat-grid__icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg-tertiary); color: var(--text-tertiary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: all 0.15s;
}
.cat-grid__icon .cat-icon { width: 16px; height: 16px; }
.cat-grid__item.active .cat-grid__icon {
  background: rgba(201,137,42,0.15); color: #c9892a;
}
.cat-grid__item.active .cat-grid__icon .cat-icon { stroke: #c9892a; }
.cat-grid__label { font-size: 12.5px; font-weight: 700; }
.cat-grid__item.active .cat-grid__label { color: #a87322; }
.cat-grid__count {
  margin-left: auto;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: #c9892a;
}
.cat-grid__arrow {
  margin-left: auto; font-size: 12px; color: #d1d5db;
  transition: transform 0.2s;
}
.cat-grid__item.active .cat-grid__arrow { transform: rotate(90deg); color: #c9892a; }
/* 소분류 인라인 확장 (그리드 전체 너비) */
.cat-grid__subs {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px;
  background: #fef8ec; border-radius: 10px;
  border: 1px solid rgba(201,137,42,0.15);
  animation: subChipsIn 0.2s ease;
}
@keyframes subChipsIn { from { opacity:0; } to { opacity:1; } }
.sub-chip {
  padding: 6px 14px; border-radius: 18px;
  font-size: 12.5px; font-weight: 500;
  color: #6b7280; background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.sub-chip:hover { border-color: #c9892a; color: #c9892a; }
.sub-chip.active {
  color: #fff; background: #c9892a; border-color: #c9892a; font-weight: 600;
}

/* ═══ 지도 영역 ═══ */
.map-filter-row {
  display: flex; flex-direction: column;
  margin-top: 20px;
  padding: 0 16px;
}

/* ── Results Header ── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.results-header__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.results-header__title em {
  font-style: normal;
  color: var(--primary);
}
.results-header__loading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.results-header__denied {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: var(--bg-secondary, #f8f9fa);
  border-radius: var(--radius-md, 8px);
}
.denied-select-btn {
  margin-left: auto;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.denied-select-btn:hover { opacity: 0.9; }

/* ── Map Banner ── */
.map-banner {
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: #E5E7EB;
}
.map-banner > div { width: 100%; height: 100%; }

/* 지도 투명 오버레이: 조작 차단, 스크롤 통과 */
.map-touch-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ── (map-desktop/mobile/main-right 분기 제거됨 — v38: 단일 kakao-map) ── */

/* Map labels */
.map-label {
  padding: 3px 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(37,99,235,0.35);
  transition: transform 0.15s ease;
  font-family: var(--font-main);
  line-height: 1.3;
  letter-spacing: -0.3px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-label:hover { transform: scale(1.1); z-index: 10; }

/* My location dot */
.my-location-dot {
  position: relative;
  width: 14px;
  height: 14px;
}
.my-location-dot .dot {
  position: absolute;
  inset: 3px;
  background: #3B82F6;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 2;
}
.my-location-dot .pulse {
  position: absolute;
  inset: -4px;
  background: rgba(59,130,246,0.25);
  border-radius: 50%;
  animation: locPulse 2s infinite;
}
@keyframes locPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── Planner Cards ── */
.cards-container {
  padding: 6px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── D3: 플로팅 버튼 + 3D 플립 (v93) ── */
.planner-card-wrap {
  perspective: 900px;
  animation: cardFadeIn 0.35s ease both;
  position: relative;
}
.planner-card-wrap.flipped { z-index: 5; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 외곽 border 래퍼 */
.planner-card-outer {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.planner-card-outer:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.planner-card-wrap.flipped .planner-card-outer {
  border-color: var(--primary-200);
  box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

/* 3D 내부 — 앞뒤 높이 독립, transition으로 부드러운 전환 */
.planner-card-inner {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), min-height 0.4s ease;
  transform-style: preserve-3d;
  min-height: 0;
}
.planner-card-wrap.flipped .planner-card-inner {
  transform: rotateY(180deg);
  min-height: 215px;
}

/* 앞면 — border-radius + overflow로 모서리 마감 */
.planner-card-front {
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}
.planner-card-wrap.flipped .planner-card-front { pointer-events: none; }

.planner-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: none;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

/* 카드 우측 절반 플립 터치 영역 + 약한 그라데이션 힌트 */
.planner-card__flip-area {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  cursor: pointer;
  z-index: 2;
  border-radius: 0 15px 15px 0;
  background: linear-gradient(to right, transparent 0%, rgba(37,99,235,0.03) 100%);
  transition: background 0.2s;
}
.planner-card__flip-area:active {
  background: linear-gradient(to right, transparent 0%, rgba(37,99,235,0.07) 100%);
}

/* 플로팅 플립 버튼 — 카드 내부 우측 배치 (벽 밀착 방지) */
.planner-card__flip-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  color: var(--text-tertiary);
}
.planner-card__flip-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.planner-card__flip-btn svg {
  width: 14px; height: 14px;
  transition: transform 0.3s;
}
.planner-card-wrap.flipped .planner-card__flip-btn {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary);
}
.planner-card-wrap.flipped .planner-card__flip-btn svg {
  transform: rotate(180deg);
}

/* ── 뒷면 (absolute + D3 여백/구분선) ── */
.planner-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 18px 42px 18px 18px;
  background: var(--bg);
  border-radius: 16px;
  pointer-events: none;
  overflow: hidden;
}
.planner-card-wrap.flipped .planner-card-back {
  pointer-events: auto;
}
/* 뒷면 콘텐츠는 flip-area 위에 */
.planner-card-back__header,
.planner-card-back__posts,
.planner-card-back__actions,
.planner-card-back__empty {
  position: relative;
  z-index: 3;
}

/* 뒷면 우측 절반 복귀 영역 (앞면과 일관성) */
.planner-card-back__flip-area {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  cursor: pointer;
  z-index: 2;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(to right, transparent 0%, rgba(37,99,235,0.03) 100%);
  transition: background 0.2s;
}
.planner-card-back__flip-area:active {
  background: linear-gradient(to right, transparent 0%, rgba(37,99,235,0.07) 100%);
}
.planner-card-back__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.planner-card-back__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.planner-card-back__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.planner-card-back__posts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
/* 게시글 한 줄 */
.planner-card-back__post {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  min-width: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}
.planner-card-back__post:hover {
  background: var(--primary-50);
}
.planner-card-back__post-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.planner-card-back__post-date {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-tertiary);
}
/* 타입 뱃지 (3색 체계: 코발트/민트) */
.planner-card-back__type {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.planner-card-back__type--expert {
  color: #3272c7;
  background: #EBF2FA;
}
.planner-card-back__type--consult {
  color: #2e9e6e;
  background: #E8F5EF;
}
.planner-card-back__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-tertiary);
}
.planner-card-back__loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.planner-card-back__loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: cardBackSpin 0.6s linear infinite;
}
@keyframes cardBackSpin { to { transform: rotate(360deg); } }
/* 하단 CTA */
.planner-card-back__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.planner-card-back__btn {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.planner-card-back__btn--outline {
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--primary);
}
.planner-card-back__btn--outline:hover {
  background: var(--primary-50);
}
.planner-card-back__btn--primary {
  color: #fff;
  background: var(--primary);
  border: 1.5px solid var(--primary);
}
.planner-card-back__btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ── 전속 → 전문 회사 뱃지 (상품태그 아래, company-inline 위치) ── */
.company-dedicated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  padding: 3px 10px 3px 4px;
  border-radius: 6px;
  background: var(--type-exclusive-bg);
}
.company-dedicated__initial {
  width: 20px; height: 20px; border-radius: 4px; background: #FEF3C7;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--type-exclusive-text);
}
.company-dedicated__logo {
  width: 20px; height: 20px; border-radius: 0;
  object-fit: contain; flex-shrink: 0;
}
.company-dedicated__name {
  font-size: 11px; font-weight: 600; color: var(--type-exclusive-text);
}
.company-dedicated__label {
  font-size: 9px; font-weight: 700; color: var(--type-exclusive-text); opacity: 0.7;
}

/* ── 아바타 (v3: 72px, 테두리 없음) ── */
.avatar-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-ring__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.avatar-ring__img img { width: 100%; height: 100%; object-fit: cover; }

/* ── 카드 정보 영역 ── */
.card-info { flex: 1; min-width: 0; }
.card-info__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  row-gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.card-info__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.card-info__role {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ── 타입 뱃지 ── */
.type-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.type-badge--compare {
  background: var(--type-compare-bg);
  color: var(--type-compare-text);
}
.type-badge--exclusive {
  background: var(--type-exclusive-bg);
  color: var(--type-exclusive-text);
  padding: 3px 10px 3px 4px;
  gap: 5px;
}
.type-badge__logo {
  width: 20px;
  height: 20px;
  border-radius: 0;
  object-fit: contain;
  border: none;
  background: transparent;
}
.type-badge__initial {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  border: none;
}

/* ── 상품 태그 (v2: 배경 없음, 초록 아이콘+텍스트) ── */
.product-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.product-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--product-text);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.product-tag__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── 보험사 인라인 (v3: 2개마다 줄바꿈) ── */
.company-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  row-gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
/* 모바일만: 2번째 구분점(child 4) → 줄바꿈 역할 */
@media (max-width: 767px) {
  .company-inline > :nth-child(4) {
    flex-basis: 100%;
    height: 0;
    overflow: hidden;
    font-size: 0;
    margin: 0;
    padding: 0;
  }
}
.company-inline__item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.company-inline__dot {
  color: #D1D5DB;
  margin: 0 1px;
  font-size: 11px;
}
.company-inline__logo {
  width: 20px;
  height: 20px;
  border-radius: 0;
  object-fit: contain;
  border: none;
  background: transparent;
  flex-shrink: 0;
}
.company-inline__initial {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  flex-shrink: 0;
}


/* ── 인사말 ── */
.card-info__greeting {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  word-break: keep-all;
}

/* ── 경력/거리 (보조 정보) ── */
.planner-card__distance {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.planner-card__exp {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  margin-left: auto;
}

/* Load more */
.load-more-wrap {
  padding: 4px 16px 20px;
  text-align: center;
}
.btn-load-more {
  width: 100%;
  padding: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.btn-load-more:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-100);
  color: var(--primary);
}

/* 랜덤 검색 버튼 */
.btn-shuffle {
  width: 100%;
  padding: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  margin-top: 8px;
}
.btn-shuffle:hover {
  background: color-mix(in srgb, var(--primary) 6%, #fff);
}
.btn-shuffle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Results header 랜덤 배지 */
/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
}
.empty-state__icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.empty-state__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.empty-state__sub {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── 보험사 모달 (코발트 #3272c7) ── */
.insurer-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
}
.insurer-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.insurer-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.insurer-tab.active {
  color: #3272c7;
  font-weight: 600;
  border-bottom-color: #3272c7;
}
.insurer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.insurer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f9fafb;
  transition: all 0.15s;
  cursor: pointer;
  line-height: 1.3;
}
.insurer-item:hover { background: #f3f4f6; border-color: #e5e7eb; }
.insurer-item.selected {
  background: #edf4fc;
  border-color: #3272c7;
}
.insurer-item.selected .insurer-item__name { color: #3272c7; font-weight: 600; }
.insurer-item__logo {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #9ca3af;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 1;
}
.insurer-item__logo img { width: 100%; height: 100%; object-fit: contain; }
.insurer-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

/* ── Styled 모달 핸들: 그라데이션 헤더 위에 자연스럽게 ── */
.bottom-sheet--styled .bottom-sheet-handle {
  background: #d1d5db;
  margin: 8px auto 0;
  position: relative;
  z-index: 1;
}
.bottom-sheet--styled {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.bottom-sheet--styled .bottom-sheet-handle + .modal-hero {
  margin-top: -4px;
}

/* ── Loading Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ 게시판 영역 (모바일: 세로 스택) ═══ */
.board-section {
  margin-top: 10px;
  border-top: none;
  padding-top: 0;
  box-shadow: 0 -10px 0 0 #f4f6f8;
}

/* ── Bottom Sheet Styled (보험사/상품분야 선택) ── */
/* 시안 B: 소프트 틴트 헤더 — gradient/pseudo 제거, 깔끔한 여백 */
.bottom-sheet--styled {
  background: var(--bg);
  overflow: hidden;
}
/* ── 모달 Hero 헤더 (시안B) ── */
/* ── 모달 Hero 헤더 (C-2: 화이트 배경 + 컬러 아이콘) ── */
.modal-hero {
  position: relative;
  background: #fff;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.modal-hero__deco {
  display: none;
}
.modal-hero__content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-hero__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-hero__icon svg {
  width: 17px;
  height: 17px;
}
/* 보험사 모달: 코발트 */
.modal-hero--blue .modal-hero__icon {
  background: #3272c7;
  color: #fff;
  box-shadow: 0 2px 6px rgba(50,114,199,0.2);
}
/* 상품분야 모달: 골든 앰버 */
.modal-hero--amber .modal-hero__icon {
  background: #c9892a;
  color: #fff;
  box-shadow: 0 2px 6px rgba(201,137,42,0.2);
}
.modal-hero__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.3px;
}
.modal-hero__sub {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 6px;
}
.modal-hero__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #9ca3af;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1;
}
.modal-hero__close:hover {
  background: #e5e7eb;
}

/* ═══════════════════════════════════════════════
   PC Responsive: 세로 흐름 레이아웃
   지도 → 컴팩트 배너, 카드 → 2열 그리드
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* ── 배경: 콘텐츠 영역이 떠 보이도록 ── */
  body { background: #F1F5F9; }

  /* ── 콘텐츠 래퍼: 흰색 캔버스 + 여유 padding ── */
  .main-content {
    max-width: 1060px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    padding: 24px 24px 16px;
  }

  /* ── 히어로: 히어로 메인·사이드바 각각 라운드 카드 ── */
  .main-content .hero-row {
    margin: 0;
    gap: 16px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .main-content .hero-main {
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  .main-content .sidebar {
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
  }

  /* ── 필터+지도: 부모 padding으로 정렬 (개별 padding 불필요) ── */
  .main-content .map-filter-row {
    padding: 0;
    max-width: none;
    margin: 20px 0 0;
  }

  /* ── 필터 패널: PC padding 조정 ── */
  .main-content .filter-panel {
    margin: 16px 0 0;
  }
  .main-content .results-header {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* ── 카드 2열 그리드 ── */
  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 0 24px;
    max-width: none;
  }
  /* 홀수 카드: 마지막 카드 full-width */
  .cards-container > .planner-card-wrap:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .load-more-wrap {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  /* ── 지도 높이 (오버레이 모드) ── */
  .map-filter-row .map-banner {
    height: 220px;
    min-height: 220px;
  }

  /* ── results: 패널 내부에서는 구분선 불필요 ── */

  /* ── 하단: 게시판 2×2 그리드 ── */
  .board-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 28px;
    max-width: none;
    margin: 8px 0 0;
    padding: 28px 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: none;
  }
  .board-section .board-preview {
    border-top: none;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .board-section .board-preview + .board-preview {
    border-top: none;
  }
  .board-section .board-preview + .board-preview::before {
    display: none;
  }
  .board-section .board-preview__title {
    font-size: 20px;
  }
  .board-section .board-item {
    padding: 14px 8px;
  }
  /* ── 인기 설계사 카드 PC 조정 ── */
  .pp-av { width: 44px; height: 44px; font-size: 16px; }
  .pp-info { gap: 1px; }
  .pp-name { font-size: 13px; }
  /* ── 4섹션: 헤더 높이 통일 + 리스트 균등 분배 + CTA 하단 고정 ── */
  .board-section .board-preview__header {
    min-height: 47px;
  }
  .board-section .board-preview__list,
  .board-section .news-card,
  .board-section #boardPlannerList {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
  .board-section #newsNotice {
    flex-shrink: 0;
  }
  .board-section .section-footer-cta {
    margin-top: auto;
  }

  /* ── 푸터 ── */
  .footer {
    max-width: 1060px;
    margin: 0 auto;
    padding: 32px 24px;
  }

  /* ── 히어로 PC 사이즈 업 ── */
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 14.5px; }
  /* ── 광고 배너 PC: 납작하게 ── */
  .ad-banner { aspect-ratio: 6 / 1; margin: 20px 0 0; }
  .ad-main { font-size: 16px; }
  .ad-sub { font-size: 11.5px; }
  .ad-overlay { padding: 0 32px; }
  .ad-controls { bottom: 8px; right: 12px; }
  /* ── (filter-section PC 오버라이드 제거됨 — v38) ── */
  .results-header {
    padding: 16px 0 10px;
    text-align: center;
  }
  .load-more-wrap { padding: 4px 0 24px; }
  /* board-preview padding은 .board-section 내에서 0으로 처리 */
  /* ── (address-search PC 오버라이드 제거됨 — v38) ── */

  /* ── v10-final: 모바일 전용 요소 숨김 / PC 전용 표시 ── */
  .mobile-search-row { display: none; }
  .search-box { display: flex; }
  .actions-loc { display: flex; }
  .m-loc-header { display: none; }

  /* ── 지도 (PC) ── */
  .map-filter-row .map-banner {
    flex: none;
    height: 220px;
    min-height: 220px;
  }

  /* ── 히어로: 히어로 메인 + 사이드바 그리드 ── */
  .hero-row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: stretch;
    max-width: none;
    padding: 0;
  }
  .sidebar {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-left: none;
  }
  .rank-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* ── 지도 PC ── */
  .map-filter-row {
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  /* ── 카드/결과 max-width ── */
  .results-header,
  .cards-container,
  .load-more-wrap {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* ── 하단 4섹션 2×2 그리드 ── */
  .board-section .board-preview + .board-preview {
    border-top: none;
  }

  /* ── (bottom-left/right 제거됨 — v38) ── */

  /* (모달 센터 팝업 전환은 global.css 640px 블록에서 처리) */
}

/* ── 모달 PC 레이아웃 (640px+: 콘텐츠 폭 기준) ── */
@media (min-width: 640px) {

  /* PC: 보험사 — 시안B (좌측 탭 + 우측 그리드) */
  .bottom-sheet-body:has(.insurer-nav) {
    display: flex;
    min-height: 360px;
    padding: 0;
  }
  .insurer-nav {
    display: flex;
    flex-direction: column;
    width: 100px;
    border-right: 1px solid #f0f0f0;
    flex-shrink: 0;
    padding: 8px 0;
  }
  .insurer-tabs { display: none; }
  .insurer-nav .insurer-nav__item {
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
    border: none;
    background: transparent;
  }
  .insurer-nav .insurer-nav__item svg { width: 20px; height: 20px; }
  .insurer-nav .insurer-nav__item:hover { color: #6b7280; background: #fafafa; }
  .insurer-nav .insurer-nav__item.active { color: #3272c7; font-weight: 600; background: #edf4fc; }
  .insurer-content {
    display: block; /* 기본값 display:contents 재정의 — flex:1이 작동하도록 */
    flex: 1;
    min-width: 0;
    padding: 16px;
  }
  .insurer-content__title {
    display: block; /* 기본값 display:none 재정의 */
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 12px;
  }
  .insurer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .insurer-item { padding: 10px 12px; font-size: 13px; background: #f9fafb; border-color: transparent; }
  .insurer-item:hover { background: #f3f4f6; border-color: #e5e7eb; }
  .insurer-item.selected { border-color: #3272c7; background: #edf4fc; }

  /* PC: 상품분야 — 2열 그리드 (모바일과 동일, PC 칩 사이즈 업) */
  .category-list .sub-chip {
    padding: 8px 16px;
    font-size: 13px;
  }
}