﻿/* SRT Red Lines — calculator, map, cards */

.tl-page--skytrain.tl-rail--srt {
  --srt-dark: #8b0000;
  --srt-light: #e53935;
  --srt-navy: #5c0a0a;
  --srt-ink: #2a1818;
  --srt-muted: #6a4a4a;
  --srt-paper: #fbf4f4;
}

.tl-srt-hero {
  position: relative;
  isolation: isolate;
  color: var(--srt-ink);
}

.tl-srt-hero--plain {
  padding: 36px 0 28px;
  background:
    radial-gradient(ellipse 65% 50% at 90% 10%, rgba(139, 0, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 90%, rgba(92, 10, 10, 0.08), transparent 50%),
    linear-gradient(180deg, #f9eeee 0%, var(--srt-paper) 100%);
}

.tl-srt-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.tl-srt-hero--plain .tl-sk-crumb {
  color: var(--srt-muted);
}

.tl-srt-hero--plain .tl-sk-crumb a:hover {
  color: var(--srt-navy);
}

.tl-srt-hero--plain .tl-sk-brandline {
  color: var(--srt-light);
}

.tl-srt-hero--plain .tl-sk-brandline span {
  color: var(--srt-ink);
}

.tl-srt-hero h1 {
  margin: 8px 0 14px;
  max-width: 16ch;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--srt-navy);
}

.tl-srt-hero h1 em {
  font-style: normal;
  color: var(--srt-light);
}

.tl-srt-hero__sub {
  margin: 0 0 16px;
  max-width: 38ch;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--srt-navy);
}

.tl-srt-hero__lead {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--srt-muted);
}

.tl-srt-rails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-srt-rails a,
.tl-srt-rails span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(92, 10, 10, 0.18);
  color: var(--srt-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: #fff;
}

.tl-srt-rails span {
  background: var(--srt-dark);
  border-color: var(--srt-dark);
  color: #fff;
}

.tl-srt-rails a:hover {
  background: var(--srt-navy);
  border-color: var(--srt-navy);
  color: #fff;
}

.tl-srt-hero--plain .tl-sk-polaroid {
  margin-top: 12px;
}

.tl-srt-plan {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  padding: 0 0 8px;
}

.tl-srt-plan__card {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 28px 36px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 39, 72, 0.16);
}

.tl-srt-plan__form h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.tl-srt-quick h2,
.tl-srt-map-head h2,
.tl-srt-cards-head h2,
.tl-srt-tips-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--srt-navy);
}

.tl-srt-plan__form p,
.tl-srt-quick > p,
.tl-srt-map-head p,
.tl-srt-cards-head p,
.tl-srt-tips-head p {
  margin: 0 0 18px;
  color: var(--srt-muted);
  font-size: 15px;
  line-height: 1.55;
}

.tl-srt-plan__form {
  max-width: 249px;
}

.tl-srt-station-box {
  position: relative;
}

.tl-srt-field {
  position: relative;
}

.tl-srt-field label {
  display: block;
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #4a4a4a;
  line-height: 1.4;
}

.tl-srt-mid {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 33px;
  margin: 0;
}

.tl-srt-combo {
  position: relative;
}

.tl-srt-combo__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 37px;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  outline: none;
}

.tl-srt-combo__input::placeholder {
  color: #999;
  opacity: 1;
  font-weight: 400;
}

.tl-srt-combo.is-open .tl-srt-combo__input {
  border-color: #8b0000;
}

.tl-srt-combo.is-filled:not(.is-open) .tl-srt-combo__input {
  display: none;
}

.tl-srt-combo__chosen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.tl-srt-combo__chosen[hidden] {
  display: none;
}

.tl-srt-combo.is-open .tl-srt-combo__chosen {
  display: none;
}

.tl-srt-combo__chosen .tl-srt-combo__code,
.tl-srt-combo__opt .tl-srt-combo__code {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #8b0000;
  line-height: 1.25;
}

.tl-srt-combo__chosen .tl-srt-combo__names,
.tl-srt-combo__opt .tl-srt-combo__name {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #333;
  line-height: 1.3;
}

.tl-srt-combo__pop {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  overflow: hidden;
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tl-srt-combo__pop[hidden] {
  display: none;
}

.tl-srt-combo__list {
  overflow: auto;
  max-height: 255px;
}

.tl-srt-combo__line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.tl-srt-combo__line.is-open {
  background: #f7f7f7;
}

.tl-srt-combo__line-text {
  flex: 1;
  min-width: 0;
}

.tl-srt-combo__line-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.tl-srt-combo__line-text span {
  display: block;
  font-size: 12px;
  color: #888;
}

.tl-srt-combo__chev {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #888;
  transition: transform 0.15s ease;
}

.tl-srt-combo__line.is-open .tl-srt-combo__chev {
  transform: rotate(180deg);
}

.tl-srt-combo__stations[hidden] {
  display: none;
}

.tl-srt-combo__opt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  padding: 8px 12px 8px 18px;
  border: 0;
  border-bottom: 1px solid #f5f5f5;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.tl-srt-combo__opt:hover,
.tl-srt-combo__opt[aria-selected="true"] {
  background: #e8f1fb;
}

.tl-srt-combo__empty {
  padding: 12px;
  font-size: 13px;
  color: #888;
}

.tl-srt-swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9aa0a6;
  cursor: pointer;
}

