/**
 * 생활지도 - 메인 스타일시트
 * Primary: #0EA5E9 (sky blue) / Secondary: #F97316 (warm orange)
 */

:root {
    --hc-primary: #0EA5E9;
    --hc-primary-dark: #0284C7;
    --hc-primary-light: #E0F2FE;
    --hc-secondary: #F97316;
    --hc-secondary-light: #FFF7ED;
    --hc-text: #1F2937;
    --hc-text-light: #6B7280;
    --hc-bg: #F9FAFB;
    --hc-card: #FFFFFF;
    --hc-border: #E5E7EB;
    --hc-radius: 12px;
    --hc-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --hc-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

/* Bootstrap 링크 기본값 재설정 */
a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--hc-text);
    background: var(--hc-bg);
    line-height: 1.6;
    padding-bottom: 0;
}

/* 모바일 하단 네비 공간 확보 */
@media (max-width: 767.98px) {
    body { padding-bottom: 64px; }
}

/* ─── 헤더 ─── */
.hc-header {
    background: var(--hc-card);
    border-bottom: 1px solid var(--hc-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.2s;
}
.hc-header.scrolled {
    box-shadow: var(--hc-shadow-md);
}
.hc-nav {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 24px;
}
.hc-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.hc-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--hc-primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.hc-logo-icon-sm {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 8px;
}
.hc-logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--hc-text);
}
.hc-nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
}
.hc-nav-link {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hc-text-light);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.hc-nav-link:hover {
    color: var(--hc-primary);
    background: var(--hc-primary-light);
}
.hc-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.hc-search-form {
    display: flex;
    align-items: center;
    background: var(--hc-bg);
    border-radius: 10px;
    border: 1px solid var(--hc-border);
    padding: 2px;
    transition: border-color 0.2s;
}
.hc-search-form:focus-within {
    border-color: var(--hc-primary);
}
.hc-search-input {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 0.875rem;
    width: 180px;
    outline: none;
    font-family: inherit;
}
.hc-search-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    color: var(--hc-text-light);
    cursor: pointer;
}
.hc-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    color: var(--hc-text);
    cursor: pointer;
}

/* ─── 모바일 메뉴 ─── */
.hc-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}
.hc-mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.hc-mobile-menu-inner {
    background: var(--hc-card);
    padding: 16px;
    border-bottom: 1px solid var(--hc-border);
    box-shadow: var(--hc-shadow-md);
}
.hc-mobile-search {
    margin-bottom: 12px;
}
.hc-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hc-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--hc-text);
    font-size: 0.95rem;
    font-weight: 500;
}
.hc-mobile-link:hover {
    background: var(--hc-bg);
}
.hc-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
body.menu-open { overflow: hidden; }

/* ─── 브레드크럼 ─── */
.hc-breadcrumb {
    background: var(--hc-card);
    border-bottom: 1px solid var(--hc-border);
    padding: 8px 0;
}
.hc-breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: var(--hc-text-light);
}
.hc-breadcrumb-list li::after {
    content: '›';
    margin-left: 4px;
    color: var(--hc-border);
}
.hc-breadcrumb-list li:last-child::after { content: ''; }
.hc-breadcrumb-list li.active { color: var(--hc-text); font-weight: 500; }
.hc-breadcrumb-list a {
    color: var(--hc-text-light);
    text-decoration: none;
}
.hc-breadcrumb-list a:hover { color: var(--hc-primary); }

/* ─── 메인 컨텐츠 ─── */
.hc-main {
    min-height: 60vh;
}

/* ─── 카드 ─── */
.hc-card {
    background: var(--hc-card);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    padding: 24px;
    margin-bottom: 16px;
}
.hc-card-sm { padding: 16px; }

