/* =========================================================
   Journey planner (Figma SYPN V2 "Journey Planner" 4220:23034)
   The map sits in the page column with the planner panel over its left edge.
   Below 768px the panel is the page and the map is its own view.
   ========================================================= */

.jp {
	--jp-panel-width: 489px;
	color: var(--brand-asphalt-black);
	font-family: var(--sypn-font);
}

.jp :where(p, h1, h2, ol, ul, fieldset, legend) {
	margin: 0;
}

.jp button {
	font-family: inherit;
}

.jp [hidden] {
	display: none !important;
}

.jp-stage {
	position: relative;
	height: max(640px, calc(100vh - var(--jp-top, 184px) - 24px));
	overflow: hidden;
	background: var(--brand-charcoal-25);
}

@media (min-width: 768px) {
	.jp {
		padding: 24px var(--sypn-gutter);
	}

	.jp-stage {
		border: 1px solid var(--brand-charcoal-25);
		border-radius: var(--sypn-radius-md);
	}
}

.jp-map-area {
	position: absolute;
	inset: 0;
}

.jp-map {
	width: 100%;
	height: 100%;
}

.jp-map-message {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 16px;
	line-height: 24px;
}

/* =========================================================
   Map controls and markers - the timetable map's (Figma 4225:40500)
   ========================================================= */

.jp-map-controls {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px;
	border-radius: 8px;
	background: var(--neutral-white);
	filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--basic-black) 10%, transparent));
}

.jp-map-controls button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--sypn-radius-md);
	background: var(--sypn-fill-subtle);
	cursor: pointer;
}

.jp-map-controls button:hover {
	background: var(--brand-charcoal-25);
}

.jp-map-controls img {
	width: 20px;
	height: 20px;
}

.jp-map-controls .material-symbols-outlined {
	font-size: 24px;
}

.jp .jp-map-area.is-full {
	position: fixed;
	inset: 0;
	z-index: 1060;
	height: auto;
}

.jp-key {
	position: absolute;
	right: 16px;
	bottom: 0;
	z-index: 2;
	width: 217px;
	overflow: hidden;
	border: 1px solid var(--brand-charcoal-25);
	border-bottom: 0;
	border-radius: var(--sypn-radius-md) var(--sypn-radius-md) 0 0;
	background: var(--neutral-white);
}

.jp-key__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 56px;
	padding: 12px 16px;
	border: 0;
	background: none;
	color: var(--brand-asphalt-black);
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	cursor: pointer;
}

.jp-key__head .material-symbols-outlined {
	font-size: 24px;
}

.jp-key__head[aria-expanded="false"] .material-symbols-outlined {
	transform: rotate(180deg);
}

.jp-key__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jp-key__list[hidden] {
	display: none;
}

.jp-key__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	border-top: 1px solid var(--brand-charcoal-25);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.jp-key__list li:first-child {
	border-top: 0;
}

.jp-key__list .sypn-pin,
.jp-key__list .sypn-vehicle {
	position: relative;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
}

.jp-key__list .sypn-vehicle__circle {
	width: 32px;
	height: 32px;
	padding: 4px;
}

.jp-key__list .sypn-vehicle__circle .material-symbols-outlined {
	position: relative;
	color: var(--neutral-white);
	font-size: 24px;
}

.jp-map .mapboxgl-ctrl-bottom-right {
	right: 233px;
}

/* =========================================================
   The panel
   ========================================================= */

.jp-panel {
	position: absolute;
	top: 24px;
	bottom: 0;
	left: 24px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: var(--jp-panel-width);
	max-width: calc(100% - 48px);
	border: 1px solid var(--brand-charcoal-25);
	border-bottom: 0;
	border-radius: var(--sypn-radius-md) var(--sypn-radius-md) 0 0;
	background: var(--neutral-white);
}

.jp-panel__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 24px;
}

.jp-title {
	margin-bottom: 24px;
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
}

