/* ===== 테마 (사이트별 색상) ===== */
:root {
  --bg: #f3f5f7; --card: #fff; --ink: #15191e; --sub: #5d6873; --faint: #8e98a3; --line: #e4e9ee;
  --accent: #0d8a7c; --accent-2: #14b39d; --accent-ink: #0a6b60; --accent-soft: #e4f6f3;
  --ok: #16a34a; --ok-soft: #dcfce7; --hl: #fff2c2; --warn-soft: #fff7e6;
  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .12);
}
body.site-money { --accent: #3b5bdb; --accent-2: #6a7ff2; --accent-ink: #2f49b5; --accent-soft: #edf1ff; }
body.site-travel { --accent: #2e7d32; --accent-2: #7cb342; --accent-ink: #23622a; --accent-soft: #ecf6e6; }

/* ===== 기본 ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; word-break: keep-all; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; }
.sample-banner { background: #ffe08a; text-align: center; padding: 6px; font-size: 13px; }

/* ===== 헤더 ===== */
.top { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.tagline { color: var(--faint); font-size: 13px; margin-left: 4px; }
.top-nav { margin-left: auto; display: flex; gap: 4px; }
.top-nav a { color: var(--sub); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.top-nav a:hover { background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; }
@media (max-width: 640px) { .tagline, .top-nav { display: none; } }

/* ===== 홈 히어로 ===== */
.hero-band { position: relative; overflow: hidden; color: #fff; padding: 44px 0 104px;
  background: radial-gradient(1200px 400px at 85% -20%, rgba(255, 255, 255, .22), transparent 60%),
              linear-gradient(135deg, var(--accent), var(--accent-2)); }
.hero-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); }
.hero-band .eyebrow { display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.hero-band h1 { font-size: 34px; margin: 0 0 10px; font-weight: 800; }
.hero-band .lead { margin: 0; opacity: .92; font-size: 17px; max-width: 560px; }
.stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.stats div { font-size: 13px; opacity: .9; }
.stats b { display: block; font-size: 22px; font-weight: 800; }
@media (max-width: 640px) { .hero-band { padding: 30px 0 96px; } .hero-band h1 { font-size: 26px; } }

/* ===== 검색 패널 (finder) ===== */
.finder { position: relative; z-index: 2; margin-top: -76px; background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 22px; }
.step + .step { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.step-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--accent); color: #fff; }
.step-title .opt { color: var(--faint); font-weight: 500; font-size: 13px; }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.selects.one { grid-template-columns: 1fr; }
.selects.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .selects.three { grid-template-columns: 1fr 1fr; } .selects.three .f-dong { grid-column: 1 / -1; } }
.select:disabled { background-color: var(--bg); color: var(--faint); }
.dong-filter { width: auto; min-width: 200px; padding-top: 9px; padding-bottom: 9px; font-size: 15px; border-radius: 999px; box-shadow: var(--shadow); border-color: transparent; }
.select { width: 100%; appearance: none; font: inherit; font-size: 16px; padding: 13px 40px 13px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d6873' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink); }
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { display: flex; gap: 6px; background: var(--bg); padding: 5px; border-radius: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 6px; border-radius: 9px; font-weight: 700; color: var(--sub);
  display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.seg button small { font-weight: 500; font-size: 12px; color: var(--faint); }
.seg button.on { background: #fff; color: var(--accent-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.seg button.on small { color: var(--accent); }
.seg button:disabled { opacity: .4; cursor: default; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.tile { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); transition: .12s; text-align: center; }
.tile:hover { border-color: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.tile .ic { font-size: 24px; line-height: 1.2; }
.tile .lb { font-size: 14px; font-weight: 700; }
.tile .ct { font-size: 12px; color: var(--faint); min-height: 1em; }
.tile.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.tile.on .lb { color: var(--accent-ink); }
.tile.dim { opacity: .45; }
.cta { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; width: 100%; padding: 16px;
  border-radius: var(--r); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800;
  font-size: 17px; box-shadow: 0 8px 18px rgba(0, 0, 0, .12); transition: .15s; }
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.cta.disabled { background: #cfd6dd; box-shadow: none; pointer-events: none; }
.finder-note { margin: 10px 0 0; font-size: 13px; color: var(--sub); text-align: center; }
.finder-note a { font-weight: 600; }

/* ===== 섹션 ===== */
.section { margin: 34px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 21px; margin: 0 0 14px; }
.section-title small { font-size: 13px; color: var(--faint); font-weight: 500; }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.grid-links a { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; transition: .12s; }
.grid-links a:hover { border-color: var(--accent-2); text-decoration: none; box-shadow: var(--shadow); }
.grid-links b { font-weight: 600; }
.grid-links small { color: var(--faint); font-size: 12px; }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tiles.big .tile { padding: 18px 10px; box-shadow: var(--shadow); border-color: transparent; }
.tiles.big .tile .ic { font-size: 30px; }

/* ===== 하위 페이지 헤더 ===== */
.page-head { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 22px 0 6px; }
.page-head h1 { font-size: 28px; margin: 10px 0 10px; display: flex; align-items: center; gap: 10px; }
.page-head .ph-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: #fff; box-shadow: var(--shadow); }
@media (max-width: 640px) { .page-head h1 { font-size: 22px; } .page-head .ph-icon { width: 38px; height: 38px; font-size: 20px; } }
.crumbs { font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--sub); }
.summary { font-size: 16px; background: var(--card); border-radius: var(--r); padding: 14px 16px; margin: 0 0 6px;
  box-shadow: var(--shadow); border-left: 4px solid var(--accent); }

/* ===== 공통 컴포넌트 ===== */
main { padding-bottom: 48px; }
.block { background: var(--card); border-radius: var(--r-lg); padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.block h2 { font-size: 18px; margin: 0 0 12px; }
.block h2 + .chips { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 14px; color: var(--ink); transition: .12s; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.chip small { color: var(--faint); }
.chip.static { pointer-events: none; background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.cards, .list, .results { list-style: none; padding: 0; margin: 0; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; margin: 12px 0; box-shadow: var(--shadow); border: 1px solid transparent; transition: .12s; }
.card:hover { border-color: var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.name { font-size: 17px; font-weight: 700; color: var(--ink); }
.meta { color: var(--sub); font-size: 14px; margin: 2px 0 8px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.open { background: var(--ok-soft); color: var(--ok); }
.badge.open::before { content: "● "; }
.badge.closed { background: #eef1f4; color: var(--faint); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.btn { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--accent-ink); border: 1.5px solid var(--line); }
.btn.big { font-size: 16px; padding: 13px 20px; }
.hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 12.5px; color: var(--sub); background: var(--bg);
  border-radius: var(--r-sm); padding: 8px; }
.hours .h { padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hours .h b { color: var(--ink); margin-right: 2px; }
.hours .hl { background: var(--hl); color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .hours { grid-template-columns: repeat(2, 1fr); } }
.more { display: block; text-align: center; font-weight: 700; margin-top: 10px; padding: 10px; border-radius: var(--r-sm); background: var(--accent-soft); }
.more:hover { text-decoration: none; filter: brightness(.98); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; background: var(--card); padding: 9px 14px; border-radius: 999px;
  box-shadow: var(--shadow); cursor: pointer; font-size: 14px; }
.toggle input { accent-color: var(--accent); width: 18px; height: 18px; }
.hint { color: var(--faint); font-size: 13px; margin: 4px 0; }
.note-box { background: var(--warn-soft); border: 1px solid #f5dfae; border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: #6b5420; }
.note-box b { color: #4d3a0f; }
.depts { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.tag { font-size: 12px; background: var(--accent-soft); color: var(--accent-ink); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.tag.light { background: #eef1f4; color: var(--sub); font-weight: 500; }
.tag.pet { background: #fdeede; color: #b45309; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* 진료과목 표 */
.dept-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dept-table th, .dept-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.dept-table tbody tr:hover { background: var(--bg); }
.dept-table tbody th { text-align: left; font-weight: 700; }
.dept-table thead th { color: var(--faint); font-weight: 600; font-size: 13px; }
.dept-table a { font-weight: 700; display: inline-block; min-width: 48px; padding: 3px 8px; border-radius: 8px; background: var(--accent-soft); }
.dept-table a:hover { text-decoration: none; background: var(--accent); color: #fff; }
.dept-table .none { color: var(--line); }

/* 지원금 아이템 */
.item { background: var(--card); border-radius: var(--r); padding: 16px 18px; margin: 10px 0; box-shadow: var(--shadow); border: 1px solid transparent; transition: .12s; }
.item:hover { border-color: var(--accent-2); }
.item a.title { font-weight: 700; font-size: 16.5px; color: var(--ink); }
.item p { margin: 6px 0 0; font-size: 14px; color: var(--sub); }
.item .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--sub); }
.pill.money { background: #fff4d6; color: #8a5a00; font-weight: 600; }
.pill.org { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; background: var(--card); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); margin: 16px 0; }
.facts dt { color: var(--faint); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .facts { grid-template-columns: 84px 1fr; } }
.pre { white-space: pre-line; color: #2b3138; }

/* 검색 */
.search-box { position: relative; }
.search { width: 100%; font-size: 17px; padding: 15px 16px 15px 46px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%238e98a3' stroke-width='2'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E") no-repeat 16px center; }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.results { margin-top: 6px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.results:empty { display: none; }
.results li { background: var(--card); border-bottom: 1px solid var(--line); padding: 11px 16px; }
.results li small { color: var(--faint); display: block; }

/* 캠핑 */
.camp { display: flex; gap: 14px; padding: 12px; }
.thumb { width: 132px; height: 100px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: var(--accent-soft); }
.thumb.ph { display: grid; place-items: center; font-size: 34px; }
.camp-body { min-width: 0; }
.camp-body p { margin: 0 0 8px; font-size: 14px; color: var(--sub); }
@media (max-width: 520px) { .thumb { width: 96px; height: 84px; } }
.hero-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--r-lg); margin: 8px 0; box-shadow: var(--shadow); }
.gear { display: block; background: linear-gradient(135deg, #fff8ea, #fff); border: 1px solid #f1dcae; border-radius: var(--r-lg); padding: 18px; margin: 18px 0; }
.gear p { margin: 4px 0 10px; color: var(--sub); }
.gear small { display: block; color: var(--faint); margin-top: 10px; font-size: 12px; }

/* 광고 */
.ad { margin: 18px 0; min-height: 90px; }
.ad-placeholder { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line); color: var(--faint); font-size: 13px; border-radius: var(--r); }

/* 광고: 애드핏 PC/모바일 전환 */
.ad-adfit { display: flex; justify-content: center; min-height: 0; }
.only-mobile { display: none; }
@media (max-width: 767px) { .only-pc { display: none; } .only-mobile { display: block; } }

/* 안내 문서(소개·개인정보처리방침·문의) */
.prose h2 { font-size: 18px; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2b3138; font-size: 15.5px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose code { background: var(--bg); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* 한눈에 보기 (데이터 해석) */
.insights { background: linear-gradient(135deg, var(--accent-soft), #fff); border: 1px solid var(--line); }
.insights ul { margin: 0; padding-left: 0; list-style: none; }
.insights li { position: relative; padding: 6px 0 6px 26px; font-size: 15px; color: #2b3138; }
.insights li::before { content: "✔"; position: absolute; left: 2px; top: 6px; color: var(--accent); font-weight: 800; }

/* 가이드 */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.guide-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow);
  color: var(--ink); border: 1px solid transparent; transition: .12s; }
.guide-card:hover { border-color: var(--accent-2); text-decoration: none; }
.gc-icon { font-size: 26px; line-height: 1; }
.gc-body b { display: block; font-size: 15.5px; }
.gc-body small { display: block; color: var(--sub); font-size: 13px; margin-top: 4px; }
.guide h2 { font-size: 20px; margin-top: 30px; padding-top: 6px; }
.guide h3 { font-size: 17px; margin: 20px 0 6px; }
.guide table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.guide th, .guide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.guide th { background: var(--bg); }
.guide blockquote { margin: 14px 0; padding: 12px 16px; background: var(--warn-soft); border-left: 4px solid #e0b96a; border-radius: 8px; }
.guide blockquote p { margin: 0; }

/* 푸터 */
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 0 6px; }
.foot-links a { color: #cfd6dd; font-size: 13px; }
.foot-links b { color: #fff; }
.foot .copy { color: #6f7a85; }
.foot { background: #1c2228; color: #9aa5b0; font-size: 13px; padding: 28px 0 40px; margin-top: 20px; }
.foot .brand { color: #fff; font-size: 16px; margin-bottom: 8px; }
.foot .logo { width: 28px; height: 28px; font-size: 15px; }
.foot p { margin: 4px 0; }
.foot a { color: #cfd6dd; }