/* ─── 히어로 (메인 페이지) ─── */
.hc-hero {
    background: linear-gradient(135deg, var(--hc-primary) 0%, #38BDF8 100%);
    color: #fff;
    padding: 48px 0 40px;
    text-align: center;
}
.hc-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.hc-hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}
.hc-hero-search {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hc-hero-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    color: var(--hc-text);
    font-family: inherit;
}
.hc-hero-search button {
    background: var(--hc-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.hc-hero-search button:hover { background: var(--hc-primary-dark); }

@media (max-width: 767.98px) {
    .hc-hero { padding: 32px 0 28px; }
    .hc-hero h1 { font-size: 1.4rem; }
}

/* ─── 카테고리 그리드 ─── */
.hc-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (min-width: 768px) {
    .hc-cat-grid { grid-template-columns: repeat(6, 1fr); }
}
.hc-cat-card {
    background: var(--hc-card);
    border-radius: var(--hc-radius);
    padding: 20px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--hc-text);
    transition: all 0.2s;
    box-shadow: var(--hc-shadow);
}
.hc-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hc-shadow-md);
    color: var(--hc-text);
}
.hc-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.4rem;
}
.hc-cat-card .name {
    font-weight: 600;
    font-size: 0.88rem;
}

/* ─── 시설 리스트 카드 ─── */
.hc-facility-card {
    background: var(--hc-card);
    border-radius: var(--hc-radius);
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: var(--hc-shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: var(--hc-text);
    transition: all 0.15s;
}
.hc-facility-card:hover {
    box-shadow: var(--hc-shadow-md);
    color: var(--hc-text);
}
.hc-facility-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}
.hc-facility-info { flex: 1; min-width: 0; }
.hc-facility-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hc-facility-addr {
    font-size: 0.82rem;
    color: var(--hc-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hc-facility-arrow {
    color: var(--hc-border);
    flex-shrink: 0;
    align-self: center;
}

/* ─── 상세 페이지 ─── */
.hc-detail-header {
    padding: 32px 0 24px;
}
.hc-detail-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.hc-detail-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.hc-detail-addr {
    color: var(--hc-text-light);
    font-size: 0.9rem;
}
.hc-info-table {
    width: 100%;
}
.hc-info-table th {
    width: 100px;
    font-size: 0.82rem;
    color: var(--hc-text-light);
    font-weight: 500;
    padding: 10px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--hc-border);
}
.hc-info-table td {
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--hc-border);
    word-break: keep-all;
}

/* ─── 지역 선택 ─── */
.hc-region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 576px) {
    .hc-region-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
    .hc-region-grid { grid-template-columns: repeat(4, 1fr); }
}
.hc-region-btn {
    display: block;
    padding: 12px;
    background: var(--hc-card);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--hc-text);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--hc-border);
    transition: all 0.15s;
}
.hc-region-btn:hover {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
    background: var(--hc-primary-light);
}
.hc-region-btn .count {
    display: block;
    font-size: 0.75rem;
    color: var(--hc-text-light);
    font-weight: 400;
    margin-top: 2px;
}

/* ─── 섹션 ─── */
.hc-section {
    padding: 32px 0;
}
.hc-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.hc-section-sub {
    color: var(--hc-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ─── 페이지네이션 ─── */
.pagination .page-link {
    color: var(--hc-text-light);
    border-color: var(--hc-border);
    border-radius: 8px;
    margin: 0 2px;
    font-size: 0.85rem;
}
.pagination .page-item.active .page-link {
    background: var(--hc-primary);
    border-color: var(--hc-primary);
    color: #fff;
}

/* ─── 서브카테고리 리스트 ─── */
.hc-sub-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 768px) {
    .hc-sub-list { grid-template-columns: repeat(3, 1fr); }
}
.hc-sub-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--hc-card);
    border-radius: 10px;
    text-decoration: none;
    color: var(--hc-text);
    box-shadow: var(--hc-shadow);
    transition: all 0.15s;
}
.hc-sub-card:hover {
    box-shadow: var(--hc-shadow-md);
    transform: translateY(-1px);
    color: var(--hc-text);
}
.hc-sub-card .name {
    font-weight: 600;
    font-size: 0.9rem;
}
.hc-sub-card .count {
    font-size: 0.78rem;
    color: var(--hc-text-light);
}

