:root {
  --paper: #ffffff;
  --ink: #353535;
  --muted: #a6a6a6;
  --line: #eeeeee;
  --soft: #f8f8f6;
  --green: #9caf88;
  --blue: #9aadb5;
  --pink: #c98d8d;
  --yellow: #c9d96f;
  --peach: #d8b18c;
  --max: 1120px;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --hand:
    "Kaiti SC", "STKaiti", "KaiTi", "YuKyokasho", "Songti SC",
    "Noto Serif CJK SC", serif;
  --sans:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--hand);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Georgia, "Times New Roman", var(--hand);
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 15px;
}

.nav-button,
nav a {
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

nav .nav-button:hover,
nav a:hover {
  color: var(--ink);
  background: transparent;
}

main {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 58px 0 62px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 46px;
  width: 140px;
  height: 92px;
  border: 2px solid rgba(239, 154, 162, 0.55);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-8deg);
  background:
    radial-gradient(circle at 28% 34%, rgba(111, 155, 119, 0.34) 0 8px, transparent 9px),
    radial-gradient(circle at 64% 58%, rgba(114, 169, 200, 0.34) 0 7px, transparent 8px),
    rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.eyebrow,
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: var(--hand);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 650;
  line-height: 1.18;
  color: var(--ink);
}

.hero-text {
  max-width: 720px;
  margin-bottom: 0;
  color: #514d45;
  font-size: 18px;
}

.hero-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-stickers span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #765d50;
  font-family: Georgia, "Times New Roman", var(--serif);
  font-size: 13px;
  transform: rotate(-2deg);
}

.hero-stickers span:nth-child(2) {
  background: rgba(114, 169, 200, 0.16);
  transform: rotate(1.5deg);
}

.hero-stickers span:nth-child(3) {
  background: rgba(239, 154, 162, 0.15);
  transform: rotate(-1deg);
}

.featured {
  padding: 54px 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 8px 0 0;
  font-family: var(--hand);
  font-size: 24px;
  font-weight: 650;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 36px rgba(105, 82, 58, 0.08);
}

.feature-card img,
.trip-card img,
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.feature-card img {
  aspect-ratio: 4 / 3;
}

.feature-copy {
  padding: 20px 0;
}

.feature-copy h3,
.trip-card h3,
.note-item h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.feature-copy p,
.trip-card p,
.note-item li,
.about p {
  color: #565149;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  padding: 3px 10px 4px;
  border: 1px solid rgba(111, 155, 119, 0.24);
  border-radius: 999px;
  background: rgba(111, 155, 119, 0.1);
  color: #557d5d;
  font-size: 12px;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.tools {
  width: min(100%, 520px);
  display: grid;
  gap: 12px;
}

.top-map {
  min-height: auto;
  padding: 54px 0 38px;
  display: grid;
  grid-template-rows: auto auto;
  border-bottom: 0;
}

.map-intro {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
}

.map-intro p:not(.eyebrow) {
  max-width: 460px;
  margin: 0;
  color: #5f5f5f;
  font-size: 16px;
}

.scroll-hint {
  display: none;
}

.travel-map {
  position: relative;
  width: min(1040px, 100%);
  min-height: 500px;
  margin: 18px auto 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.route-line {
  position: absolute;
  left: 0;
  top: 6%;
  width: 100%;
  height: 88%;
  fill: none;
  stroke-linecap: round;
}

.route-line-mobile {
  display: none;
}

.route-line path {
  filter: drop-shadow(0 6px 0 rgba(255, 255, 255, 0.78));
}

.route-base {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 3.5;
  stroke-dasharray: 10 14;
}

.route-progress {
  stroke: rgba(53, 53, 53, 0.5);
  stroke-width: 4.2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: route-draw 8.2s ease-in-out 0.25s forwards;
}

.travel-map:not(.route-started) .route-progress {
  animation: none;
  stroke-dashoffset: 100;
}

.route-stop {
  position: absolute;
  z-index: 5;
  width: 136px;
  min-height: 150px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -58%);
  cursor: pointer;
  opacity: 0;
  animation: stop-pop 0.42s cubic-bezier(0.2, 0.9, 0.2, 1.25) forwards;
}

.travel-map:not(.route-started) .route-stop {
  animation: none;
  opacity: 0;
}

.stop-1 {
  animation-delay: 0.65s;
}

.stop-2 {
  animation-delay: 1.55s;
}

.stop-3 {
  animation-delay: 2.65s;
}

.stop-4 {
  animation-delay: 3.8s;
}

.stop-5 {
  animation-delay: 5s;
}

.stop-6 {
  animation-delay: 6.2s;
}

.stop-7 {
  animation-delay: 7.35s;
}

.stop-number {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #333;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.landmark {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landmark svg {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: #333;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-stop strong {
  padding: 1px 8px 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 15px;
}

.route-stop small {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", var(--hand);
  font-size: 12px;
  padding: 0 7px 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.route-stop:hover .landmark,
.route-stop:focus-visible .landmark {
  transform: translateY(-4px) rotate(-2deg);
}

.route-stop:hover .stop-number,
.route-stop:focus-visible .stop-number {
  background: var(--green);
  box-shadow: none;
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes stop-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.72) rotate(-4deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1) rotate(0deg);
  }
}

