/* 行前旅程 — Journey Before Arrival
   Customer overhaul design reference only. Not application runtime CSS.
   Palette: sky mist, active green, sunrise, coral, white, dark ink. No beige canvas. */

:root {
  --sky-mist: #e8f4fc;
  --sky-soft: #d4ebf8;
  --white: #ffffff;
  --ink: #15202b;
  --ink-soft: #3d4f5f;
  --ink-faint: #6b7f90;
  --line: #c5d6e4;
  --line-strong: #8eadc4;
  --trail: #0d9f4f;
  --trail-deep: #087a3b;
  --trail-soft: #d4f3e3;
  --sky: #2b9bd6;
  --sky-deep: #1a7aaf;
  --sky-soft-fill: #dff0fa;
  --sun: #f2b91f;
  --sun-deep: #c9920a;
  --sun-soft: #fff3c9;
  --coral: #e5473a;
  --coral-deep: #c23328;
  --coral-soft: #fde4e1;
  --zone-ptc: #0d9f4f;
  --zone-tt: #2b9bd6;
  --danger: #b42318;
  --warning: #9a5b00;
  --success: #087a3b;
  --focus: #0a6b9a;
  --shadow: 0 4px 24px rgba(21, 32, 43, 0.08);
  --shadow-soft: 0 2px 10px rgba(21, 32, 43, 0.06);
  --radius: 4px;
  --radius-lg: 8px;
  --rail-w: 200px;
  --chip-h: 60px;
  --dock-h: 64px;
  --action-h: 72px;
  --font: "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", sans-serif;
  --display: "Songti TC", "Noto Serif TC", "PMingLiU", "PingFang HK", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
  --dur-long: 480ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-stagger > *,
  .photo-hero__media,
  .success-burst {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sky-mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sky-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--trail-deep);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: 12px 16px;
  border: 2px solid var(--trail);
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* —— Icons —— */
.icon {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* —— Brand chip shell (not service-track brand bar) —— */
.brand-chip {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: var(--chip-h);
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand-chip__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-chip__mark img {
  width: auto;
  height: 40px;
  flex-shrink: 0;
}

.brand-chip__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.brand-chip__text strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-chip__text span {
  font-size: 13px;
  color: var(--ink-soft);
}

.brand-chip__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand-chip__nav a,
.brand-chip__nav button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 12px;
  min-height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.brand-chip__nav a:hover,
.brand-chip__nav button:hover {
  color: var(--ink);
  background: var(--sky-soft-fill);
}

.brand-chip__nav a[aria-current="page"] {
  color: var(--trail-deep);
  background: var(--trail-soft);
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* —— App layout: rail + stage —— */
.app-shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: calc(100vh - var(--chip-h));
}

.journey-rail {
  position: sticky;
  top: var(--chip-h);
  align-self: start;
  height: calc(100vh - var(--chip-h));
  padding: 24px 16px 32px;
  background: linear-gradient(180deg, #0f2a3d 0%, #15384f 55%, #0f3d2a 100%);
  color: #e8f4fc;
  overflow-y: auto;
}

.journey-rail h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 244, 252, 0.65);
}

.journey-rail__title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.journey-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.journey-rail ol::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(232, 244, 252, 0.2);
}

.journey-rail li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 0 0 22px;
  font-size: 14px;
  color: rgba(232, 244, 252, 0.55);
}

.journey-rail li:last-child {
  padding-bottom: 0;
}

.journey-rail .rail-dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a3d54;
  border: 2px solid rgba(232, 244, 252, 0.25);
  font-size: 12px;
  font-weight: 700;
  color: rgba(232, 244, 252, 0.7);
}

.journey-rail li.is-complete .rail-dot {
  background: var(--trail);
  border-color: var(--trail);
  color: #fff;
}

.journey-rail li.is-current .rail-dot {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(242, 185, 31, 0.35);
}

.journey-rail li.is-na .rail-dot {
  background: transparent;
  border-style: dashed;
  color: rgba(232, 244, 252, 0.4);
}

.journey-rail li.is-current {
  color: #fff;
  font-weight: 700;
}

.journey-rail li.is-complete {
  color: rgba(232, 244, 252, 0.85);
}

.journey-rail li.is-na {
  color: rgba(232, 244, 252, 0.4);
  text-decoration: line-through;
}

.journey-rail__hint {
  margin: 24px 0 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--sun);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(232, 244, 252, 0.85);
}

.journey-rail__hint strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sun);
  font-size: 14px;
}

/* —— Route ribbon (mobile / contextual) —— */
.route-ribbon {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--sun);
}

.route-ribbon strong {
  font-size: 14px;
  white-space: nowrap;
}

