:root {
  --navy: #102a43;
  --blue: #1769e0;
  --blue-dark: #0e4eae;
  --sky: #eaf5ff;
  --yellow: #ffd45c;
  --green: #17a866;
  --green-dark: #087744;
  --coral: #ff7565;
  --paper: #ffffff;
  --line: #d9e6ef;
  --muted: #5e7386;
  --shadow: 0 18px 50px rgba(16, 42, 67, .1);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: #f7fbff;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
button, input, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--navy); border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(217, 230, 239, .88);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 30px rgba(16, 42, 67, .07);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--navy); background: var(--yellow); border-radius: 12px; transform: rotate(-4deg); }
.blog-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; color: #fff; background: #03c75a; border-radius: 12px; text-decoration: none; font-size: .92rem; font-weight: 800; box-shadow: 0 8px 20px rgba(3, 199, 90, .2); }
.blog-button span { display: grid; place-items: center; width: 23px; height: 23px; color: #03c75a; background: #fff; border-radius: 6px; font-weight: 900; }

.hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 570px;
  margin: 0 auto;
  padding: 62px 0 54px;
}
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: .86rem; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-family: "Gowun Dodum", sans-serif; font-size: clamp(3rem, 5.5vw, 5.1rem); line-height: 1.12; letter-spacing: -.055em; }
h1 em { color: var(--blue); font-style: normal; }
.hero-text { max-width: 550px; margin: 24px 0 22px; color: var(--muted); font-size: 1.08rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-points span { flex: 0 0 auto; padding: 8px 12px; color: var(--blue-dark); background: var(--sky); border-radius: 999px; font-size: .9rem; font-weight: 700; }

.hero-art { position: relative; min-height: 390px; overflow: hidden; background: linear-gradient(145deg, #eaf6ff, #cde7ff); border: 8px solid rgba(255,255,255,.78); border-radius: 42px 70px 42px 70px; box-shadow: 0 24px 55px rgba(16,42,67,.16); transform: rotate(1deg); }
.hero-illustration { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center; transform: scale(1.015); }
.sun { position: absolute; top: 47px; right: 76px; width: 75px; height: 75px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255, 212, 92, .18); }
.cloud { position: absolute; width: 100px; height: 30px; background: rgba(255,255,255,.85); border-radius: 30px; }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; background: inherit; border-radius: 50%; }
.cloud::before { left: 18px; width: 42px; height: 42px; }
.cloud::after { right: 17px; width: 54px; height: 54px; }
.cloud-one { top: 83px; left: 58px; }
.cloud-two { top: 154px; right: 38px; transform: scale(.72); }
.route { position: absolute; left: 8%; right: 7%; bottom: -24px; height: 220px; background: #8ed398; border-radius: 50% 50% 0 0 / 45% 45% 0 0; }
.route::before { content: ""; position: absolute; left: 46%; top: -5px; width: 72px; height: 240px; background: #fff6d3; border-radius: 55% 48% 0 0; transform: rotate(13deg); }
.route::after { content: ""; position: absolute; left: 52%; top: 16px; width: 3px; height: 190px; background: repeating-linear-gradient(to bottom, white 0 15px, transparent 15px 30px); transform: rotate(13deg); }
.pin { position: absolute; display: grid; place-items: center; width: 80px; height: 80px; padding-bottom: 7px; background: #fff; border: 6px solid var(--blue); border-radius: 50% 50% 50% 5px; font-size: 2rem; box-shadow: 0 14px 25px rgba(16,42,67,.18); transform: rotate(-45deg); }
.pin::before { content: ""; position: absolute; inset: 0; }
.pin-one { left: 18%; bottom: 77px; }
.pin-two { right: 17%; bottom: 95px; border-color: var(--coral); }
.pin-one, .pin-two { line-height: 1; }
.pin-one::after, .pin-two::after { display: block; transform: rotate(45deg); }
.pin-one { font-size: 0; }
.pin-one::after { content: "🐶"; font-size: 2rem; }
.pin-two { font-size: 0; }
.pin-two::after { content: "🐱"; font-size: 2rem; }
.landmark { position: absolute; left: 44%; bottom: 129px; display: grid; place-items: center; width: 70px; height: 58px; color: var(--coral); background: white; border-radius: 14px; box-shadow: 0 10px 25px rgba(16,42,67,.12); font-size: 1.4rem; }

.search-section { padding: 90px max(16px, calc((100vw - 1180px) / 2)) 100px; background: linear-gradient(180deg, #eaf5ff 0%, #f8fcff 100%); }
.section-heading { max-width: 750px; margin-bottom: 30px; }
.section-heading h2, .guide-section h2, .source-section h2 { margin: 0; font-family: "Gowun Dodum", sans-serif; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.2; letter-spacing: -.04em; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.search-card { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr auto; gap: 12px; align-items: end; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; min-width: 0; font-weight: 750; }
.field small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.field select, .field input { width: 100%; height: 52px; padding: 0 13px; color: var(--navy); border: 1px solid var(--line); border-radius: 13px; background: #fbfdff; outline: none; }
.field select:focus, .field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 224, .13); }
.field select:disabled { color: #8ea0ae; background: #eef3f6; }
.search-button { height: 52px; padding: 0 22px; color: #fff; border: 0; border-radius: 13px; background: var(--blue); font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(23, 105, 224, .22); white-space: nowrap; }
.search-button:hover { background: var(--blue-dark); }
.search-button:disabled { cursor: wait; opacity: .65; }

.notice { margin-top: 18px; padding: 18px 20px; border-radius: 16px; }
.setup-notice { color: #6b4800; border: 1px solid #f1ce6a; background: #fff8d9; }
.setup-notice p { margin: 5px 0 0; }
.setup-notice code { padding: 2px 6px; background: rgba(255,255,255,.7); border-radius: 6px; }
.blog-promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; color: #16452d; border: 1px solid #a6e6c3; border-radius: 18px; background: linear-gradient(135deg, #edfff5, #ddfaea); box-shadow: 0 10px 28px rgba(3,199,90,.09); }
.blog-promo[hidden] { display: none; }
.promo-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #fff; border-radius: 14px; font-size: 1.65rem; }
.blog-promo strong { display: block; font-size: 1.03rem; }
.blog-promo p { margin: 3px 0 0; color: #3e6c54; font-size: .9rem; }
.blog-promo a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; color: #fff; background: #03c75a; border-radius: 12px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.blog-promo a span { display: grid; place-items: center; width: 22px; height: 22px; color: #03c75a; background: #fff; border-radius: 5px; }
.result-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 55px 0 24px; }
.result-kicker { margin: 0 0 5px; color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.result-toolbar h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.result-count { margin: 0; color: var(--muted); font-weight: 700; }
.status { padding: 70px 20px; border: 1px dashed #a9c8df; border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.55); }
.status[hidden] { display: none; }
.status h3 { margin: 12px 0 6px; font-size: 1.25rem; }
.status p { margin: 0; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: auto; background: white; border-radius: 50%; box-shadow: 0 12px 28px rgba(16,42,67,.08); font-size: 2rem; }
.loading-icon { width: 48px; height: 48px; margin: 0 auto 16px; border: 5px solid #d8eaff; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.place-card { overflow: hidden; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 35px rgba(16,42,67,.08); transition: transform .18s ease, box-shadow .18s ease; }
.place-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(16,42,67,.13); }
.place-image-wrap { position: relative; height: 210px; background: #dfeefa; overflow: hidden; }
.place-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.place-image[hidden] { display: none; }
.image-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 7px; color: #678299; text-align: center; background: linear-gradient(145deg, #eaf5ff, #d5eaff); }
.image-placeholder[hidden] { display: none; }
.image-placeholder span { font-size: 2.3rem; }
.image-placeholder small { font-weight: 700; }
.type-badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; color: #fff; background: rgba(16,42,67,.84); border-radius: 999px; font-size: .76rem; font-weight: 800; backdrop-filter: blur(8px); }
.source-badge { position: absolute; right: 14px; top: 14px; max-width: 54%; overflow: hidden; padding: 6px 10px; color: #16452d; background: rgba(237,255,245,.92); border-radius: 999px; font-size: .69rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(8px); }
.place-body { padding: 21px; }
.place-title { margin: 0 0 12px; font-size: 1.2rem; line-height: 1.35; }
.place-address, .place-phone { position: relative; margin: 7px 0; padding-left: 23px; color: var(--muted); font-size: .91rem; }
.place-address::before { content: "⌖"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.place-phone::before { content: "☎"; position: absolute; left: 0; color: var(--blue); }
.place-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.place-actions button, .place-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 10px; border-radius: 11px; text-decoration: none; font-size: .88rem; font-weight: 800; cursor: pointer; }
.detail-button { color: #fff; border: 0; background: var(--blue); }
.detail-button:hover { background: var(--blue-dark); }
.detail-button:disabled { cursor: wait; opacity: .65; }
.map-button { color: var(--navy); border: 1px solid var(--line); background: #fff; }
.map-button:hover { background: var(--sky); }
.pet-detail { margin-top: 16px; padding: 16px; border-radius: 14px; background: #f4f9fd; }
.pet-detail h4 { margin: 0 0 12px; font-size: 1rem; }
.detail-row { margin: 10px 0; }
.detail-row strong { display: block; margin-bottom: 2px; color: var(--blue-dark); font-size: .78rem; }
.detail-row p { margin: 0; color: #40596d; font-size: .88rem; white-space: pre-line; }
.official-homepage { display: inline-flex; margin-top: 7px; padding: 8px 10px; color: var(--blue-dark); border: 1px solid #bad7ef; border-radius: 9px; background: #fff; text-decoration: none; font-size: .82rem; font-weight: 800; }
.detail-caution { margin: 12px 0 0; padding-top: 11px; color: #765319; border-top: 1px solid #dfebf3; font-size: .8rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 34px; }
.pagination button { min-height: 44px; padding: 0 17px; color: var(--navy); border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 750; cursor: pointer; }
.pagination button:disabled { cursor: default; opacity: .42; }
.pagination span { min-width: 80px; text-align: center; font-weight: 800; }

.guide-section, .source-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 55px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 100px 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(16,42,67,.06); }
.guide-grid span { color: var(--blue); font-weight: 900; }
.guide-grid h3 { margin: 12px 0 7px; }
.guide-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.source-section { border-top: 1px solid var(--line); }
.source-copy p { margin: 0 0 16px; color: var(--muted); }
.source-copy a { display: inline-flex; margin: 0 6px 7px 0; padding: 11px 15px; color: var(--blue-dark); border: 1px solid #b9d7f0; border-radius: 11px; background: var(--sky); text-decoration: none; font-weight: 800; }
.source-copy small { display: block; margin-top: 15px; color: var(--muted); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px max(16px, calc((100vw - 1180px) / 2)); color: #d9e7f2; background: var(--navy); }
footer .brand-mark { color: var(--navy); }
footer p { margin: 0; font-size: .9rem; }

@media (max-width: 1060px) {
  .search-card { grid-template-columns: repeat(3, 1fr); }
  .keyword-field { grid-column: span 2; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-section, .source-section { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .site-header { margin-top: 8px; }
  .brand { font-size: .93rem; }
  .blog-button { padding: 0 12px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 58px 0 40px; }
  .hero-art { min-height: 310px; margin-top: 38px; }
  .hero-illustration { min-height: 310px; }
  .search-section { padding-top: 68px; }
  .search-card { grid-template-columns: 1fr 1fr; padding: 18px; }
  .keyword-field { grid-column: 1 / -1; }
  .search-button { grid-column: 1 / -1; }
  .results { grid-template-columns: 1fr; }
  .result-toolbar { align-items: start; flex-direction: column; gap: 7px; }
  .blog-promo { grid-template-columns: auto 1fr; }
  .blog-promo a { grid-column: 1 / -1; }
  .guide-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .site-header { width: calc(100% - 16px); padding: 9px 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .blog-button { min-height: 38px; font-size: .82rem; }
  .blog-button span { display: none; }
  h1 { font-size: 2.75rem; }
  .hero-art { min-height: 260px; }
  .hero-illustration { min-height: 260px; }
  .pin { width: 65px; height: 65px; }
  .pin-one::after, .pin-two::after { font-size: 1.55rem; }
  .search-card { grid-template-columns: 1fr; }
  .keyword-field, .search-button { grid-column: 1; }
  .place-image-wrap { height: 195px; }
  .place-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
