/*
 * FareRabbit V7 static presentation — preview-only additions.
 *
 * Everything else on this site is the WordPress theme's own CSS, copied
 * unchanged (tokens, typography, components, deal-row, home, discovery,
 * journey, location-picker, travel-months). This file only adds what the
 * static preview needs: the "Preview" labels, the non-interactive search
 * fields, the journey overview and the partner section. It uses existing
 * DESIGN_SYSTEM.md tokens only — no new colour, font or size.
 */

/* --- Shared page frame ------------------------------------------------- */
body.fr-v7 {
	font-family: var(--fr-font-body);
}

/* --- Preview labels ------------------------------------------------------ */
.fr-v7-preview-bar {
	background: var(--fr-g5-panel-raised);
	border-bottom: 1px solid var(--fr-g5-line);
	color: var(--fr-g5-text);
}

.fr-v7-preview-bar__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--fr-space-2);
	margin: 0 auto;
	padding-top: var(--fr-space-2);
	padding-bottom: var(--fr-space-2);
	font-size: 0.8rem;
	line-height: 1.4;
}

.home .fr-v7-preview-bar__inner {
	max-width: 1440px;
}

.fr-v7-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px var(--fr-space-2);
	border: 1.5px solid var(--fr-g5-cyan);
	border-radius: var(--fr-radius-pill);
	color: var(--fr-g5-cyan);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* On the white search panel: navy ink outline instead of cyan (contrast). */
.fr-v7-chip--light {
	border-color: var(--fr-g5-ink);
	color: var(--fr-g5-ink);
}

.fr-v7-example-note {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: var(--fr-space-2);
	margin: var(--fr-space-4) 0 0;
	padding: var(--fr-space-3) var(--fr-space-4);
	border: 1px dashed var(--fr-g5-line);
	border-radius: var(--fr-radius-md);
	background: var(--fr-g5-panel);
	color: var(--fr-g5-text-muted);
	font-size: 0.8rem;
	line-height: 1.45;
}

.fr-v7-panel-note {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--fr-space-2);
	margin: var(--fr-space-4) 0 0;
	color: var(--fr-g5-ink-muted);
	font-size: 0.8rem;
	line-height: 1.45;
}

/* --- Non-interactive preview controls ----------------------------------- */
/* The closed search fields look exactly like the theme's triggers but are
   plain text: nothing suggests they can be changed. */
.fr-v7-static-control {
	cursor: default;
	pointer-events: none;
}

.fr-v7-static-form .fr-search-field,
.fr-v7-static-form .fr-discovery-filters__field {
	position: relative;
}

.fr-v7-static-card {
	cursor: default;
}

/* An example card that does not link: no hover lift and no action arrow. */
.fr-deal-row.fr-v7-static-card:hover {
	transform: none;
}

.fr-deal-row__action.fr-v7-static-action {
	padding: 0 var(--fr-space-4);
	border: 1.5px dashed var(--fr-g5-field-border);
	background: transparent;
	color: var(--fr-g5-ink-muted);
	font-weight: 600;
}

.fr-deal-row--compact.fr-v7-static-card .fr-deal-row__action::after {
	display: none;
}

/* Provider buttons are <button>s in the preview (the theme uses links). */
button.fr-provider__action {
	font-family: inherit;
	border: 0;
	cursor: pointer;
}

/* --- Journey overview (homepage) ---------------------------------------- */
.fr-v7-journey__list {
	display: grid;
	gap: var(--fr-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.fr-v7-journey__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.fr-v7-journey__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fr-v7-journey__link {
	display: flex;
	gap: var(--fr-space-4);
	height: 100%;
	padding: var(--fr-space-5);
	border-radius: var(--fr-radius-g5-card);
	background: var(--fr-g5-panel-raised);
	box-shadow: var(--fr-shadow-g5-glow);
	color: var(--fr-g5-text);
	text-decoration: none;
	transition: box-shadow 150ms ease-out;
}

.fr-v7-journey__link:hover {
	box-shadow: 0 0 0 1.5px var(--fr-g5-cyan), 0 10px 30px rgba(0, 8, 32, 0.45);
}

.fr-v7-journey__link:focus-visible {
	outline: 3px solid var(--fr-g5-text);
	outline-offset: 3px;
}

.fr-v7-journey__marker {
	display: inline-flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--fr-g5-cyan);
	color: var(--fr-g5-night);
	font-weight: 800;
}

.fr-v7-journey__body {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-2);
}

.fr-v7-journey__title {
	font-family: var(--fr-font-g5-display);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
}

