/* Rent a vehicle (rent-a-vehicle.php) and one vehicle's page (rental-vehicle.php) */

/* The booking bar: a band across the top of the page, one row of dates and one button. About an inch and a half tall on a desktop; the
   fields wrap on a phone rather than shrinking. */
.rv-bar {
	background-color: #1b2431;
	color: #fff;
	padding: 18px 0;
	box-shadow: 0 2px 8px rgba(18, 26, 38, .18);
}

.rv-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	gap: 12px 16px;
}

.rv-bar-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rv-bar-field label.label {
	color: #cfd6e0;
	font-size: 13px;
	margin: 0 0 4px 0;
	font-weight: 600;
}

.rv-bar-field label.label .required {
	color: #ffb4a8;
}

.rv-bar-field .input {
	margin: 0;
}

.rv-bar-field .input input {
	height: 42px;
}

.rv-bar-date {
	width: 190px;
}

.rv-bar-time {
	width: 120px;
}

.rv-bar-go .btn {
	height: 42px;
	white-space: nowrap;
}

.rv-bar .error,
.rv-bar label.error {
	color: #ffb4a8;
	font-size: 12px;
}

@media (max-width: 767px) {
	.rv-bar-date {
		width: calc(60% - 8px);
	}

	.rv-bar-time {
		width: calc(40% - 8px);
	}

	.rv-bar-go {
		width: 100%;
	}

	.rv-bar-go .btn {
		width: 100%;
	}
}

.rv-title {
	margin: 28px 0 6px 0;
	text-align: center;
}

/* Tiles - the same look as the home page's "Shop by body type" */
.rv-browse-title {
	text-align: center;
	margin: 26px 0 14px 0;
	font-size: 22px;
}

.rv-tile-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	--tile-cols: 5;
	--tile-gap: 16px;
	gap: var(--tile-gap);
}

.rv-tile {
	display: block;
	flex: 0 1 calc((100% - (var(--tile-cols) - 1) * var(--tile-gap)) / var(--tile-cols));
	padding: 14px 12px 12px 12px;
	background-color: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.rv-tile:hover,
.rv-tile:focus {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(18, 26, 38, .12);
	border-color: #cfd4dc;
	text-decoration: none;
}

.rv-tile.rv-tile-active {
	border-color: #1b2431;
	box-shadow: 0 0 0 2px #1b2431;
}

.rv-tile-art {
	display: block;
	height: 90px;
	margin-bottom: 10px;
	background-color: #fff;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	border-radius: 6px;
}

.rv-tile-art-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	color: #9aa4b2;
	background-color: #f1f3f6;
}

.rv-tile-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #1b2431;
}

.rv-tile-count {
	display: block;
	font-size: 12px;
	color: #6b7686;
	margin-top: 2px;
}

.rv-body-section + .rv-body-section {
	border-top: 1px solid #e2e5ea;
	margin-top: 22px;
	padding-top: 4px;
}

@media (max-width: 991px) {
	.rv-tile-grid {
		--tile-cols: 4;
	}
}

@media (max-width: 767px) {
	.rv-tile-grid {
		--tile-cols: 2;
		--tile-gap: 12px;
	}

	.rv-tile-art {
		height: 70px;
	}
}

/* The list of vehicles */
.rv-results-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin: 30px 0 8px 0;
	padding-bottom: 8px;
	border-bottom: 1px solid #e2e5ea;
}

.rv-results-head h2 {
	margin: 0;
	font-size: 22px;
}

.rv-filter-chip {
	font-size: 14px;
}

.rv-hint {
	color: #6b7686;
	margin: 6px 0 0 0;
}

.rv-card {
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.rv-card-photo {
	display: block;
	width: 190px;
	max-width: 34vw;
	border-radius: 4px;
}

.rv-card-photo-none {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	background-color: #f1f3f6;
	color: #9aa4b2;
	font-size: 34px;
}

.rv-card .btn + .btn {
	margin-left: 6px;
}

/* One vehicle's page */
.rv-detail-photo {
	width: 100%;
	border-radius: 6px;
	border: 1px solid #e2e5ea;
}

.rv-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.rv-thumbs img {
	width: 76px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
	border: 2px solid transparent;
	cursor: pointer;
}

.rv-thumbs img.rv-thumb-active {
	border-color: #1b2431;
}

.rv-facts {
	width: 100%;
}

.rv-facts th {
	width: 42%;
	font-weight: 600;
	color: #4a5568;
	padding: 4px 8px 4px 0;
}

.rv-facts td {
	padding: 4px 0;
}

.rv-status {
	margin: 12px 0;
}