.jp-title:focus {
	outline: 0;
}

.jp-when {
	display: flex;
	align-items: center;
	gap: 8px;
}

.jp-when .jp-link {
	padding: 12px 16px;
	font-size: 16px;
	line-height: 24px;
}

.jp-toggle {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--brand-asphalt-black-25);
	border-radius: var(--sypn-radius-md);
}

.jp-toggle label {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	padding: 8px 24px;
	background: var(--neutral-white);
	color: var(--brand-asphalt-black);
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
	cursor: pointer;
}

.jp-toggle input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.jp-toggle label:has(input:checked) {
	background: var(--brand-asphalt-black);
	color: var(--neutral-white);
	font-weight: 700;
}

.jp-toggle label:has(input:focus-visible) {
	box-shadow: inset 0 0 0 2px var(--utilities-focus);
}

.jp-toggle--wide {
	flex: none;
	margin-bottom: 16px;
}

.jp-later {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.jp-later[hidden] {
	display: none;
}

.jp-picker {
	cursor: pointer;
}

.jp-picker .jp-input {
	padding: 11px 44px 11px 11px;
	border-width: 2px;
	font-weight: 600;
	cursor: pointer;
}

.jp-picker .jp-input::-webkit-calendar-picker-indicator {
	display: none;
}

.jp-picker .material-symbols-outlined {
	position: absolute;
	top: 50%;
	right: 12px;
	color: var(--brand-asphalt-black-75);
	font-size: 20px;
	transform: translateY(-50%);
	pointer-events: none;
}

.jp-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--brand-asphalt-black);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: underline;
	white-space: nowrap;
	cursor: pointer;
}

.jp-link--large {
	font-size: 16px;
	line-height: 24px;
}

.jp-input {
	width: 100%;
	min-width: 0;
	height: 50px;
	padding: 12px;
	border: 1px solid var(--brand-asphalt-black-50);
	border-radius: var(--sypn-radius-sm);
	background: var(--neutral-white);
	color: var(--brand-asphalt-black);
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
}

.jp-input::placeholder {
	color: var(--brand-asphalt-black-75);
	opacity: 1;
}

.jp-input:focus {
	border-color: var(--brand-asphalt-black);
	outline: 0;
	box-shadow: inset 0 0 0 1px var(--brand-asphalt-black);
}

.jp-input:focus-visible:not([data-pointer-focus]) {
	box-shadow: inset 0 0 0 1px var(--brand-asphalt-black), var(--sypn-focus-ring);
}

.jp-input[aria-invalid="true"] {
	border-color: var(--utilities-light-error);
	box-shadow: inset 0 0 0 1px var(--utilities-light-error);
}

/* =========================================================
   From, To and Via
   ========================================================= */

.jp-route {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
}

.jp-place {
	display: flex;
	align-items: center;
	gap: 8px;
}

.jp-place[hidden] {
	display: none;
}

.jp-place__icon {
	flex: 0 0 16px;
	font-size: 16px;
}

.jp-place__label {
	flex: 0 0 61px;
	min-width: 0;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.jp-place__field {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.jp-place__field .sypn-suggest {
	left: 0;
	right: 0;
	border-width: 1px;
}

.jp-swap {
	display: flex;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid var(--brand-asphalt-black-50);
	border-radius: var(--sypn-radius-sm);
	background: var(--neutral-white);
	cursor: pointer;
}

.jp-swap:hover {
	background: var(--brand-charcoal-25);
}

.jp-swap .material-symbols-outlined {
	font-size: 16px;
}

.jp-via {
	display: flex;
	align-items: center;
	padding-left: 80px;
}

.jp-via__add .material-symbols-outlined {
	font-size: 20px;
}

.jp-via__add {
	padding: 8px 16px;
	font-size: 16px;
	line-height: 24px;
}

.jp-via__add[hidden] {
	display: none;
}

.jp-via:has(> .jp-via__add[hidden]) {
	display: none;
}

/* =========================================================
   Ways to travel
   ========================================================= */

.jp-modes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding: 0;
	border: 0;
}

.jp-options .jp-modes {
	margin: 12px 0 16px;
}

.jp-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--brand-asphalt-black);
	border-radius: 40px;
	background: var(--neutral-white);
	color: var(--brand-asphalt-black);
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
}

