/* Cards grid (tours tab). */
.smh-tours__list {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.smh-tour {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: 28px;
	background: var(--wp--preset--color--white);
	overflow: hidden;
}

.smh-tour.is-soon {
	background: var(--wp--preset--color--cream);
}

.smh-tour__media {
	position: relative;
	overflow: hidden;
}

.smh-tour__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.6s var(--smh-ease);
}

.smh-tour:hover .smh-tour__media img {
	transform: scale(1.04);
}

.smh-tour__badge {
	position: absolute;
	inset-block-start: 0.875rem;
	inset-inline-start: 0.875rem;
	padding: 0.25rem 0.875rem;
	border-radius: 999px;
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--cream);
	font-weight: 700;
}

.smh-tour__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
	padding: 1.5rem;
}

.smh-tour__body > * {
	margin: 0;
}

.smh-tour__date {
	color: var(--wp--preset--color--clay);
	font-weight: 700;
}

.smh-tour__title {
	font-size: clamp(1.5rem, 2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
}

.smh-tour__price {
	color: var(--wp--preset--color--cocoa);
	font-weight: 600;
}

.smh-tour__text {
	margin-block-end: 0.75rem;
}

.smh-tour__cta {
	margin-block-start: auto;
	padding-block-start: 0.5rem;
}

.smh-tours__empty {
	padding: 1.5rem 2rem;
	border-radius: 28px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--walnut);
	font-weight: 600;
}

/* Feature layout (home): next tour large, the rest as rows. */
.smh-tours--feature {
	display: contents;
}

.smh-tour-lead {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 440px;
	padding: 1.75rem;
	border-radius: 24px;
	overflow: hidden;
	color: var(--wp--preset--color--cream);
}

.smh-tour-lead__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--smh-ease);
}

.smh-tour-lead:hover .smh-tour-lead__img {
	transform: scale(1.04);
}

.smh-tour-lead::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgb(42 26 18 / 0.88) 0%, rgb(42 26 18 / 0.5) 38%, rgb(42 26 18 / 0) 62%), linear-gradient(to bottom, rgb(42 26 18 / 0.45), rgb(42 26 18 / 0) 22%);
}

.smh-tour-lead__kicker {
	position: absolute;
	inset-block-start: 1.75rem;
	inset-inline-start: 1.75rem;
	margin: 0;
	font-weight: 900;
	font-size: 1.5rem;
}

.smh-tour-lead__text {
	display: grid;
	gap: 0.625rem;
	justify-items: start;
}

.smh-tour-lead__text > * {
	margin: 0;
}

.smh-tour-lead__meta {
	color: var(--wp--preset--color--sand);
	font-weight: 600;
}

.smh-tour-lead__title {
	color: var(--wp--preset--color--cream);
	font-size: clamp(1.875rem, 3vw, 2.75rem);
}

.smh-tour-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smh-tour-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-block: 1rem;
	border-block-end: 1px solid var(--wp--preset--color--clay);
}

.smh-tour-row__thumb {
	flex: none;
	width: clamp(92px, 11vw, 150px);
	aspect-ratio: 15 / 11;
	border-radius: 16px;
	overflow: hidden;
}

.smh-tour-row__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.smh-tour-row:hover .smh-tour-row__thumb img {
	transform: scale(1.05);
}

.smh-tour-row.is-soon .smh-tour-row__thumb {
	opacity: 0.7;
}

.smh-tour-row__text {
	flex: 1;
	min-width: 0;
}

.smh-tour-row__text > * {
	margin: 0;
}

.smh-tour-row__meta {
	color: var(--wp--preset--color--cocoa);
	font-size: 0.9375rem;
	font-weight: 600;
}

.smh-tour-row__title {
	font-size: clamp(1.25rem, 1.7vw, 1.5rem);
	line-height: 1.15;
}

.smh-tour-row__soon {
	flex: none;
	color: var(--wp--preset--color--cocoa);
	font-weight: 700;
}

.smh-tour-row__cta .wp-element-button {
	min-height: 44px;
	--btn-size: 32px;
	padding-inline-start: 1rem;
	font-size: 1rem;
}

@media (max-width: 480px) {
	.smh-tour-row {
		flex-wrap: wrap;
	}

	.smh-tour-row__text {
		flex-basis: calc(100% - 92px - 1rem);
	}

	.smh-tour-row__cta,
	.smh-tour-row__soon {
		margin-inline-start: calc(92px + 1rem);
	}
}