/* ─── 시군구 필터 ─── */
.hc-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.hc-filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--hc-border);
    background: var(--hc-card);
    color: var(--hc-text-light);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s;
}
.hc-filter-chip:hover,
.hc-filter-chip.active {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
    background: var(--hc-primary-light);
}

/* ─── 푸터 ─── */
.hc-footer {
    background: #1F2937;
    color: #9CA3AF;
    padding: 40px 0 24px;
    font-size: 0.85rem;
}
.hc-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.hc-footer-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.hc-footer-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.hc-footer-title {
    color: #D1D5DB;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.hc-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hc-footer-links li { margin-bottom: 6px; }
.hc-footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.82rem;
}
.hc-footer-links a:hover { color: #fff; }
.hc-footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 24px;
    padding-top: 16px;
    font-size: 0.78rem;
    color: #6B7280;
}
.hc-footer-contact { margin-top: 4px; }

/* ─── 모바일 하단 네비 ─── */
.hc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hc-card);
    border-top: 1px solid var(--hc-border);
    display: flex;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}
.hc-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--hc-text-light);
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.15s;
}
.hc-bottom-item.active {
    color: var(--hc-primary);
}

/* ─── 통계 카드 ─── */
.hc-stat-card {
    text-align: center;
    padding: 20px;
}
.hc-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--hc-primary);
}
.hc-stat-label {
    font-size: 0.82rem;
    color: var(--hc-text-light);
    margin-top: 2px;
}

/* ─── 소스 노트 ─── */
.hc-source-note {
    background: #FFF7ED;
    border-left: 3px solid var(--hc-secondary);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    color: #92400E;
    line-height: 1.6;
}

/* ─── 액션 버튼 (상세 페이지) ─── */
.hc-action-bar {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.hc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1;
}
.hc-action-call { background: #059669; color: #fff; }
.hc-action-call:hover { background: #047857; color: #fff; }
.hc-action-map { background: var(--hc-primary); color: #fff; }
.hc-action-map:hover { background: var(--hc-primary-dark); color: #fff; }
.hc-action-copy { background: var(--hc-bg); color: var(--hc-text); border: 1px solid var(--hc-border); }
.hc-action-copy:hover { background: var(--hc-border); }

/* ─── 하이라이트 그리드 ─── */
.hc-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 768px) {
    .hc-highlight-grid { grid-template-columns: repeat(3, 1fr); }
}
.hc-highlight-item {
    background: var(--hc-bg);
    border-radius: 8px;
    padding: 12px;
}
.hc-highlight-label {
    font-size: 0.75rem;
    color: var(--hc-text-light);
    margin-bottom: 4px;
}
.hc-highlight-value {
    font-weight: 600;
    font-size: 0.9rem;
    word-break: keep-all;
}

/* ─── Y/N 배지 ─── */
.hc-badge-yes {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #ECFDF5;
    color: #059669;
    font-size: 0.82rem;
    font-weight: 600;
}
.hc-badge-no {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #FEF2F2;
    color: #DC2626;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ─── 사이드바 아이콘 ─── */
.hc-sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── 주변 시설 ─── */
.hc-nearby-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--hc-border);
    text-decoration: none;
    color: var(--hc-text);
}
.hc-nearby-item:last-child { border-bottom: none; }
.hc-nearby-item:hover .hc-nearby-name { color: var(--hc-primary); }
.hc-nearby-name { font-weight: 600; font-size: 0.88rem; transition: color 0.15s; }
.hc-nearby-sub { font-size: 0.78rem; color: var(--hc-text-light); margin-top: 2px; }
.hc-nearby-phone { margin-left: 8px; color: var(--hc-primary); }
.hc-more-link {
    display: block;
    padding-top: 8px;
    font-size: 0.85rem;
    color: var(--hc-primary);
    text-decoration: none;
    font-weight: 500;
}
.hc-more-link:hover { text-decoration: underline; }

/* ─── 크로스 카테고리 ─── */
.hc-cross-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hc-cross-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--hc-border);
    text-decoration: none;
    color: var(--hc-text);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s;
}
.hc-cross-item:hover { border-color: var(--hc-primary); color: var(--hc-primary); }
.hc-cross-count { color: var(--hc-text-light); font-size: 0.75rem; }

