/*
 * Four-step Deal Discovery journey (DECISIONS.md D324;
 * PHASE_6_FOUR_STEP_JOURNEY.md) — loaded on Deal Discovery and on Deal pages
 * (functions.php), before discovery.css.
 *
 * 1. The shared four-stage indicator (moved from discovery.css unchanged,
 *    apart from the removed "Coming later" dimming, D326).
 * 2. The navy journey pages — Step 2 (Date Options), Step 3 (Selected
 *    Flight) and Step 4 (Booking Options) — built to the approved Phase 1–4
 *    reference (D326), scoped to body.fr-journey-page: the same shell as
 *    Deal Discovery (Gate 6 V2). Step 2 cards ARE the approved Phase 1
 *    compact row card (deal-row.css, unchanged); only their first zone
 *    (calendar + dates) is styled here.
 * 3. The journey band above the bare Deal page.
 *
 * Tokens only (assets/css/tokens.css); glows are color-mix() of tokens.
 * Mobile-first; every control is at least 44px tall.
 */

/* --- Four-stage journey indicator (template-parts/journey-stepper.php) ---
   Moved unchanged from discovery.css (Gate 6 V2, D309-D311). As prominent as
   in the approved reference: large numbered circles joined by a bright line;
   the current stage is a filled cyan circle with a strong glow. D324: stages
   still to come are dimmed (formerly "Coming later"); completed stages are
   plain links back. Sizes are fixed per breakpoint so the joining line meets
   each circle. */
.fr-stepper {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 640px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.fr-stepper__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--fr-space-1);
	min-width: 0;
	text-align: center;
	color: var(--fr-g5-text-muted);
	font-size: 0.75rem;
	line-height: 1.2;
}

/* The joining line, from the previous circle to this one. */
.fr-stepper__step + .fr-stepper__step::before {
	content: "";
	position: absolute;
	top: 14px;
	right: calc(50% + 21px);
	left: calc(-50% + 21px);
	height: 2px;
	background: color-mix(in srgb, var(--fr-g5-text) 70%, transparent);
}

/* The line leaving the current stage carries its cyan light. */
.fr-stepper__step--current + .fr-stepper__step::before {
	background: linear-gradient(90deg, var(--fr-g5-neon-cyan) 0%, color-mix(in srgb, var(--fr-g5-text) 70%, transparent) 100%);
}

.fr-stepper__marker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 2px solid var(--fr-g5-text);
	border-radius: 50%;
	background: color-mix(in srgb, var(--fr-g5-night) 70%, transparent);
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--fr-g5-text);
	box-shadow: 0 0 10px color-mix(in srgb, var(--fr-g5-text) 22%, transparent);
	cursor: default;
}

.fr-stepper__name {
	font-weight: 600;
	color: var(--fr-g5-text);
}

.fr-stepper__step--current .fr-stepper__marker {
	border-color: var(--fr-g5-neon-cyan);
	background: var(--fr-g5-neon-cyan);
	color: var(--fr-g5-night);
	box-shadow:
		0 0 0 5px color-mix(in srgb, var(--fr-g5-neon-cyan) 30%, transparent),
		0 0 18px var(--fr-g5-neon-cyan),
		0 0 40px color-mix(in srgb, var(--fr-g5-neon-cyan) 60%, transparent);
}

.fr-stepper__step--current .fr-stepper__name {
	color: var(--fr-g5-neon-cyan);
}

/* D326: every stage other than the current one looks the same, as in the
   approved reference (completed stages are links, later ones plain text).
   The former "Coming later" dimming is gone with the note. */

.fr-stepper__step--current .fr-stepper__name {
	font-weight: 800;
}


@media (max-width: 359px) {
	.fr-stepper__step {
		font-size: 0.66rem;
	}
}

@media (min-width: 768px) {
	.fr-stepper__step {
		gap: var(--fr-space-2);
		font-size: 0.85rem;
	}

	.fr-stepper__step + .fr-stepper__step::before {
		top: 18px;
		right: calc(50% + 26px);
		left: calc(-50% + 26px);
		height: 3px;
	}

	.fr-stepper__marker {
		width: 38px;
		height: 38px;
		border-width: 2.5px;
		font-size: 1.05rem;
	}
}


