/* Product Cards — vertical trip/offer cards used in grids and mobile
   scroll-snap carousels (departing-soon strips, related trips, etc.).
   Values measured from the reference compiled CSS; rules written fresh.
   Carousels use CSS scroll-snap instead of a JS slider. */

.product-cards + .product-cards { margin-top: var(--grid-col-gutter); }

/* Card */
.product-cards__card {
	background-color: var(--color-soft-white);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}
.product-cards__card:hover .product-cards__image::before { opacity: 0.85; }
.product-cards__card:hover img { transform: scale(var(--scale-size)); }

/* Media */
.product-cards__image-wrap {
	display: block;
	height: 100%;
	position: relative;
}
.product-cards__image {
	display: block;
	height: 210px;
	margin-bottom: 0;
	overflow: hidden;
	position: relative;
}
.product-cards__image img {
	height: 100%;
	object-fit: cover;
	object-position: center center;
	position: relative;
	transition-duration: var(--transition-time);
	transition-property: all;
	transition-timing-function: var(--transition-easing);
	width: 100%;
}
.product-cards__tag {
	background-color: var(--color-soft-white);
	border-radius: 0;
	color: var(--color-soft-black);
	display: inline-block;
	left: 10px;
	padding: 6px 8px;
	position: absolute;
	top: 10px;
	z-index: 1;
}

/* Content */
.product-cards__content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: var(--grid-col-gutter);
}
.product-cards__content > * { margin-bottom: 12px; }
@media screen and (min-width: 768px) {
	.product-cards__content > * { margin-bottom: 20px; }
}
.product-cards__content > :last-child { margin-bottom: 0; }
.product-cards__content a {
	color: var(--color-burgundy-2);
	text-decoration: none;
}
@media screen and (min-width: 768px) {
	.product-cards--cols-3 .product-cards__content {
		padding: 22px var(--grid-col-gutter) 25px;
	}
}

.product-cards__category {
	color: var(--color-gray-600);
	margin-bottom: 5px;
}
.product-cards__title { margin-bottom: 10px; }
.product-cards__title a { text-decoration: none; }
.product-cards__title-link { margin-bottom: 10px; }

.product-cards__btn {
	margin-top: auto;
	width: 100%;
}

/* Bordered two-cell info block */
.product-cards__info {
	border: 1px solid var(--color-gray-300);
	border-radius: 0;
	display: flex;
	position: relative;
	text-align: center;
}
.product-cards__info::after {
	background-color: var(--color-gray-300);
	content: "";
	height: 100%;
	left: 0;
	margin: 0 auto;
	position: absolute;
	right: 0;
	top: 0;
	width: 1px;
}
.product-cards__info-title {
	color: var(--color-gray-600);
	margin: 0;
}
.product-cards__info-item {
	flex: 1;
	min-width: 0;
	padding: 12px 5px;
}
@media screen and (min-width: 768px) {
	.product-cards__info-item { padding: 12px 15px; }
}
.product-cards__info-item > * + * { margin-top: 4px; }
.product-cards__info-item ul {
	align-items: center;
	display: flex;
	justify-content: center;
	list-style: none;
	padding-left: 0;
}
@media screen and (min-width: 768px) {
	.product-cards__info-item ul { display: block; }
}
@media screen and (min-width: 1024px) {
	.product-cards__info-item ul { display: flex; }
}
.product-cards--cols-3 .product-cards__info-item ul { flex-direction: column; }
.product-cards__info-item li + li::before {
	content: "\2022";
	line-height: 1;
	margin: 0 4px;
}
@media screen and (min-width: 768px) {
	.product-cards__info-item li + li::before { display: none; }
}
@media screen and (min-width: 1024px) {
	.product-cards__info-item li + li::before { display: inline-block; }
}
.product-cards--cols-3 .product-cards__info-item li + li::before {
	display: block;
	margin: 0 2px;
}

/* Route linked list */
.product-cards__linked-list strong { font-weight: var(--font-weight-medium, 500); }
.product-cards__linked-list-items {
	display: inline;
	list-style: none;
	padding-left: 0;
}
.product-cards__linked-list-items li a { color: var(--color-soft-black) !important; }
.product-cards__linked-list-item {
	color: var(--color-soft-black);
	display: inline;
	position: relative;
	text-transform: capitalize;
}
.product-cards__linked-list-item:not(:last-child)::after { content: "\2192"; }

/* Dates + duration */
.product-cards__details { text-align: center; }
.product-cards__details-date + .product-cards__details-days::before {
	color: var(--color-gray-400);
	content: "|";
	margin: 0 2px;
}

.product-cards h2,
.product-cards span,
.product-cards strong { color: var(--color-soft-black); }

/* ------------------------------------------------------- Carousel track
   Mobile: horizontal scroll-snap row; desktop: static grid. */

.product-cards__track {
	margin-right: calc(var(--grid-col-gutter) * -1);
}
@media screen and (min-width: 1024px) {
	.product-cards__track { margin-right: 0; }
}
.product-cards__slides {
	align-items: normal;
	display: flex;
	gap: var(--grid-col-gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.product-cards__slides::-webkit-scrollbar { display: none; }
.product-cards__slide {
	display: block;
	scroll-snap-align: start;
}
.product-cards--carousel-mobile .product-cards__slide {
	flex: calc(100% - var(--grid-col-gutter)) 0 0;
}
@media screen and (min-width: 768px) {
	.product-cards--carousel-mobile .product-cards__slide {
		flex: calc(70% - var(--grid-col-gutter) / 2) 0 0;
	}
	.product-cards--two-columns .product-cards__slide {
		flex: calc(50% - var(--grid-col-gutter) / 2) 0 0;
	}
}
@media screen and (min-width: 1024px) {
	.product-cards--carousel-desktop .product-cards__slide {
		flex: calc(50% - var(--grid-col-gutter) / 2) 0 0;
	}
	.product-cards:not(.product-cards--carousel-desktop) .product-cards__slides {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		overflow-x: visible;
	}
	.product-cards:not(.product-cards--carousel-desktop).product-cards--cols-3 .product-cards__slides {
		grid-template-columns: repeat(3, 1fr);
	}
	.product-cards:not(.product-cards--carousel-desktop).product-cards--cols-2 .product-cards__slides {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media screen and (min-width: 1280px) {
	.product-cards--cols-3.product-cards--carousel-desktop .product-cards__slide {
		flex: calc(33% - var(--grid-col-gutter) / 2) 0 0;
	}
}

/* Plain grid usage (no track/slides wrappers) */
@media screen and (min-width: 768px) {
	.product-cards--cols-2.grid { grid-template-columns: repeat(2, 1fr); grid-row-gap: var(--grid-row-gutter); }
	.product-cards--cols-3.grid { grid-template-columns: repeat(3, 1fr); grid-row-gap: var(--grid-row-gutter); }
}