/* ─── 카테고리 카드 건수 ─── */
.hc-cat-count {
    font-size: 0.75rem;
    color: var(--hc-text-light);
    margin-top: 2px;
}

/* ─── 인기 지역 ─── */
.hc-top-region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 768px) {
    .hc-top-region-grid { grid-template-columns: repeat(4, 1fr); }
}
.hc-top-region-card {
    background: var(--hc-card);
    border-radius: var(--hc-radius);
    padding: 16px;
    text-decoration: none;
    color: var(--hc-text);
    box-shadow: var(--hc-shadow);
    transition: all 0.15s;
}
.hc-top-region-card:hover {
    box-shadow: var(--hc-shadow-md);
    transform: translateY(-1px);
    color: var(--hc-text);
}
.hc-top-region-name { font-weight: 600; font-size: 0.9rem; }
.hc-top-region-count { font-size: 0.78rem; color: var(--hc-primary); font-weight: 500; margin-top: 4px; }

/* ─── 빠른 접근 ─── */
.hc-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hc-quick-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--hc-card);
    border-radius: 20px;
    border: 1px solid var(--hc-border);
    text-decoration: none;
    color: var(--hc-text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
}
.hc-quick-item:hover {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
    background: var(--hc-primary-light);
}
.hc-quick-name { white-space: nowrap; }
.hc-quick-count { font-size: 0.75rem; color: var(--hc-text-light); }

/* ─── 지역 시설 미리보기 ─── */
.hc-region-sub-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--hc-border);
}
.hc-region-sub-row:last-child { border-bottom: none; }
.hc-region-sub-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--hc-text);
    font-weight: 600;
    font-size: 0.95rem;
}
.hc-region-sub-link:hover { color: var(--hc-primary); }
.hc-region-sub-count { font-size: 0.82rem; color: var(--hc-text-light); font-weight: 400; }
.hc-region-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 8px;
}
.hc-region-preview-link {
    font-size: 0.82rem;
    color: var(--hc-text-light);
    text-decoration: none;
}
.hc-region-preview-link::before { content: '· '; }
.hc-region-preview-link:hover { color: var(--hc-primary); }
.hc-region-preview-more {
    font-size: 0.78rem;
    color: var(--hc-primary);
    text-decoration: none;
    font-weight: 500;
}

/* ─── 목록 전화번호 ─── */
.hc-facility-phone {
    font-size: 0.78rem;
    color: var(--hc-primary);
    margin-top: 2px;
}

/* ─── 검색 배지 ─── */
.hc-search-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 6px;
    vertical-align: middle;
}
mark {
    background: #FEF08A;
    padding: 0 2px;
    border-radius: 2px;
}

/* ─── 카테고리 서브 리스트 (고도화) ─── */
.hc-cat-sub-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 768px) {
    .hc-cat-sub-list { grid-template-columns: repeat(2, 1fr); }
}
.hc-cat-sub-card {
    display: block;
    padding: 16px 20px;
    background: var(--hc-card);
    border-radius: var(--hc-radius);
    text-decoration: none;
    color: var(--hc-text);
    box-shadow: var(--hc-shadow);
    transition: all 0.15s;
}
.hc-cat-sub-card:hover {
    box-shadow: var(--hc-shadow-md);
    transform: translateY(-1px);
    color: var(--hc-text);
}
.hc-cat-sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hc-cat-dot-lg {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hc-cat-sub-name { font-weight: 600; font-size: 0.95rem; }
.hc-cat-sub-count { font-size: 0.78rem; color: var(--hc-text-light); }
.hc-cat-sub-desc {
    font-size: 0.82rem;
    color: var(--hc-text-light);
    margin-top: 8px;
    padding-left: 26px;
    line-height: 1.5;
}

/* ─── 맨 위로 버튼 ─── */
.hc-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hc-card);
    border: 1px solid var(--hc-border);
    box-shadow: var(--hc-shadow-md);
    color: var(--hc-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 900;
}
.hc-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.hc-to-top:hover {
    color: var(--hc-primary);
    border-color: var(--hc-primary);
}
@media (min-width: 768px) {
    .hc-to-top { bottom: 30px; right: 30px; }
}

