@import url("https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Noto+Sans+KR:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Song+Myung&display=swap");

/* TODO(학습): 이 파일의 색상과 장식만 바꾸어도 추천 기능은 같은 구조로 동작합니다. */
:root {
  --ink: #654331;
  --green: #895538;
  --cream: #fffbf1;
  --line: #e8d2ba;
  --orange: #b56828;
  --paw: url("/static/paw.svg");
}
body {
  background: var(--cream);
}
header {
  border-bottom: 1px dashed #dabb99;
}
.brand {
  display: block;
  padding-left: 45px;
  position: relative;
}
.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  background: #a97541;
  mask: var(--paw) center/contain no-repeat;
}
.edition {
  color: #88684e;
}
.hero {
  position: relative;
  margin: 30px 0 35px;
  padding: 45px 48px;
  gap: 45px;
  background: #f8e7be;
  border-radius: 28px;
  border: 1px solid #e9cfa0;
  overflow: hidden;
}
.hero > div {
  flex: 1;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: #976437;
}
.intro,
.muted,
.status {
  color: #84634c;
}
h1 {
  color: #67432e;
}
h1 em {
  color: #bd722e;
}
.trail-note {
  position: relative;
  z-index: 1;
  flex: 0 0 215px;
  background: #fff9e9;
  border: 1px solid #d8b482;
  border-radius: 14px;
  box-shadow: 5px 6px 0 #e9cfa180;
  padding: 23px;
  transform: rotate(4deg);
  margin: 20px 0;
}
.trail-note > span:first-of-type {
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #84634c;
}
.trail-note b {
  display: block;
  font-size: 34px;
  line-height: 1.2;
  margin: 19px 0;
}
.trail-note small {
  display: block;
  font-size: 10px;
  color: #84634c;
  border-top: 1px dashed #dabb99;
  padding-top: 14px;
}
.hidden-ear {
  position: absolute;
  top: -22px;
  width: 29px;
  height: 29px;
  background: #c8914b;
  border: 2px solid #956036;
  border-radius: 5px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  z-index: -1;
}
.ear-left {
  left: 20px;
  transform: rotate(-12deg);
}
.ear-right {
  right: 20px;
  transform: rotate(12deg);
}
.hidden-tail {
  position: absolute;
  right: -17px;
  bottom: 12px;
  width: 95px;
  height: 110px;
  border: 16px solid #c59049;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 70%;
  transform: rotate(-22deg);
  pointer-events: none;
}
.paw-walk {
  position: absolute;
  right: 19px;
  top: 85px;
  color: transparent;
  width: 32px;
  height: 40px;
  transform: rotate(-25deg);
  background: #dfc59c;
  mask: var(--paw) center/contain no-repeat;
}
.explore {
  border-top: 2px dashed #d3aa7e;
  padding-top: 24px;
}
button {
  border-color: #d7b99a;
  border-radius: 16px;
  background: #fffaf1;
}
button:hover {
  background: #f5e5ce;
}
button:not(.card)::before,
.map-links a::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: -4px;
  margin-right: 8px;
  background: currentColor;
  mask: var(--paw) center/contain no-repeat;
}
.primary {
  background: #895538;
  border-color: #895538;
  color: #fffaf1;
  box-shadow: 0 3px 0 #613b27;
}
.primary:hover {
  background: #73452d;
}
.close::before {
  width: 14px !important;
  height: 14px !important;
}
.close {
  min-width: 44px;
  min-height: 44px;
}
.workspace {
  gap: 20px;
}
#map {
  border: 3px solid #e4c6a4;
  border-radius: 23px;
  background: #f1e2cc;
}
.map-key {
  background: #fff9ee;
  color: #654331;
  border: 1px solid #e2c6a6;
  border-radius: 10px;
}
.list-panel {
  padding: 17px 18px 0;
  border: 1px solid #ead4b9;
  background: #fffdf7;
  border-radius: 23px;
}
.list-top {
  border-bottom-style: dashed;
}
.list-top > span,
.card-copy small {
  color: #8a6649;
}
#cards {
  height: 412px;
}
.card {
  background: transparent;
  padding: 17px 3px;
  border-bottom: 1px dashed #e5cfb5;
  border-radius: 0;
}
.card:hover {
  background: #fcf0de;
}
.card-no {
  position: relative;
  background: transparent;
  color: #fff;
  border: 0;
  isolation: isolate;
  height: 40px;
  min-width: 40px;
  padding-top: 11px;
  font-size: 10px;
}
.card-no::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #a66b40;
  mask: var(--paw) center/contain no-repeat;
  z-index: -1;
}
.card[data-category="2"] .card-no::before {
  background: #9b812d;
}
.card[data-category="3"] .card-no::before {
  background: #8e7265;
}
.card-copy p {
  color: #816049;
}
.card-distance {
  color: #9a602c;
}
.how {
  border-top: 1px dashed #dabb99;
}
.how span {
  color: #8c552d;
  background: #f1ddbc;
  padding: 8px 10px;
  border-radius: 50%;
}
footer {
  color: #85644b;
  border-top-style: dashed;
}
dialog {
  background: #fffaf0;
  border: 2px solid #dec09d;
  border-radius: 25px;
}
dialog::backdrop {
  background: #4b302b70;
}
.facts dt,
.map-note {
  color: #84634c;
}
.one-line-story {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  color: #98602e;
  border-left: 3px solid #d5a563;
  padding-left: 14px;
  margin: 22px 0;
}
.story {
  font-size: 15px;
  line-height: 2;
}
.map-links a {
  background: #895538;
  border-radius: 17px;
  text-align: center;
  min-height: 44px;
}
.map-links a::before {
  display: block;
  margin: 0 auto 5px;
  width: 25px;
  height: 25px;
}
.share-section {
  border-top: 1px dashed #dabb99;
  margin-top: 24px;
  padding-top: 12px;
}
.share-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.share-actions button {
  min-height: 44px;
}
.share-status,
.local-share-note {
  font-size: 12px;
  line-height: 1.7;
  color: #84634c;
}
.share-url {
  width: 100%;
  padding: 12px;
  border: 1px solid #dabb99;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.shared-view {
  max-width: 680px;
  margin: 35px auto;
  background: #fff8e9;
  padding: 35px;
  border: 1px solid #e2c7a3;
  border-radius: 24px;
}
.shared-view > button {
  margin-top: 22px;
}
.shared-entry .hero,
.shared-entry .explore,
.shared-entry .how {
  display: none;
}
.empty-paw {
  display: inline-block;
  width: 65px;
  height: 65px;
  background: #d5b382;
  mask: var(--paw) center/contain no-repeat;
}
#empty {
  color: #84634c;
  padding: 38px 10px;
}
.pin,
.pin.food,
.pin.cafe,
.pin.spot {
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  isolation: isolate;
  height: 36px;
  width: 36px;
  padding-top: 9px;
  font-size: 10px;
  color: white;
}
.pin::before {
  content: "";
  position: absolute;
  inset: 0;
  mask: var(--paw) center/contain no-repeat;
  background: #b36539;
  z-index: -1;
  filter: drop-shadow(0 1px 1px #654331);
}
.pin.cafe::before {
  background: #9b812d;
}
.pin.spot::before {
  background: #8e7265;
}
.dot.food {
  background: #b36539;
}
.dot.cafe {
  background: #9b812d;
}
.dot.spot {
  background: #8e7265;
}
.leaflet-tooltip {
  width: max-content;
  max-width: 230px;
  overflow-wrap: anywhere;
}
.search-center-icon {
  pointer-events: none !important;
}
.center-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: #fff7dc;
  font-size: 25px;
  border: none;
  border-radius: 0;
  box-shadow: none;

}
.center-label {
  background: #54341e !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 700;
  white-space: nowrap !important;
}
.center-label::before {
  border-top-color: #54341e !important;
}
.paw-trail {
  position: fixed;
  width: 27px;
  height: 27px;
  background: #996329;
  mask: var(--paw) center/contain no-repeat;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%) rotate(-20deg);
  animation: paw-fade 0.85s ease-out forwards;
}
@keyframes paw-fade {
  0% {
    opacity: 0.65;
    scale: 0.8;
  }
  25% {
    opacity: 0.5;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 1.1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .paw-trail {
    display: none;
  }
}
@media (max-width: 700px) {
  .hero {
    margin: 20px 0 26px;
    padding: 27px 23px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 25px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero h1 span {
    font-size: 25px;
  }
  .intro {
    margin-top: 15px;
    margin-bottom: 0;
  }
  .trail-note {
    align-self: flex-end;
    flex: auto;
    width: 175px;
    margin: 24px 15px 3px 0;
    padding: 17px;
  }
  .trail-note b {
    font-size: 27px;
    line-height: 1.05;
    margin: 13px 0;
  }
  .trail-note b br {
    display: none;
  }
  .trail-note small {
    padding-top: 10px;
  }
  .paw-walk {
    display: none;
  }
  .trail-note > span:first-of-type {
    font-size: 9px;
  }
  .list-panel {
    padding: 16px 13px 0;
  }
  #cards {
    height: auto;
  }
  .how {
    gap: 15px;
  }
  .how span {
    display: inline-block;
  }
  .actions button {
    border-radius: 12px;
  }
  .actions button::before {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }
  .shared-view {
    padding: 25px 20px;
    margin: 20px 0;
  }
  .shared-view h2 {
    font-size: 22px;
  }
  .map-links {
    gap: 7px;
  }
  .map-links a {
    padding: 10px 12px;
    flex: 1;
    font-size: 11px;
  }
  .share-actions button {
    font-size: 12px;
  }
}

:root {
  --ink: #4a2e1b;
  --green: #6f442a;
  --cream: #faf4e9;
  --line: #e7d5c0;
  --orange: #bc6c25;
  --paper: #fffdf7;
  --paper-warm: #f8efe0;
  --paw: url("/static/paw.svg");
}

body {
  color: var(--ink);
  background-color: #faf4e9;
  background-image: linear-gradient(
      to right,
      rgb(231 213 192 / 32%) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgb(231 213 192 / 32%) 1px, transparent 1px),
    radial-gradient(circle at 12% 16%, rgb(255 255 255 / 70%) 0 1px, transparent 2px);
  background-size: 32px 32px, 32px 32px, 19px 19px;
  font-family: "Noto Sans KR", "Plus Jakarta Sans", sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: none;
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  background: rgb(255 253 247 / 94%);
  border-bottom: 1px solid #e7d5c0;
  box-shadow: 0 3px 14px rgb(74 46 27 / 5%);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 17px;
  letter-spacing: 0;
}

.brand span {
  color: #a16a3c;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 1.2px;
}

main {
  max-width: 1360px;
  padding-right: 28px;
  padding-left: 28px;
}

.hero {
  isolation: isolate;
  margin: 28px 0 34px;
  padding: 44px 46px;
  border: 2px solid #d9bc98;
  border-radius: 26px;
  background: linear-gradient(112deg, #fffdf8 0%, #fbf2e2 58%, #f6e8d0 100%);
  box-shadow: 0 10px 28px -8px rgb(114 59 23 / 14%), 2px 3px 0 #e7d5c0;
}

.hero::before {
  position: absolute;
  top: -8px;
  left: 12%;
  z-index: 2;
  width: 116px;
  height: 22px;
  background: rgb(249 220 159 / 76%);
  box-shadow: 0 1px 3px rgb(74 46 27 / 12%);
  content: "";
  transform: rotate(-2deg);
}

.hero::after {
  position: absolute;
  right: 28px;
  bottom: 18px;
  z-index: -1;
  width: 112px;
  height: 112px;
  background: #9b5826;
  content: "";
  mask: var(--paw) center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}

.hero > div {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #965a2c;
  font-family: "Gaegu", cursive;
  font-size: 17px;
  letter-spacing: 0;
}

.hero h1 {
  color: #4a2e1b;
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1.35;
}

.hero h1 span {
  color: #6f442a;
  font-family: "Song Myung", serif;
  font-size: 31px;
}

.hero .intro {
  color: #76563f;
  font-family: "Plus Jakarta Sans", "Noto Sans KR", sans-serif;
  line-height: 1.9;
}

.trail-note {
  flex-basis: 235px;
  border: 2px solid #d5b58c;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 8px 24px rgb(111 68 42 / 12%), 2px 3px 0 #ead6b8;
  transform: rotate(1deg);
}

.trail-note b {
  color: #542e16;
  font-family: "Song Myung", serif;
}

.explore {
  border-top: 2px dashed #d5b58c;
  padding-top: 22px;
}

.explore-head {
  min-height: 84px;
  margin-bottom: 8px;
  padding: 14px 18px;
  border: 1px solid #e7d5c0;
  border-radius: 14px;
  background: rgb(255 253 247 / 88%);
}

.explore-head .eyebrow {
  color: #9b5826;
  font-family: "Gaegu", cursive;
  font-size: 15px;
  letter-spacing: 0;
}

.explore-head h2 {
  color: #4a2e1b;
  letter-spacing: 0;
}

.workspace {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.map-wrap {
  padding: 12px;
  border: 2px solid #e7d5c0;
  border-radius: 22px;
  background: #fffdf7;
  box-shadow: 0 4px 20px rgb(107 56 25 / 8%);
}

#map {
  height: 490px;
  border: 2px solid #e5cfb1;
  border-radius: 15px;
  background: #f5ead8;
}

.map-key {
  bottom: 22px;
  left: 22px;
  border: 1px solid #ead7bd;
  border-radius: 9px;
  background: #fffdf7;
  color: #4a2e1b;
  box-shadow: 0 4px 12px rgb(74 46 27 / 10%);
}

.list-panel {
  padding: 18px 20px 0;
  border: 2px solid #e7d5c0;
  border-radius: 22px;
  background-color: #fffdf9;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 41px,
    rgb(231 213 192 / 42%) 42px,
    transparent 43px
  );
  box-shadow: 0 4px 20px rgb(107 56 25 / 8%);
}

.list-top {
  min-height: 42px;
  border-bottom: 1px dashed #d6b995;
}

.list-top h3 {
  color: #4a2e1b;
  font-size: 16px;
}

#cards {
  height: 448px;
}

