:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --paper-deep: #eee5d6;
  --ink: #17241c;
  --muted: #68736c;
  --green: #2d6b4d;
  --green-dark: #1c4f38;
  --green-soft: #dcecd7;
  --orange: #f47b4f;
  --yellow: #f4c95d;
  --white: #fffdf8;
  --line: #d8d3c8;
  --shadow: 0 18px 50px rgb(32 57 42 / 10%);
  font-family:
    Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 30px;
  transform: rotate(-8deg);
}

.brand-mark span,
.brand-mark b {
  position: absolute;
  display: block;
  background: var(--green);
  border-radius: 50%;
}

.brand-mark span {
  width: 8px;
  height: 10px;
}

.brand-mark span:nth-child(1) { left: 1px; top: 7px; }
.brand-mark span:nth-child(2) { left: 9px; top: 0; }
.brand-mark span:nth-child(3) { right: 6px; top: 1px; }
.brand-mark span:nth-child(4) { right: 0; top: 10px; }
.brand-mark b { width: 19px; height: 17px; left: 7px; bottom: 0; }

.header-note {
  padding: 7px 11px;
  border: 1px solid #b7c7b9;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 390px;
  overflow: hidden;
  padding: 72px 76px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 12%, rgb(255 255 255 / 42%) 0 7%, transparent 7.3%),
    linear-gradient(125deg, #dcecd2 0%, #aed2a7 54%, #82b792 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgb(32 89 60 / 18%);
  border-radius: 50%;
}

.hero::before {
  right: -80px;
  bottom: -190px;
  width: 500px;
  height: 500px;
}

.hero::after {
  right: 130px;
  bottom: -245px;
  width: 510px;
  height: 510px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-description {
  max-width: 470px;
  margin: 25px 0 0;
  color: #3f5748;
  font-size: 17px;
  line-height: 1.7;
}

.hero-dog {
  position: absolute;
  right: 72px;
  bottom: -44px;
  z-index: 1;
  width: 265px;
  height: 295px;
}

.dog-face {
  position: absolute;
  inset: 52px 15px 0;
  border-radius: 48% 48% 42% 42%;
  background: #c98957;
  box-shadow: inset -20px -20px 0 rgb(112 67 39 / 12%);
}

.dog-face::before {
  position: absolute;
  content: "";
  width: 115px;
  height: 120px;
  right: 18px;
  bottom: 18px;
  border-radius: 60% 42% 45% 55%;
  background: #f3dfc5;
}

.dog-ear {
  position: absolute;
  top: 25px;
  z-index: 2;
  width: 88px;
  height: 128px;
  border-radius: 55% 45% 45% 55%;
  background: #86502f;
}

.dog-ear-left { left: 2px; transform: rotate(24deg); }
.dog-ear-right { right: 2px; transform: rotate(-24deg); }

.dog-eye,
.dog-nose,
.dog-mouth {
  position: absolute;
  z-index: 2;
  display: block;
  background: var(--ink);
}

.dog-eye {
  top: 102px;
  width: 13px;
  height: 17px;
  border-radius: 50%;
}

.dog-eye-left { left: 63px; }
.dog-eye-right { right: 60px; }

.dog-nose {
  top: 145px;
  left: 50%;
  width: 25px;
  height: 18px;
  border-radius: 60% 60% 50% 50%;
  transform: translateX(-50%);
}

.dog-mouth {
  top: 164px;
  left: 50%;
  width: 2px;
  height: 29px;
}

.dog-mouth::after {
  position: absolute;
  top: 12px;
  left: -15px;
  width: 30px;
  height: 16px;
  content: "";
  border-bottom: 3px solid var(--ink);
  border-radius: 0 0 50% 50%;
}

.finder {
  padding: 88px 0 50px;
}

.finder-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.finder h2,
.notice h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.055em;
}

.result-summary {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgb(45 107 77 / 12%);
}

.search-box svg,
.locate-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box svg {
  flex: none;
  margin-right: 12px;
  color: #7b877e;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.search-box input::placeholder {
  color: #98a099;
}

