/* Carlo Tours — Multi-day tours.
   Split head, then a rail that starts on the content column and runs off the
   right edge of the viewport. The cut-off card is the affordance: it tells
   you there is more without needing a scrollbar. */

.carlo-multiday__head {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.carlo-multiday__rail {
	/* The rail is full-bleed; .carlo-rail supplies the content-column inset. */
	padding-right: var(--wp--custom--gutter);
}

/* --- One route card --- */
.carlo-tourcard {
	display: flex;
	flex-direction: column;
	width: clamp(16rem, 74vw, 21.5rem);
}

.carlo-tourcard__media {
	margin: 0 0 var(--wp--preset--spacing--30);
	overflow: hidden;
	background-color: var(--wp--preset--color--surface);
}

.carlo-tourcard__image {
	display: block;
	width: 100%;
	height: clamp(14rem, 32vw, 17rem);
	object-fit: cover;
	transition: transform 0.6s var(--wp--custom--ease);
}

.carlo-tourcard:hover .carlo-tourcard__image {
	transform: scale(1.03);
}

.carlo-tourcard__duration {
	padding-bottom: var(--wp--preset--spacing--20);
	border-bottom: var(--wp--custom--rule) solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--accent);
}

.carlo-tourcard__title {
	margin: var(--wp--preset--spacing--20) 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 500;
	line-height: var(--wp--custom--line-snug);
	letter-spacing: var(--wp--custom--tracking-snug);
	color: var(--wp--preset--color--contrast);
}

.carlo-tourcard__text {
	margin: var(--wp--preset--spacing--20) 0 0;
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-body);
	color: var(--wp--preset--color--muted);
}

/* --- Foot: arrows on the left, the call to action on the right --- */
.carlo-multiday__foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.carlo-multiday__action {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
}

.carlo-multiday__note {
	margin: 0;
	max-width: 46ch;
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

@media (min-width: 900px) {
	.carlo-multiday__foot {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--wp--preset--spacing--50);
	}

	.carlo-multiday__action {
		flex-direction: row;
		align-items: center;
		gap: var(--wp--preset--spacing--30);
	}
}