.jp-chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 40px;
	opacity: 0;
	cursor: pointer;
}

.jp-chip .material-symbols-outlined {
	font-size: 16px;
}

.jp-chip__check {
	display: none;
}

.jp-chip:has(input:checked) {
	background: var(--brand-asphalt-black);
	color: var(--neutral-white);
	font-weight: 700;
}

.jp-chip:has(input:checked) .jp-chip__check {
	display: block;
}

.jp-chip:has(input:focus-visible) {
	outline: var(--sypn-focus-outline);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--utilities-focus);
}

/* =========================================================
   Journeys and Alerts tabs
   ========================================================= */

.jp-tabs {
	display: flex;
	margin-top: 12px;
}

.jp-tab {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 48px;
	padding: 8px 24px;
	border: 0;
	border-bottom: 1px solid var(--brand-charcoal-25);
	background: var(--neutral-white);
	color: var(--brand-asphalt-black-75);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
}

.jp-tab[aria-selected="true"] {
	border-bottom: 2px solid var(--brand-molten-orange);
	color: var(--brand-asphalt-black);
}

.jp-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 1px solid var(--alerts-caution-border);
	border-radius: 24px;
	background: var(--alerts-caution-fill);
	color: var(--brand-asphalt-black);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
}

.jp-tabpanel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 16px;
}

.jp-via-note {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px 12px 12px;
	border: 1px solid var(--brand-charcoal-grey);
	border-radius: 8px;
	background: var(--brand-charcoal-25);
}

.jp-via-note__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 14px;
	line-height: 20px;
}

.jp-via-note__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.jp-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--brand-asphalt-black-50);
	border-radius: var(--sypn-radius-sm);
	background: var(--neutral-white);
	color: var(--brand-asphalt-black);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
}

.jp-more:hover {
	background: var(--brand-charcoal-25);
}

.jp-more[aria-disabled="true"] {
	border-color: var(--brand-charcoal-50);
	background: var(--brand-asphalt-grey-25);
	color: var(--brand-asphalt-grey);
	cursor: default;
}

.jp-more .material-symbols-outlined {
	font-size: 20px;
}

.jp-more[aria-disabled="true"] .material-symbols-outlined {
	color: var(--brand-asphalt-black);
	opacity: 0.4;
}

.jp-message {
	padding: 12px 0;
	font-size: 16px;
	line-height: 24px;
}

.jp-message.is-loading::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid var(--brand-charcoal-50);
	border-top-color: var(--brand-molten-orange);
	border-radius: 50%;
	animation: jp-spin 0.8s linear infinite;
}

@keyframes jp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* =========================================================
   Journey cards
   ========================================================= */

.jp-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.jp-results:empty {
	display: none;
}

.jp-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
	cursor: pointer;
}

.jp-card:hover {
	border-color: var(--brand-asphalt-black-50);
}

.jp-card.is-selected {
	padding: 11px;
	border: 2px solid var(--brand-asphalt-black);
}

.jp-card--plain {
	padding: 0;
	border: 0;
	cursor: default;
}

.jp-card--plain:hover {
	border: 0;
}