/* Completed stages link back; the link keeps the stage's own look and a 44px target. */
.fr-stepper__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: inherit;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
	border-radius: var(--fr-radius-sm);
}

.fr-stepper__link:hover .fr-stepper__name,
.fr-stepper__link:focus-visible .fr-stepper__name {
	color: var(--fr-g5-neon-cyan);
	text-decoration: underline;
}

/* --- Navy journey page shell (Steps 2-4): the Deal Discovery shell --- */
body.fr-journey-page {
	background:
		radial-gradient(55% 520px at 100% 0, color-mix(in srgb, var(--fr-g5-neon-pink) 22%, transparent) 0%, transparent 70%),
		radial-gradient(45% 480px at 0 240px, color-mix(in srgb, var(--fr-g5-neon-cyan) 14%, transparent) 0%, transparent 70%),
		radial-gradient(60% 600px at 50% 100%, color-mix(in srgb, var(--fr-g5-neon-purple) 14%, transparent) 0%, transparent 70%),
		var(--fr-g5-night);
	background-repeat: no-repeat;
	color: var(--fr-g5-text);
}

.fr-journey,
.fr-journey-band {
	padding: var(--fr-space-4) 0 var(--fr-space-6);
	color: var(--fr-g5-text);
}

.fr-journey :focus-visible,
.fr-journey-band :focus-visible {
	outline: 3px solid var(--fr-focus-ring-inverse);
	outline-offset: 3px;
}

.fr-journey .fr-deal-row:focus-visible,
.fr-journey .fr-provider__action:focus-visible {
	outline: 3px solid var(--fr-focus-ring-inverse);
	outline-offset: 3px;
}

/* The heading and route, as Deal Discovery's hero (discovery.css). */
.fr-journey__headline {
	margin: var(--fr-space-4) 0 0;
	font-family: var(--fr-font-g5-display);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--fr-g5-text);
}

.fr-journey__subhead {
	margin: var(--fr-space-1) 0 var(--fr-space-4);
	font-size: 1.05rem;
	color: color-mix(in srgb, var(--fr-g5-text) 88%, transparent);
	overflow-wrap: anywhere;
}

.fr-journey__summary span {
	display: block;
}

.fr-journey__caption {
	margin: var(--fr-space-3) 0 0;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--fr-g5-text-muted);
}

.fr-journey__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fr-space-3);
	margin: var(--fr-space-4) 0 0;
}

.fr-journey-notice {
	margin: var(--fr-space-4) 0 0;
	padding: var(--fr-space-4);
	border: 1px solid color-mix(in srgb, var(--fr-g5-pink) 55%, transparent);
	border-radius: var(--fr-radius-g5-card);
	background: color-mix(in srgb, var(--fr-g5-panel-raised) 80%, transparent);
	font-size: 0.95rem;
	line-height: 1.5;
}

.fr-journey-notice p {
	margin: 0;
}

/* --- Step 2: the approved Phase 1 compact row card, first zone = dates --- */
.fr-date-options {
	display: grid;
	gap: var(--fr-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fr-date-row__trip {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.fr-date-row__icon {
	flex: none;
	display: inline-flex;
	color: var(--fr-g5-ink);
}

.fr-date-row__icon .fr-icon {
	width: 22px;
	height: 22px;
	stroke-width: 2.1;
}

/* The reference's card height, with or without a rating score. */
.fr-journey .fr-date-row {
	min-height: 88px;
}

.fr-date-row__dates {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-width: 0;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--fr-g5-ink);
}

.fr-date-row__nights {
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--fr-g5-ink-muted);
}

/* --- Step 3: Selected Flight --- */
.fr-selected {
	display: grid;
	gap: var(--fr-space-4);
	margin-top: var(--fr-space-4);
}

.fr-selected__summary,
.fr-selected__flight,
.fr-providers {
	position: relative;
	overflow: hidden;
	border-radius: var(--fr-radius-g5-card);
	background: var(--fr-surface);
	color: var(--fr-g5-ink);
	box-shadow:
		-10px -3px 22px -8px color-mix(in srgb, var(--fr-g5-neon-pink) 70%, transparent),
		10px -3px 22px -8px color-mix(in srgb, var(--fr-g5-neon-cyan) 70%, transparent),
		0 -1px 10px -2px color-mix(in srgb, var(--fr-g5-neon-purple) 45%, transparent),
		0 8px 20px color-mix(in srgb, var(--fr-g5-night) 70%, transparent);
}

.fr-selected__summary::before,
.fr-selected__flight::before,
.fr-providers::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--fr-g5-gradient-neon);
}

