/* =========================================================
   생활정보 — 모바일 전용 (max-width: 768px 에서만 로드)
   ========================================================= */

/* 데스크톱 네비 숨기고 햄버거 노출 */
.nav-desktop { display: none !important; }
.menu-toggle { display: flex !important; }

/* 생활정보 좌측, 햄버거 우측 */
.header-inner { gap: 10px; justify-content: space-between; }
.logo-text { font-size: 1.05rem; }

/* Hero — 제목 한 줄 */
.hero-inner { padding: 38px 16px 32px; }
.hero-title { font-size: clamp(1.05rem, 5vw, 1.5rem); white-space: nowrap; }
.hero-sub { font-size: .92rem; }

/* 카테고리 그리드 — 2열 */
.cat-section { padding: 26px 0 40px; }
.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { padding: 16px 14px 14px; }
.cat-card-emoji { font-size: 1.6rem; }
.cat-card-name { font-size: .98rem; }
.cat-card-desc { font-size: .76rem; }
.cat-card-count { top: 12px; right: 12px; }

/* 모바일 광고 전환 */
.ad-mobile-only { display: block !important; }

/* ---------- 모바일 사이드바 ---------- */
.mobile-nav-overlay {
  display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 998;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav-sidebar {
  display: flex; flex-direction: column; position: fixed; top: 0; right: 0;
  width: 290px; max-width: 84vw; height: 100%; background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,.12); transform: translateX(100%);
  transition: transform .34s cubic-bezier(.22,.68,0,1); z-index: 999; overflow-y: auto;
}
.mobile-nav-sidebar.open { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mobile-nav-title { font-size: 1.05rem; font-weight: 700; }
.mobile-nav-close { background: none; border: none; font-size: 1.4rem; color: var(--text-light); cursor: pointer; }
.mobile-nav-body { flex: 1; padding: 6px 0; }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; color: var(--text); font-size: .92rem; font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav-link.active { color: var(--primary-dark); background: var(--primary-soft); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); }
.mobile-nav-footer { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg-soft); display: flex; flex-wrap: wrap; gap: 14px; }
.mobile-nav-footer a { font-size: .82rem; color: var(--text-muted); }

/* ---------- 모바일 하단 고정 네비 ---------- */
.mobile-bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 58px;
  background: rgba(255,255,255,.98); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(0,0,0,.06); z-index: 997;
}
.mobile-bottom-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-light); background: none; border: none; cursor: pointer; font: inherit;
}
.mobile-bottom-item.active { color: var(--primary); }
.mobile-bottom-icon { font-size: 1.25rem; }
.mobile-bottom-label { font-size: .66rem; font-weight: 600; }

/* 하단 네비/앵커 광고만큼 본문 여백 확보 */
.main { padding-bottom: 64px; }
.footer { padding-bottom: 64px; }

/* 모바일 앵커 광고 */
.ad-mobile-anchor {
  display: block; position: fixed; bottom: 58px; left: 0; right: 0; z-index: 996;
  text-align: center; background: rgba(255,255,255,.98); border-top: 1px solid var(--border); padding: 3px 0;
}
.ad-mobile-anchor:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }

/* 모달 */
.feedback-dialog { max-width: 100%; }

/* 카테고리 페이지 */
.page-title { font-size: 1.25rem; }
.filter-bar { gap: 9px; padding: 12px; }
.filter-group select, .filter-group input { min-width: 0; width: 100%; }
.filter-group { flex: 1 1 44%; }
.filter-group--grow { flex: 1 1 100%; }
.filter-actions { flex: 1 1 100%; }
.filter-actions .btn { flex: 1; }
.fac-list { grid-template-columns: 1fr; }
.map-canvas { height: 60vh; min-height: 380px; }
.detail-table th { width: 100px; font-size: .82rem; }
.detail-table td { font-size: .86rem; }
.charger-grid { grid-template-columns: repeat(2, 1fr); }