.jp-card__head {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.jp-card__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.jp-card__pick {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.jp-card__duration {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	white-space: nowrap;
}

.jp-card__duration .material-symbols-outlined,
.jp-card__leaves .material-symbols-outlined {
	font-size: 16px;
}

.jp-card__leaves .material-symbols-outlined {
	color: var(--alerts-positive-text);
}

.jp-card__sub {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: -4px;
	font-size: 14px;
	line-height: 20px;
}

.jp-card__leaves {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.jp-card__distance {
	white-space: nowrap;
}

.jp-legs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 0;
	list-style: none;
}

.jp-leg {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 32px;
	margin: 4px;
	padding: 0 8px 0 4px;
	border: 1px solid var(--brand-asphalt-black-25);
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	color: var(--brand-asphalt-black);
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
}

.jp-leg .material-symbols-outlined {
	font-size: 16px;
}

.jp-leg--ride {
	font-weight: 700;
}

.jp-leg__delay {
	position: absolute;
	top: -5px;
	right: -5px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 1px solid var(--alerts-caution-border);
	border-radius: 50%;
	background: var(--alerts-caution-fill);
}

.jp-leg .jp-leg__delay .material-symbols-outlined {
	color: var(--alerts-caution-text);
	font-size: 12px;
}

.jp-legs__sep {
	display: flex;
}

.jp-legs__sep .material-symbols-outlined {
	font-size: 16px;
}

.jp-card__alerts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.jp-card__alerts:empty {
	display: none;
}

.jp-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--alerts-caution-border);
	border-radius: var(--sypn-radius-md);
	background: var(--alerts-caution-fill);
	color: var(--brand-asphalt-black);
	font-size: 14px;
	line-height: 20px;
}

.jp-banner .material-symbols-outlined {
	flex: 0 0 16px;
	font-size: 16px;
}

.jp-arrow-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--brand-asphalt-black);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-decoration: underline;
	cursor: pointer;
}

.jp-arrow-link:hover {
	color: var(--brand-asphalt-black);
}

.jp-arrow-link .material-symbols-outlined {
	font-size: 20px;
}

.jp-card .jp-arrow-link {
	padding: 8px 16px;
}

/* =========================================================
   Alerts tab (Figma 4362:15521)
   ========================================================= */

.jp-alerts {
	overflow: hidden;
	border: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
}

.jp-alerts--now {
	border-color: var(--alerts-caution-border);
	background: var(--alerts-caution-fill);
}

.jp-alerts__head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 12px;
	border-bottom: 1px solid var(--brand-charcoal-25);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.jp-alerts--now .jp-alerts__head {
	border-bottom-color: var(--alerts-caution-border);
}

.jp-alerts__head .material-symbols-outlined {
	font-size: 24px;
}

.jp-alerts__list {
	padding: 0;
	list-style: none;
}

.jp-alerts__list li + li {
	border-top: 1px solid var(--brand-charcoal-25);
}

.jp-alerts--now .jp-alerts__list li + li {
	border-top-color: var(--alerts-caution-border);
}

.jp-alert {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	padding: 8px 12px;
	color: var(--brand-asphalt-black);
	text-decoration: none;
}

a.jp-alert:hover {
	color: var(--brand-asphalt-black);
	text-decoration: underline;
}

.jp-alert__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-size: 14px;
	line-height: 20px;
}

.jp-alert .material-symbols-outlined {
	flex: 0 0 24px;
	font-size: 24px;
}

.jp-planned-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-bottom: 16px;
	padding: 12px 16px;
	border: 2px solid var(--brand-asphalt-black-50);
	border-radius: var(--sypn-radius-sm);
	background: var(--neutral-white);
	color: var(--brand-asphalt-black);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
}

.jp-planned-toggle .jp-planned-toggle__chevron {
	font-size: 20px;
	transform: rotate(180deg);
}

.jp-planned-toggle[aria-expanded="true"] .jp-planned-toggle__chevron {
	transform: none;
}

/* =========================================================
   Journey options (Figma 4362:15290)
   ========================================================= */

.jp-options {
	display: flex;
	flex-direction: column;
	padding-bottom: 0;
}

.jp-back-bar {
	position: sticky;
	top: -24px;
	z-index: 3;
	margin: -24px -24px 12px;
	padding: 24px 24px 12px;
	background: var(--neutral-white);
}

