/**
 * Tour card component — shared by homepage slider and tours page grid.
 */

.tour-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
	min-height: 0;
	overflow: visible;
}

.tour-card__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 570 / 580;
	border-radius: 20px;
	overflow: hidden;
}

.tour-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tour-card__content {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	width: auto;
	height: auto;
	min-width: 0;
	margin-top: -100px;
	margin-inline: 7%;
	margin-bottom: 0;
	padding: 30px 20px;
	background-color: var(--wp--preset--color--background);
	border-radius: 20px;
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.tour-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin-bottom: 0;
	min-width: 0;
}

.tour-card__rating {
	display: flex;
	gap: 4px;
	margin-top: 12px;
	margin-bottom: 8px;
	min-width: 0;
}

.tour-card__meta-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.tour-card__price-label {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
}

.tour-card__badge {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 5px 15px;
	background-color: #f5f5f5;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--wp--preset--color--muted);
	white-space: normal;
}

.tour-card__metric-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
	line-height: 1.2;
	word-break: break-word;
	min-width: 0;
}

.tour-card__badge svg {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.tour-card__badge svg path {
	fill: var(--wp--preset--color--muted);
}

.tour-card__stars {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}

.tour-card__stars svg {
	display: block;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.tour-card__stars svg path {
	fill: #e87f24;
}

.tour-card__title {
	margin: 0 0 21px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1.875rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--wp--preset--color--primary);
}

.tour-card__desc {
	margin: 0 0 21px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--wp--preset--color--muted);
}

.tour-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
}

.tour-card__footer .btn,
.tour-card__details-link {
	position: relative;
	z-index: 3;
	flex-shrink: 0;
	pointer-events: auto;
}

.tour-card__price {
	margin: 0;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
}

.tour-card__price .tour-card__metric-text,
.tour-card__price-value.tour-card__metric-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
	line-height: 1.2;
	word-break: break-word;
}

.tour-card__price-value {
	display: inline;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	text-transform: none;
	white-space: nowrap;
}

.tour-card__price-wrapper {
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
	flex-shrink: 1;
	flex-wrap: nowrap;
}

.tour-card__price-wrapper .tour-card__price-value {
	display: inline;
	white-space: nowrap;
}

.tour-card__price-amount,
.tour-card__price-value.tour-card__price-amount {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	text-transform: none;
}

.tour-card__price-value--text {
	font-size: 1.25rem !important;
	line-height: 1.2;
	text-transform: none;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

/* Homepage slider layout overrides */
.custom-slider-track .tour-card {
	width: 570px;
	flex: 0 0 570px;
}

.custom-slider-track .tour-card__image-wrap {
	width: 570px;
	max-width: 100%;
	height: 580px;
	aspect-ratio: auto;
}

@media (max-width: 768px) {
	.tour-card__image-wrap {
		height: auto;
		min-height: 240px;
		aspect-ratio: 570 / 580;
		flex-shrink: 0;
	}

	.tour-card__image {
		min-height: 240px;
	}

	.tour-card__content {
		margin-top: -36px;
		margin-inline: 5%;
		padding: 16px;
	}

	.tour-card__meta-pills {
		gap: 8px;
	}

	.tour-card__badge {
		flex: 1 1 calc(50% - 4px);
		gap: 6px;
		max-width: 100%;
		box-sizing: border-box;
		padding: 4px 10px;
		font-size: 0.875rem;
		line-height: 1.4;
		white-space: normal;
	}

	.tour-card__badge svg {
		width: 20px;
		height: 20px;
	}

	.tour-card__stars {
		gap: 3px;
		flex-shrink: 0;
		max-width: 100%;
	}

	.tour-card__stars svg {
		width: 14px;
		height: 14px;
	}

	.tour-card__title {
		margin-bottom: 16px;
		font-size: 1.5rem;
	}

	.tour-card__desc {
		margin-bottom: 16px;
	}

	.tour-card__footer {
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.tour-card__price {
		flex: 1 1 auto;
		min-width: 0;
	}

	.tour-card__footer .btn,
	.tour-card__details-link {
		flex: 0 1 auto;
		max-width: 100%;
	}

	.custom-slider-track .tour-card {
		width: 85vw !important;
		flex: 0 0 85vw !important;
	}

	.custom-slider-track .tour-card__image-wrap {
		width: 100%;
		height: auto;
		min-height: 240px;
		aspect-ratio: 570 / 580;
	}
}

@media (max-width: 480px) {
	.tour-card__meta-pills {
		gap: 8px;
	}

	.tour-card__badge {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.tour-card__footer {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
	}

	.tour-card__price {
		flex: 1 1 100%;
	}

	.tour-card__footer .btn,
	.tour-card__details-link {
		flex: 1 1 100%;
		width: 100%;
		justify-content: center;
	}
}
