@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #142f34;
  --muted: #536c70;
  --teal: #0c5961;
  --teal-dark: #08464e;
  --lime: #d9ef79;
  --coral: #ea735b;
  --sky: #eaf4f2;
  --paper: #fbfdfb;
  --line: #dce8e5;
  --font: "DM Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.7 var(--font); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .9rem max(5.4vw, 1.25rem); background: rgba(251,253,251,.96); border-bottom: 1px solid rgba(220,232,229,.8); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; line-height: 1.12; letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 14px; background: var(--teal); color: var(--lime); font-size: 1.15rem; }
.brand small { display: block; margin-top: .25rem; color: #718488; font: 600 .61rem/1 var(--font); letter-spacing: .12em; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { text-decoration: none; font-size: .9rem; font-weight: 600; color: #365459; }
nav a:hover, .text-link:hover, .mini-link:hover { color: var(--coral); }
nav .nav-map { padding: .58rem .95rem; border: 1px solid #a8c8c5; border-radius: 999px; color: var(--teal); }
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr); align-items: center; gap: clamp(2.5rem, 6vw, 6.5rem); padding: clamp(3.4rem, 7vw, 6.9rem) max(7.5vw, 1.4rem) clamp(3.3rem, 6vw, 5.6rem); }
.hero-copy { max-width: 39rem; }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; color: #42747a; font-size: .76rem; font-weight: 700; letter-spacing: .16em; }
.eyebrow-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--coral); }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 1.2rem; font-size: clamp(2.55rem, 5vw, 4.75rem); line-height: 1.22; letter-spacing: -.065em; font-weight: 800; }
h1 em { color: var(--teal); font-style: normal; }
.hero-intro { max-width: 33rem; color: var(--muted); font-size: 1.08rem; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .72rem 1.15rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.button-quiet { border-color: #c6d8d6; color: var(--teal); background: white; }
.button-outline { border-color: #9dbbb9; color: var(--teal); background: transparent; }
.button-light { background: var(--lime); color: #183a3f; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.7rem; color: #60767a; font-size: .86rem; }
.hero-meta b { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; margin-right: .38rem; border-radius: 50%; background: #e8f1ef; color: var(--teal); font-size: .72rem; }
.hero-photo, .feature-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: clamp(24rem, 44vw, 37rem); object-fit: cover; object-position: center; border-radius: 2.4rem 2.4rem 2.4rem .5rem; box-shadow: 0 24px 60px rgba(18,67,72,.14); background: #d9e9e5; }
figcaption { margin-top: .65rem; color: #60777a; font-size: .75rem; }
figcaption a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.photo-label { position: absolute; left: -1.3rem; bottom: 3.5rem; display: grid; gap: .2rem; min-width: 10rem; padding: .95rem 1.1rem; border-radius: .25rem 1rem 1rem 1rem; background: var(--lime); color: var(--ink); box-shadow: 0 12px 28px rgba(20,47,52,.13); transform: rotate(-3deg); }
.photo-label span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.photo-label strong { font-size: 1.05rem; }
.quick-strip { display: flex; justify-content: center; align-items: center; gap: clamp(1.5rem, 6vw, 6.5rem); padding: 1.15rem 1.4rem; background: var(--teal); color: white; }
.quick-strip > div, .quick-strip > a { display: flex; align-items: center; gap: .65rem; }
.quick-strip > a { text-decoration: none; }
.strip-number { color: var(--lime); font-size: 1.55rem; font-weight: 800; letter-spacing: -.05em; }
.strip-pin { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--lime); color: var(--teal); font-size: 1.1rem; }
.section { padding: clamp(4rem, 8vw, 7.2rem) max(7.5vw, 1.4rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.3rem; }
.section-heading .eyebrow { margin-bottom: .55rem; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.25; letter-spacing: -.05em; }
.text-link, .mini-link { color: var(--teal); font-size: .87rem; font-weight: 700; text-underline-offset: 4px; }
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.day-card { padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 1.35rem; background: white; }
.day-one { border-top: 5px solid var(--coral); }
.day-two { border-top: 5px solid #9cb541; }
.day-heading { padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.day-index { color: var(--coral); font-size: .73rem; font-weight: 800; letter-spacing: .16em; }
.day-two .day-index { color: #728b17; }
.day-heading h3 { margin: .4rem 0 .25rem; font-size: 1.35rem; line-height: 1.4; }
.day-heading p { margin: 0; color: #718488; font-size: .88rem; }
.timeline { display: grid; gap: 0; margin: 1.45rem 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 4.2rem 1fr; gap: .85rem; padding: 0 0 1.3rem; }
.timeline li:not(:last-child)::before { position: absolute; top: 1.55rem; bottom: -.05rem; left: 3.35rem; width: 1px; background: #dbe8e5; content: ""; }
.timeline time { position: relative; z-index: 1; display: grid; place-items: start center; padding: .23rem .38rem; border-radius: .5rem; background: #f1f7f5; color: var(--teal); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.timeline strong { display: block; margin: .08rem 0 .15rem; font-size: 1rem; line-height: 1.5; }
.timeline p { margin: 0 0 .35rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.timeline .mini-link { font-size: .8rem; }
.highlight-stop time { background: #fff0df; color: #a34b36; }
.highlight-stop strong { color: #a34b36; }
.feature-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 6vw, 5.5rem) max(9vw, 1.4rem); background: var(--teal); color: white; }
.eyebrow-light { color: var(--lime); }
.feature-copy h2 { margin-bottom: 1rem; }
.feature-copy > p:not(.eyebrow) { max-width: 36rem; color: #d2e4df; line-height: 1.9; }
.ticket-note { display: flex; gap: .85rem; align-items: flex-start; max-width: 40rem; margin: 1.5rem 0 1.65rem; padding: 1rem; border: 1px solid rgba(217,239,121,.4); border-radius: .85rem; background: rgba(255,255,255,.06); }
.ticket-mark { color: var(--lime); font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.ticket-note strong, .ticket-note small { display: block; }
.ticket-note small { margin-top: .2rem; color: #d2e4df; font-size: .82rem; }
.feature-photo img { width: 100%; height: clamp(18rem, 32vw, 29rem); object-fit: cover; border-radius: .5rem 2.25rem 2.25rem 2.25rem; background: #d9e9e5; }
.stay-section { background: #f1f7f5; }
.stay-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 1.2rem; }
.stay-address { padding: clamp(1.5rem, 3vw, 2.3rem); border-radius: 1.2rem; background: var(--teal); color: white; }
.stay-icon { display: inline-block; padding: .28rem .65rem; border-radius: 999px; background: var(--lime); color: var(--teal); font-size: .77rem; font-weight: 800; }
.stay-address h3 { margin: 1rem 0 .45rem; font-size: 1.5rem; }
.stay-address p { margin-bottom: .7rem; line-height: 1.8; }
.stay-address .stay-distance { margin-top: 1.25rem; color: #d2e4df; font-size: .88rem; }
.stay-address .mini-link { display: inline-block; margin-top: .35rem; color: var(--lime); }
.stay-guides { display: grid; gap: .7rem; }
.stay-guides article { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; padding: 1.1rem 1.2rem; border: 1px solid #d7e6e3; border-radius: .9rem; background: rgba(255,255,255,.83); }
.guide-number { color: var(--coral); font-size: .83rem; font-weight: 800; }
.stay-guides h4 { margin: 0 0 .18rem; font-size: 1rem; }
.stay-guides p { margin: 0; color: var(--muted); font-size: .88rem; }
.map-callout { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 3rem; }
.map-callout h2 { margin-bottom: .75rem; }
.map-callout p:not(.eyebrow) { max-width: 32rem; margin-bottom: 0; color: var(--muted); }
.map-preview { position: relative; display: block; height: 17rem; overflow: hidden; border: 1px solid #d4e4e0; border-radius: 1.2rem; background-color: #e9f2ee; background-image: linear-gradient(28deg, transparent 47%, rgba(255,255,255,.95) 48%, rgba(255,255,255,.95) 51%, transparent 52%), linear-gradient(118deg, transparent 38%, rgba(255,255,255,.95) 39%, rgba(255,255,255,.95) 42%, transparent 43%), linear-gradient(168deg, transparent 67%, rgba(255,255,255,.85) 68%, rgba(255,255,255,.85) 71%, transparent 72%); text-decoration: none; }
.map-preview::before, .map-preview::after { position: absolute; border: 1px solid rgba(12,89,97,.13); border-radius: 50%; content: ""; }
.map-preview::before { width: 18rem; height: 18rem; top: -11rem; left: -5rem; }
.map-preview::after { width: 15rem; height: 15rem; right: -5rem; bottom: -9rem; }
.map-node { position: absolute; z-index: 1; padding: .25rem .55rem; border: 1px solid rgba(12,89,97,.12); border-radius: 999px; background: white; color: var(--teal); font-size: .74rem; font-weight: 700; box-shadow: 0 3px 10px rgba(17,59,62,.08); }
.node-a { top: 24%; left: 9%; }.node-b { top: 59%; left: 39%; }.node-c { top: 22%; right: 7%; }
.map-center { position: absolute; z-index: 2; top: 49%; left: 50%; padding: .7rem 1rem; border-radius: 999px; background: var(--teal); color: white; font-weight: 700; transform: translate(-50%, -50%); box-shadow: 0 5px 16px rgba(12,89,97,.2); white-space: nowrap; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.7rem max(5.4vw, 1.25rem); border-top: 1px solid var(--line); background: #f7faf8; }
.brand-footer { flex: 0 0 auto; }
.site-footer p { max-width: 38rem; margin: 0; color: #718488; font-size: .77rem; }
.site-footer > a:last-child { color: var(--teal); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Overview map page */
.map-main { padding: clamp(2.5rem, 5vw, 4.6rem) max(5.4vw, 1.25rem) 3rem; }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.3rem; }
.map-heading h1 { margin-bottom: 0; font-size: clamp(2.3rem, 4.5vw, 4rem); }
.map-heading > p { max-width: 25rem; margin: 0 0 .35rem; color: var(--muted); }
.route-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.route-actions .button { min-height: 2.65rem; padding: .55rem .95rem; font-size: .83rem; }
.map-layout { display: grid; grid-template-columns: minmax(17rem, .72fr) minmax(0, 1.58fr); gap: 1rem; align-items: stretch; }
.map-list { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.map-list-head { display: flex; justify-content: space-between; padding: 1rem 1.2rem; background: var(--teal); color: white; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.stop-row { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; padding: 1rem 1.1rem; border-bottom: 1px solid #e5eeeb; }
.stop-row:last-of-type { border-bottom: 0; }
.stop-number { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #e4f0ec; color: var(--teal); font-size: .75rem; font-weight: 800; }
.stop-row.day-two-stop .stop-number { background: #fff0df; color: #a34b36; }
.stop-body { min-width: 0; }
.stop-meta { display: flex; justify-content: space-between; gap: .4rem; color: #72868a; font-size: .72rem; font-weight: 700; }
.stop-body h2 { margin: .2rem 0 .15rem; font-size: 1rem; letter-spacing: -.02em; }
.stop-body p { margin: 0 0 .45rem; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.stop-body .mini-link { font-size: .78rem; }
.map-list-note { margin: 0; padding: .9rem 1.1rem; background: #f4f8f6; color: #657b7f; font-size: .75rem; }
.map-frame { position: relative; min-height: 35rem; overflow: hidden; border: 1px solid #d3e1de; border-radius: 1rem; background: #e7f0ec; }
#overview-map { width: 100%; height: 100%; min-height: 35rem; z-index: 1; }
.map-loading { display: grid; place-items: center; height: 35rem; color: var(--muted); }
.map-attribution { position: absolute; right: .6rem; bottom: .4rem; z-index: 500; padding: .15rem .35rem; border-radius: .3rem; background: rgba(255,255,255,.84); color: #536c70; font-size: .65rem; pointer-events: none; }
.map-footnote { display: flex; align-items: center; gap: 1.2rem; margin-top: .95rem; color: var(--muted); font-size: .78rem; }
.map-footnote > a { margin-left: auto; color: var(--teal); font-weight: 700; text-decoration: none; }
.map-legend { display: inline-flex; align-items: center; gap: .4rem; }
.map-legend i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); }
.legend-day-two i { background: var(--coral); }
.map-marker { display: grid; place-items: center; width: 2rem; height: 2rem; border: 2px solid white; border-radius: 50% 50% 50% 6px; background: var(--teal); color: white; font: 800 .72rem/1 var(--font); box-shadow: 0 3px 9px rgba(20,47,52,.24); transform: rotate(-45deg); }
.map-marker span { transform: rotate(45deg); }
.map-marker.marker-day-two { background: var(--coral); }
.leaflet-popup-content-wrapper { border-radius: .75rem; }
.leaflet-popup-content { margin: .75rem .9rem; font-family: var(--font); }
.popup-title { margin: 0 0 .2rem; color: var(--ink); font-size: .95rem; font-weight: 800; }
.popup-detail { margin: 0 0 .45rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.popup-link { color: var(--teal); font-size: .8rem; font-weight: 700; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 2rem; padding-left: 5vw; padding-right: 5vw; }
  .hero-photo img { height: 28rem; }
  .hero-meta { gap: .7rem; }
  .day-grid { gap: .8rem; }
  .feature-section { gap: 2.5rem; padding-left: 5vw; padding-right: 5vw; }
  .map-layout { grid-template-columns: minmax(15rem, .82fr) minmax(0, 1.18fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header { padding: .75rem 1rem; gap: .7rem; }
  .brand { gap: .55rem; font-size: .9rem; }
  .brand-mark { width: 2.15rem; height: 2.15rem; border-radius: 12px; font-size: 1rem; }
  .brand small { font-size: .54rem; }
  nav { gap: .65rem; }
  nav a { font-size: .78rem; }
  nav a:nth-child(2) { display: none; }
  nav .nav-map { padding: .44rem .72rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 3.2rem 1.15rem 2.8rem; }
  h1 { font-size: clamp(2.55rem, 11vw, 3.8rem); }
  .hero-intro { font-size: 1rem; }
  .hero-photo img { height: 22rem; border-radius: 1.6rem 1.6rem 1.6rem .4rem; }
  .photo-label { left: -.4rem; bottom: 3.7rem; }
  .hero-meta { margin-top: 1.7rem; gap: .65rem 1rem; }
  .quick-strip { flex-wrap: wrap; justify-content: flex-start; gap: .7rem 1.2rem; padding: .95rem 1.15rem; font-size: .82rem; }
  .strip-number { font-size: 1.2rem; }
  .section { padding: 3.4rem 1.15rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .9rem; margin-bottom: 1.5rem; }
  .section-heading h2 { font-size: 2rem; }
  .day-grid, .feature-section, .stay-grid, .map-callout { grid-template-columns: 1fr; }
  .day-grid { gap: .85rem; }
  .day-card { padding: 1.2rem; }
  .timeline li { grid-template-columns: 3.75rem 1fr; gap: .65rem; }
  .timeline li:not(:last-child)::before { left: 3rem; }
  .feature-section { gap: 1.8rem; padding: 3.3rem 1.15rem; }
  .feature-section h2 { font-size: 2.25rem; }
  .feature-photo img { height: 20rem; }
  .map-callout { gap: 1.7rem; }
  .map-preview { height: 14rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .9rem; padding: 1.4rem 1.15rem; }
  .site-footer p { font-size: .75rem; }
  .map-main { padding: 2.3rem 1rem 2rem; }
  .map-heading { align-items: start; flex-direction: column; gap: .9rem; }
  .map-heading h1 { font-size: 2.45rem; }
  .map-heading > p { font-size: .93rem; }
  .route-actions { display: grid; grid-template-columns: 1fr; }
  .route-actions .button { justify-content: flex-start; }
  .map-layout { grid-template-columns: 1fr; }
  .map-frame { min-height: 27rem; order: -1; }
  #overview-map { min-height: 27rem; }
  .map-loading { height: 27rem; }
  .map-list-head { padding: .85rem 1rem; }
  .map-footnote { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