.tl-srt-swap:hover,
.tl-srt-combo.is-filled ~ .tl-srt-mid .tl-srt-swap,
.tl-srt-station-box:has(.tl-srt-combo.is-filled) .tl-srt-swap {
  color: #8b0000;
}

.tl-srt-btn-wrap {
  margin-top: 12px;
}

.tl-srt-calc-go {
  display: inline-block;
  width: 100%;
  height: 33px;
  margin: 0;
  padding: 1px 6px;
  border: 0;
  border-radius: 4px;
  background: #189008;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 31px;
  cursor: pointer;
}

.tl-srt-calc-go:hover {
  background: #147206;
}

.tl-srt-error {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 13px;
}

.tl-srt-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  align-content: start;
}

.tl-srt-quick > h2,
.tl-srt-quick > p {
  grid-column: 1 / -1;
}

.tl-srt-stat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tl-srt-stat svg {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--srt-navy);
}

.tl-srt-stat h3 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--srt-navy);
}

.tl-srt-stat p {
  margin: 0;
  font-size: 12px;
  color: var(--srt-muted);
  line-height: 1.4;
}

.tl-srt-results {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef4fb, #fff);
  border: 1px solid rgba(139, 0, 0, 0.28);
}

.tl-srt-results[hidden] {
  display: none;
}

.tl-srt-result__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--srt-light);
}

.tl-srt-result__fare {
  margin: 4px 0 2px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--srt-navy);
}

.tl-srt-result__time {
  margin: 0 0 14px;
  color: var(--srt-muted);
}

.tl-srt-result__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tl-srt-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fde8e8;
  color: #5c0a0a;
  font-size: 12px;
  font-weight: 700;
}

.tl-srt-chip[data-sys="dark"] { background: #fde8e8; color: #5c0a0a; }

.tl-srt-result__steps {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--srt-ink);
  font-size: 14px;
  line-height: 1.55;
}

.tl-srt-result__note,
.tl-srt-result__disc {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--srt-muted);
  line-height: 1.55;
}

.tl-srt-map-sec {
  padding: 56px 0 24px;
  scroll-margin-top: 88px;
}

.tl-srt-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tl-srt-map-toolbar button {
  position: relative;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(92, 10, 10, 0.16);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--srt-navy);
  cursor: pointer;
}

.tl-srt-map-toolbar button[aria-pressed="true"] {
  color: #fff;
}

.tl-srt-map-toolbar button[data-line-toggle="dark"][aria-pressed="true"] {
  background: var(--srt-dark);
  border-color: var(--srt-dark);
  color: #fff;
}

.tl-srt-map-svg .tl-srt-map__line.is-core {
  filter: drop-shadow(0 0 1px rgba(139, 0, 0, 0.35));
}

.tl-srt-map-frame {
  position: relative;
  height: min(48vh, 480px);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(139, 0, 0, 0.12), transparent 55%),
    linear-gradient(180deg, #e8f1fb, #f7fbff);
  border: 1px solid rgba(92, 10, 10, 0.08);
  touch-action: none;
  cursor: grab;
}

.tl-srt-map-frame:active {
  cursor: grabbing;
}

.tl-srt-map-svg {
  width: 100%;
  height: 100%;
}

.tl-srt-map-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tl-srt-map-svg .is-off {
  display: none !important;
}

.tl-srt-map__label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 11px;
  font-weight: 700;
  fill: #5c0a0a;
  pointer-events: none;
}

.tl-srt-map__label.is-minor {
  font-size: 8.5px;
  font-weight: 500;
  fill: #3d4e60;
}

.tl-srt-map__caption {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 12px;
  fill: #7a8a9a;
}

.tl-srt-map__hit {
  cursor: pointer;
}

.tl-srt-map__stop.is-on-path .tl-srt-map__dot {
  stroke: #5c0a0a;
  stroke-width: 3;
}

.tl-srt-map__stop.is-origin .tl-srt-map__dot,
.tl-srt-map__stop.is-dest .tl-srt-map__dot {
  fill: #5c0a0a;
  stroke: #ffe566;
}

.tl-srt-map__path {
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(92, 10, 10, 0.35));
}

.tl-srt-popover {
  position: absolute;
  z-index: 4;
  width: min(280px, calc(100% - 24px));
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 39, 72, 0.2);
}

.tl-srt-popover[hidden] {
  display: none;
}