/* Phones: the heading and route sit on the navy page, as in the reference. */
.fr-selected__summary {
	overflow: visible;
	background: none;
	color: var(--fr-g5-text);
	box-shadow: none;
}

.fr-selected__summary::before {
	content: none;
}

.fr-selected__title {
	margin: var(--fr-space-4) 0 0;
	font-family: var(--fr-font-g5-display);
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.12;
	color: inherit;
}

.fr-selected__route {
	margin: var(--fr-space-1) 0 0;
	font-size: 1rem;
	font-weight: 600;
	color: inherit;
}

.fr-selected__meta {
	margin: 2px 0 0;
	font-size: 0.9rem;
	color: var(--fr-g5-text-muted);
}

.fr-selected__rating--wide {
	display: none;
}

.fr-selected__flight {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"airline rating"
		"itinerary itinerary"
		"baggage baggage";
	gap: var(--fr-space-3);
	align-items: center;
	padding: var(--fr-space-5) var(--fr-space-4) var(--fr-space-4);
}

.fr-selected__airline { grid-area: airline; min-width: 0; }
.fr-selected__rating--narrow { grid-area: rating; }
.fr-selected__itinerary { grid-area: itinerary; }
.fr-selected__baggage { grid-area: baggage; }

/* D328: the airline logo beside (phones: instead of) its name. */
.fr-selected__airline {
	display: flex;
	align-items: center;
	gap: var(--fr-space-3);
}

.fr-selected__names {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fr-brand-logo {
	display: block;
	max-width: 100%;
	object-fit: contain;
}

.fr-selected__logo .fr-brand-logo {
	width: 112px;
	height: 56px;
	object-position: left center;
}

/* On phones the reference shows the logo alone; the name stays for screen readers. */
.fr-selected__airline.fr-has-logo .fr-selected__names {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.fr-selected__carrier {
	display: block;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--fr-g5-ink);
	overflow-wrap: anywhere;
}

.fr-selected__operator {
	display: block;
	margin: 2px 0 0;
	font-size: 0.8rem;
	color: var(--fr-g5-ink-muted);
}

.fr-selected__airports {
	display: flex;
	align-items: center;
	gap: var(--fr-space-3);
	margin: 0;
}

.fr-selected__airport {
	font-family: var(--fr-font-g5-display);
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--fr-g5-ink);
}

/* The reference's route line: two dots joined by a line, the plane in the middle. */
.fr-selected__line {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 20px;
}

.fr-selected__line::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1.5px;
	background: var(--fr-g5-ink-muted);
}

.fr-selected__line::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 7px;
	transform: translateY(-50%);
	background:
		radial-gradient(circle at 3.5px 50%, var(--fr-surface) 2px, var(--fr-g5-ink-muted) 2.1px, var(--fr-g5-ink-muted) 3.5px, transparent 3.6px),
		radial-gradient(circle at calc(100% - 3.5px) 50%, var(--fr-surface) 2px, var(--fr-g5-ink-muted) 2.1px, var(--fr-g5-ink-muted) 3.5px, transparent 3.6px);
}

.fr-selected__plane {
	position: relative;
	z-index: 1;
	display: inline-flex;
	padding: 0 6px;
	background: var(--fr-surface);
	color: var(--fr-g5-ink);
}

