:root {
  color-scheme: light;
  --ink: #222222;
  --muted: #6a6a6a;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --line: rgba(34, 34, 34, 0.12);
  --sea: #007a7c;
  --sea-dark: #075b61;
  --lagoon: #d9f3ef;
  --sun: #f4b544;
  --sun-soft: #fff1ca;
  --coral: #ff385c;
  --coral-soft: #ffe3e8;
  --forest: #2f7d55;
  --forest-soft: #e0f1e6;
  --shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px,
    rgba(0, 0, 0, 0.1) 0 4px 8px;
  --shadow-hover: rgba(0, 0, 0, 0.08) 0 4px 12px;
  --radius: 8px;
  --topbar: 68px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 520px, var(--paper) 520px),
    var(--paper);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255, 56, 92, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a,
.text-button,
.icon-button,
.day-tab,
.action-link {
  min-height: 42px;
  border-radius: var(--radius);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--coral);
}

.icon-button {
  width: 42px;
  border: 1px solid rgba(34, 34, 34, 0.14);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.icon-button:hover,
.text-button:hover {
  border-color: rgba(255, 56, 92, 0.36);
  color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.icon-button svg,
.text-button svg,
.action-link svg,
.search-box svg,
.source-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 48px) 72px;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.84fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
  min-height: min(58vh, 620px);
  padding: clamp(34px, 5vw, 70px) 0 34px;
}

.overview-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 10vw, 8.2rem);
  line-height: 0.94;
  font-weight: 850;
  max-width: 920px;
}

.lead {
  max-width: 610px;
  color: #3f3f3f;
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.65;
  margin-bottom: 0;
}

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

.stat-tile {
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(34, 34, 34, 0.09);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-tile span,
.stat-tile small {
  display: block;
  color: rgba(23, 33, 31, 0.64);
}

.stat-tile strong {
  display: block;
  margin: 18px 0 8px;
  font-size: clamp(1.14rem, 1.6vw, 1.38rem);
  line-height: 1.16;
}

.stat-tile.sea {
  background: linear-gradient(160deg, rgba(217, 243, 239, 0.92), #fff 58%);
}

.stat-tile.sun {
  background: linear-gradient(160deg, rgba(255, 241, 202, 0.96), #fff 58%);
}

.stat-tile.coral {
  background: linear-gradient(160deg, rgba(255, 227, 232, 0.96), #fff 58%);
}

.stat-tile.forest {
  background: linear-gradient(160deg, rgba(224, 241, 230, 0.96), #fff 58%);
}

.source-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 26px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 56, 92, 0.2);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.source-note p {
  margin: 0;
  color: #4d403a;
  line-height: 1.6;
}

.planner {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}

.planner-left,
.map-panel,
.control-strip,
.progress-panel {
  border: 1px solid rgba(34, 34, 34, 0.1);
  background: #fff;
  box-shadow: var(--shadow);
}

.planner-left {
  border-radius: var(--radius);
  overflow: hidden;
}

.control-strip {
  border-width: 0 0 1px;
  box-shadow: none;
  padding: 20px;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}

.control-header h2,
.section-heading h2,
.map-content h2 {
  margin: 0;
  font-size: clamp(1.42rem, 2.2vw, 2.1rem);
  line-height: 1.12;
}

.text-button {
  border: 1px solid rgba(34, 34, 34, 0.14);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--ink);
}

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

.day-tab {
  border: 1px solid rgba(34, 34, 34, 0.14);
  background: #fff;
  color: #384642;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.day-tab[aria-selected="true"] {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

.filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 10px;
}

.search-box,
.select-box {
  min-height: 48px;
  border: 1px solid rgba(34, 34, 34, 0.14);
  border-radius: var(--radius);
  background: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 12px;
}

.select-box span {
  color: var(--muted);
  font-size: 0.86rem;
}

.select-box select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.visible-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.visible-summary span {
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--paper);
}

.timeline {
  display: grid;
  gap: 0;
}

.empty-state {
  padding: 32px;
  color: var(--muted);
}

.stop-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--ink);
  width: 100%;
}

.stop-card:hover,
.stop-card.active {
  background: rgba(217, 243, 239, 0.45);
}

.stop-card.active {
  box-shadow: inset 4px 0 0 var(--coral);
}

.time-col {
  display: grid;
  align-content: start;
  gap: 6px;
}

.time {
  color: var(--coral);
  font-size: 1.05rem;
  font-weight: 800;
}

.day-label {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.stop-body {
  min-width: 0;
}

.stop-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sun-soft);
  color: #6d4a08;
  font-size: 0.78rem;
  font-weight: 700;
}

.stop-card h3 {
  margin: 0 0 9px;
  font-size: 1.16rem;
  line-height: 1.34;
}

.stop-desc {
  color: #4c5c57;
  line-height: 1.72;
  margin: 0 0 12px;
}

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

.fact {
  min-width: 0;
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 10px;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.fact strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 650;
}

.map-panel {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar) - 32px);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-frame-wrap {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vh, 430px);
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(0, 122, 124, 0.18), rgba(244, 181, 68, 0.2)),
    repeating-linear-gradient(28deg, rgba(7, 91, 97, 0.14) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(118deg, rgba(47, 125, 85, 0.12) 0 1px, transparent 1px 44px),
    #d9f3ef;
}

.map-frame-wrap iframe {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map-fallback {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  pointer-events: none;
  box-shadow: var(--shadow);
}

.fallback-route {
  display: inline-grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 168px;
  color: var(--sea-dark);
  font-weight: 900;
}

.flight-path {
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--sea));
  position: relative;
}