@keyframes hint-bounce {
  0%,
  100% {
    opacity: 0.45;
    transform: rotate(45deg) translateY(-2px);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) translate(3px, 1px);
  }
}

.tools input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  outline: none;
}

.tools input:focus {
  border-color: var(--green);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button,
.text-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.filter-row button {
  padding: 3px 10px;
  color: var(--muted);
  font-size: 12px;
}

.filter-row button.active,
.filter-row button:hover,
.text-button:hover {
  color: #624739;
  border-color: var(--yellow);
  background: rgba(246, 200, 107, 0.24);
}

.text-button {
  width: fit-content;
  margin-top: 18px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 13px;
}

.place-list {
  display: grid;
  gap: 22px;
}

.detail-view {
  padding: 44px 0 76px;
}

.back-map {
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.back-map:hover {
  color: var(--ink);
  border-color: transparent;
  background: transparent;
}

.place-detail {
  display: grid;
  gap: 34px;
}

.detail-hero {
  display: grid;
  max-width: 760px;
  gap: 12px;
  align-items: start;
  padding: 0 0 38px;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: var(--soft);
}

.detail-hero h1 {
  margin-bottom: 14px;
}

.detail-section {
  padding: 34px 0;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.section-note {
  max-width: 520px;
  margin: 8px 0 0;
  color: #5f5f5f;
}

.footprint-map {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1.45 / 1;
  margin: 30px auto 8px;
}

.country-sketch {
  width: 100%;
  height: 100%;
  fill: none;
  overflow: visible;
}

.country-shape {
  fill: rgba(156, 175, 136, 0.1);
  stroke: rgba(53, 53, 53, 0.78);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.country-line {
  stroke: rgba(53, 53, 53, 0.12);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.country-coast {
  stroke: rgba(53, 53, 53, 0.28);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.country-island {
  fill: rgba(156, 175, 136, 0.08);
  stroke: rgba(53, 53, 53, 0.55);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-place {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 5px;
  transform: translate(-50%, -50%);
}

.map-place span {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(53, 53, 53, 0.08);
}

.map-place.visited span {
  background: #333;
  box-shadow: 0 0 0 7px rgba(156, 175, 136, 0.2);
}

.map-place strong {
  padding: 1px 7px 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.city-list {
  display: grid;
  gap: 28px;
  margin-top: 20px;
}

.city-card {
  scroll-margin-top: 24px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
}

.city-card:first-child {
  border-top: 0;
}

.city-card-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) 1fr;
  gap: 24px;
  align-items: start;
}

.city-card-head h3 {
  margin: 4px 0 0;
  font-family: var(--hand);
  font-size: 28px;
}

.city-card-head p:last-child {
  margin: 0;
  color: #504c45;
}

.city-diary,
.city-photo-groups {
  margin-top: 20px;
}

.photo-category h4 {
  margin: 0 0 10px;
  font-family: var(--hand);
  font-size: 18px;
  font-weight: 650;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.detail-gallery button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  background: var(--soft);
}

.detail-gallery span {
  display: block;
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.diary-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.diary-item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.diary-item:first-child {
  border-top: 0;
}

.diary-item time {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", var(--hand);
  font-size: 14px;
}

.diary-item p {
  margin: 0;
  color: #504c45;
  font-size: 17px;
}

.photo-groups {
  display: grid;
  gap: 30px;
  margin-top: 18px;
}

.photo-category h3 {
  margin: 0 0 12px;
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 650;
}

.detail-notes {
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: #5f5f5f;
}

.place-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr) minmax(180px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 30px rgba(105, 82, 58, 0.08);
  scroll-margin-top: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.place-card:nth-child(2n) {
  transform: rotate(0.25deg);
}

.place-card:nth-child(2n + 1) {
  transform: rotate(-0.2deg);
}

.place-card.is-highlighted {
  border-color: var(--pink);
  box-shadow: 0 0 0 6px rgba(239, 154, 162, 0.16), 0 14px 34px rgba(105, 82, 58, 0.1);
}

.place-cover img,
.place-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.place-cover img {
  aspect-ratio: 4 / 3;
}

.place-copy {
  padding: 10px 0;
}

.place-copy h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.place-copy p {
  color: #565149;
}

.place-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.place-preview button,
.dialog-gallery button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.place-preview button:first-child {
  grid-row: span 2;
}

.photo-wall {
  columns: 3 240px;
  column-gap: 18px;
}

.photo-card {
  break-inside: avoid;
  margin: 0 0 18px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(105, 82, 58, 0.08);
  transform: rotate(-0.4deg);
}

.photo-card:nth-child(2n) {
  transform: rotate(0.55deg);
}

.photo-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-card img {
  aspect-ratio: 4 / 3;
}

.photo-card:nth-child(2n) img {
  aspect-ratio: 3 / 4;
}

.photo-card figcaption {
  padding: 10px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #48443e;
  font-size: 14px;
}

.photo-card small {
  color: var(--muted);
  font-size: 12px;
}

.note-list {
  display: grid;
  gap: 24px;
}

.note-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.note-item ul {
  margin: 0;
  padding-left: 1.15em;
}

.about {
  max-width: 740px;
  padding: 64px 0 76px;
}

.about h2::after,
.section-head h2::after {
  content: " ✦";
  color: var(--pink);
  font-family: var(--sans);
  font-size: 0.72em;
}

.footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.empty-state {
  margin: 26px 0 0;
  color: var(--muted);
}

.trip-dialog {
  width: min(720px, calc(100% - 34px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
}

.trip-dialog::backdrop {
  background: rgba(46, 45, 42, 0.28);
}

.dialog-close,
.lightbox-close,
.back-top {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.95);
  cursor: pointer;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
}

.trip-dialog h2 {
  margin-bottom: 12px;
  font-size: 34px;
}

.trip-dialog h3 {
  margin: 30px 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.trip-dialog ul {
  margin: 0;
  padding-left: 1.2em;
  color: #565149;
}

.dialog-gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dialog-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.dialog-gallery span {
  display: block;
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 54px 18px 34px;
  display: grid;
  place-items: center;
  background: rgba(46, 45, 42, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--soft);
}

.lightbox p {
  margin: 14px 0 0;
  color: #f8f3e8;
  font-size: 14px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  font-size: 24px;
}

.modal-open {
  overflow: hidden;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    padding: 54px 0;
  }

  .featured,
  .feature-card,
  .place-card {
    grid-template-columns: 1fr;
  }

  .featured {
    gap: 24px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-map {
    padding-top: 44px;
  }

  .map-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 42px;
  }

  .map-intro h1 {
    margin-bottom: 0;
    font-size: 44px;
    line-height: 1.15;
  }

  .map-intro p:not(.eyebrow) {
    max-width: 310px;
    font-size: 17px;
  }

  .scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
  }

  .scroll-hint::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    animation: hint-bounce 1.5s ease-in-out infinite;
  }

  .travel-map {
    width: min(360px, 100%);
    min-height: 920px;
    margin-top: 28px;
    overflow: visible;
  }

  .route-line {
    display: none;
  }

  .route-line-mobile {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke-linecap: round;
    pointer-events: none;
  }

  .route-line-mobile path {
    filter: drop-shadow(0 6px 0 rgba(255, 255, 255, 0.78));
  }

  .route-stop {
    position: absolute;
    width: 118px;
    min-height: 120px;
    gap: 0;
    transform: translate(-50%, -54%);
    opacity: 0;
    animation: stop-pop 0.42s cubic-bezier(0.2, 0.9, 0.2, 1.25) forwards;
  }

  .stop-1 {
    left: 26% !important;
    top: 8% !important;
    animation-delay: 0.35s;
  }

  .stop-2 {
    left: 70% !important;
    top: 17% !important;
    animation-delay: 1.15s;
  }

  .stop-3 {
    left: 32% !important;
    top: 31% !important;
    animation-delay: 1.95s;
  }

  .stop-4 {
    left: 68% !important;
    top: 43% !important;
    animation-delay: 2.75s;
  }

  .stop-5 {
    left: 30% !important;
    top: 58% !important;
    animation-delay: 3.55s;
  }

  .stop-6 {
    left: 70% !important;
    top: 71% !important;
    animation-delay: 4.35s;
  }

  .stop-7 {
    left: 42% !important;
    top: 87% !important;
    animation-delay: 5.15s;
  }

  .landmark {
    width: 82px;
    height: 82px;
    grid-row: auto;
  }

  .landmark svg {
    width: 64px;
    height: 64px;
  }

  .stop-number {
    left: 18px;
    top: 16px;
    width: 28px;
    height: 28px;
  }

  .route-stop strong {
    font-size: 14px;
  }

  .route-stop small {
    font-size: 11px;
  }

  .tools {
    width: 100%;
  }

  .place-preview,
  .dialog-gallery,
  .detail-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .diary-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footprint-map {
    width: 100%;
    margin-top: 24px;
  }

  .map-place strong {
    font-size: 12px;
  }

  .city-card-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-section {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-progress,
  .route-line-mobile .route-progress,
  .route-stop {
    animation: none;
  }

  .route-progress,
  .route-line-mobile .route-progress {
    stroke-dashoffset: 0;
  }

  .route-stop {
    opacity: 1;
  }

  .scroll-hint::after {
    animation: none;
  }
}

.diary-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.diary-item time {
  display: inline-block;
  width: fit-content;
  color: #a4a4a4;
  white-space: nowrap;
  letter-spacing: 0;
}

.diary-item p {
  max-width: 720px;
}

@media (max-width: 760px) {
  .footprint-map {
    display: grid;
    height: auto;
    min-height: 0;
    width: 100%;
    gap: 12px;
  }

  .country-sketch {
    display: none;
  }

  .map-place {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .map-place span {
    position: relative;
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 8px rgba(142, 165, 137, 0.14);
  }

  .map-place strong {
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 22px;
  }

  .map-place::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 36px;
    bottom: -8px;
    width: 2px;
    background: #deded7;
    z-index: -1;
  }

  .map-place:last-child::after {
    display: none;
  }
}