.fr-selected__plane .fr-icon {
	width: 22px;
	height: 22px;
	transform: rotate(45deg);
}

.fr-selected__stops {
	margin: 2px 0 0;
	font-size: 0.8rem;
	text-align: center;
	color: var(--fr-g5-ink-muted);
}

.fr-selected__baggage {
	display: flex;
	align-items: center;
	gap: var(--fr-space-3);
	padding: var(--fr-space-3) var(--fr-space-4);
	border-radius: var(--fr-radius-md);
	background: var(--fr-g5-rating-below-bg);
}

.fr-selected__baggage p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--fr-g5-ink);
}

/* The reference's green bag: a handle over a rounded body (decorative). */
.fr-selected__bag {
	position: relative;
	flex: none;
	width: 18px;
	height: 23px;
	margin-top: 5px;
	border-radius: 3px;
	background: var(--fr-g5-rating-below);
}

.fr-selected__bag::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 4px;
	width: 8px;
	height: 6px;
	border: 2px solid var(--fr-g5-rating-below);
	border-bottom: 0;
	border-radius: 3px 3px 0 0;
	box-sizing: border-box;
}

.fr-selected__rating .fr-rating__label {
	font-size: 0.8rem;
	white-space: nowrap;
}

.fr-selected__rating .fr-rating__band {
	font-size: 0.75rem;
}

/* A genuine rated band: the approved halftone dots (as the compact card). */
.fr-selected__rating .fr-rating--below_usual { --fr-rating-dots: url(../images/rating-dots-below.png); }
.fr-selected__rating .fr-rating--around_usual { --fr-rating-dots: url(../images/rating-dots-around.png); }
.fr-selected__rating .fr-rating--above_usual { --fr-rating-dots: url(../images/rating-dots-above.png); }

.fr-selected__rating .fr-rating__score::before,
.fr-selected__rating .fr-rating__score::after {
	background: var(--fr-rating-dots, none) 0 50% / auto 100% no-repeat;
	-webkit-mask-image: none;
	mask-image: none;
	opacity: 1;
}

.fr-selected__rating .fr-rating__score::after {
	background-position: 100% 50%;
}

.fr-selected__actions {
	display: flex;
	flex-direction: column-reverse;
	gap: var(--fr-space-3);
	margin: 0;
}

.fr-selected__actions .fr-g5-btn {
	width: 100%;
	min-height: 52px;
	text-align: center;
}

.fr-selected__continue {
	font-size: 1.05rem;
	box-shadow: 0 0 22px color-mix(in srgb, var(--fr-g5-neon-pink) 55%, transparent);
}

/* --- Step 4: Booking Options --- */
.fr-journey__headline--book {
	font-size: 1.55rem;
}

.fr-providers {
	margin: 0;
	padding: 5px 0 0;
	list-style: none;
}

.fr-provider {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) 122px;
	gap: var(--fr-space-2);
	align-items: center;
	min-height: 64px;
	padding: 10px var(--fr-space-3);
}

.fr-provider + .fr-provider {
	border-top: 1px solid var(--fr-g5-field-border);
}

/* D328: the provider's logo in place of its name (the name returns if no
   approved logo exists or the image fails). */
.fr-provider__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.fr-provider__brand .fr-brand-logo {
	width: auto;
	height: 30px;
	max-width: 100%;
	object-position: left center;
}

.fr-provider__brand.fr-has-logo .fr-provider__name {
	display: none;
}

.fr-provider__name {
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--fr-g5-ink);
	overflow-wrap: break-word;
}

.fr-provider__price {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fr-provider__amount {
	font-family: var(--fr-font-g5-display);
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--fr-g5-ink);
}

.fr-provider__meaning {
	font-size: 0.56rem;
	line-height: 1.3;
	color: var(--fr-g5-ink-muted);
	white-space: nowrap;
}

.fr-provider__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 44px;
	padding: 4px 6px;
	border-radius: var(--fr-radius-sm);
	background: var(--fr-g5-book-action);
	color: var(--fr-g5-text);
	font-size: 0.66rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.fr-provider__action:hover {
	filter: brightness(1.08);
}

