/* Samay Tours archive repair: isolated from single tours and tour search cards. */
body.samay-tour-archive .btPageHeadline,
body.samay-tour-archive [data-samay-tour-archive-hero="1"] {
	background-position: center 48% !important;
	background-size: cover !important;
	background-repeat: no-repeat !important;
}

body.samay-tour-archive .btPageHeadline .bt_bb_headline_content,
body.samay-tour-archive [data-samay-tour-archive-hero="1"] h1 {
	text-wrap: balance;
}

body.samay-tour-archive .samay-tour-archive-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.samay-tour-archive .samay-tour-archive-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

body.samay-tour-archive .samay-tour-archive-breadcrumb .samay-tour-archive-separator {
	opacity: .7;
}

body.samay-tour-archive .samay-tour-archive-subtitle {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

body.samay-tour-archive .samay-tour-gallery {
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 72px 0 78px;
	background: #fff;
	color: #263b3b;
}

body.samay-tour-archive .samay-tour-gallery,
body.samay-tour-archive .samay-tour-gallery * {
	box-sizing: border-box;
}

body.samay-tour-archive .samay-tour-gallery-shell {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

body.samay-tour-archive .samay-tour-gallery-heading {
	max-width: 720px;
	margin: 0 auto 34px;
	text-align: center;
}

body.samay-tour-archive .samay-tour-gallery-kicker {
	display: block;
	margin-bottom: 9px;
	color: #2482bd;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

body.samay-tour-archive .samay-tour-gallery-heading h2 {
	margin: 0 0 10px;
	color: #183b4a;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -.03em;
}

body.samay-tour-archive .samay-tour-gallery-heading p {
	margin: 0;
	color: #66767b;
	font-size: 16px;
	line-height: 1.65;
}

body.samay-tour-archive .samay-tour-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

body.samay-tour-archive .samay-tour-gallery-card {
	position: relative;
	display: block;
	min-height: 255px;
	overflow: hidden;
	border-radius: 4px;
	background: #173a48;
	box-shadow: 0 14px 38px rgba(28, 55, 66, .12);
	text-decoration: none !important;
	isolation: isolate;
}

body.samay-tour-archive .samay-tour-gallery-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

body.samay-tour-archive .samay-tour-gallery-shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(4, 22, 30, .02) 25%, rgba(4, 22, 30, .78) 100%);
}

body.samay-tour-archive .samay-tour-gallery-copy {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 20px;
	z-index: 2;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 14px;
	color: #fff;
}

body.samay-tour-archive .samay-tour-gallery-copy strong {
	max-width: 72%;
	color: #fff;
	font-size: 21px;
	line-height: 1.15;
	font-weight: 800;
}

body.samay-tour-archive .samay-tour-gallery-copy > span {
	flex: 0 0 auto;
	padding-bottom: 2px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255,255,255,.75);
}

@media (hover:hover) {
	body.samay-tour-archive .samay-tour-gallery-card:hover img {
		transform: scale(1.045);
	}
}

@media (max-width: 980px) {
	body.samay-tour-archive .samay-tour-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	body.samay-tour-archive .samay-tour-archive-breadcrumb {
		font-size: 11px;
		gap: .45rem;
	}
	body.samay-tour-archive .samay-tour-gallery {
		padding: 52px 0 56px;
	}
	body.samay-tour-archive .samay-tour-gallery-shell {
		width: min(100% - 28px, 1180px);
	}
	body.samay-tour-archive .samay-tour-gallery-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	body.samay-tour-archive .samay-tour-gallery-card {
		min-height: 230px;
	}
	body.samay-tour-archive .samay-tour-gallery-copy {
		left: 18px;
		right: 18px;
		bottom: 17px;
	}
	body.samay-tour-archive .samay-tour-gallery-copy strong {
		font-size: 19px;
	}
}

/*
 * Archive-only guard: individual tour Information layouts must never appear
 * below the native /tours/ results. PHP suppresses their shortcodes before
 * render; these selectors are a no-flash fallback for custom theme output.
 */
body.samay-tour-archive .samay-andean-ranches,
body.samay-tour-archive .samay-antisana-national-park,
body.samay-tour-archive .samay-avenue-of-the-volcanoes,
body.samay-tour-archive .samay-cotopaxi-national-park,
body.samay-tour-archive .samay-cuenca-world-heritage,
body.samay-tour-archive .samay-explore-indigenous-markets,
body.samay-tour-archive .samay-mindo-tropical-andes,
body.samay-tour-archive .samay-papallacta-hot-springs,
body.samay-tour-archive .samay-quilotoa-crater-lake,
body.samay-tour-archive .samay-quito-city-middle-world,
body.samay-tour-archive .samay-quito-food-tour,
body.samay-tour-archive .samay-quito-unveiled,
body.samay-tour-archive .samay-rose-farm-tour,
body.samay-tour-archive .samay-timeless-quito {
	display: none !important;
}
