/**
 * Marrakech Tickets card styles.
 *
 * Equal-height rows (grid/carousel): cards stretch to the tallest item in the row.
 * Reserved min-heights for title (2 lines mobile/tablet, 1 line desktop) and
 * description (2 lines) keep footers aligned without stretching the gap above
 * the footer. Extra row height is absorbed below the footer via .mt-card__link::after.
 */

.mt-card {
	--mt-card-radius: 12px;
	--mt-card-bg: #ffffff;
	--mt-card-border: #e8e4dc;
	--mt-image-bg: #ebe6dc;
	--mt-text-primary: #1a1a1a;
	--mt-text-secondary: #5c5c5c;
	--mt-cta-color: #1a6fd4;
	--mt-star-color: #f5a623;
	--mt-badge-border: #d8d2c8;
	--mt-badge-text: #444444;
	--mt-card-padding: 16px;
	--mt-image-ratio: 3 / 2;
	--mt-title-font-size: 18px;
	--mt-title-line-height: 1.3;
	--mt-desc-font-size: 13px;
	--mt-desc-line-height: 1.5;
	--mt-header-min-height: calc(var(--mt-title-font-size) * var(--mt-title-line-height) * 2);
	--mt-description-min-height: calc(var(--mt-desc-font-size) * var(--mt-desc-line-height) * 2);
	--mt-badges-min-height: 28px;
	--mt-meta-min-height: calc(13px * 1.4);
	--mt-meeting-min-height: calc(12px * 1.4);
	box-sizing: border-box;
	display: block;
	height: auto;
	min-height: 0;
	background: var(--mt-card-bg);
	border: 1px solid var(--mt-card-border);
	border-radius: var(--mt-card-radius);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mt-card:hover {
	border-color: #d4cec4;
	box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

.mt-card__link {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 0;
	color: inherit;
	text-decoration: none;
}

.mt-card__link:focus {
	outline: none;
}

.mt-card__link:focus-visible {
	outline: 2px solid var(--mt-cta-color);
	outline-offset: 2px;
}

.mt-card__image-wrap {
	position: relative;
	flex-shrink: 0;
	aspect-ratio: var(--mt-image-ratio);
	background: var(--mt-image-bg);
	overflow: hidden;
}

.mt-card__image,
.mt-card__image-placeholder {
	width: 100%;
	height: 100%;
	display: block;
}

.mt-card__image {
	object-fit: cover;
	object-position: center;
}

.mt-card__image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b8b0a4;
}

.mt-card__placeholder-icon {
	display: block;
}

.mt-card__bestseller {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: #000000;
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	padding: 5px 10px;
	border-radius: 999px;
}

.mt-card__body {
	box-sizing: border-box;
	display: block;
	flex-shrink: 0;
	height: auto;
	min-height: 0;
	padding: var(--mt-card-padding) var(--mt-card-padding) 0;
}

.mt-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.mt-card--reserve-title .mt-card__header {
	min-height: var(--mt-header-min-height);
}

.mt-card__title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: var(--mt-title-font-size);
	font-weight: 600;
	line-height: var(--mt-title-line-height);
	color: var(--mt-text-primary);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.mt-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--mt-text-primary);
}

.mt-card__star {
	color: var(--mt-star-color);
	flex-shrink: 0;
}

.mt-card__description {
	margin: 0;
	font-size: var(--mt-desc-font-size);
	line-height: var(--mt-desc-line-height);
	color: var(--mt-text-secondary);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.mt-card--reserve-description .mt-card__description {
	min-height: var(--mt-description-min-height);
}

.mt-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--mt-text-secondary);
}

.mt-card--reserve-meta .mt-card__meta {
	min-height: var(--mt-meta-min-height);
}

.mt-card__meta--empty {
	display: none;
}

.mt-card__meta-separator {
	color: #9a9488;
}

.mt-card__meta-item {
	white-space: nowrap;
}

.mt-card__meeting-point {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--mt-text-secondary);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

.mt-card--reserve-meeting .mt-card__meeting-point {
	min-height: var(--mt-meeting-min-height);
}

.mt-card__meeting-point-label {
	font-weight: 500;
	color: var(--mt-text-primary);
}

.mt-card__badges {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 6px;
	margin-top: 8px;
}

.mt-card--reserve-badges .mt-card__badges {
	min-height: var(--mt-badges-min-height);
}

.mt-card__badges--empty {
	display: none;
}

.mt-card__badge {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	line-height: 1;
	color: var(--mt-badge-text);
	border: 1px solid var(--mt-badge-border);
	border-radius: 999px;
	padding: 4px 10px;
	white-space: nowrap;
}