.route-ribbon span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Main stage —— */
.stage {
  min-width: 0;
  padding-bottom: 48px;
}

.stage.has-mobile-action {
  padding-bottom: calc(var(--action-h) + var(--dock-h) + 24px);
}

/* —— Photo hero (structural photography) —— */
.photo-hero {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--sky-soft);
}

.photo-hero--tall {
  min-height: 360px;
}

.photo-hero--compact {
  min-height: 180px;
}

.photo-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: photoEnter var(--dur-long) var(--ease) both;
}

@keyframes photoEnter {
  from {
    opacity: 0;
    transform: scale(1.04) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.photo-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(21, 32, 43, 0.55) 0%,
    rgba(21, 32, 43, 0.2) 45%,
    rgba(21, 32, 43, 0.05) 100%
  );
  pointer-events: none;
}

/* Light scrim only on left text band — subjects remain bright */
.photo-hero__scrim--soft {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.78) 32%,
    rgba(255, 255, 255, 0.15) 58%,
    transparent 78%
  );
}

.photo-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: inherit;
  padding: 28px 32px 32px;
  max-width: 720px;
}

.photo-hero--ink .photo-hero__body {
  color: #fff;
}

.photo-hero--ink .photo-hero__body p {
  color: rgba(255, 255, 255, 0.9);
}

.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--trail);
  color: #fff;
}

.zone-tag--tt {
  background: var(--sky);
}

.zone-tag--pay {
  background: var(--coral);
}

.zone-tag--ready {
  background: var(--sun);
  color: var(--ink);
}

.photo-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.photo-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.photo-hero__meta b {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  color: var(--trail-deep);
}

.photo-hero--ink .photo-hero__meta b {
  color: var(--sun);
}

.photo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* —— Content frames —— */
.content {
  padding: 28px 32px 0;
  max-width: 1100px;
}

.content--narrow {
  max-width: 720px;
}

.content--split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
}

.section {
  margin-bottom: 32px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--display);
}

.section-head p,
.section-head span {
  margin: 0;
  font-size: 14px;
  color: var(--ink-faint);
  font-weight: 600;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 700;
}

/* —— Itinerary stack (not card grid) —— */
.itinerary {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid var(--line-strong);
  margin: 0;
  padding: 0;
  list-style: none;
}

.itinerary > li {
  position: relative;
  padding: 0 0 0 20px;
  margin: 0 0 16px;
}

.itinerary > li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--sky);
}

.itinerary > li.is-urgent::before {
  border-color: var(--coral);
  background: var(--coral);
}

.itinerary > li.is-ready::before {
  border-color: var(--trail);
  background: var(--trail);
}

.itinerary > li.is-done::before {
  border-color: var(--ink-faint);
  background: var(--ink-faint);
}

.itinerary > li.is-cancel::before {
  border-color: var(--danger);
  background: var(--white);
}

.trip-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.trip-panel__media {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 110px;
}

.trip-panel__media img {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.trip-panel__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.trip-panel__code {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.trip-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.trip-panel__facts {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.trip-panel__facts b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.trip-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* —— Destination scenes (availability) —— */
.filter-tray {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  box-shadow: var(--shadow-soft);
}

.filter-tray__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.filter-tray__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.destination-scene {
  position: relative;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: sceneIn 320ms var(--ease) both;
}

.reveal-stagger > .destination-scene:nth-child(1) {
  animation-delay: 0ms;
}
.reveal-stagger > .destination-scene:nth-child(2) {
  animation-delay: 70ms;
}
.reveal-stagger > .destination-scene:nth-child(3) {
  animation-delay: 140ms;
}
.reveal-stagger > .destination-scene:nth-child(4) {
  animation-delay: 210ms;
}

@keyframes sceneIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.destination-scene__photo {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--sky-soft);
}

.destination-scene__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-scene__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-left: 4px solid var(--trail);
  box-shadow: var(--shadow-soft);
}

.destination-scene__badge.is-limited {
  border-left-color: var(--sun);
}

.destination-scene__badge.is-full {
  border-left-color: var(--ink-faint);
  color: var(--ink-soft);
}

.destination-scene__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 20px;
  align-items: start;
}

.destination-scene h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.destination-scene .camp-code {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
}

.equipment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.equipment-tags li {
  font-size: 14px;
  padding: 4px 8px;
  background: var(--sky-mist);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
}

.capacity-meter {
  margin: 10px 0 0;
}

.capacity-meter__label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.capacity-meter__bar {
  height: 10px;
  background: var(--sky-soft);
  border-radius: 999px;
  overflow: hidden;
}