.card {
  min-height: 82px;
  padding: 16px 5px;
  border-bottom: 1px dashed #e5cfb5;
}

.card:hover {
  background: rgb(248 239 224 / 72%);
}

.card-copy b {
  color: #4a2e1b;
  font-size: 16px;
}

.actions {
  margin-top: 18px;
}

button {
  border-color: #d9bc98;
  border-radius: 12px;
  background: #fffdf7;
}

button:hover {
  background: #f5e8d0;
}

.primary {
  border-color: #6f442a;
  background: #6f442a;
  box-shadow: 0 3px 0 #542e16;
}

.primary:hover {
  background: #542e16;
}

dialog#detail {
  width: min(680px, calc(100% - 24px));
  max-height: 88vh;
  padding: 48px 38px 38px;
  border: 2px solid #e7d5c0;
  border-radius: 24px;
  background-color: #fffdf7;
  background-image: radial-gradient(#e8dac2 0.65px, transparent 0.8px);
  background-size: 22px 22px;
  box-shadow: 0 20px 48px rgb(74 46 27 / 22%);
}

dialog#detail::before {
  position: absolute;
  top: 8px;
  left: 50%;
  padding: 3px 14px;
  border: 1px solid #6f442a;
  border-radius: 999px;
  background: #dfaa77;
  color: #4a2e1b;
  content: "🐾 골목고양이 기묘의 기밀 수첩 🍞";
  font-family: "Gaegu", cursive;
  font-size: 14px;
  font-weight: 700;
  transform: translateX(-50%);
  white-space: nowrap;
}