.jp-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--brand-asphalt-black);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-decoration: underline;
	cursor: pointer;
}

.jp-back .material-symbols-outlined {
	font-size: 24px;
}

.jp-options .jp-back-bar {
	margin-bottom: 8px;
	padding-bottom: 0;
}

.jp-options .jp-back {
	padding: 12px 0;
}

.jp-options .jp-back .material-symbols-outlined {
	font-size: 20px;
}

.jp-options .jp-title {
	margin-bottom: 16px;
}

.jp-option-group {
	display: block;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.jp-option-group__title {
	display: block;
	float: left;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.jp-option-group__title + * {
	clear: both;
}

.jp-field-label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
}

.jp-radio {
	display: flex;
	clear: both;
	align-items: center;
	gap: 12px;
	padding-top: 12px;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
}

.jp-radio input {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	appearance: none;
	cursor: pointer;
}

.jp-radio input::before {
	content: 'radio_button_unchecked';
	display: block;
	width: 24px;
	height: 24px;
	overflow: hidden;
	color: var(--brand-asphalt-grey-50);
	font-family: 'Material Symbols Outlined';
	font-size: 24px;
	font-weight: normal;
	line-height: 1;
	font-feature-settings: 'liga';
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	-webkit-font-smoothing: antialiased;
}

.jp-radio input:checked::before {
	content: 'radio_button_checked';
	color: var(--brand-asphalt-black);
}

.jp-radio input:focus-visible {
	outline: var(--sypn-focus-outline);
	outline-offset: 0;
	box-shadow: 0 0 0 4px var(--utilities-focus);
}

.jp-range {
	display: flex;
	clear: both;
	flex-direction: column;
	padding-top: 8px;
}

.jp-range__head,
.jp-range__ends {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	font-size: 14px;
	line-height: 20px;
}

.jp-range__head {
	font-weight: 700;
}

.jp-range input {
	--jp-fill: 14.29%;
	width: 100%;
	height: 44px;
	margin: 0;
	background: transparent;
	appearance: none;
	cursor: pointer;
}

.jp-range input::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: var(--sypn-radius-sm);
	background: linear-gradient(to right, var(--brand-asphalt-black) var(--jp-fill), var(--brand-charcoal-50) var(--jp-fill));
}

.jp-range input::-moz-range-track {
	height: 4px;
	border-radius: var(--sypn-radius-sm);
	background: linear-gradient(to right, var(--brand-asphalt-black) var(--jp-fill), var(--brand-charcoal-50) var(--jp-fill));
}

.jp-range input::-webkit-slider-thumb {
	width: 26px;
	height: 26px;
	margin-top: -11px;
	border: 3px solid var(--brand-charcoal-25);
	border-radius: 50%;
	background: var(--brand-asphalt-black);
	appearance: none;
}

.jp-range input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 3px solid var(--brand-charcoal-25);
	border-radius: 50%;
	background: var(--brand-asphalt-black);
}

.jp-range input:focus-visible {
	outline: 0;
}

.jp-range input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 2px var(--brand-asphalt-black), 0 0 0 4px var(--utilities-focus);
}

.jp-range input:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 2px var(--brand-asphalt-black), 0 0 0 4px var(--utilities-focus);
}

.jp-select {
	position: relative;
	clear: both;
	padding-top: 8px;
}

.jp-select select {
	padding-right: 44px;
	color: var(--brand-asphalt-black-75);
	font-weight: 700;
	appearance: none;
	cursor: pointer;
}

.jp-select .material-symbols-outlined {
	position: absolute;
	right: 12px;
	bottom: 15px;
	color: var(--brand-asphalt-black-75);
	font-size: 20px;
	pointer-events: none;
}

.jp-options__foot {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: 0 -24px;
	padding: 16px 24px;
	border-top: 1px solid var(--brand-charcoal-25);
	background: var(--neutral-white);
}

