/**
 * Coach Fleet Manager — front end.
 *
 * Everything is scoped to .cf / .cf-page and driven by the custom properties
 * below, so a theme can restyle the fleet by redefining just those.
 */

.cf,
.cf-page {
	--cf-ink: #16202a;
	--cf-body: #4a5763;
	--cf-line: #e3e8ec;
	--cf-soft: #f5f7f8;
	--cf-brand: #0f3d3e;
	--cf-accent: #c8d92a;
	--cf-radius: 14px;
	--cf-gap: 28px;
	--cf-shadow: 0 10px 30px rgba(16, 32, 42, .08);

	color: var(--cf-body);
}

.cf *,
.cf-page * {
	box-sizing: border-box;
}

.cf-wrap {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 20px;
	width: 100%;
}

.cf-page {
	padding: 48px 0 72px;
}

.cf-page__head {
	margin-bottom: 40px;
	max-width: 760px;
}

.cf-page__title {
	color: var(--cf-ink);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.12;
	margin: 0 0 12px;
}

.cf-page__seats {
	color: var(--cf-brand);
	font-weight: 600;
	margin: 0 0 12px;
}

.cf-page__intro {
	font-size: 1.1rem;
	margin: 0;
}

.cf-breadcrumb {
	font-size: .9rem;
	margin: 0 0 14px;
}

.cf-breadcrumb span {
	margin: 0 6px;
	opacity: .5;
}

