/* R62 Tour Grid */

/* Elementor flex containers set to "wrap" can squash the widget's height on mobile,
   letting the next section overlap the grid. Keep the widget at full size. */
.elementor-widget:has(.r62-tour-grid) {
	flex-shrink: 0;
	align-self: stretch;
	width: 100%;
	max-width: 100%;
}
.r62-tour-grid {
	--r62-gap: 14px;
	--r62-accent: #fbb515;
	display: grid;
	grid-template-columns: repeat(var(--r62-cols, 4), minmax(0, 1fr));
	gap: var(--r62-gap);
	width: 100%;
}

.r62-tour-tile {
	position: relative;
	display: block;
	aspect-ratio: var(--r62-ratio, 1/1);
	overflow: hidden;
	background: #2b2620;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.r62-tour-tile__img,
.r62-tour-grid .r62-tour-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .6s ease;
	z-index: -2;
}

/* Darkens the lower part so the title is always readable. */
.r62-tour-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 38%, rgba(0, 0, 0, 0) 65%);
	z-index: -1;
	transition: background-color .3s ease;
}

.r62-tour-tile__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 14px 14px;
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	color: #fff;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, .6);
	transition: color .25s ease;
}

.r62-tour-tile--no-image {
	background: linear-gradient(135deg, #5a4630, #2b2620);
}

.r62-tour-tile:hover .r62-tour-tile__img,
.r62-tour-tile:focus-visible .r62-tour-tile__img {
	transform: scale(1.06);
}

.r62-tour-tile:hover::after,
.r62-tour-tile:focus-visible::after {
	background-color: rgba(0, 0, 0, .15);
}

.r62-tour-tile:hover .r62-tour-tile__label,
.r62-tour-tile:focus-visible .r62-tour-tile__label {
	color: var(--r62-accent);
}

.r62-tour-tile:focus-visible {
	outline: 3px solid var(--r62-accent);
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	.r62-tour-grid {
		grid-template-columns: repeat(var(--r62-cols-tablet, 3), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.r62-tour-grid {
		--r62-gap: 10px;
		grid-template-columns: repeat(var(--r62-cols-mobile, 2), minmax(0, 1fr));
	}
	.r62-tour-tile__label {
		padding: 10px 8px 9px;
		font-size: 13px;
		line-height: 1.3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.r62-tour-tile__img,
	.r62-tour-tile__label,
	.r62-tour-tile::after {
		transition: none;
	}
}