.flight-path::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sea);
  transform: translateY(-50%);
}

.map-fallback strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.map-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
}

.map-content p {
  color: var(--muted);
  line-height: 1.6;
}

.map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.action-link {
  border: 1px solid rgba(34, 34, 34, 0.14);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 700;
}

.action-link.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.action-link:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.action-link.primary:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.route-rail {
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
  min-height: 120px;
  overflow: auto;
  padding-right: 4px;
}

.route-chip {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: #fff;
  text-align: left;
  color: var(--ink);
}

.route-chip:hover,
.route-chip.active {
  border-color: var(--coral);
  background: var(--lagoon);
}

.route-chip span {
  color: var(--sea-dark);
  font-weight: 800;
}

.route-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.route-chip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.page-section {
  padding-top: 72px;
}

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

.event-grid,
.hotel-grid {
  display: grid;
  gap: 14px;
}

.event-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.hotel-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-card,
.hotel-card,
.booking-item,
.tip-card {
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.event-card {
  padding: 18px;
}

.event-card h3 {
  margin: 10px 0 8px;
  font-size: 1.12rem;
  line-height: 1.32;
}

.event-card p {
  color: #4d5d58;
  line-height: 1.62;
  margin-bottom: 10px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.source-links a,
.status-pill,
.fact-note,
.event-meta {
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
}

.source-links a,
.status-pill,
.event-meta {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
}

.source-links a:hover {
  border-color: var(--sea);
  color: var(--sea-dark);
}

.status-pill.ok {
  border-color: rgba(53, 122, 70, 0.32);
  background: var(--forest-soft);
  color: var(--forest);
}

.status-pill.warn {
  border-color: rgba(243, 178, 63, 0.42);
  background: var(--sun-soft);
  color: #80590d;
}

.status-pill.fix {
  border-color: rgba(232, 93, 79, 0.3);
  background: var(--coral-soft);
  color: #9f2e24;
}

.fact-note {
  display: block;
  border-radius: var(--radius);
  margin-top: 10px;
  padding: 9px 10px;
  line-height: 1.55;
}

.fact-note.ok {
  background: rgba(223, 240, 223, 0.62);
  color: var(--forest);
}

.fact-note.warn {
  background: rgba(255, 240, 201, 0.7);
  color: #76510a;
}

.fact-note.fix {
  background: rgba(255, 225, 220, 0.72);
  color: #8d2c24;
}

.event-card {
  min-height: 260px;
}

.event-card.recommend {
  border-color: rgba(255, 56, 92, 0.26);
  background: linear-gradient(160deg, rgba(255, 227, 232, 0.9), #fff 60%);
}

.event-meta {
  width: fit-content;
  border-color: rgba(0, 125, 134, 0.22);
  color: var(--sea-dark);
  font-weight: 800;
}

.hotel-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 330px;
  padding: 18px;
}

.hotel-night {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.8rem;
}

.hotel-card h3 {
  margin: 14px 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.hotel-card p {
  color: #4d5d58;
  line-height: 1.65;
  margin-bottom: 10px;
}

.hotel-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hotel-card .action-link {
  margin-top: 14px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.progress-panel {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.progress-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  background:
    conic-gradient(var(--forest) var(--progress, 0%), rgba(220, 227, 221, 0.9) 0),
    #fff;
}

.progress-ring::before {
  content: "";
  position: absolute;
}

.progress-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.booking-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.booking-item input {
  width: 24px;
  height: 24px;
  margin: 4px auto 0;
  accent-color: var(--forest);
}

.booking-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.booking-item p {
  margin: 0;
  color: #4d5d58;
  line-height: 1.58;
}

.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.booking-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: #fff;
  font-size: 0.8rem;
}

.tips-grid {
  columns: 3 280px;
  column-gap: 12px;
}

.tip-card {
  break-inside: avoid;
  margin: 0 0 12px;
  overflow: hidden;
}

.tip-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
}

.tip-card summary::-webkit-details-marker {
  display: none;
}

.tip-card summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lagoon);
  color: var(--sea-dark);
  font-weight: 900;
}

.tip-card[open] summary::after {
  content: "−";
}

.tip-card p {
  margin: 0;
  padding: 0 16px 16px;
  color: #4d5d58;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .overview,
  .planner {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .progress-panel {
    position: static;
  }

  .map-panel {
    display: block;
    max-height: none;
  }

  .event-grid,
  .hotel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --topbar: 64px;
  }

  .topbar {
    gap: 12px;
    padding: 0 14px;
  }

  .brand small,
  .nav-links {
    display: none;
  }

  main {
    padding: 18px 12px 52px;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }

  .overview {
    min-height: auto;
    padding-top: 18px;
  }

  .filters-row,
  .stop-facts,
  .event-grid,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-tile {
    min-height: 118px;
    padding: 14px;
  }

  .stat-tile strong {
    font-size: 1.05rem;
  }

  .map-panel {
    order: -1;
  }

  .stop-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .time-col {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
  }

  .map-actions {
    grid-template-columns: 1fr;
  }

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

  .event-card,
  .hotel-card {
    min-height: 0;
  }

  .map-frame-wrap {
    height: 280px;
    min-height: 280px;
  }
}

@media print {
  .topbar,
  .map-panel,
  .filters-row,
  .day-tabs,
  .text-button,
  .source-note {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .overview,
  .planner,
  .booking-layout {
    display: block;
  }

  .planner-left,
  .control-strip,
  .hotel-card,
  .booking-item,
  .tip-card {
    box-shadow: none;
  }
}
