/* 동물병원 사이트 전용 컴포넌트 스타일 (병원 theme CSS 위에 얹음) */

/* ── 디자인 통일 형태 토큰 (전 테마 공통, 색 토큰은 theme-*.css) ── */
:root {
    --radius-card: 10px;
    --radius-pill: 999px;
    --radius-inner: 8px;
    --card-pad: 16px;
    --card-pad-lg: 20px;
    --gap-grid: 12px;
    --section-gap: 28px;
}

/* 메인 — 병원 사이트와 동일 단순 컨테이너 (사이드 컬럼 없음, full-width) */
.main-col,
.main-col-fullwidth { min-width: 0; width: 100%; }

/* 추천/최근 위젯 — 사이드에서 본문 아래로 옮긴 후 가로 2열 */
.side-widget {
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 10px);
    box-sizing: border-box;
    margin-right: 16px;
}
.side-widget:nth-of-type(2) { margin-right: 0; }
@media (max-width: 800px) {
    .side-widget { display: block; width: 100%; margin-right: 0; }
}

/* 카테고리 칩 바 */
/* 전역 내비게이션 — 포털 척추. 데스크톱 가운데 캡, 모바일 가로 스크롤. */
.global-nav {
    background: var(--header-bg, #fff);
    border-bottom: 1px solid var(--border-color, #e0e6ed);
}
.global-nav-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
}
.global-nav-inner::-webkit-scrollbar { height: 0; }
.gnav-brand {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-strong, #2c3e50);
    text-decoration: none;
}
.gnav-links { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.gnav-link {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary, #2c3e50);
    text-decoration: none;
}
.gnav-link:hover { background: var(--accent-soft, rgba(52, 152, 219, 0.10)); }
.gnav-link.active { color: var(--accent, var(--accent-color, #3498db)); font-weight: 700; }
.gnav-link--accent { color: var(--accent-bg, #2a2a2a); font-weight: 700; }
.gnav-sep { flex: 0 0 auto; width: 1px; height: 18px; background: var(--border-color, #e0e6ed); }

.category-chip-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 8px;
}
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    color: var(--text-primary, #2c3e50);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.category-chip:hover {
    background: var(--accent-color, #3498db);
    color: var(--surface-base, #fff);
    border-color: var(--accent-color, #3498db);
}
.category-chip.active {
    background: var(--accent-color, #3498db);
    color: var(--surface-base, #fff);
    border-color: var(--accent-color, #3498db);
}
.category-chip .chip-icon { font-size: 16px; }
.category-chip .chip-count {
    font-size: 12px;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 2px 8px;
    border-radius: 999px;
}
.category-chip.active .chip-count { background: rgba(255,255,255,0.25); }
.category-chip.chip-back {
    background: transparent;
    border-style: dashed;
}

/* 의도 회유 하이라이트 — 지역 허브에서 24시/휴일 리스트로 보내는 박스 */
.intent-highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--accent-soft, rgba(52, 152, 219, 0.08));
    border: 1px solid var(--border-color, #e0e6ed);
}
.intent-highlight-title { font-size: 14px; font-weight: 700; color: var(--text-strong, #2c3e50); }
.intent-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.intent-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-bg, #2a2a2a);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.intent-pill:hover { opacity: 0.9; }

/* 의도별 필터 칩 (24시/휴일진료) — 동물병원 리스트 상단. 콤보 아닌 SSR 링크. */
.open-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 12px;
}
.open-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    color: var(--text-primary, #2c3e50);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.open-chip:hover { border-color: var(--accent-bg, #2a2a2a); }
.open-chip.active {
    background: var(--accent-bg, #2a2a2a);
    color: #fff;
    border-color: var(--accent-bg, #2a2a2a);
}
/* '지금 진료중' — 실제 영업 신호. snow 유일 vivid(--new 주황)로 강조. */
.open-chip--now.active { background: var(--new, #ff4800); border-color: var(--new, #ff4800); }
.intent-pill--now { background: var(--new, #ff4800); }

/* 홈 히어로 '급할 때' 긴급칩 — 어두운 히어로 위라 3개 모두 밝게(안 묻히게).
   지금=주황(--new) / 24시=반투명 라이트(야간 느낌) / 휴일=흰색 */
.home-urgent { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.home-u {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: var(--radius-pill, 999px);
    border: 1px solid var(--border-base, #d0d0d0); background: var(--surface-base, #fff);
    color: var(--text-strong, #2a2a2a); font-size: 14px; font-weight: 700; text-decoration: none;
}
.home-u--now { background: var(--new, #ff4800); color: #fff; border-color: var(--new, #ff4800); }
.home-u--24 { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.home-u--24:hover { background: rgba(255,255,255,.24); }

/* 지역 동물병원 통계 — 개설일자 기반 자동 prose (고유 콘텐츠) */
.region-stats {
    margin: 14px 0;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--box-bg, #f7f9fb);
    border: 1px solid var(--border-color, #e0e6ed);
}
.region-stats-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.region-stats p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-secondary, #5a6c7d); }

/* 상세 찜(저장) 버튼 — detail-action 변형 */
.detail-action--save {
    flex: 0 0 auto;
    background: var(--card-bg, #fff);
    color: var(--text-primary, #2c3e50);
    border: 1px solid var(--border-color, #e0e6ed);
    cursor: pointer;
}
.detail-action--save.is-saved { background: var(--new, #ff4800); color: #fff; border-color: var(--new, #ff4800); }

/* 상세 fold 회유 — 이 동네 다른 카테고리 칩 */
.detail-sibling-chips {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 16px;
}
.dsc-label { font-size: 13px; font-weight: 700; color: var(--text-secondary, #5a6c7d); }
.dsc-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--accent-soft, rgba(52, 152, 219, 0.10));
    color: var(--accent, var(--accent-color, #3498db));
    font-size: 13px; font-weight: 600; text-decoration: none;
}

/* 최근 본 곳 / 찜한 곳 (홈, recall.js 가 채움) */
.recall-section { margin: 14px 0; }
.recall-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.recall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.recall-card {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 14px; border-radius: 10px;
    background: var(--card-bg, #fff); border: 1px solid var(--border-color, #e0e6ed);
    text-decoration: none;
}
.recall-card:hover { border-color: var(--accent, #3498db); }
.recall-card-name { font-weight: 700; color: var(--text-primary, #2c3e50); font-size: 14px; }
.recall-card-meta { font-size: 12px; color: var(--text-secondary, #5a6c7d); }
@media (min-width: 801px) { .recall-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===================================================================
   인터랙티브 도구 — 예방접종 계산기 (page_type='tool')
=================================================================== */
.tool-page { padding-bottom: 24px; }
.tool-calc {
    margin: 12px 0 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 12px;
    background: var(--accent-soft, rgba(52, 152, 219, 0.06));
}
.tool-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.tool-field { display: flex; flex-direction: column; gap: 6px; }
.tool-label { font-size: 13px; font-weight: 700; color: var(--text-strong, #2c3e50); }
.tool-radios { display: flex; gap: 8px; }
.tool-radio {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border-color, #e0e6ed); background: var(--card-bg, #fff);
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.tool-radio input { accent-color: var(--accent, #3498db); }
#petBirth {
    padding: 9px 12px; border-radius: 8px;
    border: 1px solid var(--border-color, #e0e6ed); font-size: 15px; min-height: 42px;
}
.tool-submit {
    padding: 0 18px; min-height: 44px; border: 0; border-radius: 8px;
    background: var(--accent, #3498db); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.tool-result { margin-top: 16px; }
.tool-next {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
    padding: 14px 16px; border-radius: 10px; background: var(--accent-bg, #2a2a2a); color: #fff; margin-bottom: 14px;
}
.tool-next-label { font-size: 13px; opacity: .85; }
.tool-next-date { font-size: 20px; font-weight: 800; }
.tool-dday { font-size: 13px; font-weight: 700; background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 999px; }
.tool-next-items { flex-basis: 100%; font-size: 14px; opacity: .95; }
.tool-next--done { background: var(--card-bg-hover, rgba(0,0,0,.04)); color: var(--text-secondary, #5a6c7d); }
.tool-timeline { list-style: none; margin: 0 0 14px; padding: 0; }
.tool-timeline li {
    display: grid; grid-template-columns: 96px 84px 1fr; gap: 8px; align-items: center;
    padding: 9px 10px; border-bottom: 1px solid var(--border-color, #e0e6ed); font-size: 14px;
}
.tool-timeline li.is-next { background: var(--accent-soft, rgba(52,152,219,.10)); border-radius: 8px; font-weight: 700; }
.tool-timeline li.is-past { opacity: .5; }
.tool-tl-date { color: var(--text-strong, #2c3e50); font-weight: 600; }
.tool-tl-when { color: var(--text-secondary, #5a6c7d); font-size: 13px; }
.tool-reference { margin: 8px 0 18px; }
.tool-ref-block { margin-bottom: 16px; }
.tool-ref-block h3 { margin: 0 0 8px; font-size: 16px; }
.tool-ref-block h3 small { color: var(--text-muted, #95a5a6); font-weight: 500; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool-table th, .tool-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-color, #e0e6ed); }
.tool-table th { color: var(--text-secondary, #5a6c7d); font-size: 13px; }
.tool-when { white-space: nowrap; color: var(--accent, #3498db); font-weight: 600; }
.tool-disclaim { margin-top: 10px; font-size: 13px; color: var(--text-muted, #95a5a6); line-height: 1.6; }
.tool-cta { margin-top: 8px; }
.tool-cta-main {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 18px; border-radius: 10px;
    background: var(--accent, #3498db); color: #fff; font-weight: 700; text-decoration: none;
}
.tool-cta-sub { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.tool-cta-sub a { color: var(--accent, #3498db); text-decoration: none; font-size: 14px; }
@media (max-width: 560px) {
    .tool-timeline li { grid-template-columns: 88px 1fr; }
    .tool-tl-when { display: none; }
}

/* ===================================================================
   유실·유기동물 — page_type in ['adopt','lost']  (입양 / 분실)
=================================================================== */
.sec-title { font-size: 19px; font-weight: 800; color: var(--text-strong, #2a2a2a); margin: 26px 0 12px; }

/* ── 히어로 (짧은 다크 모노 배너) ── */
.rescue-hero {
    background: linear-gradient(180deg, var(--n-800, #2a2a2a) 0%, var(--n-900, #0a0a0a) 100%);
    color: #fff; padding: 22px 0 20px; margin-bottom: 4px;
}
.rescue-bc { margin-bottom: 8px; }
.rescue-bc a, .rescue-bc .current, .rescue-bc .breadcrumb-separator { color: rgba(255,255,255,.72); }
.rescue-bc a:hover { color: #fff; }
.rescue-title { color: #fff; font-size: 24px; font-weight: 800; margin: 0; line-height: 1.25; }
.rescue-title small { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.7); margin-left: 4px; }
.rescue-sub { color: rgba(255,255,255,.82); font-size: 14px; margin: 6px 0 0; }
/* 형제 섹션 토글 (입양 ↔ 분실) */
.rescue-switch { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px;
    background: rgba(255,255,255,.10); border-radius: var(--radius-pill, 999px); }
.rescue-switch-btn {
    padding: 7px 16px; border-radius: var(--radius-pill, 999px);
    font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.82); text-decoration: none;
}
.rescue-switch-btn.on { background: #fff; color: var(--n-900, #111); }

/* ── 규모 배지 ── */
.rescue-badge {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
    margin: 16px 0 4px; padding: 14px 18px; border-radius: var(--radius-card, 10px);
    background: var(--accent-soft, rgba(0,0,0,.05)); border: 1px solid var(--border-color, #e2e2e2);
}
.rescue-badge-num { font-size: 26px; font-weight: 800; color: var(--new, #ff4800); letter-spacing: -.02em; }
.rescue-badge-txt { font-size: 14px; color: var(--text-secondary, #5b5b5b); }
.rescue-badge-sp { display: block; margin-top: 3px; font-size: 13px; color: var(--text-meta, #8b8b8b); }
.rescue-badge-sp b { color: var(--text-strong, #2a2a2a); }

/* ── 카드 그리드 ── */
.adopt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.adopt-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--border-color, #e2e2e2); border-radius: var(--radius-card, 10px);
    background: var(--card-bg, #fff); transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
    text-decoration: none; color: inherit;   /* 카드 전체가 링크 */
}
.adopt-more { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--new, #ff4800); }
.adopt-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); transform: translateY(-2px); border-color: var(--n-300, #cfcfcf); }
.adopt-photo {
    position: relative; aspect-ratio: 1 / 1; background: var(--surface-hover, #f4f4f4);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.adopt-photo img { width: 100%; height: 100%; object-fit: cover; }
.adopt-photo .adopt-ph { position: absolute; font-size: 38px; opacity: .3; }
.adopt-photo img + .adopt-ph { display: none; }
.adopt-photo.noimg .adopt-ph { display: block; }
/* 상태 태그 (사진 위 오버레이) */
.adopt-tag {
    position: absolute; top: 8px; left: 8px; z-index: 1;
    padding: 3px 9px; border-radius: var(--radius-pill, 999px);
    font-size: 11.5px; font-weight: 700; color: #fff;
    background: var(--n-800, #2a2a2a);
}
.adopt-tag--lost { background: var(--new, #ff4800); }
.adopt-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.adopt-title { font-weight: 700; font-size: 15px; color: var(--text-strong, #2a2a2a); }
.adopt-meta { font-size: 13px; color: var(--text-secondary, #5b5b5b); }
.adopt-mark { margin: 4px 0; font-size: 12.5px; color: var(--text-body, #414141); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adopt-foot { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px;
    font-size: 12px; color: var(--text-meta, #8b8b8b); }
.adopt-loc { font-weight: 600; color: var(--text-secondary, #5b5b5b); }
.adopt-org { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adopt-notice { font-weight: 600; color: var(--new, #ff4800); }
.adopt-disclaim {
    margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-inner, 8px);
    background: var(--box-bg, #f7f7f7); font-size: 12.5px; line-height: 1.6; color: var(--text-meta, #7b7b7b);
}
.adopt-disclaim strong { color: var(--text-secondary, #5b5b5b); }
.adopt-cta { margin-top: 24px; }

@media (max-width: 560px) {
    .adopt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .adopt-body { padding: 9px 11px 11px; gap: 2px; }
    .adopt-mark { -webkit-line-clamp: 1; margin: 2px 0; }
    .adopt-title { font-size: 14px; }
    .rescue-title { font-size: 20px; }
    .rescue-badge-num { font-size: 22px; }
}

/* ── 홈 유기견 쇼케이스 (page_type='nationwide' 상단 티저) ── */
.rescue-home {
    margin: 18px 0 8px; padding: 18px;
    border-radius: var(--radius-card, 10px);
    background: var(--box-bg, #f7f7f7); border: 1px solid var(--border-color, #e2e2e2);
}
.rescue-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rescue-home-title { font-size: 19px; font-weight: 800; color: var(--text-strong, #2a2a2a); margin: 0; }
.rescue-home-more { font-size: 13.5px; font-weight: 700; color: var(--new, #ff4800); text-decoration: none; white-space: nowrap; }
.rescue-home-sub { margin: 6px 0 14px; font-size: 13.5px; color: var(--text-secondary, #5b5b5b); }
.rescue-home-sub b { color: var(--text-strong, #2a2a2a); }
.rescue-home-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rescue-home-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rescue-home-links a {
    flex: 1; min-width: 140px; text-align: center; padding: 11px 14px;
    border-radius: var(--radius-inner, 8px); font-weight: 700; font-size: 14px; text-decoration: none;
    background: var(--accent-bg, #2a2a2a); color: #fff;
}
.rescue-home-links a:hover { background: var(--n-900, #0a0a0a); }
@media (max-width: 560px) {
    .rescue-home-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 개별 동물 상세 (rescue_detail) ── */
.rescue-detail { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 22px; margin: 18px 0 8px; }
.rescue-detail-photo {
    position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-card, 10px); overflow: hidden;
    background: var(--surface-hover, #f4f4f4); display: flex; align-items: center; justify-content: center;
}
.rescue-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.rescue-detail-photo .adopt-ph { position: absolute; font-size: 54px; opacity: .3; }
.rescue-detail-photo img + .adopt-ph { display: none; }
.rescue-detail-photo.noimg .adopt-ph { display: block; }
.rescue-detail-photo .adopt-tag { position: absolute; top: 10px; left: 10px; }
.rescue-detail-info { min-width: 0; }
.rescue-dl { display: grid; grid-template-columns: 88px 1fr; gap: 8px 14px; margin: 0 0 16px; }
.rescue-dl dt { color: var(--text-meta, #8b8b8b); font-size: 13.5px; }
.rescue-dl dd { margin: 0; color: var(--text-strong, #2a2a2a); font-size: 14.5px; font-weight: 600; }
.rescue-mark { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-inner, 8px);
    background: var(--box-bg, #f7f7f7); }
.rescue-mark b { display: block; font-size: 13px; color: var(--text-meta, #8b8b8b); margin-bottom: 4px; }
.rescue-mark p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-body, #414141); }
.rescue-contact {
    margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius-card, 10px);
    background: var(--accent-soft, #f4f4f4); border: 1px solid var(--border-color, #e2e2e2);
}
.rescue-contact-title { font-weight: 800; font-size: 15px; color: var(--text-strong, #2a2a2a); margin-bottom: 6px; }
.rescue-contact-addr { font-size: 13.5px; color: var(--text-secondary, #5b5b5b); margin-bottom: 12px; }
.rescue-contact-note { font-size: 13px; line-height: 1.6; color: var(--text-secondary, #5b5b5b); margin: 4px 0 0; }
.rescue-call {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 48px; padding: 0 22px; border-radius: var(--radius-inner, 8px);
    background: var(--new, #ff4800); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none;
}
.rescue-call:hover { filter: brightness(.94); }
@media (max-width: 640px) {
    .rescue-detail { grid-template-columns: 1fr; gap: 16px; }
    .rescue-detail-photo { max-width: 340px; margin: 0 auto; width: 100%; }
    .rescue-call { width: 100%; }
}

/* ── 포탈 ↔ 입양 연결 배너 (지역/동/카테고리/상세) ── */
.rescue-xlink {
    display: block; margin: 0 0 16px; padding: 13px 16px;
    border-radius: var(--radius-card, 10px);
    background: var(--accent-soft, #f4f4f4); border: 1px solid var(--border-color, #e2e2e2);
    color: var(--text-strong, #2a2a2a); font-size: 14px; font-weight: 600;
    text-decoration: none; line-height: 1.5;
}
.rescue-xlink b { color: var(--new, #ff4800); }
.rescue-xlink:hover { border-color: var(--n-400, #b0b0b0); background: var(--surface-hover, #eee); }
.region-adopt { margin: 8px 0 4px; }
.region-adopt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.region-adopt-title { margin: 0 !important; }
.region-adopt-title small { font-size: 13px; font-weight: 600; color: var(--text-meta, #8b8b8b); }
.region-adopt-more { font-size: 13.5px; font-weight: 700; color: var(--new, #ff4800); text-decoration: none; white-space: nowrap; }

/* ── 데이터 랭킹 ── */
.rank-intro { margin: 4px 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary, #5b5b5b); }
.rank-sec { margin-bottom: 24px; }
.rank-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-color, #e2e2e2); border-radius: var(--radius-card, 10px); overflow: hidden; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border-soft, #eee); background: var(--card-bg, #fff); }
.rank-row:last-child { border-bottom: none; }
.rank-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--surface-hover, #f4f4f4); color: var(--text-meta, #8b8b8b); }
.rank-n1 { background: var(--new, #ff4800); color: #fff; }
.rank-n2 { background: var(--n-700, #414141); color: #fff; }
.rank-n3 { background: var(--n-500, #8b8b8b); color: #fff; }
.rank-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--text-strong, #2a2a2a); text-decoration: none; }
.rank-name:hover { text-decoration: underline; }
.rank-val { flex: 0 0 auto; font-size: 13.5px; font-weight: 600; color: var(--text-meta, #8b8b8b); }

/* 홈 볼거리 진입 (테스트·랭킹) */
.fun-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.fun-card { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    border-radius: var(--radius-card, 10px); background: var(--accent-soft, #f4f4f4); border: 1px solid var(--border-color, #e2e2e2);
    color: var(--text-strong, #2a2a2a); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.fun-card:hover { border-color: var(--n-400, #b0b0b0); background: var(--surface-hover, #eee); }
.fun-card .fun-emo { font-size: 22px; }

/* ── 견종 찾기 테스트 ── */
.bt-intro { margin: 4px 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary, #5b5b5b); }
.bt-q { margin-bottom: 18px; }
.bt-q-title { font-size: 16px; font-weight: 700; color: var(--text-strong, #2a2a2a); margin-bottom: 10px; }
.bt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-opt {
    padding: 10px 16px; border-radius: var(--radius-pill, 999px);
    border: 1px solid var(--border-color, #e2e2e2); background: var(--card-bg, #fff);
    color: var(--text-strong, #2a2a2a); font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .12s ease;
}
.bt-opt:hover { border-color: var(--n-400, #b0b0b0); }
.bt-opt.on { background: var(--accent-bg, #2a2a2a); border-color: var(--accent-bg, #2a2a2a); color: #fff; }
.bt-progress { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--text-meta, #8b8b8b); }
.bt-result { margin: 8px 0 20px; }
.bt-r-card {
    margin-bottom: 12px; padding: 16px 18px; border-radius: var(--radius-card, 10px);
    border: 1px solid var(--border-color, #e2e2e2); background: var(--card-bg, #fff);
}
.bt-r-card--top { border-color: var(--new, #ff4800); border-width: 2px; background: var(--accent-soft, #fff7f3); }
.bt-r-rank { font-size: 12.5px; font-weight: 800; color: var(--new, #ff4800); }
.bt-r-name { font-size: 20px; font-weight: 800; color: var(--text-strong, #2a2a2a); margin: 2px 0 6px; }
.bt-r-blurb { font-size: 14px; line-height: 1.6; color: var(--text-body, #414141); margin: 0 0 12px; }
.bt-r-links { display: flex; flex-wrap: wrap; gap: 10px; }
.bt-r-links a {
    padding: 9px 16px; border-radius: var(--radius-inner, 8px); font-size: 13.5px; font-weight: 700; text-decoration: none;
    border: 1px solid var(--border-color, #e2e2e2); color: var(--text-strong, #2a2a2a); background: var(--card-bg, #fff);
}
.bt-r-adopt { background: var(--new, #ff4800) !important; color: #fff !important; border-color: var(--new, #ff4800) !important; }
.bt-again {
    margin-top: 6px; padding: 10px 20px; border-radius: var(--radius-pill, 999px);
    border: 1px solid var(--border-base, #d0d0d0); background: var(--card-bg, #fff);
    color: var(--text-strong, #2a2a2a); font-size: 14px; font-weight: 700; cursor: pointer;
}
.bt-noscript { color: var(--text-meta, #8b8b8b); font-size: 13.5px; }
.bt-breed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.bt-breed-row { padding: 14px 16px; border: 1px solid var(--border-color, #e2e2e2); border-radius: var(--radius-card, 10px); background: var(--card-bg, #fff); }
.bt-breed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.bt-breed-name { font-size: 16px; font-weight: 700; color: var(--text-strong, #2a2a2a); }
.bt-breed-adopt, .bt-breed-wiki { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.bt-breed-adopt { background: var(--new, #ff4800); color: #fff !important; }
.bt-breed-wiki { background: var(--accent-soft, #f4f4f4); color: var(--text-strong, #2a2a2a); border: 1px solid var(--border-color, #e2e2e2); }
.bt-breed-blurb { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-body, #414141); }

/* ── 동물등록 조회 도구 ── */
.reg-intro { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text-secondary, #5b5b5b); }
.reg-intro b, .reg-privacy b { color: var(--text-strong, #2a2a2a); }
.reg-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.reg-field { display: flex; flex-direction: column; gap: 5px; }
.reg-field label { font-size: 13px; font-weight: 700; color: var(--text-strong, #2a2a2a); }
.reg-field input { padding: 11px 13px; border: 1px solid var(--border-color, #e2e2e2); border-radius: 8px; font-size: 15px; }
.reg-or { max-width: 420px; text-align: center; font-size: 12.5px; color: var(--text-meta, #8b8b8b); }
.reg-privacy { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-meta, #8b8b8b); }
.reg-result { margin: 16px 0; }
.reg-msg { padding: 14px 16px; border-radius: var(--radius-card, 10px); font-size: 14.5px; font-weight: 600; }
.reg-msg--ok { background: rgba(46,160,90,.10); color: #2e7d4f; }
.reg-msg--err { background: rgba(214,140,40,.12); color: #b8722a; }
.reg-msg--none { background: var(--box-bg, #f7f7f7); color: var(--text-secondary, #5b5b5b); }
.reg-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 14px 0 0;
    padding: 14px 16px; border: 1px solid var(--border-color, #e2e2e2); border-radius: var(--radius-card, 10px); }
.reg-dl dt { color: var(--text-meta, #8b8b8b); font-size: 13.5px; }
.reg-dl dd { margin: 0; color: var(--text-strong, #2a2a2a); font-weight: 600; }

/* 품종 백과 → 입양 CTA 배너 */
.wiki-adopt-cta {
    display: block; margin: 4px 0 16px; padding: 14px 18px;
    border-radius: var(--radius-card, 10px); background: var(--accent-bg, #2a2a2a);
    color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none; line-height: 1.5;
}
.wiki-adopt-cta b { color: var(--new, #ff4800); }
.wiki-adopt-cta:hover { background: var(--n-900, #0a0a0a); }

/* ── 품종 칩 / 그리드 (품종별 입양 진입·회유) ── */
.breed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.breed-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border-radius: var(--radius-pill, 999px); border: 1px solid var(--border-color, #e2e2e2);
    background: var(--card-bg, #fff); color: var(--text-strong, #2a2a2a);
    font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.breed-chip b { color: var(--text-meta, #8b8b8b); font-weight: 700; }
.breed-chip:hover { border-color: var(--n-400, #b0b0b0); }
.breed-chip--more { background: var(--accent-soft, #f4f4f4); font-weight: 700; }
.breed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.breed-tile {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
    border-radius: var(--radius-card, 10px); border: 1px solid var(--border-color, #e2e2e2);
    background: var(--card-bg, #fff); text-decoration: none;
}
.breed-tile:hover { border-color: var(--n-400, #b0b0b0); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.breed-tile-name { font-weight: 700; font-size: 15px; color: var(--text-strong, #2a2a2a); }
.breed-tile-count { font-size: 13px; color: var(--text-meta, #8b8b8b); }

/* 검색 결과 중간 슬림 회유 바 (첫 그룹 다음 — 스크롤 없이 노출) */
.search-hook { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; padding: 12px 14px;
    border-radius: var(--radius-card, 10px); background: var(--accent-soft, #f4f4f4); border: 1px solid var(--border-color, #e2e2e2); }
.search-hook a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px;
    border-radius: var(--radius-pill, 999px); background: var(--card-bg, #fff); border: 1px solid var(--border-color, #e2e2e2);
    color: var(--text-strong, #2a2a2a); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.search-hook a:hover { border-color: var(--n-400, #b0b0b0); }

/* ── 검색/내주변 종류별 그룹 결과 ── */
.result-group { margin-bottom: 22px; }
.result-group > h2 { display: flex; align-items: baseline; gap: 8px; font-size: 17px; margin: 0 0 12px; }
.result-group > h2 small { font-size: 13px; font-weight: 600; color: var(--text-meta, #8b8b8b); }
.group-more {
    display: inline-block; margin-top: 12px; padding: 8px 16px;
    border-radius: var(--radius-pill, 999px); border: 1px solid var(--border-base, #d0d0d0);
    background: var(--card-bg, #fff); color: var(--text-strong, #2a2a2a);
    font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.group-more:hover { background: var(--surface-hover, #f4f4f4); }

/* ── 지역 클릭 필터 (축종·성별) ── */
.rescue-filters { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.rf-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rf-label { font-size: 13px; font-weight: 700; color: var(--text-meta, #8b8b8b); margin-right: 4px; min-width: 34px; }
.rf-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px;
    border-radius: var(--radius-pill, 999px); border: 1px solid var(--border-color, #e2e2e2);
    background: var(--card-bg, #fff); color: var(--text-strong, #2a2a2a);
    font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.rf-chip b { color: var(--text-meta, #8b8b8b); font-weight: 700; }
.rf-chip.on { background: var(--accent-bg, #2a2a2a); border-color: var(--accent-bg, #2a2a2a); }
.rf-chip.on b { color: rgba(255,255,255,.7); }

/* 전국/상위지역 전체보기 (지역에서 범위 넓히기) */
.rescue-region-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.rescue-allkr { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
    border-radius: var(--radius-pill, 999px); background: var(--accent-bg, #2a2a2a); color: #fff;
    font-size: 13.5px; font-weight: 700; text-decoration: none; }
.rescue-allkr:hover { background: var(--n-900, #0a0a0a); }
.rescue-allkr--sub { background: var(--card-bg, #fff); color: var(--text-strong, #2a2a2a); border: 1px solid var(--border-color, #e2e2e2); }

/* ── 절차 가이드 ── */
.rescue-guide { margin-top: 28px; }
.rescue-guide-sub { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary, #5b5b5b); }
.rescue-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rescue-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
    border: 1px solid var(--border-color, #e2e2e2); border-radius: var(--radius-card, 10px); background: var(--card-bg, #fff); }
.rescue-step-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent-bg, #2a2a2a); color: #fff; font-weight: 800; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center; }
.rescue-step-h { font-weight: 700; font-size: 15px; color: var(--text-strong, #2a2a2a); margin-bottom: 3px; }
.rescue-step-b { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-body, #414141); }
.rescue-tips { margin: 0 0 16px; padding: 12px 14px 12px 30px; border-radius: var(--radius-inner, 8px);
    background: var(--box-bg, #f7f7f7); font-size: 13px; line-height: 1.7; color: var(--text-secondary, #5b5b5b); }
.rescue-faq { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }

/* ===================================================================
   링크형 버튼 글씨색 보정
   theme-snow 의 a:not(...) 링크색 규칙이 specificity (0,18,1) 로 매우 높아
   다크/컬러 배경 링크버튼의 흰 글씨를 다크(var(--link))로 덮어써 안 보이게 만든다.
   버튼은 배경에 맞는 자기 글씨색을 유지해야 하므로 !important 로 되살린다.
=================================================================== */
.home-u--now, .home-u--24,
.intent-pill, .open-chip.active, .open-chip--now.active,
.rescue-switch-btn, .tool-cta-main, .rescue-home-links a,
.rescue-call, .detail-action--call, .empty-actions a,
.rf-chip.on, .wiki-adopt-cta, .rescue-allkr {
    color: #fff !important;
}
.rescue-allkr--sub { color: var(--text-strong, #2a2a2a) !important; }
.wiki-adopt-cta b { color: var(--new, #ff4800) !important; }
.rescue-switch-btn.on { color: var(--n-900, #111) !important; }
/* 다크 배경으로 hover 하는 링크버튼(호버 시 흰 글씨 유지) */
.region-tile:hover, .region-tile-strong:hover .region-tile-count,
.pagination a:hover, .category-chip:hover, .category-chip.active {
    color: #fff !important;
}

/* 지역 그리드 */
.region-grid-section { margin: 24px 0; }
.region-grid-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
}
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

/* ── 홈 히어로 (포탈 첫인상: 검색 우선 + 초대 카피 + 규모 배지) ── */
.home-hero {
    background: linear-gradient(180deg, var(--n-800, #2a2a2a) 0%, var(--n-900, #0a0a0a) 100%);
    color: #fff;
    padding: 50px 0 42px;
    text-align: center;
}
.home-hero .container { max-width: 760px; }
/* 타이틀 — 폭에 맞춰 폰트 유동 축소(clamp)해 한 줄 유지(nowrap). 줄바꿈으로 어절 깨지는 것 방지 */
.home-hero-title { color: #fff; font-size: clamp(17px, 3.6vw, 32px); line-height: 1.25; margin: 0 0 8px; white-space: nowrap; }
.home-hero-sub { color: rgba(255,255,255,.9); font-size: clamp(12.5px, 1.7vw, 16px); margin: 0 0 22px; word-break: keep-all; }
.home-hero-search {
    display: flex; align-items: center; max-width: 600px; margin: 0 auto;
    background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.home-hero-search input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-size: 16px; color: #1f2a2e; min-width: 0;
}
.home-hero-search button {
    flex: 0 0 auto; border: 0; cursor: pointer;
    background: var(--accent, #0e807a); color: #fff;
    width: 46px; height: 46px; border-radius: 999px; font-size: 18px;
}
.home-hero-badge { color: rgba(255,255,255,.92); font-size: 13px; margin: 16px 0 0; }
.home-hero-badge b { color: #fff; }
.home-near-btn {
    margin-top: 12px; cursor: pointer;
    background: rgba(255,255,255,.16); color: #fff;
    border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
    padding: 9px 18px; font-size: 13.5px; font-weight: 600;
}
.home-near-btn:hover { background: rgba(255,255,255,.28); }
.home-near-btn:disabled { opacity: .6; cursor: default; }
.seo-intro--bottom { color: var(--muted, #6b7a7f); font-size: 13px; }

/* ── 홈 후기 하이라이트 (수집·정리한 외부신호 쇼케이스) ── */
.highlight-section { margin: 8px 0 4px; }
.highlight-title { font-size: 20px; margin: 0 0 4px; }
.highlight-sub { color: var(--muted, #6b7a7f); font-size: 13.5px; margin: 0 0 14px; }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.highlight-card {
    display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--line, #e3e9e9); border-radius: 12px;
    padding: 14px 16px; background: #fff; transition: box-shadow .15s, transform .15s;
}
.highlight-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.highlight-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.highlight-name { font-size: 15.5px; margin: 0; color: var(--ink, #1f2a2e); }
.highlight-tone {
    flex: 0 0 auto; font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
    background: rgba(14,128,122,.12); color: var(--accent, #0e807a); font-weight: 600;
}
.highlight-region { color: var(--muted, #6b7a7f); font-size: 12.5px; margin: 6px 0 0; }
.highlight-summary { font-size: 13px; line-height: 1.55; margin: 8px 0 0; color: #3a474c; }
.highlight-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.highlight-topic { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg, #f1f6f5); color: var(--muted, #5c6b70); }
.highlight-note { color: var(--muted, #9aa7ab); font-size: 11px; margin: 12px 0 0; }

/* ── 최근 개원 (freshness) ── */
.recent-section { margin: 14px 0 4px; }
.recent-title { font-size: 19px; margin: 0 0 12px; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.recent-card {
    display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit;
    border: 1px solid var(--line, #e3e9e9); border-radius: 10px; padding: 12px 14px; background: #fff;
    transition: box-shadow .15s;
}
.recent-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.recent-name { font-size: 14.5px; font-weight: 600; color: var(--ink, #1f2a2e); }
.recent-region { font-size: 12px; color: var(--muted, #6b7a7f); }
.recent-date { font-size: 11.5px; color: var(--accent, #0e807a); font-weight: 600; }
@media (max-width: 800px) {
    .home-hero { padding: 34px 0 28px; }
    /* 폰트는 .home-hero-title/sub 의 clamp 가 전 폭 담당 — 고정 override 제거 */
}
.region-tile {
    display: block;
    padding: 12px 14px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary, #2c3e50);
    font-weight: 500;
    transition: all 0.15s ease;
}
.region-tile:hover {
    background: var(--accent-color, #3498db);
    color: var(--surface-base, #fff);
    border-color: var(--accent-color, #3498db);
}
.region-tile small { opacity: 0.7; font-weight: normal; }

/* 근처 동네 — leaf(동) 페이지 형제 지역 보강 (시각적 구분) */
.nearby-regions-section {
    border-top: 1px solid var(--border-color, #e0e6ed);
    padding-top: 16px;
}

/* 동물병원 카드 리스트 */
.vet-list-section { margin: 24px 0; }
.vet-list-section h2 { font-size: 18px; margin-bottom: 12px; }
.vet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
/* 그리드 셀(li) 안의 카드(a)가 셀 높이를 꽉 채우게 — 카드 높이 균일 */
.vet-list > li {
    display: flex;
    min-width: 0;   /* grid item 이 콘텐츠 min-content 로 트랙 밀어내지 않게 — 열 폭 균일 */
}
.vet-list a.vet-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}
/* hours/flags 가 하단 정렬되도록 빈 공간 흡수 */
.vet-list a.vet-card .pharm-meta { flex: 0 0 auto; }
.vet-list a.vet-card .pharm-hours { margin-top: auto; }
.vet-card {
    padding: 16px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
    border-radius: 5px;
}
/* 카드 전체가 링크 — 병원 hospital-card 패턴 */
a.vet-card,
.vet-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
a.vet-card:hover,
.vet-card-link:hover {
    border-color: var(--accent, var(--accent-color, #3498db));
    background: var(--card-bg-hover, rgba(0,0,0,0.02));
}
.pharm-name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    text-decoration: none;
    margin: 0 0 6px;
    overflow-wrap: anywhere;   /* 긴 상호명/주소가 카드 밖으로 밀지 않게 */
    word-break: keep-all;      /* 한글은 어절 단위 줄바꿈 */
}
a.vet-card:hover .pharm-name,
.vet-card-link:hover .pharm-name { color: var(--accent, var(--accent-color, #3498db)); }
.pharm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary, #5a6c7d);
    margin-bottom: 8px;
    min-width: 0;   /* flex 자식(긴 주소)이 트랙을 밀지 않게 */
}
.pharm-addr { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.pharm-phone { color: var(--accent, var(--accent-color, #3498db)); text-decoration: none; }
.pharm-hours {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;       /* 13 → 12 — 한 줄에 더 들어감 */
    color: var(--text-secondary, #5a6c7d);
    margin-bottom: 6px;
    max-height: 2.6em;     /* 최대 2줄로 제한 — 카드 높이 폭주 방지 */
    overflow: hidden;
}
.hours-item { white-space: nowrap; }       /* "평일 09:00~22:00" 단위로 끊기게 */
.hours-item {
    padding: 2px 8px;
    background: var(--card-bg-hover, rgba(0,0,0,0.04));
    border-radius: 3px;
}
.pharm-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    background: var(--accent-soft, rgba(52, 152, 219, 0.12));
    color: var(--accent, var(--accent-color, #3498db));
}

/* ----- 리스트 카드 차별정보 (배지 / 영업상태 / 지도핀 / 주소노트) ----- */
.card-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background: var(--accent-soft, rgba(52, 152, 219, 0.12));
    color: var(--accent, var(--accent-color, #3498db));
    white-space: nowrap;
}
/* 개원 연도 — 영업상태가 아니라 주소·전화와 동급의 중립 사실(메타). 알약·강조색 금지. */
.pharm-since {
    color: var(--text-muted, #95a5a6);
    white-space: nowrap;
}
/* 진료시간 — 병합된 실데이터(있는 곳만). 전화와 동급 사실. */
.pharm-hours-line {
    color: var(--text-secondary, #5a6c7d);
    white-space: nowrap;
}
/* 24시 배지 — 진짜 데이터(animal.go.kr is_24h)라 강조색 허용(가짜 status 와 다름). */
.card-badge--24h {
    background: var(--accent-bg, #2a2a2a);
    color: #fff;
}
.badge-24h {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: var(--accent-bg, #2a2a2a);
    color: #fff;
    white-space: nowrap;
}
.badge-inline {
    display: inline-block;
    padding: 1px 7px;
    margin-left: 4px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    background: var(--accent-soft, rgba(52, 152, 219, 0.12));
    color: var(--accent, var(--accent-color, #3498db));
}
.addr-note {
    font-style: normal;
    font-size: 12px;
    color: var(--text-muted, #95a5a6);
}
.card-pin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 12px;
    color: var(--accent, var(--accent-color, #3498db));
}
a.vet-card:hover .card-pin,
.vet-card-link:hover .card-pin { text-decoration: underline; }

/* 사이드 위젯 */
.side-widget {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 16px;
}
.widget-title { font-size: 16px; margin: 0 0 12px; }

/* 추천 동물병원 — 카드 전체가 링크 (모바일 탭 영역 확장) */
.recommended-card {
    display: block;
    padding: 8px;
    margin: 0 -8px;  /* 위젯 padding 만큼 빼서 탭 영역을 위젯 가장자리까지 확장 */
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}
.recommended-card:hover,
.recommended-card:active {
    background: var(--card-bg-hover, rgba(0,0,0,0.04));
}
.recommended-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 6px;
}
.recommended-region { font-size: 14px; color: var(--text-secondary, #5a6c7d); margin-bottom: 4px; }
.recommended-address { font-size: 13px; color: var(--text-secondary, #5a6c7d); }

/* 최근 개설 — 행 전체가 링크 */
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { border-bottom: 1px solid rgba(0,0,0,0.06); }
.recent-list li:last-child { border-bottom: none; }
.recent-item {
    display: block;
    padding: 10px 8px;
    margin: 0 -8px;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}
.recent-item:hover,
.recent-item:active {
    background: var(--card-bg-hover, rgba(0,0,0,0.04));
}
.recent-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary, #2c3e50);
}
.recent-meta { display: block; font-size: 12px; color: var(--text-secondary, #5a6c7d); margin-top: 2px; }

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}
.pagination a {
    padding: 8px 16px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary, #2c3e50);
}
.pagination a:hover { background: var(--accent-color, #3498db); color: var(--surface-base, #fff); }
.current-page { font-weight: 600; }

/* 상세 페이지 */
.detail-page { padding: 16px 0; }
.detail-name { font-size: 28px; margin: 12px 0 4px; }
.detail-region { color: var(--text-secondary, #5a6c7d); margin-bottom: 20px; }
.detail-info, .detail-hours, .detail-map, .detail-nearby {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 16px;
}
.detail-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 16px;
    margin: 0;
}
.detail-info dt { font-weight: 600; color: var(--text-secondary, #5a6c7d); }
.detail-info dd { margin: 0; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th { text-align: left; width: 80px; padding: 8px; color: var(--text-secondary, #5a6c7d); }
.hours-table td { padding: 8px; }
.hours-table tr { border-bottom: 1px solid rgba(0,0,0,0.06); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table .closed { color: var(--text-meta, #999); }
.detail-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#detailMap { height: 360px; border-radius: 5px; }

/* Leaflet 텍스트 라벨 마커 (divIcon) */
.pharm-label {
    background: transparent !important;
    border: none !important;
}
.pharm-label .pharm-label-inner {
    display: inline-block;
    background: var(--surface-base, #fff);
    color: var(--text-strong, #2c3e50);
    border: 1px solid var(--accent-bg, #4299e1);
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
    transform: translate(-50%, -100%);
    transition: all 0.15s ease;
}
.pharm-label .pharm-label-inner:hover {
    background: var(--surface-hover, #ebf5ff);
    border-color: var(--accent-bg, #2c5282);
    z-index: 2000;
}
.pharm-label.current .pharm-label-inner {
    background: var(--badge-strong-bg);
    color: var(--badge-strong-text);
    border-color: var(--badge-strong-border);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    box-shadow: none;
}
.pharm-label.current .pharm-label-inner .pin { margin-right: 4px; }

/* 스트리트뷰 */
.detail-streetview {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 16px;
}
.detail-streetview h2 { margin: 0 0 12px; font-size: 18px; }
.streetview-container { width: 100%; height: 360px; border-radius: 5px; overflow: hidden; }
.detail-map-nearby { display: none; }

/* 네이버 블로그 위젯 */
.naver-widget {
    margin: 32px 0;
    padding: 24px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
}
.naver-widget-title {
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--text-primary, #2c3e50);
}
.naver-block { margin-bottom: 20px; }
.naver-block:last-child { margin-bottom: 0; }
.naver-block-query {
    font-size: 13px;
    color: var(--text-secondary, #5a6c7d);
    margin-bottom: 8px;
    font-weight: 600;
}
.naver-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.naver-item a {
    display: block;
    padding: 12px 14px;
    background: var(--card-bg-hover, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary, #2c3e50);
    transition: all 0.15s ease;
}
.naver-item a:hover {
    background: var(--accent-soft, #ebf5ff);
    border-color: var(--accent, #4299e1);
}
.naver-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary, #2c3e50);
}
.naver-desc {
    display: block;
    font-size: 13px;
    color: var(--text-secondary, #5a6c7d);
    line-height: 1.5;
}
.naver-blogger {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary, #888);
    margin-top: 4px;
}
.naver-credit {
    font-size: 11px;
    color: var(--text-tertiary, #999);
    text-align: right;
    margin: 12px 0 0;
}

/* FAQ 섹션 */
.faq-section {
    margin: 32px 0;
    padding: 24px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
}
.faq-section-title {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--text-primary, #2c3e50);
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.15s ease;
}
.faq-item[open] {
    border-color: var(--accent-color, #4299e1);
    background: var(--surface-hover, #f8fbff);
}
.faq-question {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    list-style: none;
    position: relative;
    padding-right: 40px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '▾';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color, #4299e1);
    transition: transform 0.15s ease;
}
.faq-item[open] .faq-question::after { transform: translateY(-50%) rotate(180deg); }
.faq-question:hover { background: var(--surface-hover); }
.faq-answer {
    padding: 0 18px 16px;
    color: var(--text-secondary, #5a6c7d);
    line-height: 1.7;
    font-size: 14px;
}

/* SEO 본문 소개 */
.seo-intro {
    background: var(--card-bg, #fff);
    border-left: 3px solid var(--accent-color, #3498db);
    border-radius: 5px;
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-primary, #2c3e50);
}
.seo-intro p { margin: 0; }

/* 빈 카테고리 안내 */
.empty-category {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
    padding: 32px 24px;
    text-align: center;
    margin: 24px 0;
}
.empty-msg { font-size: 16px; margin: 0 0 8px; color: var(--text-primary, #2c3e50); }
.empty-hint { color: var(--text-secondary, #5a6c7d); margin-bottom: 20px; }
.empty-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty-actions a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--accent-color, #3498db);
    color: var(--surface-base, #fff);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.empty-actions a:hover { background: var(--accent-bg, #2c5282); }

/* 지도 */
.map-section { margin-bottom: 8px; }
.map-wrapper { position: relative; }
#map { height: 320px; border-radius: 5px; }
.map-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4); color: var(--surface-base, #fff);
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px;
    z-index: 1000;
}

/* 에러 페이지 */
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 48px; margin-bottom: 16px; }

/* 푸터 */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color, #e0e6ed);
    text-align: center;
    color: var(--text-secondary, #5a6c7d);
    font-size: 13px;
}
.site-footer p { margin: 4px 0; }

/* 헤더 검색 */
.header-search {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.header-search input[type=search] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 4px;
    font-size: 15px;
}
.header-search button {
    padding: 10px 18px;
    background: var(--accent-color, #3498db);
    color: var(--surface-base, #fff);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

/* ================================================================
 * 인덱스 풍부도 보강 — 통계/가이드/인기지역/차트/뉴스
 * ================================================================ */

/* 영업중 배지 (intro 안) */
.open-now-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--badge-strong-bg);
    color: var(--badge-strong-text);
    border: 1px solid var(--badge-strong-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}
.open-now-badge strong { font-weight: 700; }
.open-now-dot {
    width: 8px; height: 8px;
    background: var(--surface-base, #fff);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 카테고리 통계 카드 (1번) */
.stat-cards-section { margin: 24px 0; }
.stat-section-title { font-size: 20px; margin: 0 0 16px; color: var(--text-primary, #2c3e50); }
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.stat-card {
    display: block;
    padding: 22px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-strong);
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: background 0.2s ease;
    box-shadow: none;
}
.stat-card:hover { transform: none; box-shadow: none; background: var(--card-hover-bg); border-color: var(--border-strong); }
/* 카테고리별 변형 — vivid 컬러 제거, 단색 surface 위계만 (가이드 §11) */
.stat-card-holiday { background: var(--card-bg); }
.stat-card-night   { background: var(--box-bg-alt); }
.stat-card-sun     { background: var(--card-bg); }
.stat-card-sat     { background: var(--box-bg-alt); }
.stat-card-icon    { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.stat-card-label   { font-size: 14px; opacity: 0.9; margin-bottom: 4px; }
.stat-card-number  { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat-card-unit    { font-size: 14px; opacity: 0.85; margin-top: 2px; }
.stat-card-desc    { font-size: 12px; opacity: 0.8; margin-top: 8px; }

/* 동물병원 이용 가이드 (2번) */
.usage-guide-section { margin: 32px 0; }
.guide-section-title { font-size: 20px; margin: 0 0 16px; }
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.guide-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 5px;
    padding: 18px;
}
.guide-icon { font-size: 28px; margin-bottom: 8px; }
.guide-title { font-size: 16px; margin: 0 0 8px; color: var(--text-primary, #2c3e50); }
.guide-body { font-size: 14px; line-height: 1.7; color: var(--text-secondary, #5a6c7d); margin: 0; }

/* 인기 지역 (4번) */
.popular-regions-section { margin: 28px 0; }
.popular-section-title { font-size: 20px; margin: 0 0 14px; }
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.popular-card {
    display: block;
    padding: 14px 16px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary, #2c3e50);
    transition: all 0.15s ease;
}
.popular-card:hover {
    border-color: var(--accent, #4299e1);
    background: var(--card-bg-hover, var(--accent-soft, #ebf5ff));
    transform: none;
}
.popular-dong { display: block; font-weight: 600; font-size: 15px; color: var(--accent, #2c5282); }
.popular-detail { display: block; font-size: 12px; color: var(--text-secondary, #5a6c7d); margin-top: 4px; }

/* 시도 그리드 강화 (5번) */
.region-tile-strong {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 8px;
}
.region-tile-name { font-size: 15px; font-weight: 600; }
.region-tile-count { font-size: 12px; color: var(--text-secondary, #5a6c7d); font-weight: 500; }
.region-tile-strong:hover .region-tile-count { color: rgba(255,255,255,0.85); }

/* 시도별 차트 (7번) */
.sido-chart-section { margin: 32px 0; }
.chart-section-title { font-size: 20px; margin: 0 0 14px; }
.sido-chart {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
    border-radius: 5px;
    padding: 16px 20px;
}
.sido-bar-row {
    display: grid;
    grid-template-columns: 60px 1fr 70px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text-primary, #2c3e50);
    border-bottom: 1px solid var(--divider, var(--border, #f0f4f8));
}
.sido-bar-row:last-child { border-bottom: none; }
.sido-bar-row:hover .sido-bar-label { color: var(--accent, #2c5282); }
.sido-bar-label { font-size: 14px; font-weight: 600; }
.sido-bar-track {
    background: var(--card-bg-hover, #f0f4f8);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    position: relative;
}
.sido-bar-fill {
    display: block;
    height: 100%;
    background: var(--accent-bg);
    border-radius: 999px;
    transition: width 0.6s ease;
}
.sido-bar-value {
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #5a6c7d);
}

/* 뉴스 위젯 (9번) */
.news-widget {
    margin: 28px 0;
    padding: 22px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e0e6ed);
    border-radius: 5px;
}
.news-widget-title { font-size: 18px; margin: 0 0 14px; color: var(--text-primary, #2c3e50); }
.news-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.news-item a {
    display: block;
    padding: 12px 14px;
    background: var(--card-bg-hover, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary, #2c3e50);
    transition: all 0.15s ease;
}
.news-item a:hover {
    background: var(--accent-soft, #ebf5ff);
    border-color: var(--accent, #4299e1);
}
.news-title { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--text-primary, #2c3e50); }
.news-desc { display: block; font-size: 13px; color: var(--text-secondary, #5a6c7d); line-height: 1.5; }
.news-date { display: block; font-size: 11px; color: var(--text-tertiary, #888); margin-top: 4px; }
.news-credit { font-size: 11px; color: var(--text-tertiary, #999); text-align: right; margin: 12px 0 0; }

/* 모바일 */
@media (max-width: 800px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .stat-card-number { font-size: 28px; }
    .sido-bar-row { grid-template-columns: 50px 1fr 60px; }
}

/* 동물병원 자동 소개 (detail 페이지) */
.vet-intro {
    margin: 0 0 20px;
    padding: 16px 20px;
    background: var(--box-bg);
    border: 1px solid var(--border-base);
    border-left: 4px solid var(--accent-bg);
    border-radius: 5px;
}
.vet-intro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-strong, #2c3e50);
}

/* 상세 fold 액션 — 전화/길찾기를 첫 화면에. 운영시간을 모르니 '전화로 바로 확인'
   동선을 최단화한다(공공데이터엔 운영시간 없음). sticky 아님(단일 반응형 유지). */
.detail-actions {
    display: flex;
    gap: 10px;
    margin: 4px 0 18px;
}
.detail-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.detail-action--call {
    background: var(--accent, var(--accent-color, #3498db));
    color: #fff;
}
.detail-action--map {
    background: var(--accent-soft, rgba(52, 152, 219, 0.12));
    color: var(--accent, var(--accent-color, #3498db));
}

/* ===================================================================
   동물병원 카드 정보 포털 스타일 (dl/dt/dd 라벨-값 페어)
=================================================================== */
.pharm-data {
    margin: 6px 0 8px;
    padding: 0;
    font-size: 13px;
}
.pharm-data .data-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px dashed var(--divider, var(--border, rgba(0,0,0,0.06)));
}
.pharm-data .data-row:last-child { border-bottom: none; }
.pharm-data dt {
    margin: 0;
    color: var(--text-tertiary, var(--text-secondary, #6b8298));
    font-weight: 500;
    font-size: 12px;
}
.pharm-data dd {
    margin: 0;
    color: var(--text-primary, #2c3e50);
}

/* ===================================================================
   공통 컴포넌트 — stat-table, qna, popular-index, category-tabs
=================================================================== */

/* 통계 테이블 */
.stat-table-section { margin: 28px 0; }
.stat-table-section .stat-section-title {
    font-size: 16px;
    color: var(--text-secondary, #94a8be);
    margin: 0 0 10px;
    font-weight: 500;
}
.stat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e0e6ed);
}
.stat-table th, .stat-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--divider, var(--border, #e2e8f0));
}
.stat-table thead th {
    background: var(--card-bg-hover, #f0f4f8);
    color: var(--text-tertiary, var(--text-secondary, #5a6c7d));
    font-weight: 600;
    font-size: 13px;
}
.stat-table tbody tr:last-child td { border-bottom: none; }
.stat-table tbody tr:hover { background: var(--card-bg-hover, rgba(0,0,0,0.02)); }
.stat-table td.num {
    font-weight: 700;
    color: var(--accent, #2c5282);
    font-feature-settings: "tnum";
}
.stat-table a {
    color: var(--accent, #2c5282);
    text-decoration: none;
    font-size: 13px;
}

/* Q&A 박스 (펼친 상태) */
.qna-section { margin: 32px 0; }
.qna-section-title {
    font-size: 18px;
    margin: 0 0 14px;
    color: var(--text-primary, #2c3e50);
}
.qna-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qna-item {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-left: 3px solid var(--accent, #4fc3f7);
    border-radius: 5px;
    padding: 14px 18px;
}
.qna-q {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin: 0 0 6px;
}
.qna-a {
    font-size: 13px;
    color: var(--text-secondary, #5a6c7d);
    line-height: 1.6;
    margin: 0;
}

/* popular-index — 텍스트 링크 리스트 */
.popular-index-section { margin: 28px 0; }
.popular-index-section .popular-section-title {
    font-size: 16px;
    margin: 0 0 10px;
    color: var(--text-secondary, #94a8be);
    font-weight: 500;
}
.popular-index {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 16px;
    border-top: 1px solid var(--divider, var(--border, #e2e8f0));
    padding-top: 12px;
}
.popular-index li { padding: 4px 0; }
.popular-index a {
    color: var(--accent, #4fc3f7);
    text-decoration: none;
    font-size: 14px;
}
.popular-index a:hover { text-decoration: underline; }
.popular-index em {
    color: var(--text-tertiary, var(--text-secondary, #6b8298));
    font-style: normal;
    font-size: 12px;
    margin-left: 4px;
}

/* 카테고리 탭 (칩 아닌 텍스트 탭) */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
    margin: 12px 0;
}
.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary, #94a8be);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.category-tab:hover { color: var(--text-primary, #f1f5f9); }
.category-tab.active {
    color: var(--accent, #4fc3f7);
    border-bottom-color: var(--accent, #4fc3f7);
    font-weight: 600;
}
.category-tab .tab-count {
    font-size: 12px;
    color: var(--text-tertiary, var(--text-secondary, #6b8298));
}
.category-tab.tab-back {
    margin-left: auto;
    font-size: 13px;
    border-left: 1px solid var(--border, #e2e8f0);
    padding-left: 14px;
}

/* ------------------------------------------------------------ */
/* inline-style migration (utility classes)                     */
/* ------------------------------------------------------------ */
.detail-title { margin: 0; }
.info-section-title--spaced { margin-top: 24px; }
.streetview-iframe { border: 0; }

/* ============================================================ */
/* 위키(품종백과)                                                */
/* ============================================================ */
.wiki-header .region-title { display: flex; align-items: center; gap: 8px; }

/* 홈/지역 허브 위키 진입 배너 */
.wiki-promo {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; margin: 24px 0;
    padding: 20px 24px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
    border-radius: 12px;
}
.wiki-promo-text h2 { margin: 0 0 6px; font-size: 18px; color: var(--text-primary, #2c3e50); }
.wiki-promo-text p { margin: 0; font-size: 14px; color: var(--text-secondary, #6b8298); }
.wiki-promo-links { display: flex; flex-wrap: wrap; gap: 10px; }
.wiki-promo-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none;
    background: var(--card-bg-hover, rgba(0,0,0,0.03));
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
    color: var(--text-primary, #2c3e50);
    transition: background .15s, border-color .15s;
}
.wiki-promo-btn:hover { border-color: var(--accent, var(--accent-color, #3498db)); }
.wiki-promo-btn--all {
    /* '전체 →' CTA — 검은 채움(snow 의 --accent=--n-800) 대신 블루 아웃라인(검색버튼과 일관) */
    background: var(--card-bg-hover, rgba(0,0,0,0.03));
    color: var(--accent-color, #3498db);
    border-color: var(--accent-color, #3498db);
    font-weight: 700;
}

/* 허브 — 종(견종/묘종) 카드 */
.wiki-species-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px; margin: 8px 0 28px;
}
.wiki-species-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 22px 16px; border-radius: 12px; text-decoration: none;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
    color: var(--text-primary, #2c3e50);
    transition: border-color .15s, transform .12s;
}
.wiki-species-card:hover { border-color: var(--accent, var(--accent-color, #3498db)); transform: translateY(-2px); }
.wiki-species-icon { font-size: 32px; }
.wiki-species-name { font-size: 16px; font-weight: 700; }
.wiki-species-count { font-size: 13px; color: var(--text-secondary, #6b8298); }

/* 품종 섹션 + 그리드(타일) */
.wiki-breed-section { margin: 0 0 28px; }
.wiki-breed-section > h2 { font-size: 18px; margin: 0 0 14px; color: var(--text-primary, #2c3e50); }
.wiki-breed-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.wiki-breed-tile {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px; border-radius: 10px; text-decoration: none;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
    color: var(--text-primary, #2c3e50);
    transition: border-color .15s;
}
.wiki-breed-tile:hover { border-color: var(--accent, var(--accent-color, #3498db)); }
.wiki-breed-name { font-size: 15px; font-weight: 600; }
.wiki-breed-meta { font-size: 12px; color: var(--text-secondary, #6b8298); }

/* 종 인덱스 — 품종 카드(요약 포함) */
.wiki-breed-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.wiki-breed-card {
    display: block; padding: 18px 20px; border-radius: 12px; text-decoration: none;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
    color: var(--text-primary, #2c3e50);
    transition: border-color .15s, transform .12s;
}
.wiki-breed-card:hover { border-color: var(--accent, var(--accent-color, #3498db)); transform: translateY(-2px); }
.wiki-breed-card-name { margin: 0 0 8px; font-size: 17px; }
.wiki-breed-card-attrs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-secondary, #6b8298); margin-bottom: 8px; }
.wiki-breed-card-summary { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary, #6b8298); }

/* 품종 상세 */
.wiki-article { max-width: 760px; }
.wiki-breed-summary { font-size: 16px; line-height: 1.7; color: var(--text-primary, #2c3e50); margin: 8px 0 20px; }
.wiki-attr-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 24px;
}
.wiki-attr {
    display: flex; flex-direction: column; gap: 3px;
    padding: 12px 14px; border-radius: 10px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
}
.wiki-attr-k { font-size: 12px; color: var(--text-secondary, #6b8298); }
.wiki-attr-v { font-size: 15px; font-weight: 600; color: var(--text-primary, #2c3e50); }
.wiki-section { margin: 0 0 24px; }
.wiki-section > h2 { font-size: 17px; margin: 0 0 10px; color: var(--text-primary, #2c3e50); }
.wiki-section > p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-primary, #2c3e50); }
.wiki-diseases-note { font-size: 14px; color: var(--text-secondary, #6b8298); margin: 0 0 12px; }
.wiki-disease-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wiki-disease-list li {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 14px; border-radius: 8px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
}
.wiki-disease-name { font-size: 14px; font-weight: 600; color: var(--text-primary, #2c3e50); }
.wiki-disease-link { font-size: 13px; text-decoration: none; color: var(--accent, var(--accent-color, #3498db)); }
.wiki-crosslink { padding: 18px 20px; border-radius: 12px; background: var(--card-bg-hover, rgba(0,0,0,0.03)); border: 1px solid var(--border, var(--border-color, #e0e6ed)); }
.wiki-cta {
    display: inline-block; margin-top: 8px; padding: 10px 18px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 14px;
    background: var(--accent, var(--accent-color, #3498db));
    color: var(--surface-base, #fff);
}

/* ============================================================ */
/* 상세 cross-category 내부링크 (동네 허브 / 형제 카테고리)         */
/* ============================================================ */
.detail-crosslinks .crosslink-primary {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.detail-crosslinks .crosslink-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none;
    background: var(--card-bg-hover, rgba(0,0,0,0.04));
    color: var(--text-primary, #2c3e50);
    border: 1px solid var(--border-color, #e0e6ed);
    transition: all 0.15s ease;
}
.detail-crosslinks .crosslink-btn:hover {
    border-color: var(--accent-color, #3498db);
    color: var(--accent-color, #3498db);
}
.detail-crosslinks .crosslink-siblings {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-top: 4px;
}
.detail-crosslinks .crosslink-siblings-label {
    font-size: 12px; font-weight: 700; color: var(--text-secondary, #718096);
    margin-right: 4px;
}
.detail-crosslinks .crosslink-chip {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 6px 11px; border-radius: 14px; font-size: 12px; font-weight: 600;
    text-decoration: none;
    background: var(--surface-hover, #f8fbff);
    color: var(--text-primary, #2c3e50);
    border: 1px solid var(--border-color, #e0e6ed);
    transition: all 0.15s ease;
}
.detail-crosslinks .crosslink-chip:hover {
    border-color: var(--accent-color, #3498db);
    color: var(--accent-color, #3498db);
}

/* ============================================================ */
/* 가이드(건강/예방접종) — 위키 토큰 재사용 + 스케줄 표 보강       */
/* ============================================================ */
.guide-schedule-table { display: flex; flex-direction: column; gap: 10px; }
.guide-schedule-row {
    display: flex; flex-wrap: wrap; gap: 12px;
    padding: 14px 16px; border-radius: 10px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
}
.guide-schedule-age {
    flex: 0 0 120px; font-size: 14px; font-weight: 700;
    color: var(--accent, var(--accent-color, #3498db));
}
.guide-schedule-body { flex: 1 1 240px; min-width: 200px; }
.guide-schedule-items { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.guide-schedule-items li {
    font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
    background: var(--card-bg-hover, rgba(0,0,0,0.04));
    color: var(--text-primary, #2c3e50);
}
.guide-schedule-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary, #6b8298); }
.guide-tip-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.guide-tip-list li { font-size: 14px; line-height: 1.7; color: var(--text-primary, #2c3e50); }

/* ============================================================
   네이버 관련검색 위젯 (_place_naver.html)
   기존엔 CSS가 없어 제목·설명·출처 span 이 inline 으로 뭉쳐 글자벽이 됐다.
   → 검색결과 스타일: 카드 + 제목(링크/한줄말줄임) / 설명(2줄클램프) / 출처 분리.
   ============================================================ */
.place-naver-widget {
    margin: 28px 0 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e0e6ed);
}
.place-naver-title {
    font-size: 18px; font-weight: 700; margin: 0 0 14px;
    color: var(--text-primary, #2c3e50);
}
.place-naver-section { margin-bottom: 18px; }
.place-naver-section-title {
    font-size: 14px; font-weight: 600; margin: 0 0 8px;
    color: var(--text-secondary, #5a6c7d);
}
.place-naver-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.place-naver-item {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 10px; overflow: hidden;
}
.place-naver-item > a {
    display: block; padding: 11px 13px;
    text-decoration: none; color: inherit;
}
.place-naver-item > a:hover { background: var(--card-bg-hover, rgba(0,0,0,0.03)); }
.place-naver-item-title {
    display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4;
    color: var(--accent-color, #3498db);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  /* 제목 한 줄 */
}
.place-naver-item-desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-top: 4px;
    font-size: 13px; line-height: 1.55; color: var(--text-secondary, #5a6c7d);
}
.place-naver-item-source {
    display: block; margin-top: 5px;
    font-size: 11.5px; color: var(--text-muted, #95a5a6);
}
.place-naver-credit {
    margin: 12px 0 0; font-size: 11px; text-align: right;
    color: var(--text-muted, #95a5a6);
}

/* ============================================================
   외부자료 종합 의견 (_place_opinion.html) — 방문자 관점 요약 + 진료비 등.
   ============================================================ */
.place-opinion {
    margin: 24px 0 8px; padding: 16px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 12px;
}
.place-opinion-title {
    font-size: 16px; font-weight: 700; margin: 0 0 10px;
    color: var(--text-primary, #2c3e50);
}
.place-opinion-summary {
    margin: 0 0 14px; font-size: 14px; line-height: 1.7;
    color: var(--text-primary, #2c3e50);
}
.place-opinion-cols { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.place-opinion-col { flex: 1 1 45%; min-width: 140px; }
.place-opinion-col-title {
    display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px;
    color: var(--text-secondary, #5a6c7d);
}
.place-opinion-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.place-opinion-chip {
    font-size: 12px; padding: 3px 9px; border-radius: 12px;
    background: var(--card-bg-hover, rgba(0,0,0,0.04));
    color: var(--text-primary, #2c3e50);
}
.place-opinion-chip.pos { background: rgba(46,160,90,0.12); color: #2e7d4f; }
.place-opinion-chip.cau { background: rgba(214,140,40,0.12); color: #b8722a; }
.place-opinion-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.place-opinion-fact {
    font-size: 13px; line-height: 1.55; padding: 8px 11px;
    background: var(--card-bg-hover, rgba(0,0,0,0.03)); border-radius: 8px;
}
.place-opinion-fact-label {
    display: inline-block; font-weight: 600; margin-right: 6px;
    color: var(--accent-color, #3498db);
}
.place-opinion-fact-text { color: var(--text-secondary, #5a6c7d); }
.place-opinion-note {
    margin: 0; font-size: 11px; line-height: 1.5; color: var(--text-muted, #95a5a6);
}

/* ============================================================
   카테고리 카드 그리드 (홈/지역 허브) — 기존엔 .category-card* CSS 가 없어
   이모지+이름+개수가 텍스트 줄로 뭉쳐 보였다. 탭 가능한 카드 그리드로.
   ============================================================ */
.category-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--gap-grid);
    margin: 4px 0 8px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    min-height: 92px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, var(--border-color, #e0e6ed));
    color: var(--text-primary, #2c3e50);
    transition: border-color .15s ease, background .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.category-card:hover,
.category-card:active {
    border-color: var(--accent, var(--accent-color, #3498db));
    background: var(--card-bg-hover, rgba(0,0,0,0.03));
}
.category-card-icon  { font-size: 26px; line-height: 1; }
.category-card-label { font-size: 13px; font-weight: 600; text-align: center; }
.category-card-count {
    font-size: 14px; font-weight: 700;
    color: var(--accent, var(--accent-color, #3498db));
}
.category-card-count small { font-size: 11px; font-weight: 500; opacity: .7; margin-left: 1px; }
.category-card.is-empty { opacity: .45; }
.category-card.is-empty .category-card-count { color: var(--text-muted, #95a5a6); }

/* ============================================================
   목록 카드 외부의견 스니펫 + 동네 요약 — 동 단위 인덱스 콘텐츠 강화(병원)
   ============================================================ */
.area-opinion {
    margin: 0 0 12px; padding: 10px 12px;
    background: var(--card-bg-hover, rgba(0,0,0,0.03));
    border-radius: 8px; font-size: 13px; line-height: 1.6;
    color: var(--text-secondary, #5a6c7d);
}
.area-opinion b { color: var(--accent, var(--accent-color, #3498db)); font-weight: 600; }
.area-facts {
    margin: -4px 0 12px; padding: 10px 12px;
    background: var(--card-bg-hover, rgba(0,0,0,0.03));
    border-radius: 8px; font-size: 12.5px; line-height: 1.6;
    color: var(--text-secondary, #5a6c7d);
}
.area-facts b { color: var(--accent, var(--accent-color, #3498db)); font-weight: 600; }
.card-opinion { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.card-opinion-tone {
    font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
    background: rgba(46,160,90,0.12); color: #2e7d4f;
}
.card-opinion-topic {
    font-size: 11.5px; padding: 2px 8px; border-radius: 10px;
    background: var(--card-bg-hover, rgba(0,0,0,0.05)); color: var(--text-secondary, #5a6c7d);
}

/* ============================================================
   디자인 통일 + 800px 반응형 재설계 (2026-06-19 UX 리팩터)
   ※ 파일 끝 — source order 로 기존 카드/타이틀 정의를 덮어씀
   ============================================================ */

/* 카드 형태 통일 — radius 10 (기존 5/10/12 혼재) */
.highlight-card, .recent-card, .category-card, .region-tile,
.guide-card, .vet-card, .popular-card {
    border-radius: var(--radius-card);
}
/* hover 통일 (border+bg, lift 제거). region-tile 은 기존 invert hover 유지 */
.highlight-card:hover, .recent-card:hover, .category-card:hover,
.vet-card:hover, .popular-card:hover, .guide-card:hover {
    border-color: var(--accent, #0e807a);
    box-shadow: none;
    transform: none;
}
/* 섹션 타이틀 통일 19/700 */
.highlight-title, .recent-title, .stat-section-title, .guide-section-title,
.popular-section-title, .region-grid-section h2, .vet-list-section h2 {
    font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 14px;
    color: var(--text-strong, var(--text-primary, #2c3e50));
}
/* 섹션 상하 마진 통일 */
.highlight-section, .recent-section, .stat-cards-section, .usage-guide-section,
.popular-regions-section, .region-grid-section, .vet-list-section {
    margin: var(--section-gap) 0;
}

/* ── 데스크톱 (>800) — 열 수 cap + 폭/스케일 ── */
@media (min-width: 801px) {
    .container { max-width: 1120px; padding-left: 24px; padding-right: 24px; }
    .detail-content { max-width: 820px; }

    .home-hero { padding: 64px 0 56px; }
    .home-hero .container { max-width: 720px; }
    /* 폰트는 .home-hero-title/sub 의 clamp 가 전 폭 담당 — 고정 override 제거 */

    .category-card-grid { grid-template-columns: repeat(7, 1fr); gap: var(--gap-grid); }
    .region-grid        { grid-template-columns: repeat(6, 1fr); gap: var(--gap-grid); }
    .highlight-grid     { grid-template-columns: repeat(3, 1fr); }
    .recent-grid        { grid-template-columns: repeat(4, 1fr); }
    .guide-grid         { grid-template-columns: repeat(3, 1fr); }
    .popular-grid       { grid-template-columns: repeat(5, 1fr); }
    .vet-list           { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    #map { height: 420px; }
    .streetview-container { height: 420px; }
    .detail-content .vet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 태블릿/모바일 (≤800) ── */
@media (max-width: 800px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .vet-list { grid-template-columns: 1fr; }
    .home-hero .container { max-width: 100%; }
}
@media (max-width: 800px) and (min-width: 561px) {
    .vet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================ */
/* 쇼츠 — 홈 미끼 스트립 (썸네일로 /쇼츠 피드 꼬시기)            */
/* ============================================================ */
.home-shorts { margin: var(--section-gap, 28px) 0; }
.home-shorts-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.home-shorts-title { font-size: 19px; font-weight: 700; color: var(--text-strong, var(--text-primary, #2c3e50)); }
.home-shorts-more { font-size: 13px; color: var(--accent, #3498db); text-decoration: none; font-weight: 600; }
.home-shorts-strip {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.hs-card {
    flex: 0 0 150px; scroll-snap-align: start;
    text-decoration: none; color: inherit;
    transition: transform .22s ease;
}
.hs-card:hover { transform: translateY(-5px); }
.hs-thumb {
    position: relative; display: block; width: 150px; height: 228px;
    border-radius: 16px; overflow: hidden;
    background-size: cover; background-position: center; background-color: #111;
    box-shadow: 0 4px 14px rgba(0,0,0,.16);
    transition: box-shadow .22s ease;
}
.hs-card:hover .hs-thumb { box-shadow: 0 12px 30px rgba(0,0,0,.30); }
/* 상단 옅은 그라데이션 — 밝은 썸네일에서도 재생버튼이 뜨게(깊이감) */
.hs-thumb::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.28) 0%, transparent 42%);
}
.hs-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    z-index: 2; width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.94); color: #111; border-radius: 50%;
    font-size: 15px; padding-left: 3px;
    box-shadow: 0 3px 14px rgba(0,0,0,.4);
    transition: transform .22s ease, background .22s ease;
}
.hs-card:hover .hs-play { transform: translate(-50%,-50%) scale(1.14); background: #fff; }
.hs-cap {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 12.5px; font-weight: 500; margin: 9px 3px 0; line-height: 1.34;
    color: var(--text-primary, #2c3e50); word-break: keep-all;
}

/* ============================================================ */
/* 쇼츠 — 전용 피드 (세로 스와이프, 체류용). 단일 반응형 480px 중앙 */
/* ============================================================ */
.shorts-main { max-width: 480px; margin: 0 auto; }
.shorts-topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--card-bg, #fff);
    border-bottom: 1px solid var(--border, var(--border-color, #e0e6ed));
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.shorts-back { font-size: 20px; text-decoration: none; color: var(--text-primary, #2c3e50); flex: 0 0 auto; }
.shorts-brand { font-weight: 700; flex: 0 0 auto; white-space: nowrap; }
.shorts-cats { display: flex; gap: 6px; margin-left: auto; }
.shorts-cat {
    flex: 0 0 auto; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
    background: var(--card-bg-hover, rgba(0,0,0,.05)); font-size: 13px;
    text-decoration: none; color: var(--text-secondary, #5a6c7d);
}
.shorts-cat.on { background: var(--accent, #3498db); color: #fff; }

.shorts-feed { scroll-snap-type: y mandatory; }
.shorts-item {
    scroll-snap-align: start;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 12px 12px 16px;
}
.shorts-player {
    position: relative; width: min(100%, 420px);
    aspect-ratio: 9 / 16; max-height: 82svh;
    background: #000; background-size: cover; background-position: center;
    border-radius: 14px; overflow: hidden;
}
.shorts-player .yt-slot, .shorts-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shorts-loading {
    position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.5); color: #fff; border-radius: 50%; font-size: 20px; padding-left: 3px;
}
.shorts-player.yt-ready .shorts-loading { display: none; }
.shorts-info { width: min(100%, 420px); padding: 10px 2px 0; }
.shorts-vtitle {
    font-weight: 600; font-size: 15px; margin: 0 0 3px; line-height: 1.35;
    overflow-wrap: anywhere; word-break: keep-all;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--text-primary, #2c3e50);
}
.shorts-vchan { font-size: 12.5px; color: var(--text-secondary, #5a6c7d); margin: 0; }
.shorts-lure { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shorts-lure a {
    padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: var(--accent, #3498db); color: #fff !important; text-decoration: none;
}
.shorts-end { justify-content: center; }
.shorts-end-box { text-align: center; padding: 30px 16px; }
.shorts-end-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: var(--text-primary, #2c3e50); }
.shorts-end-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 300px; margin: 0 auto 16px; }
.shorts-end-grid a {
    padding: 14px; border-radius: 10px; background: var(--card-bg-hover, rgba(0,0,0,.05));
    text-decoration: none; color: var(--text-primary, #2c3e50); font-weight: 600;
}
.shorts-end-home { color: var(--text-secondary, #5a6c7d); text-decoration: none; font-size: 14px; }

/* PC: 영상 옆에 정보·회유 가로 배치 — 양옆 휑함 해소(유튜브 쇼츠 PC 레이아웃) */
@media (min-width: 900px) {
    .shorts-main { max-width: 900px; }
    .shorts-item { flex-direction: row; align-items: center; justify-content: center; gap: 30px; }
    .shorts-info { width: 320px; padding-top: 0; align-self: center; }
    .shorts-vtitle { font-size: 17px; -webkit-line-clamp: 3; }
    .shorts-lure { margin-top: 16px; }
    .shorts-lure a { display: block; text-align: center; }
    .shorts-end { flex-direction: column; }
}
