/* Map-first itinerary. The existing Tavimee palette and Japanese typography remain the foundation. */
.has-journey .panel { background: #f7faf9; }
.journey-page { padding: 0 max(24px, calc((100% - 1180px) / 2)) 32px; }
.journey-page .page-bar { gap: 16px; padding: 14px 0 10px; }
.journey-page-actions { display: flex; gap: 8px; }
.journey-page .steps { gap: 8px; margin: 0 0 12px; }
.journey-page .step { padding: 7px 14px; border-radius: 12px; gap: 9px; box-shadow: none; }
.journey-page .step-icon { width: 26px; height: 26px; }
.journey-page .step-icon .ico { width: 15px; height: 15px; }
.journey-page .step > span:last-child { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.journey-page .step strong { font-size: 13px; }
.journey-page .step small { font-size: 11px; }
.journey-page .steps > i { display: none; }
.journey-overview { background: none; padding: 2px 0 16px; border-radius: 0; }
.journey-overview h2 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 6px; text-wrap: balance; }
.journey-overview .stats { color: var(--sub); font-size: 12px; }
.journey-map { background: var(--card); border: 1px solid #dce6e3; border-radius: 20px; overflow: hidden; }
.map-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 16px; }
.map-topline > span { display: flex; flex: 1 1 60px; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.map-topline > span > .ico { color: var(--accent); }
.map-topline [data-map-status] { color: var(--sub); font-size: 12px; }
.map-topline .ghost { flex: none; background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.map-topline .ghost .ico { width: 13px; height: 13px; }
.geo-viewport { position: relative; height: clamp(240px, 34vh, 400px); background: #e9efeb; isolation: isolate; }
.geo-scene { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.geo-scene:active { cursor: grabbing; }
.geo-scene:focus-visible { outline-offset: -4px; }
.geo-tiles, .geo-markers, .geo-routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.geo-tiles img[data-ready="error"] { visibility: hidden; }
.geo-routes { pointer-events: none; overflow: visible; }
.geo-route { fill: none; stroke-width: 3; stroke-dasharray: .008 .008; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px #fff); transition: opacity 200ms; }
.geo-markers { pointer-events: none; }
.map-pin { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); padding: 0; border: 0; background: transparent; pointer-events: auto; min-width: 44px; min-height: 48px; transition: opacity 180ms; }
.pin-face { position: relative; display: grid; place-items: center; width: 52px; height: 56px; border: 3px solid #fff; border-radius: 13px; background: var(--pin-color); box-shadow: 0 3px 12px #263d3d38; }
.pin-face::after { content: ''; position: absolute; left: calc(50% - 5px); bottom: -7px; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); z-index: -1; }
.pin-face img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border-radius: 9px; object-fit: cover; }
.pin-face b { position: absolute; top: -9px; right: -9px; display: grid; place-items: center; background: var(--pin-color); color: #fff; border: 2px solid #fff; border-radius: 50%; width: 23px; height: 23px; font-size: 11px; }
.pin-face.no-photo { width: 36px; height: 36px; border-radius: 50%; }
.pin-face.no-photo b { position: static; background: transparent; border: 0; font-size: 14px; }
.pin-face.no-photo::after { bottom: -5px; }
.pin-name { background: #fff; color: var(--ink); border-radius: 6px; padding: 2px 7px; margin-top: 9px; max-width: min(150px, var(--label-width, 150px)); font-size: 11px; line-height: 1.45; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 5px #253c3c20; }
.map-pin.is-selected { z-index: 5; }
.map-pin.is-selected .pin-face { outline: 3px solid var(--pin-color); outline-offset: 2px; }
.map-pin.is-selected .pin-name { background: var(--pin-color); color: #fff; max-width: min(220px, var(--label-width, 220px)); }
.map-pin.is-muted, .geo-route.is-muted { display: none; }
.pin-leader { stroke-width: 1.5; }
.pin-anchor { stroke: #fff; stroke-width: 2; }
.pin-leader.is-muted, .pin-anchor.is-muted { display: none; }
.map-stay { position: absolute; transform: translate(-50%, -50%); padding: 3px 8px; background: #243c3e; color: #fff; font-size: 10px; border: 2px solid white; border-radius: 7px; white-space: nowrap; }
.map-tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 5px; }
.map-tools button { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: 1px solid #dce3df; border-radius: 9px; box-shadow: 0 2px 5px #233b3b14; font-size: 21px; line-height: 1; }
.map-tools button:hover { background: var(--accent-soft); }
.map-attribution { position: absolute; right: 0; bottom: 0; padding: 2px 6px; background: #fff; color: #394447; font-size: 10px; z-index: 6; }
.map-attribution a { color: #13696b; }
.geo-feedback { position: absolute; bottom: 28px; left: 12px; right: 68px; width: fit-content; }
.geo-message { margin: 0; padding: 6px 10px; border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; box-shadow: var(--shadow); }
.geo-feedback button { margin-top: 6px; background: #fff; min-height: 44px; }
.map-skip { position: absolute; top: 12px; left: 12px; z-index: 6; }
.map-disclosure { font-size: 11px; color: var(--sub); padding: 8px 14px; margin: 0; }
.map-replaying .pin-name { opacity: 0; }
.journey-board { position: relative; margin: 0 0 20px; padding: 18px 0 0; }
.journey-board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.journey-board-head h3 { font-size: 17px; margin: 0; }
.journey-board-head > span { font-size: 12px; color: var(--sub); }
.journey-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 9px; scrollbar-width: thin; }
.journey-days button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.journey-days button small { font-size: 11px; font-weight: 400; }
.journey-days button i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.journey-days button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.journey-days button.on i { background: #fff; }
.journey-cards { display: flex; position: relative; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 3px 12px; scrollbar-width: thin; }
.journey-stop { display: flex; align-items: center; gap: 12px; flex: 0 0 245px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-align: left; scroll-snap-align: start; transition: border-color 160ms, box-shadow 160ms; }
.journey-stop:hover, .journey-stop.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.journey-photo { position: relative; width: 60px; height: 76px; flex: none; background: var(--accent-soft); border-radius: 9px; }
.journey-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.journey-photo b { position: absolute; left: -4px; top: -4px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: var(--c); color: #fff; font-size: 10px; }
.journey-no-photo { height: 100%; display: grid; place-items: center; color: var(--accent); }
.journey-no-photo .ico { width: 25px; height: 25px; }
.journey-stop-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.journey-stop-copy small { font-size: 10px; color: var(--sub); }
.journey-stop-copy strong { font-size: 14px; line-height: 1.5; text-wrap: balance; }
.journey-stop-copy > span { font-size: 11px; color: var(--sub); }
.journey-stop-copy em { font-size: 11px; color: var(--warn); font-style: normal; }
.journey-detail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 8px 0; font-size: 12px; color: var(--sub); }
.journey-detail > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.journey-detail strong { color: var(--ink); font-size: 14px; }
.journey-detail small { font-size: 11px; }
.journey-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.journey-detail-actions a { text-decoration: none; }
.journey-empty { padding: 16px 0; color: var(--sub); }
.journey-handle { display: none; }
.journey-page .book-bar { position: static; margin-top: 20px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.journey-page .tl { margin-top: 24px; }
[hidden] { display: none !important; }
@media (min-width: 900px) {
  .workspace.has-journey { grid-template-columns: 340px minmax(0, 1fr); }
  .workspace.has-journey.chat-collapsed { grid-template-columns: minmax(0, 1fr); }
  .has-journey.chat-collapsed > .chat { display: none; }
}
@media (max-width: 899px) {
  .journey-page { padding: 0 14px 28px; }
  .journey-page .page-bar { padding: 10px 0; justify-content: space-between; gap: 6px; }
  .journey-page .page-bar .ghost { display: inline-flex; padding: 6px 10px; font-size: 12px; }
  .journey-page .page-bar [data-action="generate"] { display: none; }
  .journey-page .steps { position: static; margin: 0 0 12px; padding: 0; background: none; gap: 6px; }
  .journey-page .step { padding: 7px; }
  .journey-page .step > span:last-child { flex-direction: column; align-items: flex-start; gap: 0; }
  .journey-page .step small { display: none; }
  .journey-overview { padding-bottom: 12px; }
  .journey-overview h2 { font-size: 22px; }
  .journey-overview .stats { gap: 4px 12px; }
  .journey-map { margin: 0 -14px; border-radius: 0; border-left: 0; border-right: 0; }
  .map-topline { padding: 9px 14px; }
  .map-topline [data-map-status] { display: none; }
  .geo-viewport { height: 300px; transition: height 300ms ease; }
  .sheet-open .geo-viewport { height: 180px; }
  .map-disclosure { padding-bottom: 22px; }
  .map-disclosure[data-map-coverage] { padding-bottom: 0; }
  .journey-board { margin: -12px -14px 18px; padding: 0 16px 12px; border-radius: 22px 22px 0 0; background: var(--card); box-shadow: 0 -6px 18px #204b4b0a; }
  .journey-handle { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; color: var(--sub); background: none; font-size: 11px; touch-action: none; }
  .journey-handle > span { width: 32px; height: 4px; background: #d5dfdc; border-radius: 4px; }
  .journey-board-head { margin-bottom: 8px; }
  .journey-stop { flex-basis: 232px; }
  .sheet-open .journey-cards { flex-direction: column; }
  .sheet-open .journey-stop { flex-basis: auto; width: 100%; }
  .journey-detail { padding-top: 4px; }
  .map-tools button { width: 44px; height: 44px; }
  .map-pin .pin-name { max-width: min(110px, var(--label-width, 110px)); }
  .pin-face { width: 44px; height: 49px; }
  .journey-days button, .journey-detail-actions .ghost, .journey-detail-actions .drop { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .geo-viewport, .map-pin, .geo-route, .journey-stop { transition: none; }
  .journey-page.fresh .node { animation: none; }
}

/* A short, interruptible trip film: photographs, camera flight, then the whole route. */
.journey-map { --story-ease: cubic-bezier(.22, 1, .36, 1); }
.geo-viewport { height: clamp(340px, 48vh, 560px); }
.geo-scene, .geo-tiles { z-index: 0; }
.geo-routes { z-index: 1; }
.geo-markers { z-index: 2; }
.geo-tiles img { transform-origin: 0 0; }
.map-tools, .geo-feedback { z-index: 3; }
.map-story-intro { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 28px 72px; background: radial-gradient(ellipse at 50% 85%, #d5efeaee, #f5faf6f5 75%); pointer-events: none; }
.map-story-eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.map-story-intro > strong { color: #183e3f; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.04em; text-align: center; text-wrap: balance; }
.map-story-intro > strong > span { display: inline-block; }
.map-story-cards { display: flex; justify-content: center; align-items: center; padding: 18px 0 6px; }
.map-story-photo { position: relative; width: clamp(104px, 13vw, 160px); height: clamp(140px, 17vw, 200px); border: 5px solid #fff; border-bottom-width: 30px; border-radius: 14px; background: #d8e9e2; box-shadow: 0 14px 35px #173c3b28; transform: rotate(var(--card-rotate)); }
.map-story-photo + .map-story-photo { margin-left: -20px; }
.map-story-photo:nth-child(2) { z-index: 1; }
.map-story-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px 9px 3px 3px; }
.map-story-photo > span { position: absolute; bottom: -26px; left: 2px; right: 2px; color: #183e3f; font-size: 11px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-replaying .map-story-photo { animation: story-card-arrive 900ms var(--story-ease) both; animation-delay: calc(var(--card-index) * 100ms); }
@keyframes story-card-arrive {
  0% { transform: translateY(75px) rotate(0deg) scale(.6); opacity: 0; }
  65% { opacity: 1; }
  100% { transform: translateY(0) rotate(var(--card-rotate)) scale(1); opacity: 1; }
}
.map-story { position: absolute; z-index: 5; left: 18px; bottom: 27px; display: flex; align-items: center; gap: 14px; width: min(350px, calc(100% - 36px)); min-height: 88px; padding: 12px 16px 16px 12px; border: 1px solid #fff; border-radius: 17px; background: #fffffff5; box-shadow: 0 8px 30px #1037362b; pointer-events: none; overflow: hidden; }
.map-story > img { width: 64px; height: 66px; flex: none; object-fit: cover; border-radius: 9px; }
.map-story > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.map-story-meta { font-size: 10px; font-weight: 800; color: var(--story-color, var(--accent)); letter-spacing: .06em; }
.map-story strong { color: var(--ink); font-size: 18px; line-height: 1.45; text-wrap: balance; }
.map-story small { color: var(--sub); font-size: 11px; }
.map-story-progress { position: absolute; height: 3px; bottom: 0; left: 0; right: 0; background: #deebe7; }
.map-story-progress i { display: block; height: 100%; width: 100%; background: var(--story-color, var(--accent)); transform: scaleX(0); transform-origin: left; }
.map-replaying .geo-route { stroke-width: 4; filter: drop-shadow(0 1px 3px #fff); transition: none; }
.map-replaying .map-pin { transition: opacity 240ms; }
.map-replaying .map-pin.is-tour-future { opacity: 0; pointer-events: none; }
.map-replaying .map-pin.is-tour-visited { opacity: .48; }
.map-replaying .map-pin.is-tour-visited .pin-face { transform: scale(.72); }
.map-replaying .map-pin.is-tour-active { z-index: 5; }
.map-replaying .map-pin.is-tour-active .pin-face { transform: scale(1.18); box-shadow: 0 8px 25px #163d3b45; }
.map-replaying .map-pin.is-tour-active .pin-name { opacity: 1; margin-top: 17px; font-size: 12px; background: var(--pin-color); color: #fff; }
.map-traveler { position: absolute; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1px solid #13696b40; border-radius: 50%; background: #13696b15; pointer-events: none; }
.map-traveler::before, .map-traveler::after { content: ''; position: absolute; inset: -10px; border: 2px solid #13696b55; border-radius: 50%; animation: story-destination-pulse 1250ms ease-out infinite; }
.map-traveler::after { animation-delay: 420ms; }
@keyframes story-destination-pulse { from { transform: scale(.65); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.map-story-arriving .map-pin.is-tour-visited { opacity: 1; }
.map-story-arriving .map-pin.is-tour-visited .pin-face { transform: scale(1); transition: transform 400ms var(--story-ease); }
.map-story-arriving .pin-name { opacity: 1; }
.map-skip { background: #fff; border-color: #dce6e3; box-shadow: 0 2px 8px #183e3f12; }
.map-replaying .geo-feedback { top: 66px; bottom: auto; z-index: 6; }
@media (max-width: 899px) {
  .geo-viewport { height: 380px; }
  .sheet-open .geo-viewport { height: 180px; }
  .map-story-intro { padding: 45px 16px 25px; gap: 8px; }
  .map-story-intro > strong { font-size: 22px; max-width: 290px; }
  .map-story-cards { padding-top: 17px; }
  .map-story-photo { width: 100px; height: 138px; border-width: 4px; border-bottom-width: 27px; }
  .map-story-photo + .map-story-photo { margin-left: -15px; }
  .map-story-photo > span { font-size: 10px; bottom: -24px; }
  .map-story { left: 12px; bottom: 25px; width: calc(100% - 24px); min-height: 76px; padding: 10px 12px 14px; gap: 10px; }
  .map-story > img { width: 54px; height: 54px; }
  .map-story strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-story-photo, .map-traveler::before, .map-traveler::after { animation: none !important; }
  .map-story-arriving .pin-face { transition: none; }
}

.pin-name small { display: block; color: var(--accent); font-size: 9px; font-weight: 600; line-height: 1.4; }

.map-pin.is-selected .pin-name small, .map-replaying .map-pin.is-tour-active .pin-name small { color: inherit; }

/* A quiet route overview, with the booking decisions kept beside the trip context. */
.has-journey .panel { background: #faf9f6; }
.journey-page { padding-bottom: 32px; }
.journey-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.journey-title-row .primary { flex: none; text-decoration: none; font-size: 13px; }
.journey-eyebrow, .booking-heading small { display: block; margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.journey-explore { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.4fr); gap: 18px; align-items: stretch; margin: 8px 0 28px; }
.journey-explore .journey-board { min-width: 0; margin: 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.journey-explore .journey-map { min-width: 0; border-radius: 22px; background: #fff; }
.journey-explore .journey-cards { flex-direction: column; max-height: 340px; overflow-y: auto; scroll-snap-type: y proximity; }
.journey-explore .journey-stop { flex: 0 0 auto; width: 100%; border-color: transparent; background: #f7f8f5; }
.journey-explore .journey-stop.selected { border-color: var(--accent); background: #edf5ef; }
.journey-explore .journey-photo { width: 68px; height: 76px; }
.journey-explore .geo-viewport { height: 380px; }
.journey-explore .journey-detail { border-top: 1px solid var(--line); margin-top: 8px; }
.map-style-switch { display: flex; align-items: center; gap: 4px; padding: 0 14px 12px; }
.map-style-switch button { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; background: #f4f5f1; font-size: 12px; color: var(--sub); }
.map-style-switch button[aria-pressed="true"] { color: var(--accent); background: #e6f0e9; border-color: #cbded1; font-weight: 700; }
.map-style-switch > span { margin-left: auto; font-size: 10px; color: var(--sub); }
/* Share the detailed map's geography while keeping photos and routes prominent. */
.route-map .geo-viewport { background: #edf1ed; }
.route-map .geo-tiles { filter: saturate(.35) contrast(.78) brightness(1.15); }
.route-map .geo-route { stroke-width: 2.5; stroke-dasharray: .012 .016; opacity: .75; }
.route-map .pin-face { border-radius: 18px; box-shadow: 0 5px 18px #344b3826; }
.route-map .pin-face img { border-radius: 14px; }
.route-map .pin-face.no-photo { border-radius: 50%; }
.route-map .pin-name { padding: 5px 9px; border-radius: 9px; box-shadow: 0 2px 9px #344b3810; }
.route-map .map-stay { background: #fff; color: var(--accent); border-color: #c7d9cf; border-radius: 999px; padding: 6px 10px; }
.booking-hub { margin: 24px 0 32px; padding: 26px; border: 1px solid #dbe5de; border-radius: 24px; background: #edf3ee; scroll-margin-top: 20px; }
.booking-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.booking-heading h3 { font-size: 23px; margin: 0; letter-spacing: -.03em; }
.booking-heading p { color: var(--sub); font-size: 13px; margin: 7px 0 0; }
.booking-heading .count { white-space: nowrap; font-size: 11px; }
.booking-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.booking-options .node { display: flex; gap: 12px; margin: 0; padding: 20px; border-radius: 17px; background: var(--card); border: 1px solid #e0e7df; }
.booking-options .node-icon { position: static; flex: none; background: #f2f5ed; border: 0; }
.booking-options .node-body { min-width: 0; flex: 1; }
.booking-options .card { padding: 10px 0 0; border: 0; box-shadow: none; background: none; }
.booking-options .book-links { flex-direction: column; align-items: stretch; gap: 7px; }
.booking-options .book-link { display: flex; justify-content: space-between; border: 1px solid #cfddd1; border-radius: 10px; padding: 11px 12px; background: #f5f8f2; }
.booking-options .booked-btn { margin-top: 14px; }
.booking-hub .book-check { margin: 18px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid #d5e0d7; background: none; box-shadow: none; }
.booking-hub .book-check h3 { font-size: 14px; }
.booking-disclosure { margin-bottom: 0; }
.itinerary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.itinerary-heading h3 { font-size: 18px; margin: 0; }
.itinerary-heading span { color: var(--sub); font-size: 11px; }
@media (max-width: 1100px) {
  .journey-explore { grid-template-columns: minmax(240px, .85fr) minmax(0, 1fr); }
  .map-style-switch > span { display: none; }
}
@media (max-width: 899px) {
  .journey-title-row { align-items: flex-start; padding: 6px 0; }
  .journey-title-row .primary { padding: 10px; font-size: 11px; min-height: 44px; }
  .journey-title-row .primary .ico { display: none; }
  .journey-eyebrow { font-size: 9px; }
  .journey-explore { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
  .journey-explore .journey-map { order: -1; margin: 0; border: 1px solid var(--line); border-radius: 18px; }
  .journey-explore .geo-viewport { height: 310px; }
  .sheet-open .journey-explore .geo-viewport { height: 180px; }
  .journey-explore .journey-board { padding: 0 14px 10px; border-radius: 18px; }
  .journey-explore .journey-cards { flex-direction: row; max-height: none; scroll-snap-type: x proximity; }
  .journey-explore .journey-stop { flex: 0 0 240px; }
  .sheet-open .journey-explore .journey-cards { flex-direction: column; }
  .sheet-open .journey-explore .journey-stop { flex: 0 0 auto; }
  .map-style-switch button { min-height: 44px; }
  .journey-explore .map-disclosure { padding-bottom: 8px; font-size: 10px; }
  .booking-hub { padding: 18px 14px; border-radius: 18px; }
  .booking-heading { align-items: flex-start; gap: 8px; }
  .booking-heading h3 { font-size: 20px; }
  .booking-heading .count { font-size: 10px; padding: 5px; }
  .booking-options { grid-template-columns: 1fr; }
  .booking-options .node { padding: 16px 12px; }
}

/* Keep zoom controls outside the route so small-screen destinations stay tappable. */
.journey-explore .map-tools { position: static; flex-direction: row; justify-content: flex-end; padding: 8px 12px 0; }
.journey-explore .map-tools button { width: 44px; height: 36px; font-size: 18px; box-shadow: none; }
@media (max-width: 899px) { .journey-explore .map-tools button { height: 44px; } }

/* Reservation imports share the plan’s card hierarchy. */
.reservation { display: block; margin: 14px 0; padding: 18px; overflow-wrap: anywhere; }
.reservation h3 { margin: 8px 0; }
#reservations textarea { padding: 12px; border: 1px solid #d8dfdf; border-radius: 12px; font: inherit; width: 100%; box-sizing: border-box; }
#reservations form, #reservations section { margin: 20px 0; }

.flight-sheet { max-width: 720px; width: min(720px, 94vw); }
.flight-sheet fieldset { border: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.flight-sheet label { display: grid; gap: 5px; }
.flight-sheet select, .flight-sheet input { width: 100%; min-width: 0; padding: 10px; }
.flight-sheet p, .flight-journey p { overflow-wrap: anywhere; }
.flight-journey li { margin-block: 18px; }
.flight-journey a { text-decoration: underline; }
.flight-raw { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
.search-widget { width: 100%; height: 200px; border: 0; }
