:root {
  --canvas: #f5f2ec;
  --paper: #fffdf9;
  --paper-warm: #fbf6f0;
  --graphite: #252724;
  --muted: #74766f;
  --muted-strong: #555a54;
  --line: #ddd8cf;
  --line-strong: #c9c2b6;
  --coral: #c85f3d;
  --coral-deep: #9f4329;
  --coral-soft: #f4ded5;
  --teal: #1f756b;
  --teal-deep: #14564f;
  --teal-soft: #dcebe7;
  --yellow-soft: #f5eccf;
  --white: #ffffff;
  --glass: rgba(255, 253, 249, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --radius: 8px;
  --radius-small: 5px;
  --shadow: 0 12px 30px rgba(57, 48, 38, 0.08);
  --shadow-raised: 7px 7px 18px rgba(80, 70, 58, 0.09), -5px -5px 14px rgba(255, 255, 255, 0.78);
  --shadow-inset: inset 2px 2px 6px rgba(91, 81, 69, 0.09), inset -2px -2px 6px rgba(255, 255, 255, 0.84);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--graphite);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: var(--radius-small);
  background: var(--graphite);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 117, 107, 0.35);
  outline-offset: 3px;
}

.trip-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  box-shadow: 0 8px 24px rgba(67, 58, 48, 0.06);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

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

.trip-brand > svg {
  width: 18px;
  height: 18px;
  color: var(--coral);
}

.trip-brand span {
  display: grid;
  min-width: 0;
}

.trip-brand strong {
  font-size: 15px;
  line-height: 1.3;
}

.trip-brand small {
  color: var(--muted);
  font-size: 11px;
}

.trip-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: var(--shadow-inset);
}

.trip-mode button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
}

.trip-mode button svg {
  width: 15px;
  height: 15px;
}

.trip-mode button[aria-pressed="true"] {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 3px 3px 8px rgba(74, 65, 55, 0.1), -2px -2px 6px rgba(255, 255, 255, 0.86);
}

.trip-progress {
  display: grid;
  grid-template-columns: auto minmax(80px, 140px) 34px;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.trip-progress-copy {
  display: grid;
  justify-items: end;
}

.trip-progress-copy span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.trip-progress-copy strong {
  color: var(--teal-deep);
  font-size: 14px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--teal-soft);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 220ms ease;
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--muted-strong);
  box-shadow: 3px 3px 8px rgba(73, 64, 54, 0.07), -2px -2px 6px rgba(255, 255, 255, 0.78);
}

.icon-button:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.day-rail {
  position: sticky;
  top: var(--header-height);
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1320px;
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--glass-strong);
  box-shadow: 0 8px 18px rgba(57, 48, 38, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.day-rail button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 66px;
  padding: 9px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--graphite);
  text-align: left;
}

.day-rail button:last-child {
  border-right: 0;
}

.day-rail button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.day-rail button:hover {
  background: var(--paper-warm);
}

.day-rail button[aria-pressed="true"] {
  background: var(--coral-soft);
}

.day-rail button[aria-pressed="true"]::after {
  background: var(--coral);
}

.day-rail-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 850;
}

.day-rail button[aria-pressed="true"] .day-rail-index {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--white);
}

.day-rail-copy {
  display: grid;
  min-width: 0;
}

.day-rail-copy strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-rail-copy small {
  color: var(--muted);
  font-size: 10px;
}

.day-rail-check {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.day-rail-progress {
  color: var(--teal-deep);
  font-size: 9px;
  font-weight: 850;
}

.day-rail button[data-progress-state="in-progress"] .day-rail-index {
  border-color: var(--teal);
  color: var(--teal-deep);
  box-shadow: inset 0 0 0 3px var(--teal-soft);
}

.day-rail button[data-progress-state="completed"]:not([aria-pressed="true"]) {
  background: rgba(220, 235, 231, 0.48);
}

.trip-main {
  max-width: 1320px;
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.day-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
  min-height: 540px;
  border-bottom: 1px solid var(--line);
}

.day-hero-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--graphite);
}

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

.day-hero-image figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: var(--radius-small);
  background: rgba(30, 32, 30, 0.78);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1.4;
}

.day-hero-image figcaption a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.day-hero-copy {
  display: flex;
  min-width: 0;
  padding: 34px 34px 30px;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-warm);
}