.jp-panel--options {
	bottom: auto;
	max-height: calc(100% - 48px);
	border-bottom: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
}

.jp-options .jp-route {
	margin-top: 0;
}

.jp-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 2px solid var(--brand-asphalt-black);
	border-radius: var(--sypn-radius-sm);
	background: var(--brand-molten-orange);
	color: var(--brand-asphalt-black);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
}

.jp-primary:hover {
	background: var(--sypn-orange-600);
}

/* =========================================================
   One journey (Figma 4362:15107)
   ========================================================= */

.jp-panel--detail .jp-panel__body {
	padding-bottom: 8px;
}

.jp-detail-head {
	display: flex;
	align-items: flex-start;
	gap: 4px;
}

.jp-detail-head__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.jp-detail-head__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.jp-detail-head__title:focus {
	outline: 0;
}

.jp-detail-head__times {
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.jp-share {
	display: flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--brand-asphalt-black);
	border-radius: var(--sypn-radius-sm);
	background: var(--neutral-white);
	cursor: pointer;
}

.jp-share:hover {
	background: var(--brand-charcoal-25);
}

.jp-share .material-symbols-outlined {
	font-size: 24px;
}

.jp-detail-meta {
	margin-top: 12px;
	font-size: 14px;
	line-height: 20px;
	white-space: pre-wrap;
}

.jp-detail-map {
	display: none;
}

.jp-timeline {
	margin-top: 24px;
	padding: 0;
	list-style: none;
}

.jp-step {
	position: relative;
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr) auto;
	column-gap: 16px;
	padding-bottom: 22px;
}

.jp-step:last-child {
	padding-bottom: 8px;
}

.jp-step::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: -12px;
	left: 7px;
	border-left: 2px dashed var(--brand-asphalt-black-50);
}

.jp-step--then-ride::before {
	border-left-style: solid;
	border-left-color: var(--brand-asphalt-black);
}

.jp-step:last-child::before,
.jp-step:not([class*="jp-step--then-"])::before {
	display: none;
}

.jp-step__marker {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: start;
	width: 16px;
	height: 24px;
}

.jp-step__marker::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	border: 2px solid var(--brand-asphalt-black);
	border-radius: 50%;
	background: var(--neutral-white);
	transform: translate(-50%, -50%);
}

.jp-step__marker .material-symbols-outlined {
	position: relative;
	font-size: 16px;
}

.jp-step--start .jp-step__marker::before {
	border-color: var(--brand-asphalt-black-50);
	background: var(--brand-asphalt-black-50);
}

.jp-step--walk .jp-step__marker::before,
.jp-step--board .jp-step__marker::before {
	width: 32px;
	height: 32px;
}

.jp-step--board .jp-step__marker::before {
	background: var(--brand-asphalt-black);
}

.jp-step--board .jp-step__marker .material-symbols-outlined {
	color: var(--neutral-white);
}

.jp-step--end .jp-step__marker::before {
	width: 28px;
	height: 28px;
	border: 0;
}

.jp-step--end .jp-step__marker .material-symbols-outlined {
	font-size: 24px;
}

.jp-step--walk {
	padding-top: 6px;
	padding-bottom: 26px;
}

.jp-step--walk .jp-step__marker {
	top: -6px;
}

.jp-step--walk::before {
	top: 6px;
}

.jp-step__body {
	min-width: 0;
}

.jp-step__name {
	display: block;
	color: var(--brand-asphalt-black);
	font-size: 16px;
	line-height: 24px;
}

a.jp-step__name {
	text-decoration: underline;
}

a.jp-step__name:hover {
	color: var(--brand-asphalt-black);
}

.jp-step__name--bold {
	font-weight: 700;
}

.jp-step__sub,
.jp-step__text {
	margin-top: 2px;
	font-size: 14px;
	line-height: 20px;
	white-space: pre-wrap;
}