/* ─── 지도 ─── */
.hc-map-card { padding: 16px; }
.hc-map-wrap { border-radius: 8px; overflow: hidden; }

/* ─── Facebook 공유 ─── */
.hc-action-share { background: #1877F2; color: #fff; }
.hc-action-share:hover { background: #166FE5; color: #fff; }

/* ─── 시설 유형 배지 ─── */
.hc-type-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--hc-bg);
    border: 1px solid var(--hc-border);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--hc-text-light);
    margin-left: 6px;
    vertical-align: middle;
}

/* ─── 키오스크 서류 목록 (카테고리 그룹형) ─── */
.hc-kiosk-cat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hc-kiosk-cat-item {
    padding: 10px 14px;
    background: var(--hc-bg);
    border-radius: 8px;
    border-left: 3px solid var(--hc-primary);
}
.hc-kiosk-cat-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hc-primary);
    margin-bottom: 6px;
}
.hc-kiosk-doc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.hc-kiosk-doc {
    display: inline-block;
    padding: 2px 8px;
    background: var(--hc-card);
    border: 1px solid var(--hc-border);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--hc-text);
}

/* ─── 지역 특성 문구 카드 ─── */
.hc-region-character-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--hc-primary-light);
    border-left: 3px solid var(--hc-primary);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--hc-text);
    line-height: 1.6;
}
.hc-region-character-icon { flex-shrink: 0; font-size: 1rem; }

/* ─── 시군구 통계 + 카테고리 바 ─── */
.hc-region-stat-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.hc-region-stat-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding-right: 24px;
    border-right: 1px solid var(--hc-border);
}
.hc-region-stat-cats { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hc-region-cat-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 4px;
}
.hc-region-cat-bar-count { color: var(--hc-text-light); }
.hc-region-cat-bar-track {
    height: 6px;
    background: var(--hc-bg);
    border-radius: 3px;
    overflow: hidden;
}
.hc-region-cat-bar-fill {
    height: 100%;
    border-radius: 3px;
    min-width: 4px;
    transition: width 0.6s ease;
}
@media (max-width: 767.98px) {
    .hc-region-stat-header { flex-direction: column; gap: 16px; }
    .hc-region-stat-total {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid var(--hc-border);
        padding-right: 0;
        padding-bottom: 12px;
        width: 100%;
    }
    .hc-region-stat-total .hc-stat-num { font-size: 1.4rem; }
}

/* ─── 카테고리 섹션 타이틀 (지역 페이지) ─── */
.hc-region-cat-title {
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 0 8px 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hc-region-cat-title-count {
    font-size: 0.82rem;
    color: var(--hc-text-light);
    font-weight: 400;
    margin-left: auto;
}

/* ─── 서울 권역별 자치구 ─── */
.hc-seoul-groups { display: flex; flex-direction: column; gap: 16px; }
.hc-seoul-group {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    overflow: hidden;
}
.hc-seoul-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.9rem;
}
.hc-seoul-group-sub {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.75;
    margin-left: auto;
}
.hc-seoul-group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: var(--hc-card);
}
@media (min-width: 576px) {
    .hc-seoul-group-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
    .hc-seoul-group-grid { grid-template-columns: repeat(5, 1fr); }
}
.hc-seoul-gu-btn:hover {
    border-color: var(--gu-color, var(--hc-primary));
    color: var(--gu-color, var(--hc-primary));
    background: color-mix(in srgb, var(--gu-color, var(--hc-primary)) 8%, white);
}