.day-kicker {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.day-kicker span {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
}

.day-kicker span:first-child {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.day-city {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.day-hero-copy > h1 {
  max-width: 540px;
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.18;
}

.day-vibe {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.7;
}

.day-base {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.day-base svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.day-base strong {
  min-width: 0;
  color: var(--graphite);
  font-size: 12px;
}

.next-step {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.next-step[data-finished="true"] {
  border-color: var(--line-strong);
  background: var(--teal-soft);
}

.next-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.next-step-head span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.next-step-head svg {
  width: 14px;
  height: 14px;
}

.next-step-head em {
  color: var(--muted);
  font-style: normal;
}

#nextStepTime {
  margin-bottom: 2px;
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 850;
}

.next-step h2 {
  margin-bottom: 3px;
  font-size: 20px;
  line-height: 1.3;
}

#nextStepPlace {
  color: var(--muted-strong);
  font-size: 12px;
}

.next-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.next-step-meta span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 7px;
  border-radius: var(--radius-small);
  background: var(--canvas);
  color: var(--muted-strong);
  font-size: 10px;
}

.next-step-meta svg {
  width: 13px;
  height: 13px;
}

.next-step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  font-size: 12px;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.primary-button {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  box-shadow: 4px 4px 10px rgba(20, 86, 79, 0.2), -2px -2px 7px rgba(255, 255, 255, 0.72);
}

.primary-button:hover {
  background: var(--teal-deep);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--graphite);
  box-shadow: 3px 3px 8px rgba(72, 63, 53, 0.07), -2px -2px 6px rgba(255, 255, 255, 0.8);
}

.secondary-button:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

.primary-button svg,
.secondary-button svg {
  width: 16px;
  height: 16px;
}

.primary-button:disabled,
.secondary-button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.primary-button:active,
.secondary-button:active,
.icon-button:active,
.trip-mode button:active,
.segmented-control button:active,
.timeline-actions button:active,
.timeline-actions a:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

.branch-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.branch-band[hidden] {
  display: none;
}

.branch-group {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
}

.branch-group:last-child {
  border-right: 0;
}

.branch-group > div:first-child {
  display: grid;
}

.branch-group > div:first-child span {
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.branch-group > div:first-child strong {
  font-size: 12px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: var(--shadow-inset);
}

.segmented-control button {
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented-control button[aria-pressed="true"] {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 3px 3px 8px rgba(73, 64, 54, 0.08), -2px -2px 6px rgba(255, 255, 255, 0.84);
}

.journey-playbook {
  padding: 30px 38px 34px;
  border-bottom: 1px solid var(--line);
  background: #f7f3ed;
}

.journey-playbook[hidden] {
  display: none;
}

.journey-heading {
  margin-bottom: 18px;
}

.journey-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 12px;
  align-items: start;
}

.journey-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 194, 182, 0.9);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.journey-card summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.journey-card[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 222, 213, 0.32);
}

.journey-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--paper-warm);
  color: var(--coral-deep);
  box-shadow: var(--shadow-inset);
}

.journey-mark svg {
  width: 18px;
  height: 18px;
}

.journey-summary-copy {
  display: grid;
  min-width: 0;
}

.journey-summary-copy small {
  margin-bottom: 2px;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.journey-summary-copy strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.35;
}

.journey-summary-copy em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
}

.journey-chevron {
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.journey-card[open] .journey-chevron {
  transform: rotate(180deg);
}

.journey-body {
  padding: 16px;
}

.journey-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--line);
}

.journey-meta > div {
  min-width: 0;
  padding: 10px 11px;
  background: var(--paper-warm);
}

.journey-meta dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.journey-meta dd {
  color: var(--graphite);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.journey-stages {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.journey-stages li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.journey-stages li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--teal-deep);
  font-size: 9px;
  font-weight: 850;
}

.journey-stages strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.journey-stages p {
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.58;
}

.journey-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.journey-sources > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.journey-sources a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--teal-deep);
  font-size: 9px;
  font-weight: 760;
}

.journey-sources a:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.journey-sources svg {
  width: 11px;
  height: 11px;
}

.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.85fr);
  align-items: start;
}

.timeline-section {
  min-width: 0;
  padding: 32px 38px 46px;
  border-right: 1px solid var(--line);
}

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

.section-heading {
  margin-bottom: 24px;
}

.section-heading p,
.companion-title-row p {
  margin-bottom: 2px;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: 23px;
}

.section-heading > span,
.companion-title-row > span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.timeline {
  display: grid;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 66px 28px minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  padding: 0 0 28px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  position: absolute;
  top: 27px;
  bottom: 0;
  left: 79px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-step[data-complete="true"] .timeline-step-copy {
  opacity: 0.58;
}

.timeline-step[data-complete="true"] .timeline-dot {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.timeline-time {
  padding-top: 4px;
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted-strong);
}

.timeline-dot svg {
  width: 14px;
  height: 14px;
}

.timeline-step-copy {
  min-width: 0;
  padding-top: 1px;
}

.timeline-step-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin-bottom: 3px;
}