.jp-step__text {
	margin-top: 0;
}

.jp-step__time {
	display: flex;
	align-self: start;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	white-space: nowrap;
}

.jp-step__time > span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.jp-step__time .material-symbols-outlined {
	color: var(--alerts-positive-text);
	font-size: 16px;
}

.jp-directions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--brand-asphalt-black);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: underline;
	cursor: pointer;
}

.jp-directions .material-symbols-outlined {
	font-size: 12px;
	transform: rotate(90deg);
}

.jp-directions[aria-expanded="true"] .material-symbols-outlined {
	transform: rotate(-90deg);
}

.jp-steps {
	margin-top: 8px;
	padding-left: 18px;
	font-size: 14px;
	line-height: 20px;
}

.jp-steps li + li {
	margin-top: 4px;
}

.jp-steps span {
	color: var(--brand-asphalt-grey);
}

.jp-ride {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 14px;
	line-height: 20px;
}

.jp-ride .jp-leg {
	height: auto;
	margin: 0;
	padding: 4px;
}

.jp-ride__status:empty {
	display: none;
}

.jp-ride + .jp-step__sub {
	margin-top: 8px;
}

.jp-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 24px;
	padding: 0 12px 0 8px;
	border: 1px solid var(--alerts-positive-border);
	border-radius: 32px;
	background: var(--alerts-positive-fill);
	color: var(--alerts-positive-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
	white-space: nowrap;
}

.jp-pill .material-symbols-outlined {
	font-size: 16px;
}

.jp-pill--late {
	border-color: var(--alerts-caution-border);
	background: var(--alerts-caution-fill);
	color: var(--alerts-caution-text);
}

.jp-pill--cancelled {
	padding-left: 12px;
	border-color: var(--sypn-error);
	background: var(--sypn-error-fill);
	color: var(--utilities-light-error);
}

/* =========================================================
   Focus
   ========================================================= */

.jp-link:focus-visible,
.jp-back:focus-visible,
.jp-arrow-link:focus-visible,
.jp-directions:focus-visible,
.jp-step__name:focus-visible,
.jp-alert:focus-visible,
.jp-card__pick:focus-visible {
	outline: 0;
	background: var(--utilities-focus);
	box-shadow: var(--sypn-focus-underline);
	color: var(--brand-asphalt-black);
	text-decoration: none;
}

.jp-swap:focus-visible,
.jp-share:focus-visible,
.jp-more:focus-visible,
.jp-tab:focus-visible,
.jp-planned-toggle:focus-visible,
.jp-primary:focus-visible,
.jp-icon-button:focus-visible,
.jp-list-button:focus-visible,
.jp-map-controls button:focus-visible,
.jp-key__head:focus-visible {
	outline: var(--sypn-focus-outline);
	outline-offset: -2px;
	box-shadow: var(--sypn-focus-ring);
}

.jp-tab:focus-visible {
	outline-offset: -4px;
}

/* =========================================================
   Phones and small tablets (Figma "Mob - Journey Planner")
   ========================================================= */

.jp-mobile-head,
.jp-sheet {
	display: none;
}

