:root {
  --sand-50: #faf7ef;
  --sand-100: #f4efe3;
  --sand-200: #e7decd;
  --ink: #183a36;
  --ink-soft: #4f6965;
  --sea: #8fb4b6;
  --sea-deep: #2f6865;
  --sea-pale: #dce9e7;
  --terracotta: #c96f4d;
  --terracotta-dark: #965039;
  --paper: rgba(255, 255, 255, 0.66);
  --line: rgba(24, 58, 54, 0.16);
  --shadow-soft: 0 22px 70px rgba(49, 67, 60, 0.11);
  --shadow-card: 0 16px 42px rgba(49, 67, 60, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--sand-100);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(143, 180, 182, 0.24), transparent 30rem),
    radial-gradient(circle at 14% 42%, rgba(201, 111, 77, 0.08), transparent 24rem),
    var(--sand-100);
  font-family:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

.site-header {
  min-height: 710px;
  padding: 0 clamp(20px, 4vw, 70px) 70px;
  overflow: hidden;
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -7rem;
  bottom: 0;
  width: min(52vw, 680px);
  aspect-ratio: 1.6;
  border-radius: 50% 0 0 0;
  background:
    linear-gradient(138deg, transparent 44%, rgba(255, 255, 255, 0.7) 44.5%, transparent 45%),
    linear-gradient(154deg, transparent 56%, rgba(255, 255, 255, 0.58) 56.5%, transparent 57%),
    rgba(143, 180, 182, 0.18);
  transform: rotate(-5deg);
}

