/**
 * Popular Tours Grid — [mhm_popular_tours] shortcode
 * 2×2 grid, gradient overlay, Poppins font, 10px radius.
 * Mobile: her zaman 2 sütun (tema isteği).
 */

.mhm-popular-tours-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 0;
	margin: 0 auto;    /* center within Elementor container */
	list-style: none;
	align-items: start; /* prevent stretch from fighting aspect-ratio */
	max-width: 580px;   /* ~285px per card — matches original Elementor card size */
}

.mhm-popular-tours-card {
	position: relative;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	width: 100%;     /* fill the 1fr column */
	align-self: start; /* each card sizes from its own aspect-ratio */
	text-decoration: none;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mhm-popular-tours-card:hover {
	transform: scale(1.03);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
}

.mhm-popular-tours-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: filter 0.3s ease;
}

.mhm-popular-tours-card:hover .mhm-popular-tours-card__img {
	filter: brightness(0.88);
}

.mhm-popular-tours-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.72) 0%,
		rgba(0, 0, 0, 0.45) 28%,
		rgba(0, 0, 0, 0.12) 52%,
		rgba(0, 0, 0, 0.06) 100%
	);
	transition: background 0.3s ease;
}

.mhm-popular-tours-card:hover .mhm-popular-tours-card__overlay {
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.82) 0%,
		rgba(0, 0, 0, 0.52) 28%,
		rgba(0, 0, 0, 0.18) 52%,
		rgba(0, 0, 0, 0.08) 100%
	);
}

.mhm-popular-tours-card__body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 14px 12px 12px;
}

.mhm-popular-tours-card__title {
	display: block;
	color: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	margin: 0 0 6px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 580px) {
	.mhm-popular-tours-card__title {
		font-size: 1rem;
	}

	.mhm-popular-tours-card__body {
		padding: 18px 14px 14px;
	}

	.mhm-popular-tours-card__accent {
		width: 32px;
	}
}

.mhm-popular-tours-card__accent {
	display: block;
	width: 28px;
	height: 2px;
	background: #e8312a;
	border-radius: 1px;
}