.capacity-meter__fill {
  height: 100%;
  background: var(--trail);
  border-radius: 999px;
}

.capacity-meter__fill.is-limited {
  background: var(--sun);
}

.capacity-meter__fill.is-full {
  background: var(--ink-faint);
  width: 100% !important;
}

.destination-scene__side {
  text-align: right;
  min-width: 160px;
}

.price-block {
  margin: 0 0 12px;
}

.price-block .label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.price-block .amount {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
}

.price-block .unit {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* —— Forms & chapters —— */
.form-chapter {
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.form-chapter__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--sky-mist);
  border-bottom: 1px solid var(--line);
}

.form-chapter__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.form-chapter__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.form-chapter__head p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.form-chapter__body {
  padding: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.field-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field .hint {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sky);
  outline: 3px solid rgba(43, 155, 214, 0.25);
  outline-offset: 0;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field .error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.choice:has(input:checked) {
  border-color: var(--trail);
  background: var(--trail-soft);
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--trail);
}

/* —— Quote spine (not floating sticky card) —— */
.quote-spine {
  position: sticky;
  top: calc(var(--chip-h) + 12px);
  background: var(--ink);
  color: #fff;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quote-spine__photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.quote-spine__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-spine__body {
  padding: 16px;
}

.quote-spine h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 18px;
}

.quote-spine .sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.charge-ledger {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.charge-ledger li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.charge-ledger .total {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--sun);
  border-bottom: 0;
  padding-top: 12px;
}

/* —— Branch banner (group date rule) —— */
.branch-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: var(--sun-soft);
  border: 1px solid var(--sun);
  border-left: 6px solid var(--sun-deep);
}

.branch-banner--follow {
  background: var(--sky-soft-fill);
  border-color: var(--sky);
  border-left-color: var(--sky-deep);
}

.branch-banner--pay {
  background: var(--coral-soft);
  border-color: var(--coral);
  border-left-color: var(--coral-deep);
}

.branch-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  font-weight: 800;
  flex-shrink: 0;
}

.branch-banner h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.branch-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* —— Payment desk —— */
.payment-desk {
  max-width: 640px;
  margin: 0 auto;
}

.payment-desk__context {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  overflow: hidden;
}

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

.payment-desk__context div {
  padding: 14px 16px;
}

.payment-desk__context h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-family: var(--display);
}

.disclosure {
  padding: 12px 14px;
  margin-bottom: 16px;
  background: var(--sky-soft-fill);
  border: 1px solid var(--sky);
  font-size: 14px;
}

.disclosure strong {
  color: var(--sky-deep);
}

.amount-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.amount-card {
  padding: 16px;
  border: 2px solid var(--line);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font: inherit;
  min-height: 88px;
}

.amount-card:has(input:checked),
.amount-card.is-selected {
  border-color: var(--trail);
  background: var(--trail-soft);
}

.amount-card .label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.amount-card .value {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.method-ledger {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  min-height: 52px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}

.method-row:has(input:checked) {
  border-color: var(--sky);
  background: var(--sky-soft-fill);
}

.alert {
  padding: 12px 14px;
  margin-bottom: 14px;
  border-left: 4px solid var(--danger);
  background: var(--coral-soft);
  font-size: 14px;
}

.alert--ok {
  border-left-color: var(--trail);
  background: var(--trail-soft);
}

.success-panel {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.success-panel .seal {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--trail);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  animation: successPop 450ms var(--ease) both;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-panel h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 26px;
}

/* —— Day panels (detail) —— */
.day-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.day-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sky);
  padding: 14px;
}

.day-panel--arrival {
  border-top-color: var(--trail);
}

.day-panel--depart {
  border-top-color: var(--coral);
}

.day-panel .day-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.day-panel h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: var(--display);
}

.day-panel p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.fact-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fact-block {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.fact-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--sky-deep);
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.fact-block dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.fact-block dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
  margin: 0;
}

.fact-block dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
}

/* —— Document folders —— */
.doc-folders {
  display: grid;
  gap: 16px;
}

.doc-folder {
  background: var(--white);
  border: 1px solid var(--line);
}

.doc-folder__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--sky-mist);
  border-bottom: 1px solid var(--line);
  border-left: 5px solid var(--sky);
}

.doc-folder__tab h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.doc-folder__tab.is-required {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.doc-folder__tab.is-pending {
  border-left-color: var(--sun);
  background: var(--sun-soft);
}

.doc-folder__tab.is-accepted {
  border-left-color: var(--trail);
  background: var(--trail-soft);
}

.doc-folder__tab.is-historical {
  border-left-color: var(--ink-faint);
}

.doc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}

