/* Travel index */
.travel-page { overflow: hidden; background: #091421; }
.travel-intro { display: grid; grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr); border: 1px solid var(--line); background: #0d1927; }
.travel-intro-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(2.5rem, 6vw, 5.5rem); }
.travel-kicker { margin: 0 0 1.1rem; color: var(--gold); font-size: .78rem; font-weight: 750; letter-spacing: .16em; }
.travel-kicker::before { content: ""; display: inline-block; width: 38px; height: 2px; margin: 0 12px 3px 0; background: var(--coral); }
.travel-intro h1 { margin: 0; font: 500 clamp(3rem, 6vw, 4.8rem)/1 Georgia, "Noto Serif SC", "Songti SC", serif; letter-spacing: -.04em; }
.travel-lead { max-width: 31rem; margin: 1.5rem 0 0; color: #cbd2d5; font-size: 1.05rem; }
.travel-jump { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.2rem; }
.travel-jump a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: .65rem .85rem; border: 1px solid var(--line); text-decoration: none; }
.travel-jump a:hover { border-color: var(--gold); color: var(--gold); }
.travel-jump span { color: var(--coral); font-size: .78rem; font-weight: 750; }
.travel-cover { position: relative; min-height: 480px; margin: 0; overflow: hidden; background: #050b13; }
.travel-cover img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.travel-cover figcaption { position: absolute; right: 0; bottom: 0; max-width: 24rem; padding: 1rem 1.25rem; background: rgba(8, 17, 31, .9); color: #e3e6e4; font-size: .9rem; }
.travel-collections { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.travel-collection { position: relative; min-width: 0; padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--line); background: #0d1927; }
.travel-collection::before { content: ""; position: absolute; top: -1px; left: -1px; width: 36%; height: 2px; background: var(--gold); }
.travel-journals::before { background: var(--coral); }
.travel-collection h2 { margin: .5rem 0 .75rem; font: 500 clamp(2rem, 4vw, 3rem)/1.1 Georgia, "Noto Serif SC", "Songti SC", serif; }
.travel-collection header > p:last-child { max-width: 30rem; margin: 0; color: var(--muted); }
.travel-empty { margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.travel-empty span { color: var(--gold); font-size: .75rem; font-weight: 750; letter-spacing: .14em; }
.travel-journals .travel-empty span { color: #e37b76; }
.travel-empty strong { display: block; margin-top: .6rem; font-size: 1.1rem; }
.travel-empty p { margin: .35rem 0 0; color: var(--muted); font-size: .94rem; }
.travel-plan-list { display: grid; gap: .8rem; margin-top: 2rem; }
.travel-plan-card { display: block; padding: 1.2rem; border: 1px solid var(--line); background: #091421; text-decoration: none; }
.travel-plan-card:hover { border-color: var(--gold); }
.travel-plan-card__meta, .travel-plan-card__route { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .85rem; }
.travel-plan-card > strong { display: block; margin-top: 1rem; font: 500 1.45rem/1.2 Georgia, "Noto Serif SC", serif; }
.travel-plan-card p { margin: .35rem 0 1.4rem; color: var(--muted); }
.travel-plan-card__route b { color: var(--gold); }

/* Individual plan */
.travel-plan-page { padding: clamp(2rem, 4vw, 4rem) 0 clamp(5rem, 9vw, 8rem); background: #091421; }
.trip-back { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 1rem; color: var(--muted); text-decoration: none; }
.trip-back:hover { color: var(--gold); }
.trip-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); min-height: 440px; border: 1px solid var(--line); background: #0d1927; }
.trip-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); }
.trip-hero--text .trip-hero__copy { grid-column: 1 / -1; max-width: 840px; }
.trip-hero__status { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; }
.trip-hero h1 { max-width: 11ch; margin: 1.1rem 0 0; font: 500 clamp(2.8rem, 6vw, 5rem)/.98 Georgia, "Noto Serif SC", "Songti SC", serif; letter-spacing: -.045em; }
.trip-hero__copy > p { max-width: 34rem; margin: 1.25rem 0 0; color: #cbd2d5; font-size: 1.05rem; }
.trip-dates { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.trip-dates > strong { display: block; color: var(--gold); font-weight: 650; }
.trip-dates > div { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.trip-dates > div span { padding: .25rem .55rem; border: 1px solid var(--line); color: #d3d8da; font-size: .82rem; }
.trip-cover { min-height: 440px; margin: 0; background: #050b13; overflow: hidden; }
.trip-cover img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.trip-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1rem; border: 1px solid var(--line); background: #0d1927; }
.trip-facts > span { padding: 1.1rem 1.25rem; border-right: 1px solid var(--line); }
.trip-facts > span:last-child { border-right: 0; }
.trip-facts small { display: block; color: var(--muted); font-size: .78rem; }
.trip-facts strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.trip-notice { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; margin-top: 1rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--gold); background: #111e2b; }
.trip-notice strong { color: var(--gold); }
.trip-notice ul { margin: 0; padding-left: 1.2rem; color: #cbd2d5; }
.trip-stays { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; margin-top: 1rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); background: #0d1927; }
.trip-stays > header p { margin: 0; color: var(--coral); font-size: .75rem; font-weight: 750; letter-spacing: .14em; }
.trip-stays h2 { margin: .3rem 0 0; font: 500 1.8rem/1.2 Georgia, "Noto Serif SC", serif; }
.trip-stays > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.trip-stay { padding: 1rem; border: 1px solid var(--line); background: #091421; }
.trip-stay header { display: flex; justify-content: space-between; gap: .8rem; color: var(--muted); font-size: .78rem; }
.trip-stay > strong { display: block; margin-top: .8rem; font-size: 1.05rem; }
.trip-stay p { margin: .3rem 0; color: var(--muted); font-size: .9rem; }
.trip-stay > a { display: inline-block; margin-top: .6rem; color: var(--gold); font-size: .86rem; }
.trip-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(3rem, 7vw, 5.5rem); }
.trip-sidebar { position: sticky; top: 110px; }
.trip-sidebar nav > h2, .trip-tasks h2 { margin: 0 0 .8rem; color: var(--muted); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.trip-sidebar nav > a { display: grid; grid-template-columns: 2rem 1fr; padding: .8rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.trip-sidebar nav > a:hover b { color: var(--gold); }
.trip-sidebar nav > a > span { grid-row: 1 / 3; color: var(--coral); font-size: .75rem; font-weight: 750; }
.trip-sidebar nav b { font-size: .9rem; }
.trip-sidebar nav small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-tasks { margin-top: 2rem; }
.trip-tasks ul { margin: 0; padding: 0; list-style: none; }
.trip-tasks li { display: flex; gap: .65rem; align-items: start; padding: .8rem 0; border-top: 1px solid var(--line); }
.trip-tasks li > span:last-child { display: grid; }
.trip-tasks strong { font-size: .9rem; }
.trip-tasks small { color: var(--muted); }
.trip-days { display: grid; gap: 1rem; min-width: 0; }
.trip-day { scroll-margin-top: 110px; border: 1px solid var(--line); background: #0d1927; }
.trip-day summary { display: grid; grid-template-columns: 76px 1fr 24px; align-items: center; min-height: 92px; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.trip-day summary::-webkit-details-marker { display: none; }
.trip-day__number { color: var(--coral); font-size: .75rem; font-weight: 750; letter-spacing: .1em; }
.trip-day__heading { display: grid; }
.trip-day__heading strong { font: 500 1.45rem/1.2 Georgia, "Noto Serif SC", serif; }
.trip-day__heading small { margin-top: .25rem; color: var(--muted); }
.trip-day__heading small span::before { content: " · "; }
.trip-day__toggle { position: relative; width: 20px; height: 20px; }
.trip-day__toggle::before, .trip-day__toggle::after { content: ""; position: absolute; top: 9px; left: 3px; width: 14px; height: 2px; background: var(--gold); }
.trip-day__toggle::after { transform: rotate(90deg); transition: transform .2s ease; }
.trip-day[open] .trip-day__toggle::after { transform: rotate(0); }
.trip-day__content { padding: 0 1.25rem 1.4rem 6rem; border-top: 1px solid var(--line); }
.trip-day__note { margin: 1.2rem 0; padding: .7rem .9rem; border-left: 2px solid var(--gold); background: #111e2b; color: #cbd2d5; }
.trip-event { display: grid; grid-template-columns: 76px 16px minmax(0, 1fr); gap: .8rem; padding-top: 1.4rem; }
.trip-event > time { color: #dce0df; font-size: .88rem; font-variant-numeric: tabular-nums; }
.trip-event > time span { display: block; color: var(--muted); }
.trip-event__marker { position: relative; width: 10px; height: 10px; margin-top: .38rem; border: 2px solid var(--gold); border-radius: 50%; }
.trip-event__marker::after { content: ""; position: absolute; top: 10px; left: 2px; width: 2px; height: calc(100% + 7.5rem); background: var(--line); }
.trip-event:last-child .trip-event__marker::after { display: none; }
.trip-event__body { min-width: 0; padding: 0 0 1.1rem; }
.trip-event__body > header { display: flex; align-items: center; gap: .55rem; }
.trip-kind { color: var(--gold); font-size: .75rem; font-weight: 750; letter-spacing: .08em; }
.trip-event__body h3 { margin: .35rem 0 0; font-size: 1.08rem; line-height: 1.35; }
.trip-event__body > p { margin: .45rem 0 0; color: var(--muted); }
.trip-route { display: flex; align-items: center; gap: .7rem; margin-top: .65rem; padding: .65rem .8rem; border: 1px solid var(--line); color: #dce0df; }
.trip-route b { color: var(--coral); }
.trip-ticket { margin-top: .8rem; padding: .85rem; border: 1px solid rgba(242, 200, 107, .32); background: #091421; }
.trip-ticket__head { display: flex; justify-content: space-between; align-items: center; }
.trip-ticket__head > strong { color: var(--gold); font-size: .85rem; }
.trip-ticket__details { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.5rem; margin-top: .7rem; }
.trip-ticket__details > span { display: grid; }
.trip-ticket__details small { color: var(--muted); }
.trip-ticket__details a, .trip-event__links a { color: var(--gold); }
.trip-event__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .7rem; font-size: .86rem; }
.trip-status { display: inline-flex; align-items: center; min-height: 24px; padding: .1rem .45rem; border: 1px solid currentColor; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.trip-status--confirmed { color: var(--mint); }
.trip-status--pending { color: var(--gold); }
.trip-status--optional { color: #aeb8d7; }
.trip-status--cancelled { color: #e37b76; text-decoration: line-through; }

@media (max-width: 900px) {
  .travel-intro, .travel-collections, .trip-hero { grid-template-columns: 1fr; }
  .travel-cover, .travel-cover img { min-height: 380px; }
  .trip-cover, .trip-cover img { min-height: 340px; max-height: 480px; }
  .trip-workspace { grid-template-columns: 1fr; }
  .trip-sidebar { position: static; }
  .trip-sidebar nav { display: flex; gap: .5rem; padding-bottom: .5rem; overflow-x: auto; scroll-snap-type: x proximity; }
  .trip-sidebar nav > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .trip-sidebar nav > a { flex: 0 0 118px; display: grid; grid-template-columns: 1fr; padding: .7rem; border: 1px solid var(--line); scroll-snap-align: start; }
  .trip-sidebar nav > a > span { grid-row: auto; }
  .trip-sidebar nav small { display: none; }
  .trip-tasks { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .travel-intro-copy { padding: 2rem 1.4rem; }
  .travel-cover, .travel-cover img { min-height: 300px; }
  .travel-cover figcaption { left: 0; max-width: none; }
  .travel-collection { padding: 1.5rem 1.4rem; }
  .trip-hero { min-height: 0; }
  .trip-hero__copy { padding: 1.6rem 1.25rem 2rem; }
  .trip-hero h1 { font-size: clamp(2.5rem, 14vw, 3.7rem); }
  .trip-cover, .trip-cover img { min-height: 260px; }
  .trip-facts { grid-template-columns: 1fr 1fr; }
  .trip-facts > span:nth-child(2) { border-right: 0; }
  .trip-facts > span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .trip-notice, .trip-stays { grid-template-columns: 1fr; }
  .trip-stays > div { grid-template-columns: 1fr; }
  .trip-day summary { grid-template-columns: 62px 1fr 20px; padding-inline: .85rem; }
  .trip-day__heading strong { font-size: 1.2rem; }
  .trip-day__content { padding: 0 .85rem 1rem; }
  .trip-event { grid-template-columns: 56px 12px minmax(0, 1fr); gap: .55rem; }
  .trip-route { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .trip-route b { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .trip-day__toggle::after { transition: none; }
}