.tl-srt-pop__code {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--srt-light);
}

.tl-srt-popover h3 {
  margin: 2px 0;
  font-size: 18px;
  color: var(--srt-navy);
}

.tl-srt-pop__th {
  margin: 0 0 8px;
  color: var(--srt-muted);
  font-size: 14px;
}

.tl-srt-pop__line,
.tl-srt-pop__near {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--srt-ink);
}

.tl-srt-pop__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.tl-srt-pop__actions button {
  flex: 1;
  padding: 8px 6px;
  border: 0;
  border-radius: 8px;
  background: var(--srt-navy);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tl-srt-pop__actions button:last-child {
  background: var(--srt-light);
}

.tl-srt-cards-sec,
.tl-srt-tips-sec,
.tl-srt-types-sec {
  padding: 48px 0;
}

.tl-srt-cards-sec {
  background: #fff;
}

.tl-srt-types-sec {
  background: #fff;
}

.tl-srt-tips-sec {
  background: #f9eeee;
}

.tl-srt-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
}

.tl-srt-type {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 39, 72, 0.08);
}

.tl-srt-type__head {
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tl-srt-type[data-srt="dark"] .tl-srt-type__head { background: var(--srt-dark); }

.tl-srt-type__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a3a6b;
}

.tl-srt-type__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-srt-type__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
  flex: 1;
}

.tl-srt-type__th {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--srt-navy);
}

.tl-srt-type__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--srt-muted);
}

.tl-srt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tl-srt-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 39, 72, 0.08);
}

.tl-srt-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a3a6b;
}

.tl-srt-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-srt-card__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 28, 52, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.tl-srt-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}

.tl-srt-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--srt-navy);
}

.tl-srt-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--srt-muted);
}

.tl-srt-card__meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--srt-light);
}

.tl-srt-card [data-highlight] {
  margin-top: auto;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--srt-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tl-srt-card [data-highlight]:hover {
  color: var(--srt-light);
}

.tl-srt-card__detail {
  display: none;
}

.tl-srt-oldtown {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--srt-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tl-srt-oldtown a {
  color: var(--srt-navy);
  font-weight: 700;
}

.tl-srt-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tl-srt-tip {
  padding: 20px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 39, 72, 0.06);
}

.tl-srt-tip img {
  width: 56px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 10px;
}

.tl-srt-tip h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--srt-navy);
}

.tl-srt-tip p,
.tl-srt-tip ul {
  margin: 0;
  padding: 0;
  color: var(--srt-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tl-srt-tip ul {
  padding-left: 16px;
}

.tl-srt-cta {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #fff;
}

.tl-srt-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
}

.tl-srt-cta__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 52, 0.88), rgba(10, 28, 52, 0.35));
}

.tl-srt-cta__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}

.tl-srt-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.tl-srt-cta p {
  margin: 0 0 22px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
}

.tl-srt-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tl-srt-cta__links a {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--srt-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tl-srt-cta__links a:hover {
  background: var(--srt-dark);
  color: #fff;
}

.tl-srt-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 28, 52, 0.55);
}

.tl-srt-modal[hidden] {
  display: none;
}

.tl-srt-modal__panel {
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
}

.tl-srt-modal__panel h2 {
  margin: 0 0 12px;
  color: var(--srt-navy);
}

.tl-srt-modal__panel p,
.tl-srt-modal__panel ul {
  color: var(--srt-muted);
  font-size: 15px;
  line-height: 1.6;
}

body.tl-srt-modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .tl-srt-plan__card {
    grid-template-columns: 1fr;
  }

  .tl-srt-plan__form {
    max-width: none;
  }

  .tl-srt-grid,
  .tl-srt-types,
  .tl-srt-tips,
  .tl-srt-quick {
    grid-template-columns: 1fr 1fr;
  }

  .tl-srt-welcome {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tl-srt-cta__inner,
  .tl-sk__wrap {
    width: calc(100% - 32px);
  }

  .tl-srt-hero--plain {
    padding: 24px 0 12px;
  }

  .tl-srt-plan {
    padding-top: 0;
  }

  .tl-srt-plan__card {
    padding: 18px;
  }

  .tl-srt-grid,
  .tl-srt-types,
  .tl-srt-tips {
    grid-template-columns: 1fr;
  }

  .tl-srt-map-frame {
    height: 68vh;
  }
}


.tl-srt-map-toolbar button[data-line-toggle="light"][aria-pressed="true"] {
  background: var(--srt-light);
  border-color: var(--srt-light);
  color: #fff;
}

.tl-srt-type[data-srt="light"] .tl-srt-type__head { background: var(--srt-light); }

.tl-srt-chip[data-sys="light"] { background: #ffe0e0; color: #8b0000; }
.tl-srt-chip[data-sys="dark"] { background: #fde8e8; color: #5c0a0a; }

.tl-srt-map-frame {
  height: min(64vh, 640px);
}