/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; color: #333; line-height: 1.7; background: #f9f9f9; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
header { background: #fff; border-bottom: 2px solid #2563eb; padding: 14px 0; }
header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 1.3rem; font-weight: 700; color: #2563eb; }
nav a { margin-left: 16px; color: #555; font-size: 0.9rem; }
nav a:hover { color: #2563eb; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 10px 16px; font-size: 0.85rem; color: #888; background: #f0f4ff; }
.breadcrumb a { color: #2563eb; }
.breadcrumb span { color: #555; font-weight: 600; }

/* ── Main ── */
main { padding: 30px 16px 60px; }
h1 { font-size: 1.8rem; margin-bottom: 8px; color: #1e1e1e; }
.subtitle { color: #666; margin-bottom: 24px; font-size: 1rem; }

/* ── Region Groups (Index) ── */
.region-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.region-group h2 { font-size: 1.1rem; background: #2563eb; color: #fff; padding: 8px 14px; border-radius: 6px 6px 0 0; }
.district-list { list-style: none; background: #fff; border: 1px solid #e0e7ff; border-top: none; border-radius: 0 0 6px 6px; }
.district-list li a { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; transition: background .15s; }
.district-list li:last-child a { border-bottom: none; }
.district-list li a:hover { background: #f0f4ff; text-decoration: none; }
.count { color: #2563eb; font-size: 0.85rem; }

/* ── Card Grid (District Page) ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.05); transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 16px rgba(37,99,235,.1); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card h3 a { color: #1e1e1e; }
.card h3 a:hover { color: #2563eb; }
.addr, .phone { font-size: 0.88rem; color: #555; margin: 3px 0; }
.map-btn { display: inline-block; margin-top: 10px; font-size: 0.82rem; background: #2563eb; color: #fff; padding: 5px 12px; border-radius: 20px; }
.map-btn:hover { background: #1d4ed8; text-decoration: none; }

/* ── Hospital Detail ── */
.hospital-detail { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.06); max-width: 800px; }
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
.info-table th { width: 100px; background: #f0f4ff; padding: 10px 14px; text-align: left; font-weight: 600; color: #2563eb; border: 1px solid #e0e7ff; }
.info-table td { padding: 10px 14px; border: 1px solid #e0e7ff; }
.map-wrap { margin: 20px 0; border-radius: 10px; overflow: hidden; border: 1px solid #e0e7ff; }
.nearby { margin-top: 32px; }
.nearby h2 { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #e0e7ff; }
.nearby ul { list-style: none; }
.nearby ul li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 0.92rem; }
.more-btn { display: inline-block; margin-top: 14px; color: #2563eb; font-weight: 600; font-size: 0.95rem; }

/* ── Ad Wrap ── */
.ad-wrap { margin: 24px auto; text-align: center; }

/* ── Footer ── */
footer { background: #1e293b; color: #94a3b8; padding: 28px 0; font-size: 0.85rem; text-align: center; }
footer a { color: #94a3b8; }
footer p + p { margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .region-wrap { grid-template-columns: 1fr; }
}