.timeline-step-title h3 {
  font-size: 15px;
  line-height: 1.4;
}

.timeline-step-title span {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.timeline-place {
  margin-bottom: 6px;
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 720;
}

.timeline-note {
  max-width: 660px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.65;
}

.timeline-duration {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.timeline-duration svg {
  width: 12px;
  height: 12px;
}

.timeline-actions {
  display: flex;
  gap: 5px;
  padding-top: 0;
}

.timeline-actions button,
.timeline-actions a {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--muted-strong);
}

.timeline-actions button:hover,
.timeline-actions a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.timeline-actions button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.timeline-actions svg {
  width: 15px;
  height: 15px;
}

.day-companion {
  position: sticky;
  top: calc(var(--header-height) + 67px);
  min-width: 0;
  background: var(--paper-warm);
}

.companion-section {
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
}

.companion-title-row {
  align-items: center;
  margin-bottom: 16px;
}

.companion-title-row h2 {
  font-size: 16px;
}

.companion-title-row > strong {
  color: var(--teal-deep);
  font-size: 17px;
}

.weather-reading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.weather-reading strong {
  font-size: 28px;
  line-height: 1;
}

.weather-reading span {
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 780;
}

.weather-section > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.factor-list,
.budget-list {
  display: grid;
}

.factor-list > div,
.budget-list > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.factor-list dt,
.budget-list dt {
  color: var(--muted);
  font-size: 10px;
}

.factor-list dd,
.budget-list dd {
  min-width: 0;
  color: var(--graphite);
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.budget-list dd {
  text-align: right;
}

.budget-baseline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--teal-soft);
  font-size: 10px;
}

.budget-baseline strong {
  color: var(--teal-deep);
  text-align: right;
}

.reminder-section ol {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  counter-reset: reminder;
}

.reminder-section li {
  position: relative;
  padding-left: 31px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.6;
  counter-increment: reminder;
}

.reminder-section li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 850;
  content: counter(reminder, decimal-leading-zero);
}

.gallery-band,
.trip-facts {
  padding: 38px;
  border-top: 1px solid var(--line);
}

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

.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.gallery-card a {
  display: block;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-card:hover img {
  transform: scale(1.02);
}

.gallery-card figcaption {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
}

.gallery-card strong {
  font-size: 12px;
}

.gallery-card small {
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.trip-facts {
  background: var(--paper-warm);
}

.fixed-costs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.fixed-costs > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.fixed-costs > div:last-child {
  border-right: 0;
}

.fixed-costs span {
  color: var(--muted);
  font-size: 10px;
}

.fixed-costs strong {
  font-size: 18px;
}

.fixed-costs .fixed-total {
  background: var(--teal-soft);
}

.fixed-costs .fixed-total strong {
  color: var(--teal-deep);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.source-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  background: var(--paper);
}

.source-item > span {
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--canvas);
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.source-item h3 {
  margin-bottom: 3px;
  font-size: 11px;
}

.source-item p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.source-item a {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted-strong);
}

.source-item a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.source-item svg {
  width: 13px;
  height: 13px;
}

.trip-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  min-height: 70px;
  margin: 0 auto 30px;
  padding: 16px 28px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
}

.trip-footer a {
  color: var(--teal-deep);
  font-weight: 800;
}