.locate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 150px;
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  color: white;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.locate-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.locate-button:disabled { cursor: wait; opacity: 0.7; transform: none; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.filter {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #58645c;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.location-privacy {
  margin-left: auto;
  color: #7b857e;
  font-size: 12px;
}

.status-message {
  min-height: 21px;
  margin: 12px 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.finder-grid {
  display: grid;
  gap: 18px;
}

.map {
  position: relative;
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.map-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.park-list {
  display: grid;
  grid-auto-columns: minmax(320px, 360px);
  grid-auto-flow: column;
  gap: 12px;
  padding: 4px 4px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #9bad9f transparent;
}

.park-card {
  height: 100%;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 24px rgb(32 57 42 / 5%);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.park-card:hover,
.park-card.selected {
  border-color: #86a58f;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgb(32 57 42 / 10%);
}

.park-card:focus-visible {
  outline: 3px solid rgb(45 107 77 / 28%);
  outline-offset: 2px;
}

.park-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.park-region {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.park-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.distance {
  flex: none;
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.park-address,
.park-hours,
.park-note {
  margin: 10px 0 0;
  color: #5f6962;
  font-size: 13px;
  line-height: 1.55;
}

.park-hours {
  color: var(--ink);
  font-weight: 750;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  padding: 5px 8px;
  border-radius: 7px;
  background: #f0eee7;
  color: #59645c;
  font-size: 11px;
  font-weight: 750;
}

.park-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e7e2d8;
}

.show-on-map,
.route-link,
.source-link {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.show-on-map:hover,
.route-link:hover,
.source-link:hover { text-decoration: underline; }

.route-link {
  padding: 9px 12px;
  border-radius: 10px;
  background: #ffe812;
  color: #312b00;
}

.source-line {
  margin: 12px 0 0;
  color: #8a918c;
  font-size: 11px;
}

.source-link {
  color: #777f79;
  font-size: inherit;
}

.empty-state {
  padding: 50px 24px;
  border: 1px dashed #bfc4bd;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.review-panel {
  min-height: 180px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 30px rgb(32 57 42 / 6%);
}

.review-empty {
  display: grid;
  min-height: 122px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.review-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.review-eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.review-heading h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.review-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.review-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.review-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid #dfe3dc;
  border-radius: 14px;
  background: #faf9f4;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.review-link:hover {
  border-color: #86a58f;
  transform: translateY(-2px);
}

.review-link strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.review-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.review-link b {
  color: var(--green);
  font-size: 17px;
}

.notice {
  display: flex;
  gap: 20px;
  margin: 30px 0 90px;
  padding: 28px 32px;
  border: 1px solid #e3c08a;
  border-radius: 20px;
  background: #fff5df;
}

.notice-icon {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 900;
}

.notice h2 {
  font-size: 19px;
}

.notice p {
  margin: 8px 0 0;
  color: #6e604a;
  font-size: 14px;
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: #7f877f;
  font-size: 12px;
}

.leaflet-popup-content-wrapper {
  border-radius: 13px;
  box-shadow: 0 10px 30px rgb(31 52 39 / 18%);
}

.leaflet-popup-content {
  margin: 14px 16px;
  font-family: inherit;
  line-height: 1.4;
}

.popup-name { font-weight: 900; }
.popup-hours { margin-top: 4px; color: #627067; font-size: 12px; }

.dog-marker {
  display: grid;
  width: 38px !important;
  height: 38px !important;
  margin: -19px 0 0 -19px !important;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 12%;
  background: var(--green);
  box-shadow: 0 7px 18px rgb(20 62 41 / 28%);
  color: white;
  font-size: 17px;
  transform: rotate(-45deg);
}

.dog-marker span { transform: rotate(45deg); }

.user-marker {
  width: 20px !important;
  height: 20px !important;
  margin: -10px 0 0 -10px !important;
  border: 4px solid white;
  border-radius: 50%;
  background: #4285f4;
  box-shadow: 0 0 0 7px rgb(66 133 244 / 20%);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 420px;
    padding: 54px 38px;
  }

  .hero-copy { max-width: 75%; }
  .hero-dog { right: 25px; width: 220px; height: 248px; opacity: 0.9; }
  .map { height: 430px; }
  .review-heading { align-items: flex-start; flex-direction: column; }
  .review-links { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header,
  main { width: min(100% - 24px, 1180px); }

  .site-header { min-height: 64px; }
  .header-note { display: none; }

  .hero {
    min-height: 430px;
    padding: 42px 24px;
    border-radius: 24px;
  }

  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 40px; }
  .hero-description { max-width: 270px; font-size: 15px; }
  .hero-dog { right: -12px; bottom: -65px; transform: scale(0.8); }

  .finder { padding-top: 64px; }
  .finder-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .finder h2 { font-size: 29px; }
  .search-row { grid-template-columns: 1fr; }
  .locate-button { width: 100%; }
  .filter-row { flex-wrap: wrap; }
  .location-privacy { width: 100%; margin: 4px 0 0; }
  .map { height: 370px; border-radius: 20px; }
  .park-list { grid-auto-columns: min(84vw, 320px); }
  .park-card { padding: 18px; }
  .review-panel { padding: 22px 20px; }
  .review-heading h3 { font-size: 21px; }
  .notice { margin-bottom: 60px; padding: 22px; }
  footer { flex-direction: column; gap: 5px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