@media (max-width: 767.98px) {
	.jp-stage {
		height: auto;
		overflow: visible;
		background: none;
	}

	.jp-stage > .jp-map-area,
	.jp-stage > .jp-map-controls {
		display: none;
	}

	.jp-panel {
		position: static;
		width: auto;
		max-width: none;
		border: 0;
		border-radius: 0;
	}

	.jp-panel__body {
		overflow: visible;
		padding: 24px 16px 32px;
	}

	.jp-when {
		flex-wrap: wrap;
	}

	.jp-when .jp-toggle {
		min-width: fit-content;
	}

	.jp-when .jp-toggle label {
		padding-right: 8px;
		padding-left: 8px;
	}

	.jp-options {
		padding-bottom: 0;
	}

	.jp-back-bar {
		top: 0;
		margin-right: -16px;
		margin-left: -16px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.jp-options__foot {
		margin: auto -16px 0;
		padding: 16px 24px;
	}

	.jp.is-map-view .jp-stage {
		height: max(480px, calc(100vh - var(--jp-top, 61px)));
		height: max(480px, calc(100dvh - var(--jp-top, 61px)));
		overflow: hidden;
	}

	.jp.is-map-view .jp-stage > .jp-map-area {
		display: block;
	}

	.jp.is-map-view .jp-map-controls {
		top: 112px;
		right: 16px;
	}

	.jp.is-map-view .jp-key {
		right: 8px;
		bottom: var(--jp-sheet-height, 0px);
		width: 204px;
	}

	.jp.is-map-view .jp-mobile-head {
		position: absolute;
		top: 16px;
		left: 16px;
		right: 16px;
		z-index: 3;
		display: flex;
		align-items: center;
		gap: 16px;
		padding: 12px;
		border-radius: var(--sypn-radius-md);
		background: var(--neutral-white);
		box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-asphalt-black) 12%, transparent);
	}

	.jp-list-button {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		gap: 8px;
		padding: 8px 16px;
		border: 2px solid var(--brand-asphalt-black-50);
		border-radius: var(--sypn-radius-sm);
		background: var(--neutral-white);
		color: var(--brand-asphalt-black);
		font-size: 16px;
		font-weight: 700;
		line-height: 24px;
		cursor: pointer;
	}

	.jp-list-button .material-symbols-outlined {
		font-size: 20px;
	}

	.jp-mobile-head__text {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		gap: 2px;
		min-width: 0;
	}

	.jp-mobile-head__from {
		overflow: hidden;
		font-size: 18px;
		font-weight: 700;
		line-height: 24px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.jp-mobile-head__meta {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		color: var(--brand-asphalt-black-75);
		font-size: 12px;
		line-height: 20px;
	}

	.jp.is-map-view .jp-sheet {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 3;
		display: flex;
		flex-direction: column;
		gap: 16px;
		max-height: 70%;
		overflow-y: auto;
		padding: 16px;
		border-radius: var(--sypn-radius-md) var(--sypn-radius-md) 0 0;
		background: var(--neutral-white);
		box-shadow: 0 -4px 12px color-mix(in srgb, var(--brand-asphalt-black) 8%, transparent);
	}

	.jp-sheet__handle {
		align-self: center;
		width: 48px;
		height: 3px;
	}

	.jp-sheet__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-height: 48px;
		margin-bottom: -8px;
	}

	.jp-sheet__head h2 {
		font-size: 18px;
		font-weight: 700;
		line-height: 24px;
	}

	.jp-sheet__nav {
		display: flex;
		gap: 8px;
	}

	.jp-icon-button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		padding: 0;
		border: 2px solid var(--brand-asphalt-black-50);
		border-radius: var(--sypn-radius-sm);
		background: var(--neutral-white);
		cursor: pointer;
	}

	.jp-icon-button[aria-disabled="true"] {
		border-color: var(--brand-charcoal-50);
		background: var(--brand-asphalt-grey-25);
		cursor: default;
	}

	.jp-icon-button .material-symbols-outlined {
		font-size: 16px;
	}

	.jp-results--sheet .jp-card {
		padding: 12px 0;
	}

	.jp.is-detail-view .jp-detail-map {
		display: block;
		margin-top: 24px;
	}

	.jp-detail-map .jp-map-area {
		position: relative;
		inset: auto;
		height: 200px;
	}

	.jp-detail-map .jp-key {
		display: none;
	}

	.jp-detail-map .jp-map-controls {
		top: 8px;
		right: 8px;
		padding: 4px;
		gap: 4px;
	}

	.jp-detail-map .jp-map-controls button {
		width: 32px;
		height: 32px;
	}
}