dialog#detail::backdrop {
  background: rgb(74 46 27 / 34%);
  backdrop-filter: blur(3px);
}

#detail-body > .eyebrow {
  color: #a05d2d;
  font-family: "Gaegu", cursive;
  font-size: 16px;
  letter-spacing: 0;
}

#detail-body > h2 {
  padding: 0 38px 15px 0;
  border-bottom: 1px dashed #d6b995;
  color: #4a2e1b;
  font-family: "Song Myung", "Noto Sans KR", serif;
  font-size: 29px;
  letter-spacing: 0;
}

dialog#detail .close {
  top: 10px;
  right: 11px;
  z-index: 1;
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid #e7d5c0;
  border-radius: 50%;
  background: #faf4e9;
  color: #6f442a;
  font-size: 18px;
  line-height: 1;
}

.one-line-story {
  margin: 20px 0;
  padding: 12px 15px;
  border: 2px dashed rgb(188 108 37 / 48%);
  border-radius: 14px;
  background: linear-gradient(110deg, #fff8eb, #fbf2e2);
  color: #8e5228;
  font-size: 15px;
}

.story {
  position: relative;
  padding: 15px 17px 15px 40px;
  border: 1px solid #eadbc6;
  border-radius: 14px;
  background: rgb(248 239 224 / 70%);
  color: #5f4634;
  font-size: 14px;
  line-height: 2;
}

.story::before {
  position: absolute;
  top: 18px;
  left: 15px;
  width: 14px;
  height: 14px;
  background: #a05d2d;
  content: "";
  mask: var(--paw) center / contain no-repeat;
}

.facts {
  gap: 0 14px;
  margin: 22px 0;
  padding: 14px 16px;
  border: 2px solid #e7d5c0;
  border-radius: 15px;
  background: #fffdf9;
  box-shadow: 0 4px 16px rgb(111 68 42 / 6%);
}

.facts dt,
.facts dd {
  padding: 9px 0;
  border-top: 1px dashed #d6b995;
}

.facts dt:first-of-type,
.facts dd:first-of-type {
  border-top: 0;
}

.facts dt,
.map-note {
  color: #84634c;
}

.facts dd {
  color: #4a2e1b;
  font-weight: 600;
}

.map-links a {
  min-width: 0;
  flex: 1 1 30%;
  padding: 12px 8px 10px;
  border: 2px solid #6f442a;
  border-radius: 12px;
  background: #6f442a;
  box-shadow: 0 2px 0 #542e16;
}

.map-links a[data-provider="naver"] {
  border-color: #b8e2c7;
  background: linear-gradient(110deg, #effbf3, #ddf5e6);
  color: #14733b;
  box-shadow: 0 2px 0 #b8e2c7;
}

.map-links a[data-provider="kakao"] {
  border-color: #f0d17a;
  background: linear-gradient(110deg, #fff8d9, #fff0b9);
  color: #72520b;
  box-shadow: 0 2px 0 #e6c65f;
}

.map-links a[data-provider="tmap"] {
  border-color: #c3d7f3;
  background: linear-gradient(110deg, #f0f6ff, #deebff);
  color: #24568f;
  box-shadow: 0 2px 0 #c3d7f3;
}

.map-links a:hover {
  transform: translateY(-2px);
}

.share-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  border-top: 1px dashed #d6b995;
  padding-top: 16px;
}

.share-section h3 {
  margin: 0;
  color: #542e16;
  font-family: "Song Myung", serif;
}

.share-actions {
  gap: 8px;
}

.share-actions button[data-share="kakaotalk"] {
  border-color: #efd486;
  background: #fff8df;
}

.share-actions button[data-share="url"] {
  border-color: #e7d5c0;
  background: #fffdf9;
}

.share-status,
.local-share-note {
  flex-basis: 100%;
  color: #76563f;
}

.shared-view {
  max-width: 720px;
  padding: 36px;
  border: 2px solid #e7d5c0;
  border-radius: 22px;
  background-color: #fffdf7;
  background-image: radial-gradient(#e8dac2 0.65px, transparent 0.8px);
  background-size: 22px 22px;
  box-shadow: 0 8px 24px rgb(111 68 42 / 10%);
}

.how {
  border-top: 1px dashed #d6b995;
}

.how span {
  background: #f5e8d0;
  color: #6f442a;
}

footer {
  border-top: 1px dashed #d6b995;
  color: #76563f;
}

@media (max-width: 700px) {
  header {
    padding: 12px 18px;
  }

  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    margin: 20px 0 26px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero h1 span {
    font-size: 24px;
  }

  .trail-note {
    width: min(205px, 82%);
    margin-right: 8px;
  }

  .explore-head {
    align-items: flex-start;
    padding: 13px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .map-wrap {
    padding: 9px;
    border-radius: 17px;
  }

  #map {
    height: 310px;
    border-radius: 12px;
  }

  .list-panel {
    padding: 15px 14px 0;
    border-radius: 17px;
  }

  #cards {
    height: auto;
    max-height: 470px;
  }

  dialog#detail {
    width: calc(100% - 14px);
    max-height: calc(100dvh - 14px);
    margin: auto auto 0;
    padding: 48px 21px max(24px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 10px 10px;
  }

  #detail-body > h2 {
    font-size: 24px;
  }

  .shared-view {
    margin: 20px 0;
    padding: 24px 19px;
  }

  .story {
    padding-right: 13px;
    padding-left: 34px;
  }

  .facts {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 0 8px;
    padding: 10px 12px;
  }

  .facts dt,
  .facts dd {
    overflow-wrap: anywhere;
  }

  .map-links {
    gap: 6px;
  }

  .map-links a {
    padding: 10px 5px;
    font-size: 11px;
  }

  .share-section {
    align-items: flex-start;
  }

  .share-actions {
    width: 100%;
  }

  .share-actions button {
    flex: 1;
  }
}