.fr-v7-journey__text {
	color: var(--fr-g5-text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.fr-v7-journey__more {
	display: inline-flex;
	align-items: center;
	gap: var(--fr-space-1);
	margin-top: auto;
	padding-top: var(--fr-space-2);
	color: var(--fr-g5-cyan);
	font-weight: 700;
	font-size: 0.95rem;
}

.fr-v7-journey__more .fr-icon {
	width: 18px;
	height: 18px;
}

/* --- Partner section ---------------------------------------------------- */
.fr-v7-partner__list {
	display: grid;
	gap: var(--fr-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.fr-v7-partner__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.fr-v7-partner__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fr-v7-partner__card {
	padding: var(--fr-space-5);
	border-radius: var(--fr-radius-g5-card);
	background: var(--fr-g5-panel);
	box-shadow: var(--fr-shadow-g5-glow);
}

.fr-v7-partner__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--fr-radius-md);
	background: var(--fr-g5-panel-raised);
	color: var(--fr-g5-pink);
}

.fr-v7-partner__title {
	margin: var(--fr-space-4) 0 var(--fr-space-2);
	font-family: var(--fr-font-g5-display);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--fr-g5-text);
}

.fr-v7-partner__text {
	margin: 0;
	color: var(--fr-g5-text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.fr-v7-status {
	margin-top: var(--fr-space-6);
	padding: var(--fr-space-5);
	border: 1.5px solid var(--fr-g5-cyan);
	border-radius: var(--fr-radius-g5-card);
	background: var(--fr-g5-panel-raised);
}

@media (min-width: 768px) {
	.fr-v7-status {
		padding: var(--fr-space-6);
	}
}

.fr-v7-status__title {
	margin: 0 0 var(--fr-space-4);
	font-family: var(--fr-font-g5-display);
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--fr-g5-text);
}

.fr-v7-status__list {
	display: grid;
	gap: var(--fr-space-3);
	margin: 0;
}

.fr-v7-status__row {
	display: grid;
	gap: var(--fr-space-1);
	padding-bottom: var(--fr-space-3);
	border-bottom: 1px solid var(--fr-g5-line);
}

@media (min-width: 768px) {
	.fr-v7-status__row {
		grid-template-columns: 180px 1fr;
		gap: var(--fr-space-4);
	}
}

.fr-v7-status__row dt {
	color: var(--fr-g5-cyan);
	font-weight: 800;
}

.fr-v7-status__row dd {
	margin: 0;
	color: var(--fr-g5-text);
}

.fr-v7-status__text {
	margin: var(--fr-space-4) 0 0;
	color: var(--fr-g5-text-muted);
	line-height: 1.5;
}


/* --- Footer note -------------------------------------------------------- */
.fr-v7-footer-note {
	padding-top: var(--fr-space-4);
	padding-bottom: var(--fr-space-5);
}

/* The footer captions use the Gate 5 muted text colour, which is readable
   on navy (the theme's cream-page --fr-text-muted is not). */
.fr-v7 .fr-footer .fr-caption {
	color: var(--fr-g5-text-muted);
}

.fr-v7-footer-note .fr-caption {
	max-width: 70ch;
	font-size: 0.8rem;
	line-height: 1.45;
}

/* --- Preview toast (assets/js/preview.js) -------------------------------- */
.fr-v7-toast {
	position: fixed;
	left: 50%;
	bottom: var(--fr-space-5);
	z-index: 50;
	width: min(480px, calc(100% - 2 * var(--fr-space-4)));
	margin: 0;
	padding: var(--fr-space-3) var(--fr-space-4);
	transform: translateX(-50%);
	border: 1.5px solid var(--fr-g5-cyan);
	border-radius: var(--fr-radius-md);
	background: var(--fr-g5-panel-raised);
	box-shadow: var(--fr-shadow-g5-glow);
	color: var(--fr-g5-text);
	font-size: 0.9rem;
	line-height: 1.45;
}

.fr-v7-toast[hidden] {
	display: none;
}

/* --- V7.1 corrections ---------------------------------------------------- */

/* Correction 7: the planned-approach introduction above the artwork. */
.fr-v7-planned {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: var(--fr-space-2) var(--fr-space-3);
	max-width: 80ch;
	margin: 0 0 var(--fr-space-5);
	color: var(--fr-g5-text);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Correction 4: the fictional tag sits directly above every numeric score. */
.fr-v7-rating-tag {
	display: inline-block;
	margin: 2px auto;
	padding: 1px 6px;
	border: 1px dashed var(--fr-g5-ink);
	border-radius: var(--fr-radius-pill);
	color: var(--fr-g5-ink);
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Correction 2: non-selectable example rows say so in words. */
.fr-v7-row-tag {
	display: block;
	margin-top: 2px;
	color: var(--fr-g5-ink-muted);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
}

.fr-v7-row-tag--go {
	color: var(--fr-success);
}

.fr-date-row.fr-v7-static-card {
	opacity: 0.92;
}

/* Correction 6: a wider label column for the status rows. */
@media (min-width: 768px) {
	.fr-v7-status__list--wide .fr-v7-status__row {
		grid-template-columns: 220px 1fr;
	}
}
