:root {
  color: #24303a;
  background: #f4f1eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
}

.page-shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0;
  color: #756d61;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.5rem;
}

.status {
  color: #756d61;
}

.status.error,
.error {
  color: #a53d35;
}

.status.loading {
  color: #526d82;
}

.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #526d82;
  border-radius: 0.45rem;
  background: #526d82;
  color: #fffdf8;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

button.secondary,
.button-link.secondary {
  border-color: #c8c0b4;
  background: #fffdf8;
  color: #24303a;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid #ddd4c7;
  border-radius: 0.65rem;
  background: #fffdf8;
}

.invite-gate {
  max-width: 32rem;
}

.invite-gate h2 {
  margin-bottom: 0;
}

.management-shell {
  max-width: 1040px;
}

.management-card {
  margin-bottom: 1rem;
}

.field-help {
  margin-bottom: 0;
  color: #756d61;
}

.management-trip-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.management-trip-item {
  border: 1px solid #ddd4c7;
  border-radius: 0.55rem;
  background: #fffdf8;
}

.management-trip-item.archived {
  background: #f1eee8;
}

.trip-choice {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: #24303a;
  text-align: left;
}

.trip-choice:hover,
.trip-choice.selected {
  background: #e7eef2;
  color: #24303a;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  color: #756d61;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c8c0b4;
  border-radius: 0.45rem;
  background: #fffdf8;
  color: #24303a;
  font: inherit;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.draft-panel {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px dashed #c8c0b4;
  border-radius: 0.55rem;
  color: #756d61;
}

.draft-panel p {
  margin-bottom: 0;
}

.result-panel {
  padding: 1rem;
  border: 1px solid #b7cbbd;
  border-radius: 0.65rem;
  background: #f4faf5;
}

.selectors {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.selectors label {
  display: grid;
  min-width: 220px;
  gap: 0.35rem;
  color: #756d61;
  font-size: 0.9rem;
}

select {
  min-height: 2.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c8c0b4;
  border-radius: 0.45rem;
  background: #fffdf8;
  color: #24303a;
  font: inherit;
}

.trip-summary {
  padding: 1rem 1.2rem;
  border: 1px solid #ddd4c7;
  border-radius: 0.65rem;
  background: #fffdf8;
  margin-bottom: 1rem;
}

.trip-summary h2 {
  margin-bottom: 0.25rem;
}

.trip-summary p {
  margin-bottom: 0;
  color: #756d61;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.day-card {
  padding: 1rem;
  border: 1px solid #d9d0c4;
  border-radius: 0.7rem;
  background: #fffdf8;
}

.day-card h3 {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e5ddd2;
  margin-bottom: 0.8rem;
}

.session-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee8df;
}

.session-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.session-card h4 {
  margin-bottom: 0;
  color: #526d82;
  font-size: 1rem;
}

.diary-body {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.travel-photo {
  display: block;
  width: min(100%, 640px);
  max-height: 420px;
  object-fit: cover;
  border-radius: 0.45rem;
}

.state-message {
  padding: 2rem 1rem;
  border: 1px dashed #c8c0b4;
  border-radius: 0.65rem;
  color: #756d61;
  text-align: center;
}

.no-data {
  color: #756d61;
}

/* Current journey spread and map archive.  The existing form/card rules above
   remain shared by the management and traveler creation pages. */
.journey-shell {
  width: 100%;
  max-width: none;
}

.journey-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.journey-identity {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  margin-left: 75px;
}

.journey-brand {
  margin-bottom: 0;
  color: #526d82;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.25;
}

.journey-context {
  margin-bottom: 0;
  color: #756d61;
  font-size: 15px;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.journey-header h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.625rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

.journey-location,
.journey-summary {
  margin-bottom: 0;
  color: #756d61;
}

.journey-location {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.3;
}

.journey-summary {
  max-width: 46rem;
  margin-bottom: 0;
}

.journey-toolbar {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.journey-tool {
  position: relative;
  display: inline-grid;
  width: 56px;
  height: 56px;
  min-height: 56px;
  flex: 0 0 56px;
  place-items: center;
  padding: 0;
  border: 1px solid #c8c0b4;
  border-radius: 50%;
  background: #fffdf8;
  color: #24303a;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.journey-tool svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.journey-tool:hover,
.journey-tool:focus-visible,
.journey-tool.is-active,
.journey-tool[aria-pressed="true"] {
  border-color: #526d82;
  background: #e7eef2;
  color: #24303a;
}

.journey-tool:hover {
  transform: translateY(-1px);
}

.journey-tool:focus-visible {
  outline: 2px solid #526d82;
  outline-offset: 3px;
}

.journey-tool:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.journey-tool[data-tooltip]::after {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  z-index: 20;
  padding: 0.32rem 0.55rem;
  border: 1px solid #d9d0c4;
  border-radius: 0.35rem;
  background: #24303a;
  color: #fffdf8;
  content: attr(data-tooltip);
  font-size: 0.75rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.25rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
  white-space: nowrap;
}

.journey-tool:hover::after,
.journey-tool:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.party-popover {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 68px;
  z-index: 30;
  width: min(280px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, #d9cbb8 70%, #c8c0b4);
  border-radius: 1.25rem;
  background: color-mix(in srgb, #d9cbb8 28%, #fffdf8);
  box-shadow: 0 18px 40px rgba(61, 55, 45, 0.16);
}

.party-popover .subject-control {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
  color: #756d61;
  font-size: 0.85rem;
}

.party-popover select {
  width: 100%;
}

.compat-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.muted {
  color: #756d61;
}

.journey-shell .travel-spread {
  --spread-unit: min(48vw, 640px);
  display: grid;
  width: min(100%, calc(var(--spread-unit) * 2 + 81px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  margin: 1.5rem auto 0;
  padding: 1rem 15px 1.5rem 66px;
}

.journey-shell .photo-page {
  width: 100%;
  max-width: 640px;
  margin: 4.625rem 0 0;
  transform: translateX(-20px) rotate(var(--photo-angle, 0deg));
  transform-origin: 62% 48%;
  z-index: 2;
}

.journey-shell .photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  padding: 9px 9px 16px;
  overflow: hidden;
  border: 0;
  background: #fff;
  box-shadow: 0 16px 38px rgba(61, 55, 45, 0.16), 0 3px 9px rgba(61, 55, 45, 0.08);
}

.journey-shell #travel-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 0;
}

.journey-shell .media-placeholder {
  padding: 2rem;
  color: #756d61;
  text-align: center;
}

.journey-shell .photo-caption {
  margin: 0.7rem 0 0;
  color: #756d61;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
}

.journey-shell .paper-wrap {
  --theme-color: #d9cbb8;
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0;
  transform: translateX(-28px);
  z-index: 1;
}

.journey-shell .diary-paper {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: 650px;
  height: auto;
  aspect-ratio: auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(2.5rem, 4vw, 3.375rem) clamp(2rem, 4vw, 3.75rem) clamp(3rem, 5vw, 4.375rem);
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--theme-color) 58%, #fffdf8);
  background-color: color-mix(in srgb, var(--theme-color) 17%, #fffdf8);
  box-shadow: 0 16px 38px rgba(61, 55, 45, 0.13);
}

.journey-shell .diary-paper::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--scene-image, none);
  background-position: center;
  background-size: cover;
  content: "";
  pointer-events: none;
  opacity: 0.6;
}

.journey-shell .diary-paper::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 44%);
  content: "";
  pointer-events: none;
}

.journey-shell .diary-paper > * {
  position: relative;
  z-index: 2;
  opacity: 1;
}

.journey-shell .diary-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #756d61;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-shell .diary-author {
  margin: 2.6rem 0 0.75rem;
  color: color-mix(in srgb, var(--theme-color) 70%, #24303a);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.journey-shell .diary-paper h3 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
}

.journey-shell .diary-body {
  max-width: 30rem;
  margin-bottom: 1rem;
  font-size: 15.6px;
  line-height: 1.74;
  white-space: pre-wrap;
}

.journey-shell .diary-highlight,
.journey-shell .diary-weather {
  margin-bottom: 0.65rem;
  color: #756d61;
  font-size: 0.88rem;
}

.journey-shell .slot-tabs {
  position: absolute;
  inset: 0 auto 0 100%;
  z-index: 3;
  display: grid;
  width: 37px;
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.journey-shell .slot-tab {
  display: grid;
  width: 37px;
  height: calc(100% + 4px);
  min-height: 0;
  margin: -2px 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--tab-color);
  color: #24303a;
  cursor: pointer;
  font-size: 15px;
  font-weight: normal;
  line-height: 1;
  place-items: center;
  writing-mode: vertical-rl;
  clip-path: polygon(0 0, 100% 9%, 100% 91%, 0 100%);
  box-shadow: 6px 8px 13px rgba(46, 49, 46, 0.09);
}

.journey-shell .slot-tab:first-child {
  margin-top: 0;
}

.journey-shell .slot-tab:last-child {
  margin-bottom: 0;
}

.journey-shell .slot-tab.is-active {
  background: var(--theme-color);
  color: #24303a;
}

.journey-shell .slot-tab.is-locked {
  background: #d8d5cf;
  color: #8b867e;
  cursor: not-allowed;
}

.journey-shell .slot-tab:focus-visible,
.day-rail-item:focus-visible {
  outline: 2px solid #526d82;
  outline-offset: 2px;
}

.archive-view,
.trip-history {
  position: relative;
}

.journey-map-shell {
  position: relative;
  isolation: isolate;
  width: min(calc(100vw - 100px), 100%);
  height: calc(100vh - 185px);
  min-height: 390px;
  margin: 20px auto 0;
  padding: 14px;
  overflow: hidden;
  border: 0;
  background: #c7a06d;
  box-shadow: 0 16px 38px rgba(61, 55, 45, 0.1);
}

.journey-map-shell::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  border: 1px solid rgba(102, 73, 38, 0.35);
  background: linear-gradient(125deg, #e2d3b5 0%, #c7a06d 48%, #dbc69f 100%);
  clip-path: polygon(0.8% 1.4%, 25% 0.7%, 51% 1.2%, 75% 0.5%, 99.3% 1.6%, 98.7% 25%, 99.5% 51%, 98.9% 76%, 99.1% 98.4%, 74% 99.2%, 50% 98.6%, 25% 99.4%, 0.8% 98.5%, 1.3% 74%, 0.6% 50%, 1.2% 25%);
  filter: url(#rough-paper-filter);
  pointer-events: none;
}

.journey-map-shell::after {
  position: absolute;
  z-index: 2;
  inset: 14px;
  content: "";
  border: 1px solid rgba(86, 62, 37, 0.22);
  box-shadow: inset 0 0 24px rgba(86, 62, 37, 0.24), inset 0 0 5px rgba(255, 245, 218, 0.5);
  pointer-events: none;
}

.journey-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 390px;
  overflow: hidden;
  font: inherit;
}

.journey-map-shell .leaflet-container {
  position: relative;
  font: inherit;
}

.map-tooltip.leaflet-tooltip {
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(86, 62, 37, 0.3);
  border-radius: 0.2rem;
  background: rgba(255, 249, 232, 0.95);
  box-shadow: 0 4px 12px rgba(61, 55, 45, 0.18);
  color: #24303a;
  white-space: nowrap;
}

.map-label {
  display: grid;
  gap: 0.05rem;
  line-height: 1.15;
}

.map-label strong {
  color: #24303a;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.map-label span {
  color: #526d82;
  font-size: 0.78rem;
}

.map-label small {
  color: #756d61;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.current-map-pin,
.current-map-pin.selected-map-pin {
  width: 30px !important;
  height: 30px !important;
  border: 4px solid #fffdf8;
  border-radius: 50%;
  background: #a53d35;
  box-shadow: 0 0 0 3px rgba(165, 61, 53, 0.3), 0 2px 10px rgba(61, 55, 45, 0.42);
}

.current-map-pin::after {
  position: absolute;
  inset: 4px;
  content: "";
  border: 1px solid rgba(255, 253, 248, 0.85);
  border-radius: 50%;
}

.regular-map-pin,
.selected-map-pin {
  width: 22px !important;
  height: 22px !important;
  border: 3px solid #fffdf8;
  border-radius: 50%;
  background: #526d82;
  box-shadow: 0 2px 8px rgba(61, 55, 45, 0.35);
}

.selected-map-pin {
  border-width: 4px;
  background: #24303a;
  box-shadow: 0 0 0 3px rgba(82, 109, 130, 0.28), 0 2px 8px rgba(61, 55, 45, 0.35);
}

.current-map-pin.selected-map-pin {
  background: #a53d35;
  box-shadow: 0 0 0 3px rgba(165, 61, 53, 0.28), 0 2px 8px rgba(61, 55, 45, 0.35);
}

.map-popup {
  display: grid;
  gap: 0.28rem;
  min-width: 160px;
}

.map-popup strong {
  color: #526d82;
  letter-spacing: 0.08em;
}

.map-popup span {
  color: #24303a;
}

.popup-action {
  min-height: 2rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #526d82;
  border-radius: 0.3rem;
  background: #526d82;
  color: #fffdf8;
  cursor: pointer;
  font: inherit;
}

.location-pending {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed #c8c0b4;
  border-radius: 0.45rem;
  color: #756d61;
}

.location-pending p {
  display: inline;
  margin: 0 0.8rem 0 0;
  font-size: 0.85rem;
}

.trip-history {
  min-height: 60vh;
  padding: 0.5rem 0 2rem;
}

.day-rail {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 auto 2rem;
  padding: 1.6rem 75px 2.5rem;
  overflow-x: auto;
  border-bottom: 0;
  scrollbar-color: #c8c0b4 transparent;
}

.day-rail::before {
  position: absolute;
  top: 1.6rem;
  right: 75px;
  left: 75px;
  height: 1px;
  content: "";
  background: #c8c0b4;
  pointer-events: none;
}

.day-rail-item {
  position: relative;
  display: flex;
  flex: 0 0 200px;
  min-width: 200px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1.5rem 0 1.55rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #24303a;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.day-rail-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid #9e978c;
  border-radius: 50%;
  background: #f4f1eb;
  content: "";
  transform: translateY(-50%);
  z-index: 1;
}

.day-rail-item strong {
  color: #526d82;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.day-rail-item span {
  min-height: 1.3em;
  color: #756d61;
  font-size: 0.78rem;
}

.day-rail-item.is-current {
  color: #24303a;
}

.day-rail-item.is-current::before {
  border-color: #24303a;
  background: #24303a;
}

.day-rail-item:hover strong,
.day-rail-item:focus-visible strong {
  color: #24303a;
}

@media (max-width: 820px) {
  .day-rail {
    padding-inline: 2rem;
  }

  .day-rail::before {
    right: 2rem;
    left: 2rem;
  }

  .day-rail-item {
    flex-basis: 180px;
    min-width: 180px;
  }
}

.trip-photo-collage {
  position: relative;
  display: block;
  min-height: clamp(380px, 48vw, 610px);
  margin: 0;
  padding: 1rem 0 2rem;
  --photo-clamp-x: 0px;
  --photo-clamp-y: 0px;
  overflow: hidden;
}

.collage-photo {
  position: absolute;
  top: var(--photo-baseline);
  left: var(--photo-left);
  width: var(--photo-width);
  max-width: calc(100% - 1rem);
  margin: 0;
  padding: 0.7rem 0.7rem 1.1rem;
  background: #fff;
  box-shadow: 0 11px 22px rgba(61, 55, 45, 0.18);
  transform: translate(
    calc(-50% + var(--photo-jitter-x) + var(--photo-clamp-x)),
    calc(-50% + var(--photo-jitter-y) + var(--photo-clamp-y))
  ) rotate(var(--photo-rotation));
  transform-origin: center center;
}

.collage-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.collage-photo figcaption {
  margin-top: 0.5rem;
  color: #756d61;
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 820px) {
  .journey-shell {
    width: calc(100% - 1rem);
  }

  .journey-identity {
    margin-left: 0;
  }

  .journey-header {
    flex-direction: column;
    gap: 1.25rem;
  }

  .journey-toolbar {
    align-self: flex-end;
  }

  .journey-shell .travel-spread {
    --spread-unit: min(calc(100% - 120px), 640px);
    width: 100%;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    padding: 0 0 1.5rem;
  }

  .journey-shell .photo-page {
    width: min(100%, var(--spread-unit));
    max-width: min(100%, var(--spread-unit));
    margin: 0 auto;
    transform: rotate(var(--photo-angle, 0deg));
  }

  .journey-shell .paper-wrap {
    width: min(100%, var(--spread-unit));
    max-width: min(100%, var(--spread-unit));
    margin: 0 auto;
    transform: none;
  }

  .journey-shell .diary-paper {
    min-height: 560px;
  }

  .journey-map-shell,
  .journey-map {
    min-height: 420px;
  }

  .journey-map-shell {
    width: 100%;
    height: auto;
    margin-top: 1rem;
  }

  .journey-map {
    height: auto;
  }

  .trip-photo-collage {
    display: grid;
    min-height: 0;
    gap: 1.8rem;
    padding: 1rem 0 2rem;
    overflow: visible;
  }

  .collage-photo {
    position: relative;
    top: auto;
    left: auto;
    width: min(calc(100% - 100px), 340px);
    max-width: 100%;
    margin: 0 auto;
    --photo-jitter-x: 0px;
    --photo-jitter-y: 0px;
    --photo-clamp-x: 0px;
    --photo-clamp-y: 0px;
    overflow: visible;
    transform: rotate(var(--photo-rotation));
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 1.2rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-actions .button-link {
    padding-inline: 0.55rem;
    font-size: 0.84rem;
  }

  .journey-shell .slot-tabs,
  .journey-shell .slot-tab {
    width: 37px;
  }
}