/* "Go Down the Rabbit Hole": navy panel, neon gradient frame, the approved rabbit. */
.fr-rabbit-hole {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	gap: var(--fr-space-3);
	align-items: center;
	margin-top: var(--fr-space-5);
	padding: var(--fr-space-2) var(--fr-space-3) var(--fr-space-2) var(--fr-space-2);
	border: 2px solid transparent;
	border-radius: var(--fr-radius-g5-card);
	background:
		linear-gradient(var(--fr-g5-panel), var(--fr-g5-panel)) padding-box,
		var(--fr-g5-gradient-neon) border-box;
	box-shadow:
		-10px 0 24px -10px color-mix(in srgb, var(--fr-g5-neon-pink) 70%, transparent),
		10px 0 24px -10px color-mix(in srgb, var(--fr-g5-neon-cyan) 70%, transparent);
}

.fr-rabbit-hole__rabbit {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.fr-rabbit-hole__title {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--fr-g5-text);
}

.fr-rabbit-hole__pink { color: var(--fr-g5-neon-pink); }
.fr-rabbit-hole__cyan { color: var(--fr-g5-neon-cyan); }

.fr-rabbit-hole__lead {
	display: none;
	margin: 2px 0 0;
	font-size: 0.9rem;
	color: var(--fr-g5-text);
}

.fr-rabbit-hole__dots {
	display: none;
	width: 56px;
	height: 48px;
	background-image: radial-gradient(circle, var(--fr-g5-neon-cyan) 1.2px, transparent 1.6px);
	background-size: 6px 6px;
	-webkit-mask-image: radial-gradient(closest-side, black 30%, transparent 100%);
	mask-image: radial-gradient(closest-side, black 30%, transparent 100%);
}

.fr-rabbit-hole__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 8px;
	border: 1.5px solid var(--fr-g5-text);
	border-radius: var(--fr-radius-md);
	color: var(--fr-g5-text);
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.fr-rabbit-hole__action:hover {
	border-color: var(--fr-g5-neon-cyan);
	color: var(--fr-g5-neon-cyan);
}

/* --- Journey band above the bare Deal page --- */
.fr-journey-band {
	padding: var(--fr-space-4) 0 var(--fr-space-5);
	background:
		radial-gradient(55% 260px at 100% 0, color-mix(in srgb, var(--fr-g5-neon-pink) 22%, transparent) 0%, transparent 70%),
		var(--fr-g5-night);
}

.fr-journey-band .fr-journey__actions {
	justify-content: center;
}