.mt-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	margin-bottom: 0;
	padding: 0 var(--mt-card-padding) var(--mt-card-padding);
	flex-shrink: 0;
}

.mt-card__price {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mt-text-primary);
}

.mt-card__price--free,
.mt-card__price--fallback {
	font-weight: 600;
}

.mt-card__price-from {
	margin-right: 4px;
	font-weight: 400;
}

.mt-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--mt-cta-color);
	white-space: nowrap;
}

.mt-card__cta-arrow {
	font-size: 14px;
	line-height: 1;
}

.mt-card--aspect-16-9 {
	--mt-image-ratio: 16 / 9;
}

.mt-card--aspect-4-3 {
	--mt-image-ratio: 4 / 3;
}

.mt-card--aspect-3-2 {
	--mt-image-ratio: 3 / 2;
}

.mt-card--aspect-1-1 {
	--mt-image-ratio: 1 / 1;
}

/* Equal-height rows in grid, carousel, and related listings (desktop/tablet). */
@media (min-width: 768px) {
	.mt-attractions-grid__item,
	.mt-tours-grid__item,
	.mt-carousel__item,
	.mt-playground__case {
		display: flex;
		flex-direction: column;
		height: 100%;
		min-height: 100%;
	}

	.mt-attractions-grid .mt-card,
	.mt-tours-grid .mt-card,
	.mt-carousel .mt-card,
	.mt-related-attractions .mt-card,
	.mt-playground__cases .mt-card,
	[class*="elementor-widget-mt_"] .mt-attractions-grid .mt-card,
	[class*="elementor-widget-mt_"] .mt-tours-grid .mt-card,
	[class*="elementor-widget-mt_"] .mt-carousel .mt-card,
	[class*="elementor-widget-mt_"] .mt-related-attractions .mt-card {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		height: 100%;
		min-height: 100%;
	}

	.mt-attractions-grid .mt-card__link,
	.mt-tours-grid .mt-card__link,
	.mt-carousel .mt-card__link,
	.mt-related-attractions .mt-card__link,
	.mt-playground__cases .mt-card__link,
	[class*="elementor-widget-mt_"] .mt-attractions-grid .mt-card__link,
	[class*="elementor-widget-mt_"] .mt-tours-grid .mt-card__link,
	[class*="elementor-widget-mt_"] .mt-carousel .mt-card__link,
	[class*="elementor-widget-mt_"] .mt-related-attractions .mt-card__link {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		height: 100%;
		min-height: 100%;
	}

	.mt-attractions-grid .mt-card__link::after,
	.mt-tours-grid .mt-card__link::after,
	.mt-carousel .mt-card__link::after,
	.mt-related-attractions .mt-card__link::after,
	.mt-playground__cases .mt-card__link::after,
	[class*="elementor-widget-mt_"] .mt-attractions-grid .mt-card__link::after,
	[class*="elementor-widget-mt_"] .mt-tours-grid .mt-card__link::after,
	[class*="elementor-widget-mt_"] .mt-carousel .mt-card__link::after,
	[class*="elementor-widget-mt_"] .mt-related-attractions .mt-card__link::after {
		content: "";
		flex: 1 1 auto;
		min-height: 0;
	}

	.mt-attractions-grid .mt-card__footer,
	.mt-tours-grid .mt-card__footer,
	.mt-carousel .mt-card__footer,
	.mt-related-attractions .mt-card__footer,
	.mt-playground__cases .mt-card__footer,
	[class*="elementor-widget-mt_"] .mt-attractions-grid .mt-card__footer,
	[class*="elementor-widget-mt_"] .mt-tours-grid .mt-card__footer,
	[class*="elementor-widget-mt_"] .mt-carousel .mt-card__footer,
	[class*="elementor-widget-mt_"] .mt-related-attractions .mt-card__footer {
		margin-top: 12px;
	}
}

@media (min-width: 1025px) {
	.mt-card {
		--mt-header-min-height: calc(var(--mt-title-font-size) * var(--mt-title-line-height) * 1);
	}

	.mt-card__header {
		margin-bottom: 4px;
	}

	.mt-card__title {
		-webkit-line-clamp: 1;
	}
}

@media (max-width: 767px) {
	.mt-card {
		width: 100%;
		--mt-title-font-size: 17px;
		--mt-header-min-height: calc(var(--mt-title-font-size) * var(--mt-title-line-height) * 2);
	}
}

.mt-card--placeholder {
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 24px;
	color: var(--mt-text-secondary);
	font-size: 14px;
	text-align: center;
}