/* ─── 404 페이지 ─── */
.hc-404-wrap {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding-top: 48px;
}
.hc-404-icon { font-size: 3.5rem; margin-bottom: 16px; }
.hc-404-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.hc-404-desc { color: var(--hc-text-light); line-height: 1.8; margin-bottom: 28px; }
.hc-404-search {
    box-shadow: var(--hc-shadow);
    max-width: 100%;
    margin-bottom: 36px;
}

/* ─── 자동완성 드롭다운 ─── */
.hc-autocomplete-drop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--hc-card);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow-md);
    z-index: 1200;
    max-height: 340px;
    overflow-y: auto;
    display: none;
}
.hc-autocomplete-drop.open { display: block; }
.hc-autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--hc-border);
    color: var(--hc-text);
    font-size: 0.88rem;
    transition: background 0.1s;
}
.hc-autocomplete-item:last-child { border-bottom: none; }
.hc-autocomplete-item:hover,
.hc-autocomplete-item.active {
    background: var(--hc-primary-light);
}
.hc-autocomplete-label { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-autocomplete-label mark { background: #FEF08A; color: var(--hc-text); border-radius: 2px; padding: 0 1px; }
.hc-autocomplete-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hc-autocomplete-type {
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--hc-bg);
    border: 1px solid var(--hc-border);
    color: var(--hc-text-light);
    white-space: nowrap;
}
.hc-autocomplete-sub { font-size: 0.78rem; color: var(--hc-text-light); white-space: nowrap; }

/* ─── 유틸리티 ─── */
.text-brand { color: var(--hc-primary) !important; }
.bg-brand-light { background: var(--hc-primary-light) !important; }
.rounded-hc { border-radius: var(--hc-radius) !important; }

/* ─── 카테고리 페이지 강화 섹션 ─── */
.hc-cat-intro { padding: 18px 20px; }
.hc-cat-sub-h2 {
    font-size: 1.1rem; font-weight: 700; margin: 8px 0 8px;
    padding-left: 10px; border-left: 3px solid var(--hc-primary);
}
.hc-cat-top-grid {
    display: grid; gap: 10px; margin-bottom: 8px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.hc-cat-top-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; background: var(--hc-card); border: 1px solid var(--hc-border);
    border-radius: 10px; text-decoration: none; color: var(--hc-text);
    transition: border-color 0.15s, background 0.15s;
}
.hc-cat-top-card:hover { border-color: var(--hc-primary); background: var(--hc-primary-light); }
.hc-cat-top-rank {
    font-size: 0.78rem; font-weight: 700; color: var(--hc-primary);
    padding: 2px 6px; background: var(--hc-primary-light); border-radius: 4px;
}
.hc-cat-top-name { flex: 1; font-size: 0.94rem; }
.hc-cat-top-count { font-size: 0.84rem; color: var(--hc-text-light); font-weight: 600; }
.hc-cat-faq-list { display: flex; flex-direction: column; gap: 8px; }
.hc-cat-faq-item {
    padding: 12px 16px; background: var(--hc-card);
    border: 1px solid var(--hc-border); border-radius: 10px;
}
.hc-cat-faq-q { font-weight: 600; cursor: pointer; list-style: none; }
.hc-cat-faq-q::-webkit-details-marker { display: none; }
.hc-cat-faq-q::before { content: '▸ '; color: var(--hc-primary); display: inline-block; transition: transform 0.15s; }
.hc-cat-faq-item[open] .hc-cat-faq-q::before { content: '▾ '; }
.hc-cat-faq-a { margin: 10px 0 0; color: var(--hc-text-light); line-height: 1.65; }
