.route-page {
  max-width: 1296px;
  margin: auto;
  padding: clamp(24px, 4vw, 58px) var(--pad) calc(100px + var(--radio-safe));
}
.route-mast,
.route-library,
.route-line,
.add-stop,
.route-sheet-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.route-mast,
.route-line {
  justify-content: space-between;
}
.route-mast {
  align-items: end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.route-mast .kicker,
.trip-tools .kicker {
  margin: 0 0 6px;
}
.route-mast h1 {
  font: 700 clamp(3.4rem, 6vw, 5.5rem) / 0.93 var(--ll-display);
  margin: 0;
}
.route-library {
  flex-wrap: wrap;
  align-items: end;
}
.route-page label {
  display: grid;
  gap: 5px;
  color: var(--ll-muted);
  font-size: 0.83rem;
}
.route-page input,
.route-page select {
  min-width: 0;
  width: 100%;
  color: var(--ll-bone);
  background: var(--ll-asphalt);
  border: 1px solid var(--edge);
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 12px;
}
.route-library select {
  max-width: 220px;
}
.pass {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #85706c;
  background: var(--ll-ink);
}
.pass-photo {
  min-height: clamp(220px, 22vw, 306px);
  padding: clamp(19px, 3vw, 40px);
  background-size: cover;
  background-position: center 48%;
  display: flex;
  flex-flow: column;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
}
.pass-label,
.pass-folio,
.route-line > span,
.stop-copy small,
.sample-stops b,
.stop-stamp {
  font: 500 0.76rem/1.4 var(--ll-mono);
}
.pass-label {
  background: #251e2bf2;
  padding: 6px 10px;
  border-radius: 3px;
  letter-spacing: 0.09em;
  color: #ffe0b9;
}
.pass-photo h2 {
  font:
    400 clamp(2.8rem, 5.1vw, 5.5rem) / 1.02 Yellowtail,
    cursive;
  color: #fff4e3;
  text-shadow: 0 2px 12px #23172e;
  text-wrap: balance;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.pass-photo p {
  margin: 0;
  color: #fff2df;
  font-size: 0.94rem;
  font-weight: 650;
}
.pass-photo p span {
  color: var(--ll-peach);
  padding: 0 6px;
}
.pass-chart {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  position: relative;
  background: #1e2227;
  border-left: 2px dashed #9b8984;
}
.plot-window {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.ticket-map {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.ticket-map image {
  filter: saturate(0.62);
}
.pass-folio {
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 17px;
  background: #f3dab8;
  color: #3b2938;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.route-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(225px, 0.85fr);
  gap: clamp(28px, 5vw, 68px);
  margin-top: 34px;
  align-items: start;
}
.route-body h2 {
  font: 700 2.1rem/1.04 var(--ll-display);
  margin: 0;
}
.route-line {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--edge);
}
.route-line > span {
  color: var(--ll-muted);
}
.trip-stops,
.sample-stops,
.area-directory ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trip-stop,
.sample-stops li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid var(--subtle);
}
.stop-stamp,
.sample-stops b {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffd7ba;
  border: 1px solid #ad806e;
  background: #33271F;
  font-size: 0.9rem;
}
.visited .stop-stamp {
  color: #142b29;
  background: #91dacf;
  border-color: #91dacf;
}
.stop-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.stop-copy > button {
  font: 700 1.45rem/1.1 var(--ll-display);
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.stop-copy small {
  color: var(--ll-muted);
}
.stop-edit {
  display: flex;
}
.route-arrow {
  height: 44px;
  width: 44px;
  font-size: 1.22rem;
  border-radius: 5px;
}
.route-arrow:hover:not(:disabled),
.stop-copy > button:hover {
  color: var(--ll-peach);
  background: var(--surface);
}
.add-stop {
  align-items: end;
  margin: 19px 0;
}
.add-stop label {
  flex: 1;
  min-width: 0;
}
.trip-tools {
  background: var(--surface);
  border-top: 3px solid #e3aa9e;
  padding: 22px;
  display: grid;
  gap: 14px;
  border-radius: 4px 4px 12px 12px;
}
.next-destination .button {
  margin-top: 12px;
}
.trip-tools .fine,
.trip-tools p {
  margin: 0;
}
.area-directory {
  border-top: 1px solid var(--edge);
  margin-top: 22px;
  padding: 14px 0;
}
.area-directory summary {
  cursor: pointer;
  font-weight: 650;
}
.area-directory small {
  color: var(--ll-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
}
.area-directory summary small {
  display: inline;
  margin-left: 5px;
}
.area-directory ul {
  max-height: 300px;
  overflow: auto;
  margin: 10px 0;
}
.area-directory li {
  padding: 7px;
  border-bottom: 1px solid var(--subtle);
}
.route-upload input {
  font-size: 0.8rem;
  max-width: 100%;
  padding: 8px;
}
.route-sheet-tools {
  flex-wrap: wrap;
  margin: 12px 0;
}
.route-sheet-tools span {
  width: 100%;
  color: var(--ll-tide);
  font: 500 0.8rem var(--ll-mono);
}
.journey-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.journey-layer svg {
  overflow: visible;
}
.install-note img {
  border-radius: 16px;
}
.sample-stops {
  margin-bottom: 20px;
}
@media (max-width: 720px) {
  .route-page {
    padding: 22px 16px calc(90px + var(--radio-safe));
  }
  .route-mast {
    gap: 18px;
    margin-bottom: 17px;
  }
  .route-library {
    width: 100%;
  }
  .route-library label {
    flex: 1;
    min-width: 0;
  }
  .route-library select {
    max-width: 100%;
  }
  .route-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 23px;
  }
  .pass {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .pass-photo {
    min-height: 216px;
    padding: 15px;
    gap: 18px;
  }
  .pass-photo h2 {
    font-size: clamp(2rem, 8.8vw, 3.5rem);
  }
  .pass-label {
    font-size: 0.65rem;
    letter-spacing: 0.025em;
  }
  .pass-photo p,
  .pass-folio {
    font-size: 0.72rem;
  }
  .pass-folio {
    padding: 8px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .trip-stop {
    gap: 6px;
  }
  .stop-edit .route-arrow {
    width: 44px;
  }
  .stop-copy > button {
    font-size: 1.16rem;
  }
  .trip-tools {
    padding: 16px;
  }
}
@media (max-width: 360px) {
  .trip-stop {
    flex-wrap: wrap;
  }
  .stop-edit {
    margin-left: auto;
  }
  .route-mast h1 {
    font-size: 3rem;
  }
}
@font-face {
  font-family: Yellowtail;
  src: url('assets/yellowtail.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
.official-formats {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 16px auto;
  color: var(--ll-muted);
  font-size: 0.85rem;
}
.official-formats a {
  text-transform: capitalize;
}