.doc-row:last-child {
  border-bottom: 0;
}

.doc-row h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.doc-row p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* —— Profile composition —— */
.profile-wall {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.identity-card {
  background: var(--ink);
  color: #fff;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
}

.identity-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sky);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}

.identity-card h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 24px;
}

.identity-card p {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.identity-card .seal-line {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

/* —— Status seals —— */
.seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 2px;
  background: var(--sky-soft-fill);
  color: var(--sky-deep);
  border: 1px solid var(--sky);
}

.seal--ok {
  background: var(--trail-soft);
  color: var(--trail-deep);
  border-color: var(--trail);
}

.seal--warn {
  background: var(--sun-soft);
  color: var(--warning);
  border-color: var(--sun);
}

.seal--danger {
  background: var(--coral-soft);
  color: var(--danger);
  border-color: var(--coral);
}

.seal--muted {
  background: #eef1f4;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--trail);
  color: #fff;
  border-color: var(--trail);
}

.btn-primary:hover {
  background: var(--trail-deep);
  border-color: var(--trail-deep);
  color: #fff;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-sky {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}

.btn-sky:hover {
  background: var(--sky-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-text {
  background: none;
  border: 0;
  color: var(--sky-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 4px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Mobile action + dock —— */
.mobile-action {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--dock-h);
  z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(21, 32, 43, 0.06);
  gap: 10px;
}

.mobile-action .btn {
  flex: 1;
}

.mobile-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ink);
  color: #fff;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.mobile-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 700;
  min-height: 48px;
  padding: 6px 4px;
}

.mobile-dock a[aria-current="page"] {
  color: var(--sun);
}

.mobile-dock .dock-icon {
  font-size: 18px;
  line-height: 1;
}

/* —— Page intro (non-hero pages) —— */
.page-intro {
  padding: 24px 32px 8px;
  max-width: 1100px;
}

.page-intro .eyebrow {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--sky-deep);
}

.page-intro h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.page-intro p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* —— Compare table (facts only) —— */
.fact-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  margin-bottom: 20px;
}

.fact-compare th,
.fact-compare td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.fact-compare th {
  background: var(--sky-mist);
  font-weight: 800;
}

/* —— Utility —— */
.desktop-only {
  display: initial;
}

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

.muted {
  color: var(--ink-soft);
}

.reveal {
  animation: fadeUp 360ms var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stack-gap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* —— Catalogue index —— */
.catalogue {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.catalogue h1 {
  font-family: var(--display);
  font-size: 32px;
  margin: 0 0 8px;
}

.catalogue-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.catalogue-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  min-height: 56px;
  align-items: center;
}

.catalogue-list a:hover {
  border-color: var(--sky);
  background: var(--sky-soft-fill);
}

.catalogue-list span {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-faint);
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .content--split {
    grid-template-columns: 1fr;
  }

  .quote-spine {
    position: static;
  }

  .filter-tray__row {
    grid-template-columns: 1fr 1fr;
  }

  .profile-wall {
    grid-template-columns: 1fr;
  }

  .destination-scene__body {
    grid-template-columns: 1fr;
  }

  .destination-scene__side {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .journey-rail {
    display: none;
  }

  .route-ribbon {
    display: flex;
  }

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

  .fact-wall {
    grid-template-columns: 1fr;
  }

  .amount-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand-chip {
    padding: 8px 12px;
  }

  .brand-chip__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .brand-chip__nav.is-open {
    display: flex;
  }

  .brand-chip__nav a,
  .brand-chip__nav button {
    width: 100%;
    text-align: left;
  }

  .content,
  .page-intro {
    padding-left: 16px;
    padding-right: 16px;
  }

  .photo-hero__body {
    padding: 20px 16px 24px;
  }

  .photo-hero h1 {
    font-size: 26px;
  }

  .photo-hero--tall {
    min-height: 300px;
  }

  .photo-hero--compact {
    min-height: 160px;
  }

  .trip-panel__media {
    grid-template-columns: 96px 1fr;
  }

  .field-grid,
  .field-grid--3 {
    grid-template-columns: 1fr;
  }

  .filter-tray__row {
    grid-template-columns: 1fr;
  }

  .destination-scene__photo {
    aspect-ratio: 16 / 10;
  }

  .payment-desk__context {
    grid-template-columns: 88px 1fr;
  }

  .mobile-dock {
    display: grid;
  }

  .stage.has-mobile-action .mobile-action {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .brand-chip__text strong {
    font-size: 14px;
  }

  .photo-hero h1,
  .page-intro h1 {
    font-size: 24px;
  }

  .price-block .amount {
    font-size: 24px;
  }
}