/* Small phones: the date and provider rows keep one line of columns. */
@media (max-width: 374px) {
	.fr-date-row__icon {
		display: none;
	}

	.fr-date-row__dates {
		font-size: 0.82rem;
	}

	.fr-provider {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.fr-provider__action {
		grid-column: 1 / -1;
	}
}

@media (min-width: 375px) {
	.fr-rabbit-hole__title {
		white-space: nowrap;
	}
}

@media (min-width: 600px) {
	.fr-rabbit-hole {
		grid-template-columns: 104px minmax(0, 1fr) auto auto;
		gap: var(--fr-space-4);
		min-height: 96px;
		padding: 6px var(--fr-space-5) 6px var(--fr-space-3);
	}

	.fr-rabbit-hole__rabbit {
		width: 104px;
		height: 104px;
		margin: -14px 0 -10px;
	}

	.fr-rabbit-hole__title {
		font-size: 1.5rem;
	}

	.fr-rabbit-hole__lead {
		font-size: 1.02rem;
	}

	.fr-rabbit-hole__lead,
	.fr-rabbit-hole__dots {
		display: block;
	}

	.fr-rabbit-hole__action {
		min-height: 54px;
		padding: 0 var(--fr-space-7);
		font-size: 1.12rem;
	}
}

@media (min-width: 768px) {
	.fr-journey__headline {
		margin-top: var(--fr-space-5);
		font-size: 2.4rem;
		line-height: 1.15;
	}

	.fr-journey__headline--book {
		margin-top: var(--fr-space-4);
		font-size: 1.85rem;
	}

	.fr-journey__subhead {
		font-size: 1.45rem;
	}

	.fr-journey--book .fr-journey__subhead {
		font-size: 1.25rem;
	}

	.fr-journey__summary span {
		display: inline;
	}

	.fr-journey__summary-trip::before {
		content: " · ";
	}

	/* Step 2: the dates on one line, the nights muted beside them. */
	.fr-date-row__trip {
		gap: var(--fr-space-5);
	}

	.fr-date-row__icon .fr-icon {
		width: 34px;
		height: 34px;
	}

	.fr-journey .fr-date-row {
		min-height: 108px;
		padding-top: 14px;
		padding-bottom: 12px;
	}

	/* The reference's compact Date Options card: a smaller fare and rating
	   than the Phase 1 Discovery card (deal-row.css, unchanged), so a rated
	   card keeps the reference's height. Scoped to Step 2 only. */
	.fr-journey .fr-date-row .fr-deal-row__price {
		font-size: 2.2rem;
	}

	.fr-journey .fr-date-row .fr-rating {
		gap: 2px;
	}

	.fr-journey .fr-date-row .fr-rating__label {
		font-size: 0.8rem;
	}

	.fr-journey .fr-date-row .fr-rating__score {
		padding: 0 30px;
		font-size: 2.15rem;
	}

	.fr-journey .fr-date-row .fr-rating__score::before,
	.fr-journey .fr-date-row .fr-rating__score::after {
		width: 25px;
		height: 48px;
	}

	.fr-journey .fr-date-row .fr-rating:not(.fr-rating--unrated) .fr-rating__band {
		padding: 2px var(--fr-space-3);
		font-size: 0.78rem;
	}

	.fr-date-row__dates {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 0.35em;
		font-size: 1.35rem;
	}

	.fr-date-row__nights {
		font-size: inherit;
	}

	/* Step 3: two white cards, as in the reference. */
	.fr-selected__summary {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
		align-items: center;
		overflow: hidden;
		min-height: 176px;
		padding: var(--fr-space-6) var(--fr-space-6) var(--fr-space-5) var(--fr-space-6);
		background: var(--fr-surface);
		color: var(--fr-g5-ink);
		box-shadow:
			-10px -3px 22px -8px color-mix(in srgb, var(--fr-g5-neon-pink) 70%, transparent),
			10px -3px 22px -8px color-mix(in srgb, var(--fr-g5-neon-cyan) 70%, transparent),
			0 -1px 10px -2px color-mix(in srgb, var(--fr-g5-neon-purple) 45%, transparent),
			0 8px 20px color-mix(in srgb, var(--fr-g5-night) 70%, transparent);
	}

	.fr-selected__summary::before,
	.fr-selected__flight::before,
	.fr-providers::before {
		content: "";
		height: 7px;
	}

	.fr-selected__title {
		margin: 0;
		font-size: 2.55rem;
		color: var(--fr-g5-ink);
	}

	.fr-selected__route {
		margin-top: var(--fr-space-1);
		font-size: 1.6rem;
		font-weight: 700;
	}

	.fr-selected__meta {
		margin-top: var(--fr-space-2);
		font-size: 1.25rem;
		color: var(--fr-g5-ink-muted);
	}

	.fr-selected__rating--wide {
		display: flex;
		align-self: stretch;
		align-items: center;
		justify-content: center;
		padding-left: var(--fr-space-5);
		border-left: 1px solid var(--fr-g5-field-border);
	}

	.fr-selected__rating--narrow {
		display: none;
	}

	.fr-selected__rating--wide .fr-rating__label {
		font-size: 1.1rem;
	}

	.fr-selected__rating--wide .fr-rating__score {
		padding: 0 48px;
		font-size: 3.1rem;
		line-height: 1.1;
	}

	.fr-selected__rating--wide .fr-rating__score::before,
	.fr-selected__rating--wide .fr-rating__score::after {
		width: 38px;
		height: 72px;
	}

	.fr-selected__rating--wide .fr-rating__band {
		padding: 5px var(--fr-space-4);
		font-size: 1rem;
	}

	.fr-selected__flight {
		grid-template-columns: minmax(250px, 1fr) minmax(0, 0.95fr) minmax(250px, 1.05fr);
		grid-template-areas: "airline itinerary baggage";
		gap: 0;
		min-height: 136px;
		padding: var(--fr-space-6) var(--fr-space-5) var(--fr-space-5);
	}

	.fr-selected__baggage p {
		font-size: 1.05rem;
	}

	.fr-selected__bag {
		width: 22px;
		height: 28px;
	}

	.fr-selected__stops {
		font-size: 1rem;
	}

	.fr-selected__airline,
	.fr-selected__itinerary,
	.fr-selected__baggage {
		align-self: stretch;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.fr-selected__airline {
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		gap: var(--fr-space-4);
		padding-right: var(--fr-space-5);
	}

	.fr-selected__airline.fr-has-logo .fr-selected__names {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}

	.fr-selected__logo .fr-brand-logo {
		width: 96px;
		height: 64px;
	}

	.fr-provider__brand .fr-brand-logo {
		height: 44px;
		max-width: 180px;
	}

	.fr-selected__itinerary {
		padding: 0 var(--fr-space-5);
		border-left: 1px solid var(--fr-g5-field-border);
		border-right: 1px solid var(--fr-g5-field-border);
	}

	.fr-selected__baggage {
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		margin-left: var(--fr-space-5);
	}

	.fr-selected__carrier {
		font-size: 1.4rem;
	}

	.fr-selected__operator {
		font-size: 0.95rem;
	}

	.fr-selected__airport {
		font-size: 1.75rem;
	}

	.fr-selected__actions {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.fr-selected__actions .fr-g5-btn {
		width: auto;
		min-height: 62px;
	}

	.fr-selected__change {
		padding: 0 var(--fr-space-5);
		font-size: 1.1rem;
		font-weight: 500;
	}

	.fr-selected__continue {
		min-width: min(380px, 42%);
		font-size: 1.2rem;
	}

	/* Step 4: wide rows — provider | price (divider) | button. */
	.fr-providers {
		padding-top: 7px;
	}

	.fr-provider {
		grid-template-columns: minmax(0, 1fr) 230px 270px;
		gap: var(--fr-space-5);
		min-height: 68px;
		padding: 10px var(--fr-space-6);
	}

	.fr-provider__name {
		font-size: 1.4rem;
	}

	.fr-provider__price {
		align-self: stretch;
		justify-content: center;
		padding-left: var(--fr-space-5);
		border-left: 1px solid var(--fr-g5-field-border);
	}

	.fr-provider__amount {
		font-size: 1.6rem;
	}

	.fr-provider__meaning {
		font-size: 0.8rem;
		white-space: normal;
	}

	.fr-provider__action {
		min-height: 50px;
		padding: 4px var(--fr-space-3);
		font-size: 0.98rem;
	}
}

@media (min-width: 1024px) {
	body.fr-journey-page #fr-main {
		width: calc(100% - 2 * var(--fr-space-4));
		max-width: 1320px;
		margin: var(--fr-space-5) auto 0;
		padding-bottom: var(--fr-space-6);
		border: 1px solid color-mix(in srgb, var(--fr-g5-neon-cyan) 30%, transparent);
		border-radius: 28px;
		background: linear-gradient(180deg, color-mix(in srgb, var(--fr-g5-panel-raised) 55%, transparent) 0%, color-mix(in srgb, var(--fr-g5-night) 40%, transparent) 100%);
		box-shadow:
			0 0 0 1px color-mix(in srgb, var(--fr-g5-neon-purple) 18%, transparent),
			0 0 42px -6px color-mix(in srgb, var(--fr-g5-neon-cyan) 35%, transparent),
			inset 0 1px 24px color-mix(in srgb, var(--fr-g5-neon-cyan) 10%, transparent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fr-journey .fr-deal-row,
	.fr-journey .fr-deal-row:hover {
		transition: none;
		transform: none;
	}
}