.checkin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: 280px;
  max-width: min(430px, calc(100vw - 32px));
  padding: 12px 13px 12px 15px;
  border: 1px solid rgba(31, 117, 107, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(50, 55, 49, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.checkin-toast[hidden] {
  display: none;
}

.checkin-toast > span {
  display: inline-flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.checkin-toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--teal);
}

.checkin-toast strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-toast button {
  min-height: 32px;
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--paper-warm);
  color: var(--coral-deep);
  font-size: 10px;
  font-weight: 850;
  box-shadow: 2px 2px 6px rgba(73, 64, 54, 0.07), -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.mobile-live-dock {
  display: none;
}

@media (max-width: 1100px) {
  .trip-header {
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    padding-inline: 18px;
  }

  .day-rail button {
    padding-inline: 9px;
  }

  .day-rail-check {
    display: none;
  }

  .day-rail button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .day-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  }

  .day-hero-copy {
    padding: 28px;
  }

  .day-hero-copy > h1 {
    font-size: 29px;
  }

  .day-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(315px, 0.8fr);
  }

  .timeline-section,
  .journey-playbook,
  .gallery-band,
  .trip-facts {
    padding-inline: 28px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .trip-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .trip-mode {
    display: none;
  }

  .trip-progress {
    grid-template-columns: auto 90px 34px;
  }

  .day-rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .day-rail button {
    min-width: 170px;
    flex: 0 0 170px;
  }

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

  .day-hero-image img {
    min-height: 340px;
    max-height: 440px;
  }

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

  .timeline-section {
    border-right: 0;
  }

  .day-companion {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .companion-section {
    border-right: 1px solid var(--line);
  }

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

  .journey-meta {
    grid-template-columns: 1fr;
  }

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

  .fixed-costs > div:nth-child(2) {
    border-right: 0;
  }

  .fixed-costs > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 62px;
  }

  .trip-header {
    padding: 8px 12px;
  }

  .trip-brand strong {
    font-size: 13px;
  }

  .trip-brand small {
    font-size: 9px;
  }

  .trip-progress {
    grid-template-columns: auto 34px;
    gap: 7px;
  }

  .trip-progress .progress-track,
  .trip-progress-copy span {
    display: none;
  }

  .day-rail button {
    min-width: 145px;
    min-height: 60px;
    flex-basis: 145px;
  }

  .day-rail-copy strong {
    font-size: 11px;
  }

  .day-hero-image img {
    min-height: 230px;
    max-height: 260px;
  }

  .day-hero-image figcaption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-width: none;
    font-size: 8px;
  }

  .day-hero-copy {
    padding: 24px 18px;
  }

  .day-kicker {
    margin-bottom: 13px;
  }

  .day-hero-copy > h1 {
    font-size: 26px;
  }

  .day-vibe {
    font-size: 13px;
  }

  .next-step {
    padding: 15px;
  }

  .next-step h2 {
    font-size: 18px;
  }

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

  .primary-button,
  .secondary-button {
    min-height: 44px;
  }

  .branch-band {
    grid-template-columns: 1fr;
  }

  .branch-group {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 13px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .branch-group:last-child {
    border-bottom: 0;
  }

  .segmented-control button {
    min-height: 40px;
    font-size: 10px;
  }

  .timeline-section,
  .journey-playbook,
  .gallery-band,
  .trip-facts {
    padding: 27px 16px 34px;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .section-heading > span {
    max-width: 120px;
  }

  .timeline-step {
    grid-template-columns: 45px 24px minmax(0, 1fr);
    gap: 8px;
    padding-bottom: 25px;
  }

  .timeline-step::before {
    top: 24px;
    left: 56px;
  }

  .timeline-time {
    font-size: 11px;
  }

  .timeline-dot {
    width: 24px;
    height: 24px;
  }

  .timeline-step-title h3 {
    font-size: 14px;
  }

  .timeline-actions {
    grid-column: 3;
    margin-top: 8px;
  }

  .timeline-actions button,
  .timeline-actions a {
    width: 36px;
    height: 36px;
  }

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

  .companion-section {
    padding: 23px 18px;
    border-right: 0;
  }

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

  .fixed-costs,
  .source-list {
    grid-template-columns: 1fr;
  }

  .fixed-costs > div,
  .fixed-costs > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fixed-costs > div:last-child {
    border-bottom: 0;
  }

  .source-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body {
    padding-bottom: 86px;
  }

  .journey-cards {
    grid-template-columns: 1fr;
  }

  .journey-card summary {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 9px;
    min-height: 78px;
    padding: 12px;
  }

  .journey-mark {
    width: 34px;
    height: 34px;
  }

  .journey-body {
    padding: 12px;
  }

  .journey-meta {
    grid-template-columns: 1fr;
  }

  .checkin-toast {
    right: 12px;
    bottom: 86px;
    left: 12px;
    min-width: 0;
    max-width: none;
  }

  .mobile-live-dock {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
    align-items: center;
    min-height: 66px;
    padding: 9px 10px 9px 13px;
    border: 1px solid rgba(201, 194, 182, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.9);
    box-shadow: 0 14px 34px rgba(53, 48, 42, 0.2);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  .mobile-live-copy {
    display: grid;
    min-width: 0;
  }

  .mobile-live-copy span {
    color: var(--coral-deep);
    font-size: 9px;
    font-weight: 850;
  }

  .mobile-live-copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-live-dock > a,
  .mobile-live-dock > button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    background: var(--paper-warm);
    color: var(--teal-deep);
    box-shadow: 3px 3px 8px rgba(73, 64, 54, 0.1), -2px -2px 6px rgba(255, 255, 255, 0.82);
  }

  .mobile-live-dock > button {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
  }

  .mobile-live-dock > a[aria-disabled="true"],
  .mobile-live-dock > button:disabled {
    opacity: 0.5;
    pointer-events: none;
  }

  .mobile-live-dock svg {
    width: 18px;
    height: 18px;
  }

  .trip-footer {
    align-items: flex-start;
    margin-bottom: 0;
    padding: 16px;
    flex-direction: column;
  }
}

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