/* 2026-11-10 밤 UI/UX 2차 고도화 공통 규칙(base.html에서 site-polish.css 다음에 읽음). app.css·hamgae-ds.css는 바꾸지 않고 여기서 덮는다.
   광고 대기 자리 · 외부 블로그 후기 카드·정렬 · 장소 상세(메뉴 출처·방문 전 확인·인기글·출처 내역) · 홈(구조해주개·점주 안내·지역) · 로딩 표시 */
/* 2026-11-10 2차: 애드핏이 채워지기 전·못 채웠을 때 '광고' 글자만 남던 것 — app.css에서 .ad[data-adfit] .ad-label(display:block)이 같은 무게의
   .ad.ad-wait .ad-label(display:none) 뒤에 있어 이겼다 → 기다리는 동안은 상자 전체가 자리를 차지하지 않게 */
.ad[data-adfit].ad-wait, .ad[data-adsense].ad-wait { margin: 0; padding: 0; border: 0; min-height: 0; background: none; }
.ad[data-adfit].ad-wait .ad-label, .ad[data-adsense].ad-wait .ad-label { display: none; }
/* 채워진 광고: 위아래 콘텐츠·단추와 거리(오클릭 방지) · 하단 탭바에 가리지 않게 아래 여백 */
.ad[data-adfit]:not(.ad-wait) { margin-top: 24px; margin-bottom: 24px; }
.ad[data-adfit] .ad-label { color: var(--muted, #6b7079); }
/* 2026-11-10 2차 고도화: 외부 블로그 후기 카드 — [썸네일] 제목(2줄) / 작성자 · 작성일 / 작은 출처(N NAVER Blog) / 원문 보기. 카드 사이 간격 같게 */
.ext-reviews .er-row { align-items: start; padding: 14px 0; }
.ext-reviews .er-row .er-body { gap: 4px; }
.ext-reviews .er-row .er-title { font-size: 15px; font-weight: 700; line-height: 1.42; -webkit-line-clamp: 2; }
.ext-reviews .er-row .er-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; color: var(--muted, #6b7079); }
.ext-reviews .er-row .er-meta > span, .ext-reviews .er-row .er-meta > time { display: inline; }
.ext-reviews .er-row .er-nodate { color: var(--muted, #6b7079); }
.ext-reviews .er-row .er-src2 { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2, #474b52); font-weight: 600; }
.ext-reviews .er-nb { display: inline-grid; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 3px; background: #03C75A; color: #fff; }
.ext-reviews .er-nb svg { display: block; width: 8px; height: 8px; }
.ext-reviews .er-row .er-open { margin-top: 0; font-weight: 600; text-decoration: none; }
.ext-reviews .er-row .er-open-t { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
.ext-reviews .er-row:hover .er-title { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 380px) { .ext-reviews .er-row { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; } .ext-reviews .er-row .er-media, .ext-reviews .er-row .er-media img { width: 60px; height: 60px; } }
/* 네이버 출처 표시(작은 N 배지 · 공식 초록 #03C75A는 배지 바탕에만, 본문 글자색으로 쓰지 않음) */
.rv-ico.is-naver { background: #03C75A; color: #fff; }
/* 정렬 단추(최신순·과거순) */
.er-sort { display: inline-flex; gap: 4px; margin: 2px 0 6px; padding: 3px; border-radius: 999px; background: var(--bg-soft, #f4f5f7); }
.er-sort a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; color: var(--text-2, #474b52); font-size: 13px; font-weight: 600; text-decoration: none; }
.er-sort a[aria-pressed="true"] { background: var(--hg-surface, #fff); color: var(--text, #191b1f); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.er-sort a:focus-visible { outline: 3px solid var(--focus, #2f80ed); outline-offset: 1px; }
:root[data-theme="dark"] .er-sort { background: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .er-sort a[aria-pressed="true"] { background: var(--hg-elevated, #26262a); color: #f3f3f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .er-sort { background: rgba(255, 255, 255, .07); } :root:not([data-theme="light"]) .er-sort a[aria-pressed="true"] { background: var(--hg-elevated, #26262a); color: #f3f3f5; } }
[data-er-box][aria-busy="true"] .ext-reviews { opacity: .55; transition: opacity .15s; }
/* 장소 상세: 메뉴 출처 작은 표시 · 방문 전 확인 · 함께할개 인기글 · 정보 출처·업데이트 내역 */
.src-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft, #f4f5f7); color: var(--muted, #6b7079); font-weight: 600; white-space: nowrap; }
.menu-note { margin-top: 10px; }
.visit-check { margin: 14px 0 10px; padding: 12px 14px; border: 1px solid var(--line, #e8e9ec); border-radius: 12px; background: var(--hg-surface, #fff); }
.visit-check .vc-t { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.visit-check .vc-t .icon { color: var(--hg-primary, #c9405b); }
.visit-check .vc-d { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--text-2, #474b52); }
.visit-check .vc-link { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-size: 13.5px; font-weight: 600; }
.cond-mini .visit-check { margin-top: 6px; }
.place-popular .pp-list { display: grid; gap: 10px; margin: 0; padding: 0; }
.place-popular .pp-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line, #e8e9ec); border-radius: 12px; color: inherit; text-decoration: none; background: var(--hg-surface, #fff); }
.place-popular .pp-card:hover { border-color: var(--hg-border-strong, #c9cbd1); }
.place-popular .pp-ph { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--photo-bg, #f3f4f7); }
.place-popular .pp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-popular .pp-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.place-popular .pp-board { color: var(--hg-primary-strong, #b8324d); font-weight: 700; }
.place-popular .pp-title { font-size: 14.5px; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .place-popular .pp-list { grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 4px; }
  .place-popular .pp-item { scroll-snap-align: start; }
}
.src-up { margin: 8px 0 6px; }
.src-up dt { font-weight: 600; }
:root[data-theme="dark"] .visit-check, :root[data-theme="dark"] .place-popular .pp-card { background: var(--hg-elevated, #1f1f23); border-color: var(--hg-border, #34353a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .visit-check, :root:not([data-theme="light"]) .place-popular .pp-card { background: var(--hg-elevated, #1f1f23); border-color: var(--hg-border, #34353a); } }
:root[data-theme="dark"] .src-chip { background: rgba(255, 255, 255, .07); }
/* 2026-11-10 2차: 홈 구조해주개 칸(사진 카드 2~4개 · 차분한 상태 표시) */
.home-rescue .hr-sub { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--muted, #6b7079); }
.home-rescue .hr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
@media (min-width: 768px) { .home-rescue .hr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-rescue .hr-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line, #e8e9ec); border-radius: 12px; color: inherit; text-decoration: none; background: var(--hg-surface, #fff); }
.home-rescue .hr-ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--photo-bg, #f3f4f7); }
.home-rescue .hr-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-rescue .hr-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }
.home-rescue .hr-state { align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: var(--bg-soft, #f4f5f7); color: var(--text-2, #474b52); font-weight: 600; }
.home-rescue .hr-breed { font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-rescue .hr-note { margin-top: 8px; }
.home-rescue .hr-src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="dark"] .home-rescue .hr-card { background: var(--hg-elevated, #1f1f23); border-color: var(--hg-border, #34353a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home-rescue .hr-card { background: var(--hg-elevated, #1f1f23); border-color: var(--hg-border, #34353a); } }
/* 2026-11-10 2차: 홈 점주 등록 — 큰 광고 배너가 아니라 간단한 안내 카드 */
.hg-owner .btn-lg { min-height: 44px; padding: 0 18px; font-size: 15px; }
.hg-owner h2 { font-size: 18px; }
@media (max-width: 767px) { .hg-owner .hgo-art { display: none; } .hg-owner { grid-template-columns: minmax(0, 1fr); padding: 16px; } }
@media (min-width: 768px) { .hg-owner h2 { font-size: 20px; } .hg-owner { padding: 22px 28px; } }
/* 지역별 애견동반 장소: 처음부터 펼친 상태에서도 제목 줄이 펼침 단추임을 알 수 있게 */
.region-links .region-all > summary { cursor: pointer; }
/* 2026-11-10 2차: 검색·화면 이동 로딩 표시 — 실제로 보이는 화면 정중앙(app.js가 visualViewport로 top·left를 정함), 실패·지연 상태 */
.hk-local { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1200; max-width: min(360px, calc(100vw - 32px)); flex-wrap: wrap; text-align: center; }
.hk-local.is-slow, .hk-local.is-error { flex-direction: column; gap: 8px; padding: 14px 18px; border-radius: 16px; font-size: 14px; }
.hk-local.is-error { color: var(--danger, #b3261e); }
.hk-local-retry { min-height: 40px; padding: 0 16px; border: 1px solid var(--hg-line, #e5e5ea); border-radius: 999px; background: var(--hg-surface, #fff); color: var(--hg-text, #191b1f); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.hk-local-retry:focus-visible { outline: 3px solid var(--focus, #2f80ed); outline-offset: 2px; }
:root[data-theme="dark"] .hk-local-retry { background: var(--hg-elevated, #26262a); border-color: var(--hg-border, #34353a); color: #f3f3f5; }
@media (prefers-reduced-motion: reduce) { .hk-local .hk-spin { animation-duration: 2s; } }
