:root {
  --ink: #073142;
  --muted: #54717c;
  --soft: #edf8f6;
  --paper: rgba(255, 255, 255, 0.92);
  --line: rgba(56, 127, 135, 0.22);
  --blue: #2592c3;
  --green: #25a075;
  --sun: #f4a23b;
  --cream: #fffaf1;
  --shadow: 0 20px 55px rgba(18, 76, 89, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(rgba(83, 179, 202, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 179, 202, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(133, 211, 244, 0.28), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(125, 219, 162, 0.22), transparent 28%),
    #f4fbfa;
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(36, 110, 122, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand > span {
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.brand small,
.eyebrow {
  display: block;
  color: #d4771d;
  font-size: 0.82rem;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.1;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.top-nav a {
  min-width: 58px;
  padding: 9px 13px;
  border-radius: 10px;
  color: #164758;
  font-weight: 800;
  text-align: center;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: white;
  background: var(--green);
  outline: none;
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: 42px;
  min-height: auto;
  padding-top: 48px;
  padding-bottom: 62px;
}

.hero-copy {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero h1,
.section-heading h2 {
  margin: 8px 0 0;
  letter-spacing: 0;
  line-height: 0.98;
  color: #0b4053;
}

.hero h1 {
  max-width: 560px;
  font-size: clamp(2.9rem, 5.7vw, 4.9rem);
  line-height: 1.03;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-lead {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 18px;
  font-weight: 900;
}

.button.primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.button.ghost {
  color: #15617a;
  background: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.hero-stats div {
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats strong {
  display: block;
  color: #1e8ec2;
  font-size: 1.62rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-slide {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  margin: 0;
  border: 8px solid white;
  border-radius: 22px;
  background: #dcefee;
  box-shadow: var(--shadow);
}

.hero-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(2, 38, 52, 0.76));
}

.hero-slide figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: 520px;
  padding: 16px 18px;
  border-radius: 14px;
  color: white;
  background: rgba(5, 64, 83, 0.74);
  backdrop-filter: blur(12px);
}

.hero-slide figcaption strong {
  font-size: 1.08rem;
}

.hero-slide figcaption span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hero-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(20, 84, 99, 0.24);
}

.hero-dots .active {
  width: 28px;
  background: var(--green);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.72fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading > * {
  min-width: 0;
}

.section-heading h2 {
  font-size: clamp(2.05rem, 4vw, 3.55rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.day-card,
.route-day-card,
.hotel-card,
.media-thumb,
.prep-card {
  min-width: 0;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.route-map-card,
.route-day-list,
.day-card,
.prep-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.route-map-card {
  position: relative;
  padding: 16px;
}

.map-toolbar {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 8;
  display: inline-flex;
  gap: 8px;
}

.map-toolbar button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  color: white;
  font-size: 1.3rem;
  font-weight: 900;
  background: rgba(10, 76, 96, 0.78);
  box-shadow: 0 10px 24px rgba(12, 65, 76, 0.14);
  cursor: pointer;
}

.route-viewport {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 28%, rgba(49, 161, 197, 0.18), transparent 18%),
    radial-gradient(circle at 72% 70%, rgba(74, 184, 112, 0.18), transparent 20%),
    linear-gradient(135deg, #f8fff9, #e8f8fb);
}

.route-map-inner {
  position: absolute;
  inset: 0;
  min-width: 820px;
  transform-origin: center center;
  transition: transform 0.18s ease;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-land {
  fill: rgba(238, 230, 188, 0.52);
  stroke: rgba(68, 130, 122, 0.22);
  stroke-width: 2;
}

.route-shadow {
  fill: none;
  stroke: rgba(10, 70, 88, 0.16);
  stroke-width: 19;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-line {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 12;
}

.map-marker {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 126px;
  transform: translate(-50%, -50%);
  gap: 1px;
  border: 0;
  border-radius: 13px;
  padding: 8px 10px 9px 36px;
  color: #073142;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(22, 76, 92, 0.16);
  cursor: pointer;
}

.map-marker span {
  position: absolute;
  left: 9px;
  top: 12px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--sun);
  font-size: 0.82rem;
}

.map-marker strong {
  font-size: 0.94rem;
  line-height: 1.18;
}

.map-marker em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.2;
}

.map-marker.pulse {
  animation: markerPulse 0.68s ease;
}

@keyframes markerPulse {
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.route-car {
  position: absolute;
  z-index: 7;
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  border: 3px solid white;
  border-radius: 18px;
  font-size: 1.72rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(10, 76, 96, 0.25);
  transform: translate(-50%, -50%);
}

.map-hint {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.route-day-list {
  display: grid;
  align-content: start;
  max-height: 564px;
  overflow: auto;
  padding: 12px;
  gap: 10px;
}

.route-day-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 4px 12px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: #123d4a;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.route-day-card b {
  grid-row: span 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.route-day-card span {
  font-weight: 900;
}

.route-day-card em {
  color: #1d8fc2;
  font-style: normal;
  font-weight: 900;
}

.route-day-card small {
  color: var(--muted);
}

.route-day-card.active {
  border-color: rgba(37, 160, 117, 0.7);
  background: linear-gradient(135deg, rgba(226, 248, 244, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: 0 12px 24px rgba(37, 160, 117, 0.12);
}

.day-tabs {
  position: sticky;
  top: 82px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.day-tabs a {
  display: grid;
  min-width: 74px;
  min-height: 50px;
  place-items: center;
  border-radius: 10px;
  color: #0b4d60;
  font-weight: 900;
  background: #f1fbfb;
}

.day-tabs a span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.daily-list {
  display: grid;
  gap: 18px;
}

.day-card {
  display: grid;
  grid-template-columns: 96px 270px minmax(0, 1fr);
  overflow: hidden;
  scroll-margin-top: 160px;
}

.day-date {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 18px 10px;
  background: linear-gradient(180deg, rgba(226, 247, 242, 0.98), rgba(246, 252, 250, 0.96));
}

.day-date strong {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.day-date span {
  color: var(--muted);
  font-weight: 900;
}

.day-cover {
  min-height: 330px;
}

.day-cover button {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.day-cover img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.day-content {
  padding: 26px 28px 28px;
}

.day-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.day-topline span,
.room-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #16835f;
  font-size: 0.84rem;
  font-weight: 900;
  background: rgba(226, 247, 234, 0.9);
}

.day-content h3 {
  margin: 0;
  color: #0b4053;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.day-mood {
  margin: 12px 0 12px;
  color: #456b75;
  font-size: 1rem;
}

.memory-note {
  display: grid;
  gap: 7px;
  margin: 12px 0 12px;
  border: 1px solid rgba(37, 160, 117, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(232, 249, 241, 0.82), rgba(245, 252, 255, 0.92));
}

.memory-note strong {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  color: #0d7a5c;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.78);
}

.memory-note p {
  margin: 0;
  color: #376473;
  font-size: 0.9rem;
  line-height: 1.65;
}

.note-link {
  width: fit-content;
  border: 1px solid rgba(37, 160, 117, 0.22);
  border-radius: 10px;
  padding: 8px 11px;
  color: #0d735c;
  font-size: 0.86rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.note-link.inline {
  margin-top: 12px;
}

.day-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.day-block {
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(246, 252, 251, 0.9), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(56, 127, 135, 0.16);
}

.day-block h4 {
  margin: 0 0 8px;
  color: #126e62;
  font-size: 0.98rem;
}

.day-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dining-list {
  display: grid;
  gap: 10px;
}

.dining-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 94px;
  overflow: hidden;
  border: 1px solid rgba(56, 127, 135, 0.16);
  border-radius: 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
}

.dining-card img {
  width: 86px;
  height: 100%;
  min-height: 94px;
  object-fit: cover;
  background: #d8eeec;
}

.dining-card span {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 10px 10px 0;
}

.dining-card strong {
  color: #0b4053;
  font-size: 0.9rem;
  line-height: 1.25;
}

.dining-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.dining-card em {
  color: #d86b22;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.note-lightbox {
  max-width: 780px;
  padding: 8px 6px 4px;
}

.note-lightbox h3 {
  margin: 4px 48px 18px 0;
  color: #0b4053;
  font-size: 1.45rem;
  line-height: 1.2;
}

.note-lightbox h4 {
  margin: 18px 0 8px;
  color: #126e62;
  font-size: 1rem;
}

.note-lightbox p,
.note-lightbox li {
  color: var(--muted);
  line-height: 1.75;
}

.note-lightbox ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.media-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 20px;
  padding-bottom: 4px;
}

.media-thumb,
.media-more,
.video-pill {
  border: 0;
  cursor: pointer;
}

.media-thumb {
  position: relative;
  overflow: hidden;
  flex: 0 0 148px;
  height: 112px;
  border-radius: 12px;
  padding: 0;
  background: #def0ef;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb span {
  position: absolute;
  inset: auto 7px 7px;
  overflow: hidden;
  max-height: 42px;
  border-radius: 8px;
  padding: 5px 7px;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
  background: rgba(4, 52, 67, 0.72);
}

.media-more,
.video-pill {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  align-self: center;
  border-radius: 10px;
  padding: 0 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.prep-card {
  padding: 0;
  overflow: hidden;
}

.prep-card summary {
  cursor: pointer;
  padding: 18px 22px;
  color: #0b4053;
  font-size: 1.2rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
}

.prep-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px 24px;
}

.prep-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(56, 127, 135, 0.16);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  background: rgba(247, 252, 249, 0.84);
}

.prep-item input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.lightbox {
  width: min(1120px, calc(100% - 28px));
  max-height: min(88vh, 900px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.lightbox::backdrop {
  background: rgba(4, 30, 42, 0.58);
  backdrop-filter: blur(8px);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  background: rgba(5, 50, 65, 0.78);
  cursor: pointer;
}

.lightbox-content {
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 22px;
}

.lightbox-content > img,
.lightbox-content > video {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  background: #102c36;
}

.lightbox-content > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.gallery-lightbox h3 {
  margin: 0 56px 18px 0;
  color: #0b4053;
  font-size: 1.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: #103444;
}

.gallery-grid figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .hero,
  .route-layout,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .route-day-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .day-card {
    grid-template-columns: 84px minmax(220px, 0.8fr) minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 18px);
    margin-top: 8px;
    padding: 8px;
    gap: 8px;
    overflow: hidden;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 6.5em;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-nav {
    display: none;
  }

  .day-card,
  .day-card *,
  .route-day-card,
  .route-day-card *,
  .prep-card,
  .prep-card * {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .day-content p,
  .day-content li,
  .route-day-card p {
    max-width: min(100%, 30ch);
  }

  .section-shell {
    width: calc(100% - 18px);
    padding: 48px 0;
  }

  .hero {
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 36px;
  }

  .hero-copy {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(1.82rem, 8.7vw, 2.38rem);
    max-width: 100%;
    word-break: break-all;
  }

  .hero-stats,
  .prep-list,
  .route-day-list {
    grid-template-columns: 1fr;
  }

  .hero-slide,
  .hero-slide img {
    min-height: 360px;
    height: 360px;
  }

  .hero-slide figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 6.3vw, 1.95rem);
    line-height: 1.06;
    word-break: break-all;
  }

  .route-viewport {
    min-height: 440px;
  }

  .route-map-inner {
    min-width: 720px;
  }

  .map-marker {
    min-width: 104px;
    padding: 7px 8px 8px 31px;
  }

  .map-marker span {
    left: 7px;
    top: 10px;
    width: 20px;
    height: 20px;
  }

  .day-card {
    grid-template-columns: 1fr;
  }

  .day-date {
    grid-template-columns: auto 1fr;
    justify-content: start;
    justify-items: start;
    padding: 14px 18px;
  }

  .day-date strong {
    width: 46px;
    height: 46px;
  }

  .day-cover,
  .day-cover img {
    min-height: 260px;
    height: 260px;
  }

  .day-content {
    padding: 20px;
  }

  .media-thumb {
    flex-basis: 132px;
    height: 102px;
  }

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

  .gallery-grid img,
  .gallery-grid video {
    height: 260px;
  }
}

/* Current route view: real map + one-day detail */
.route-layout-v5 {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: stretch;
}

.route-layout-v5 .route-map-card {
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
}

.live-map-wrap {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

#liveMap {
  width: 100%;
  min-height: 560px;
  height: 560px;
  background: #e7f5f4;
}

.map-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 410;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 32px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 8px 10px;
  color: #0b4053;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(12, 76, 92, 0.14);
  backdrop-filter: blur(12px);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.map-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(11, 64, 83, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 26px rgba(12, 76, 92, 0.16) !important;
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  color: #0b4053 !important;
  font-size: 1.25rem !important;
  line-height: 38px !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.place-marker,
.poi-star,
.car-marker {
  display: grid;
  place-items: center;
}

.place-marker {
  display: inline-flex;
  min-width: 86px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px solid white;
  border-radius: 999px;
  padding: 5px 10px;
  color: white;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 8px 20px rgba(8, 70, 88, 0.24);
}

.place-marker b {
  font-size: 0.76rem;
}

.place-marker small {
  margin-top: 2px;
  opacity: 0.86;
  font-size: 0.62rem;
  font-weight: 800;
}

.poi-star {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 12px 12px 12px 3px;
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
  background: var(--sun);
  box-shadow: 0 8px 20px rgba(8, 70, 88, 0.2);
  transform: rotate(-45deg);
}

.poi-star span {
  transform: rotate(45deg);
}

.poi-scenic {
  background: #28a877;
}

.poi-hotel {
  background: #2294c7;
}

.poi-airport {
  background: #f2a03b;
}

.poi-activity {
  background: #d681b6;
}

.car-marker {
  width: 42px;
  height: 42px;
  border: 3px solid white;
  border-radius: 16px;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(8, 70, 88, 0.25);
}

.poi-tooltip {
  border: 0 !important;
  border-radius: 10px !important;
  padding: 7px 9px !important;
  color: #0b4053 !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 22px rgba(12, 76, 92, 0.16) !important;
}

.route-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 560px;
}

.route-current {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 250, 247, 0.86));
  box-shadow: 0 16px 34px rgba(18, 76, 89, 0.1);
}

.route-current small {
  display: block;
  color: #d4771d;
  font-size: 0.78rem;
  font-weight: 900;
}

.route-current h3 {
  margin: 5px 0 6px;
  color: #0b4053;
  font-size: 1.32rem;
  line-height: 1.2;
}

.route-current p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.route-steps {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 470px;
  overflow: auto;
  padding: 2px 2px 8px;
}

.route-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px;
  color: #123d4a;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.route-step:hover {
  border-color: rgba(37, 160, 117, 0.42);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 22px rgba(18, 76, 89, 0.08);
}

.route-step .route-day {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-size: 0.92rem;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.route-step .route-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.route-step .route-copy strong {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  color: #123d4a;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.3;
  background: transparent;
}

.route-step .route-meta {
  display: block;
  color: #1b82bf;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.35;
}

.route-step .route-copy em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.45;
}

.route-step.active,
.route-step[aria-selected="true"] {
  border-color: rgba(37, 160, 117, 0.7);
  background: linear-gradient(135deg, rgba(228, 249, 242, 0.98), rgba(255, 255, 255, 0.95));
  box-shadow: 0 14px 24px rgba(37, 160, 117, 0.14);
}

.day-tabs {
  gap: 10px;
  padding: 8px;
}

.day-tabs .day-tab {
  display: grid;
  min-width: 94px;
  min-height: 54px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 5px 10px;
  color: #0b4d60;
  font-weight: 900;
  background: #f2fbfb;
  cursor: pointer;
}

.day-tabs .day-tab span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.day-tabs .day-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 24px rgba(37, 160, 117, 0.2);
}

.day-tabs .day-tab.active span {
  color: rgba(255, 255, 255, 0.84);
}

.daily-list {
  display: block;
}

.day-detail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.day-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 0.52fr);
  gap: 0;
  min-height: 360px;
}

.day-detail-cover {
  position: relative;
  min-height: 360px;
  border: 0;
  padding: 0;
  background: #d8eeec;
  cursor: zoom-in;
}

.day-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.day-detail-copy {
  display: grid;
  align-content: center;
  padding: 28px;
}

.day-detail-copy h3 {
  margin: 0;
  color: #0b4053;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.day-detail-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.day-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.day-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: #16835f;
  font-size: 0.84rem;
  font-weight: 900;
  background: rgba(226, 247, 234, 0.95);
}

.day-flow-v5 {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 30px 0 4px;
  padding: 4px 26px 26px;
}

.day-flow-v5::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 28px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 160, 117, 0.12), rgba(37, 160, 117, 0.58), rgba(37, 160, 117, 0.12));
}

.timeline-item-v5 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.timeline-item-v5.left .timeline-card-v5 {
  grid-column: 1;
}

.timeline-item-v5.right .timeline-card-v5 {
  grid-column: 3;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  grid-column: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  justify-self: center;
  border: 5px solid white;
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 24px rgba(37, 160, 117, 0.2);
}

.timeline-card-v5 {
  overflow: hidden;
  border: 1px solid rgba(56, 127, 135, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(18, 76, 89, 0.08);
}

.timeline-card-v5 button {
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.timeline-card-v5 img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #d8eeec;
}

.timeline-card-v5 div {
  padding: 15px 16px 17px;
}

.timeline-card-v5 span {
  display: block;
  color: #1e8ec2;
  font-size: 0.88rem;
  font-weight: 900;
}

.timeline-card-v5 strong {
  display: block;
  margin-top: 3px;
  color: #0b4053;
  font-size: 1.08rem;
  line-height: 1.28;
}

.timeline-card-v5 p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.timeline-card-v5 em {
  display: block;
  margin-top: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  color: #13765c;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  background: rgba(226, 247, 234, 0.92);
}

.day-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 26px 26px;
}

.day-brief {
  border: 1px solid rgba(56, 127, 135, 0.16);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(247, 253, 252, 0.96), rgba(255, 255, 255, 0.86));
}

.day-brief h4 {
  margin: 0 0 8px;
  color: #126e62;
  font-size: 0.98rem;
}

.day-brief ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.day-gallery-panel {
  border-top: 1px solid rgba(56, 127, 135, 0.16);
  padding: 18px 26px 24px;
  background: rgba(242, 251, 250, 0.54);
}

.day-gallery-panel .media-strip {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .route-layout-v5 {
    grid-template-columns: 1fr;
  }

  .route-side {
    min-height: auto;
  }

  .route-steps {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .day-detail-cover,
  .day-detail-cover img {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  #liveMap,
  .live-map-wrap {
    min-height: 430px;
    height: 430px;
  }

  .map-legend {
    left: 10px;
    bottom: 10px;
    right: 10px;
    font-size: 0.76rem;
  }

  .route-steps {
    grid-template-columns: 1fr;
  }

  .route-current {
    padding: 15px;
  }

  .day-tabs {
    top: 64px;
  }

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

  .day-detail-copy {
    padding: 22px;
  }

  .day-detail-cover,
  .day-detail-cover img {
    min-height: 280px;
  }

  .day-flow-v5 {
    gap: 16px;
    padding: 0 16px 20px 48px;
  }

  .day-flow-v5::before {
    left: 26px;
  }

  .timeline-item-v5 {
    grid-template-columns: 1fr;
  }

  .timeline-item-v5.left .timeline-card-v5,
  .timeline-item-v5.right .timeline-card-v5 {
    grid-column: 1;
  }

  .timeline-dot {
    position: absolute;
    left: -43px;
    top: 16px;
    width: 34px;
    height: 34px;
    border-width: 4px;
    font-size: 0.72rem;
  }

  .timeline-card-v5 img {
    height: 174px;
  }

  .day-brief-grid,
  .day-gallery-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
}