.nav-shell,
.hero-shell,
.map-section,
.detail-section,
.share-section,
.site-footer {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: "Songti SC", STSong, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wordmark-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(24, 58, 54, 0.09));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.plan-state {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.hero-shell {
  padding-top: clamp(70px, 10vw, 132px);
}

.eyebrow,
.section-kicker,
.minor-heading p,
.panel-heading p {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: "Songti SC", STSong, serif;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(50px, 8.1vw, 104px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.share-button,
.quiet-button,
.booking-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 22px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background-color 220ms var(--ease-out);
}

.primary-action,
.share-button {
  color: var(--sand-50);
  background: var(--ink);
  box-shadow: 0 10px 22px rgba(24, 58, 54, 0.18);
}

.secondary-action,
.quiet-button {
  background: rgba(255, 255, 255, 0.54);
  border-color: var(--line);
}

.share-button-small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 13px;
}

.primary-action:hover,
.share-button:hover,
.secondary-action:hover,
.quiet-button:hover,
.booking-link:hover {
  transform: translateY(-2px);
}

.trip-facts {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.trip-facts > div {
  min-height: 112px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trip-facts > div + div {
  border-left: 1px solid var(--line);
}

.trip-facts span,
.segment-metrics span,
.budget-footer span,
.practical-grid span {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.trip-facts strong {
  margin-top: 9px;
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(19px, 2vw, 25px);
}

main {
  padding: 46px clamp(14px, 4vw, 70px) 90px;
}

.map-section {
  padding-top: 48px;
}

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

.section-heading h2,
.share-section h2 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 63px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.map-heading-actions {
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.map-heading-actions p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.quiet-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 16px;
  font-size: 13px;
}

.map-frame {
  position: relative;
  border: 1px solid rgba(24, 58, 54, 0.12);
  border-radius: var(--radius-xl);
  padding: 8px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-card);
}

.trip-map {
  height: clamp(360px, 42vw, 470px);
  border-radius: 23px;
  overflow: hidden;
  background: var(--sea-pale);
  z-index: 1;
}

.map-fallback {
  padding: 40px;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 8px 22px rgba(24, 58, 54, 0.16) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.leaflet-control-attribution {
  background: rgba(250, 247, 239, 0.88) !important;
  color: var(--ink-soft) !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: var(--ink) !important;
}

.route-marker-wrap {
  background: none;
  border: 0;
}

.route-marker {
  width: 76px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  filter: drop-shadow(0 5px 8px rgba(24, 58, 54, 0.25));
}

.route-marker i {
  width: 18px;
  height: 18px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 2px var(--terracotta);
  transition: transform 180ms var(--ease-out);
}

.route-marker b {
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  white-space: nowrap;
}

.route-marker-wrap.is-active .route-marker i {
  transform: scale(1.45);
  box-shadow:
    0 0 0 2px var(--terracotta),
    0 0 0 9px rgba(201, 111, 77, 0.22);
}

.local-marker-wrap {
  border: 0;
  background: transparent;
}

.local-marker {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: var(--terracotta);
  box-shadow:
    0 0 0 2px var(--terracotta),
    0 7px 18px rgba(24, 58, 54, 0.24);
  font-size: 12px;
  font-weight: 800;
}

.local-marker-stay {
  background: var(--ink);
  box-shadow:
    0 0 0 2px var(--ink),
    0 7px 18px rgba(24, 58, 54, 0.24);
}

.local-marker-charge {
  color: var(--ink);
  background: var(--sand-50);
}

.local-route-tooltip {
  border: 1px solid rgba(24, 58, 54, 0.12) !important;
  border-radius: 999px !important;
  padding: 5px 9px !important;
  color: var(--ink) !important;
  background: rgba(250, 247, 239, 0.94) !important;
  box-shadow: 0 6px 18px rgba(24, 58, 54, 0.12) !important;
  font-size: 11px !important;
  font-weight: 700;
}

.local-route-tooltip::before {
  display: none;
}

.map-legend {
  position: absolute;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(24, 58, 54, 0.1);
  border-radius: 999px;
  background: rgba(250, 247, 239, 0.92);
  box-shadow: 0 8px 20px rgba(24, 58, 54, 0.11);
  font-size: 11px;
  backdrop-filter: blur(10px);
  max-width: min(720px, calc(100% - 48px));
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.map-mode-label {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-weight: 800;
}

.map-toggle {
  min-width: 146px;
}

.legend-main,
.legend-return {
  width: 22px;
  height: 0;
  border-top: 3px solid var(--terracotta);
}

.legend-return {
  border-top: 2px dashed var(--ink);
}

.day-strip {
  margin: 14px -2px 0;
  padding: 2px 2px 8px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.day-strip::-webkit-scrollbar,
.gallery-track::-webkit-scrollbar {
  display: none;
}

.day-tab {
  min-width: 128px;
  min-height: 86px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  scroll-snap-align: center;
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.day-tab span {
  color: var(--terracotta);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.day-tab strong {
  margin-top: 5px;
  font-size: 14px;
}

.day-tab small {
  margin-top: 2px;
  color: var(--ink-soft);
}

.day-tab.is-active {
  color: var(--sand-50);
  background: var(--ink);
  transform: translateY(-2px);
}

.day-tab.is-active span,
.day-tab.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.detail-section {
  padding-top: 62px;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  transition:
    opacity 130ms ease,
    transform 130ms ease;
}

.guide-card.is-changing {
  opacity: 0.65;
  transform: translateY(3px);
}

.gallery {
  min-height: 780px;
  position: relative;
  overflow: hidden;
  background: var(--sea);
}

.gallery-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
  scroll-snap-align: start;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide figcaption {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 82px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(24, 58, 54, 0.62);
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.gallery-slide figcaption span {
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.gallery-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 35, 32, 0.24), transparent 26%),
    linear-gradient(0deg, rgba(15, 35, 32, 0.42), transparent 34%);
}

.day-stamp {
  position: absolute;
  z-index: 4;
  top: 26px;
  left: 26px;
  display: flex;
  flex-direction: column;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.day-stamp span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.day-stamp strong {
  margin-top: 6px;
  font-family: "Songti SC", STSong, serif;
  font-size: 34px;
}

.day-stamp small {
  margin-top: 5px;
}

.gallery-controls {
  position: absolute;
  z-index: 5;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-controls > button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: white;
  background: rgba(24, 58, 54, 0.62);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.gallery-dots {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(24, 58, 54, 0.56);
  backdrop-filter: blur(8px);
}

.gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition:
    width 180ms ease,
    background-color 180ms ease;
}

.gallery-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: white;
}

.guide-content {
  padding: clamp(30px, 4vw, 56px);
}

.destination-lead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.segment-label {
  margin: 0 0 13px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.destination-lead h3 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.pet-badge {
  flex: 0 0 auto;
  max-width: 160px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 111, 77, 0.27);
  border-radius: 999px;
  color: var(--terracotta-dark);
  background: rgba(201, 111, 77, 0.08);
  font-size: 11px;
  text-align: center;
}

.destination-summary {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.planner-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.planner-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.planner-reset {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 11px;
}

.planner-intro {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.attraction-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.attraction-option {
  width: 100%;
  min-height: 176px;
  padding: 0;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.attraction-option:hover,
.attraction-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(201, 111, 77, 0.55);
  box-shadow: 0 14px 28px rgba(48, 62, 57, 0.1);
}

.attraction-option.is-selected {
  border-color: var(--terracotta);
  background: rgba(201, 111, 77, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 111, 77, 0.2);
}

.attraction-option > img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
}

.attraction-copy {
  min-width: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.attraction-topline,
.attraction-facts,
.attraction-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.attraction-topline strong {
  font-size: 15px;
  line-height: 1.35;
}

.attraction-topline small {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 10px;
}

.attraction-summary {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.attraction-facts {
  margin-top: 9px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.attraction-facts i {
  padding: 4px 7px;
  border-radius: 99px;
  color: var(--sea-deep);
  background: var(--sea-pale);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.attraction-notes {
  margin-top: 8px;
  display: grid;
  gap: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.attraction-actions {
  margin-top: auto;
  padding-top: 10px;
  color: var(--terracotta-dark);
  font-size: 10px;
}

.attraction-actions b {
  font-weight: 900;
}

.attraction-actions a {
  position: relative;
  z-index: 2;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.route-advice {
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.route-advice.is-good {
  border-color: rgba(35, 78, 73, 0.24);
  background: rgba(153, 190, 181, 0.15);
}

.route-advice.is-warning {
  border-color: rgba(201, 111, 77, 0.45);
  background: rgba(201, 111, 77, 0.1);
}

.route-advice strong {
  font-size: 13px;
}

.route-advice p,
.route-advice small {
  display: block;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.route-advice small {
  opacity: 0.82;
}

.generated-route {
  margin-top: 14px;
}

.generated-route > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.generated-route ol {
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 7px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.generated-route li {
  min-width: 126px;
  padding: 11px 12px;
  border-radius: 13px;
  color: white;
  background: var(--sea-deep);
}

.generated-route li.is-anchor {
  color: var(--ink);
  background: var(--sand-200);
}

.generated-route li span {
  display: block;
  margin-bottom: 5px;
  opacity: 0.62;
  font-size: 9px;
}

.generated-route li strong {
  font-size: 11px;
  line-height: 1.35;
}

.planner-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  color: var(--ink-soft);
  background: var(--sand-100);
  font-size: 12px;
}

.schedule-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.local-route-summary {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--sea-pale);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.minor-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.minor-heading p,
.panel-heading p {
  margin-bottom: 5px;
  font-size: 10px;
}

.minor-heading h4,
.panel-heading h4 {
  margin: 0;
  font-family: "Songti SC", STSong, serif;
  font-size: 20px;
}

.schedule-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.schedule-list .route-stop-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.schedule-list .route-stop-card + .route-stop-card {
  margin-top: 10px;
}

.route-stop-order {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
}

.route-stop-copy {
  min-width: 0;
}

.route-stop-topline,
.route-stop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-stop-type {
  color: var(--terracotta-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.route-stop-topline time {
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.route-stop-copy > strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.route-stop-copy > p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.route-stop-meta {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 10px;
}

.route-nav-link {
  flex: 0 0 auto;
  color: var(--terracotta-dark);
  font-weight: 800;
  text-decoration: none;
}

.route-nav-link:hover,
.route-nav-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.segment-metrics {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
}

.segment-metrics > div {
  min-height: 88px;
  padding: 17px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.segment-metrics > div + div {
  border-left: 1px solid var(--line);
}

.segment-metrics strong {
  margin-top: 7px;
  font-size: 14px;
}

.cost-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cost-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
}

.stay-options {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.stay-option {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
}

.stay-option-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stay-option-topline span {
  padding: 4px 7px;
  border-radius: 99px;
  color: var(--terracotta-dark);
  background: rgba(201, 111, 77, 0.1);
  font-size: 9px;
  font-weight: 900;
}

.stay-option-topline strong {
  font-size: 12px;
}

.stay-option h5 {
  margin: 11px 0 0;
  font-family: "Songti SC", STSong, serif;
  font-size: 17px;
}

.stay-option ul {
  margin: 9px 0 0;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.stay-option p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.stay-option .booking-link {
  display: inline-flex;
  width: auto;
  min-height: 36px;
  margin-top: 11px;
  padding-inline: 12px;
  font-size: 10px;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.cost-number {
  display: block;
  margin-top: 22px;
  font-family: "Songti SC", STSong, serif;
  font-size: 29px;
}

.cost-name {
  min-height: 42px;
  margin: 8px 0 0;
  font-weight: 700;
  line-height: 1.55;
}

.cost-note {
  min-height: 62px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.booking-link {
  min-height: 42px;
  margin-top: 16px;
  padding-inline: 16px;
  color: white;
  background: var(--terracotta);
  font-size: 12px;
}

.booking-link[hidden] {
  display: none;
}

.practical-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practical-grid section {
  padding: 20px 18px;
}

.practical-grid section + section {
  border-left: 1px solid var(--line);
}

.practical-grid p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.budget-footer {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: end;
}

.budget-footer > div {
  display: flex;
  flex-direction: column;
}

.budget-footer strong {
  margin-top: 5px;
  font-family: "Songti SC", STSong, serif;
  font-size: 25px;
}

.budget-progress {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--sand-200);
}

.budget-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--terracotta);
}

.pricing-note {
  margin: 16px 6px 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.share-section {
  margin-top: 90px;
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border-radius: var(--radius-xl);
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow-card);
}

.share-section .section-kicker {
  color: #e9a185;
}

.share-section h2 {
  max-width: 680px;
}

.share-section p:not(.section-kicker) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.share-section .share-button {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--sand-50);
}

.site-footer {
  padding: 36px clamp(20px, 4vw, 48px) 70px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.site-footer details {
  margin-top: 14px;
}

.site-footer summary {
  cursor: pointer;
}

.site-footer ul {
  padding-left: 18px;
  columns: 2;
}

.site-footer a {
  text-underline-offset: 3px;
}

.share-dialog {
  width: min(540px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--sand-50);
  box-shadow: 0 28px 90px rgba(10, 30, 27, 0.32);
}

.share-dialog::backdrop {
  background: rgba(12, 29, 27, 0.62);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: white;
  background: rgba(24, 58, 54, 0.52);
  cursor: pointer;
}

.share-preview {
  position: relative;
}

.share-preview img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.share-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 34, 31, 0.76), transparent 65%);
}

.share-preview > div {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 25px;
  left: 28px;
  color: white;
}

.share-preview span {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.share-preview h2 {
  margin: 7px 0 0;
  font-family: "Songti SC", STSong, serif;
  font-size: 34px;
  line-height: 1.1;
}

.share-preview p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.wechat-tip,
.share-status {
  margin: 20px 26px 0;
  padding: 13px 15px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--sea-pale);
  font-size: 13px;
  line-height: 1.65;
}

.dialog-actions {
  padding: 24px 26px 8px;
  display: flex;
  gap: 10px;
}

.dialog-actions button {
  flex: 1;
}

.share-status {
  min-height: 44px;
  margin-top: 8px;
  margin-bottom: 22px;
  background: transparent;
  text-align: center;
}

@media (max-width: 960px) {
  .site-header {
    min-height: 660px;
  }

  .trip-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .trip-facts > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trip-facts > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .guide-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery,
  .guide-content {
    min-width: 0;
  }

  .gallery {
    min-height: 520px;
  }

  .practical-grid {
    grid-template-columns: 1fr;
  }

  .practical-grid section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding-inline: 16px;
    padding-bottom: 40px;
  }

  .nav-shell {
    min-height: 72px;
  }

  .plan-state {
    display: none;
  }

  .share-button-small {
    min-width: 44px;
    padding-inline: 13px;
  }

  .hero-shell {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.8;
  }

  .trip-facts {
    margin-top: 40px;
  }

  .trip-facts > div {
    min-height: 88px;
    padding: 18px;
  }

  main {
    padding: 20px 10px 64px;
  }

  .map-section {
    padding-top: 34px;
  }

  .section-heading {
    display: block;
    padding-inline: 4px;
  }

  .section-heading h2,
  .share-section h2 {
    font-size: 38px;
  }

  .map-heading-actions {
    max-width: none;
    margin-top: 18px;
    align-items: stretch;
    flex-direction: column;
  }

  .map-heading-actions p {
    text-align: left;
  }

  .map-toggle {
    align-self: flex-start;
  }

  .map-frame {
    border-radius: 24px;
    padding: 6px;
  }

  .trip-map {
    height: 410px;
    border-radius: 19px;
  }

  .map-legend {
    right: 14px;
    bottom: 14px;
    left: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    border-radius: 14px;
  }

  .day-tab {
    min-width: 112px;
    min-height: 82px;
  }

  .detail-section {
    padding-top: 40px;
  }

  .guide-card {
    border-radius: 24px;
  }

  .gallery {
    min-height: 430px;
  }

  .gallery-slide figcaption {
    left: 16px;
    bottom: 72px;
  }

  .day-stamp {
    top: 18px;
    left: 18px;
  }

  .day-stamp strong {
    font-size: 29px;
  }

  .gallery-controls {
    right: 12px;
    bottom: 12px;
  }

  .guide-content {
    padding: 28px 20px 32px;
  }

  .destination-lead {
    display: block;
  }

  .destination-lead h3 {
    font-size: 36px;
  }

  .pet-badge {
    display: inline-flex;
    margin-top: 16px;
  }

  .segment-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .segment-metrics > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .segment-metrics > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .cost-grid {
    grid-template-columns: 1fr;
  }

  .attraction-list {
    grid-template-columns: 1fr;
  }

  .cost-note,
  .cost-name {
    min-height: 0;
  }

  .share-section {
    margin-top: 56px;
    padding: 34px 24px;
    display: block;
    border-radius: 24px;
  }

  .share-section .share-button {
    width: 100%;
    margin-top: 26px;
  }

  .site-footer {
    padding-inline: 18px;
  }

  .site-footer ul {
    columns: 1;
  }
}

@media (max-width: 430px) {
  .hero-actions > * {
    flex: 1;
    padding-inline: 12px;
  }

  .trip-facts strong {
    font-size: 18px;
  }

  .trip-map {
    height: 360px;
  }

  .map-heading-actions p {
    max-width: 210px;
    font-size: 12px;
  }

  .route-marker b {
    font-size: 10px;
  }

  .local-route-tooltip {
    display: none;
  }

  .gallery {
    min-height: 380px;
  }

  .gallery-controls > button {
    width: 40px;
    height: 40px;
  }

  .gallery-dots {
    padding-inline: 10px;
  }

  .schedule-list .route-stop-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .attraction-option {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .attraction-option > img {
    min-height: 192px;
  }

  .attraction-copy {
    padding: 13px;
  }

  .attraction-notes {
    display: none;
  }

  .planner-heading-row {
    align-items: flex-start;
  }

  .planner-reset {
    flex: 0 0 auto;
  }

  .route-stop-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .dialog-actions {
    flex-direction: column;
  }
}

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