.cf-eyebrow {
	color: var(--cf-brand);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.cf-head {
	margin: 0 0 26px;
	max-width: 760px;
}

.cf-head__title {
	color: var(--cf-ink);
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	line-height: 1.2;
	margin: 0 0 8px;
}

.cf-head__intro {
	margin: 0;
}

.cf-subhead {
	color: var(--cf-ink);
	font-size: 1.2rem;
	margin: 32px 0 12px;
}

/* Grids
   ------------------------------------------------------------------ */

.cf-grid {
	display: grid;
	gap: var(--cf-gap);
	grid-template-columns: repeat(1, minmax(0, 1fr));
	margin: 0 0 32px;
}

@media (min-width: 640px) {
	.cf-grid--2,
	.cf-grid--3,
	.cf-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.cf-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cf-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Cards
   ------------------------------------------------------------------ */

.cf-card {
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.cf-card:hover,
.cf-card:focus-within {
	box-shadow: var(--cf-shadow);
	transform: translateY(-3px);
}

.cf-card__media {
	aspect-ratio: 3 / 2;
	background: var(--cf-soft);
	display: block;
	overflow: hidden;
}

.cf-card__media .cf-image,
.cf-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.cf-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
}

.cf-card__title {
	color: var(--cf-ink);
	font-size: 1.25rem;
	line-height: 1.25;
	margin: 0;
}

.cf-card__title a {
	color: inherit;
	text-decoration: none;
}

.cf-card__title a:hover,
.cf-card__title a:focus {
	text-decoration: underline;
}

.cf-card__seats {
	color: var(--cf-brand);
	font-weight: 600;
	margin: 0;
}

.cf-card__text,
.cf-card__count {
	margin: 0;
}

.cf-card__count {
	font-size: .9rem;
	opacity: .75;
}

.cf-card .cf-link {
	margin-top: auto;
}

/* Tags and links
   ------------------------------------------------------------------ */

.cf-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cf-tag {
	background: var(--cf-soft);
	border-radius: 100px;
	color: var(--cf-ink);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 5px 12px;
}

.cf-link {
	align-items: center;
	color: var(--cf-brand);
	display: inline-flex;
	font-weight: 700;
	gap: 8px;
	text-decoration: none;
}

.cf-link:hover,
.cf-link:focus {
	text-decoration: underline;
}

.cf-btn {
	background: var(--cf-brand);
	border: 0;
	border-radius: 100px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-weight: 700;
	line-height: 1.2;
	padding: 15px 28px;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.cf-btn:hover,
.cf-btn:focus {
	background: #0b2f30;
	color: #fff;
	transform: translateY(-1px);
}

.cf-actions {
	margin: 26px 0 0;
}

/* Specification list
   ------------------------------------------------------------------ */

.cf-specs {
	border-top: 1px solid var(--cf-line);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cf-specs li {
	border-bottom: 1px solid var(--cf-line);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 9px 0;
}

.cf-specs li span:first-child {
	color: var(--cf-body);
}

.cf-specs li span:last-child {
	color: var(--cf-ink);
	font-weight: 600;
	text-align: right;
}

.cf-specs--full {
	margin-top: 8px;
}

/* Feature list
   ------------------------------------------------------------------ */

.cf-featurelist {
	display: grid;
	gap: 8px 20px;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.cf-featurelist li {
	align-items: center;
	display: flex;
	gap: 9px;
}

.cf-tick {
	align-items: center;
	background: var(--cf-accent);
	border-radius: 50%;
	color: var(--cf-ink);
	display: inline-flex;
	flex: 0 0 20px;
	height: 20px;
	justify-content: center;
	width: 20px;
}

.cf-tick svg {
	fill: currentColor;
	height: 14px;
	width: 14px;
}

/* Two levels of availability, as used in hand-written tables. */

.cf-tick--all {
	background: var(--cf-accent);
	color: var(--cf-ink);
}

.cf-tick--most {
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--cf-accent);
	color: var(--cf-brand);
}

.cf-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.cf-legend li {
	align-items: center;
	display: flex;
	font-size: .92rem;
	gap: 9px;
}

/* Vehicle specification sections
   ------------------------------------------------------------------ */

.cf-vehicle {
	align-items: center;
	border-top: 1px solid var(--cf-line);
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
	padding: 48px 0;
	scroll-margin-top: 90px;
}

.cf-vehicle:first-of-type {
	border-top: 0;
	padding-top: 8px;
}

@media (min-width: 900px) {
	.cf-vehicle {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	}

	.cf-vehicle--flip .cf-vehicle__media {
		order: 2;
	}

	.cf-vehicle--nomedia {
		grid-template-columns: 1fr;
	}
}

.cf-vehicle__title {
	color: var(--cf-ink);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	line-height: 1.2;
	margin: 0 0 12px;
}

.cf-vehicle__title a {
	color: inherit;
	text-decoration: none;
}

.cf-vehicle__title a:hover,
.cf-vehicle__title a:focus {
	text-decoration: underline;
}

.cf-prose > :first-child {
	margin-top: 0;
}

.cf-prose > :last-child {
	margin-bottom: 0;
}

/* Jump navigation
   ------------------------------------------------------------------ */

.cf-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.cf-jump__item {
	background: var(--cf-soft);
	border-radius: 100px;
	color: var(--cf-ink);
	font-size: .88rem;
	font-weight: 600;
	padding: 8px 16px;
	text-decoration: none;
}

.cf-jump__item:hover,
.cf-jump__item:focus {
	background: var(--cf-brand);
	color: #fff;
}

/* Tabs
   ------------------------------------------------------------------ */

.cf-tabs__nav {
	border-bottom: 1px solid var(--cf-line);
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 0 0 8px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: thin;
}

.cf-tabs__tab {
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	color: var(--cf-body);
	cursor: pointer;
	flex: 0 0 auto;
	font: inherit;
	font-weight: 700;
	padding: 14px 20px;
	transition: color .2s ease, border-color .2s ease;
	white-space: nowrap;
}

.cf-tabs__tab:hover {
	color: var(--cf-brand);
}

.cf-tabs__tab.is-active {
	border-bottom-color: var(--cf-brand);
	color: var(--cf-brand);
}

.cf-tabs__tab:focus-visible {
	border-radius: 6px 6px 0 0;
	outline: 2px solid var(--cf-brand);
	outline-offset: -2px;
}

.cf-tabs__panel[hidden] {
	display: none;
}

.cf-tabs__panel:focus {
	outline: none;
}

.cf-tabs__panel .cf-vehicle {
	border-top: 0;
	padding-top: 8px;
}

@media (max-width: 640px) {
	.cf-tabs__tab {
		padding: 12px 14px;
	}
}

/* Gallery
   ------------------------------------------------------------------ */

.cf-gallery-view__main {
	background: var(--cf-soft);
	border: 0;
	border-radius: var(--cf-radius);
	cursor: zoom-in;
	display: block;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.cf-gallery-view__main .cf-image,
.cf-gallery-view__main img {
	aspect-ratio: 16 / 10;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.cf-gallery-view__zoom {
	align-items: center;
	background: rgba(22, 32, 42, .75);
	border-radius: 50%;
	bottom: 12px;
	color: #fff;
	display: flex;
	height: 38px;
	justify-content: center;
	position: absolute;
	right: 12px;
	width: 38px;
}

.cf-gallery-view__zoom svg {
	fill: currentColor;
	height: 18px;
	width: 18px;
}

.cf-gallery-view__thumbs {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 12px 0 0;
	overflow-x: auto;
	padding: 0 0 4px;
}

.cf-gallery-view__thumb {
	background: none;
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	display: block;
	overflow: hidden;
	padding: 0;
	width: 96px;
}

.cf-gallery-view__thumb img {
	aspect-ratio: 3 / 2;
	display: block;
	object-fit: cover;
	width: 100%;
}

.cf-gallery-view__thumb.is-active,
.cf-gallery-view__thumb:hover,
.cf-gallery-view__thumb:focus-visible {
	border-color: var(--cf-brand);
}

/* Lightbox
   ------------------------------------------------------------------ */

.cf-lightbox {
	align-items: center;
	background: rgba(11, 20, 27, .92);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 100000;
}

.cf-lightbox img {
	max-height: 86vh;
	max-width: 100%;
	object-fit: contain;
}

.cf-lightbox__btn {
	align-items: center;
	background: rgba(255, 255, 255, .12);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 1.6rem;
	height: 46px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	width: 46px;
}

.cf-lightbox__btn:hover,
.cf-lightbox__btn:focus-visible {
	background: rgba(255, 255, 255, .28);
}

.cf-lightbox__close {
	right: 18px;
	top: 18px;
}

.cf-lightbox__prev {
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.cf-lightbox__next {
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.cf-lightbox__count {
	bottom: 18px;
	color: rgba(255, 255, 255, .8);
	font-size: .9rem;
	left: 0;
	position: absolute;
	text-align: center;
	width: 100%;
}

/* Comparison table
   ------------------------------------------------------------------ */

.cf-compare {
	margin: 48px 0 0;
}

.cf-compare__title {
	color: var(--cf-ink);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	margin: 0 0 18px;
}

.cf-compare__scroll {
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	overflow-x: auto;
}

.cf-compare__table {
	border-collapse: collapse;
	min-width: 640px;
	width: 100%;
}

.cf-compare__table th,
.cf-compare__table td {
	border-bottom: 1px solid var(--cf-line);
	padding: 12px 16px;
	text-align: center;
}

.cf-compare__table thead th {
	background: var(--cf-soft);
	color: var(--cf-ink);
	font-size: .92rem;
	vertical-align: bottom;
}

.cf-compare__table thead th a {
	color: inherit;
	text-decoration: none;
}

.cf-compare__table thead th a:hover,
.cf-compare__table thead th a:focus {
	text-decoration: underline;
}

.cf-compare__table tbody th {
	background: #fff;
	color: var(--cf-ink);
	font-weight: 600;
	left: 0;
	min-width: 200px;
	position: sticky;
	text-align: left;
}

.cf-compare__table thead th:first-child {
	left: 0;
	position: sticky;
	text-align: left;
	z-index: 1;
}

.cf-compare__table tbody tr:nth-child(even) th,
.cf-compare__table tbody tr:nth-child(even) td {
	background: #fbfcfc;
}

.cf-compare__table .cf-no {
	color: #9aa5ad;
}

/* A table written by hand gets the same treatment as the built-in one. */

.cf-compare__static {
	-webkit-overflow-scrolling: touch;
	overflow-x: auto;
}

.cf-compare__static table {
	border: 1px solid var(--cf-line);
	border-collapse: collapse;
	border-radius: var(--cf-radius);
	min-width: 640px;
	overflow: hidden;
	width: 100%;
}

.cf-compare__static th,
.cf-compare__static td {
	border-bottom: 1px solid var(--cf-line);
	padding: 12px 16px;
	text-align: center;
}

.cf-compare__static thead th {
	background: var(--cf-soft);
	color: var(--cf-ink);
	font-size: .92rem;
	vertical-align: bottom;
}

.cf-compare__static tbody th {
	color: var(--cf-ink);
	font-weight: 600;
	min-width: 200px;
	text-align: left;
}

.cf-compare__static tbody tr:nth-child(even) th,
.cf-compare__static tbody tr:nth-child(even) td {
	background: #fbfcfc;
}

.cf-compare__static tbody tr:last-child th,
.cf-compare__static tbody tr:last-child td {
	border-bottom: 0;
}

.cf-compare__static .cf-tick {
	margin: 0 auto;
}

.cf-compare__static .cf-legend .cf-tick {
	margin: 0;
}

.cf-compare__table .cf-tick {
	margin: 0 auto;
}

/* Placeholder image
   ------------------------------------------------------------------ */

.cf-image--placeholder {
	align-items: center;
	background: var(--cf-soft);
	color: #c3ccd2;
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: 180px;
	width: 100%;
}

.cf-image--placeholder svg {
	fill: currentColor;
	width: 74px;
}

/* Misc
   ------------------------------------------------------------------ */

.cf-notice {
	background: #fff8e5;
	border: 1px dashed #e0c268;
	border-radius: 8px;
	color: #7a5c12;
	margin: 16px 0;
	padding: 14px 18px;
}

.cf-formblock {
	margin: 56px 0 0;
}

/* Page-builder content added around the fleet */

.cf-extra,
.cf-builder {
	margin: 48px 0;
}

.cf-extra > :first-child,
.cf-builder > :first-child {
	margin-top: 0;
}

.cf-extra > :last-child,
.cf-builder > :last-child {
	margin-bottom: 0;
}

/* Builder rows inside a vehicle description need their own full width. */

.cf-prose--builder .vc_row {
	margin-left: 0;
	margin-right: 0;
}

.cf-backlink {
	margin: 40px 0 0;
}

.cf-single__layout {
	display: grid;
	gap: 44px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.cf-single__layout {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}
}

.cf .screen-reader-text,
.cf-page .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
	width: 1px;
}

@media (prefers-reduced-motion: reduce) {
	.cf-card,
	.cf-btn {
		transition: none;
	}

	.cf-card:hover,
	.cf-card:focus-within,
	.cf-btn:hover,
	.cf-btn:focus {
		transform: none;
	}
}
