/**
 * Essaouira Cooking — Book an Experience cards v1.0
 * One visual language on desktop, tablet and mobile.
 */
:root {
	--ec-plum: #5b0757;
	--ec-plum-hover: #72116d;
	--ec-copper: #a65f2a;
	--ec-ink: #292326;
	--ec-muted: #756b72;
	--ec-card: #fff;
	--ec-soft: #fffaf5;
	--ec-border: rgba(91, 7, 87, .14);
	--ec-shadow: 0 16px 42px rgba(46, 28, 41, .10);
}

#eb-events.ec-events-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
	margin-top: 30px;
}

#eb-events.ec-events-grid > .ec-event-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100%;
	overflow: hidden;
	border: 1px solid var(--ec-border);
	border-radius: 26px;
	background: var(--ec-card);
	box-shadow: var(--ec-shadow);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#eb-events.ec-events-grid > .ec-event-card:hover {
	transform: translateY(-4px);
	border-color: rgba(91, 7, 87, .24);
	box-shadow: 0 24px 58px rgba(46, 28, 41, .14);
}

.ec-event-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ec-soft);
}

.ec-event-media > a {
	display: block;
	width: 100%;
	height: 100%;
}

.ec-event-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.ec-event-card:hover .ec-event-media img {
	transform: scale(1.025);
}

.ec-event-price {
	position: absolute;
	z-index: 1;
	top: 16px;
	right: 16px;
	padding: 10px 17px;
	border: 1px solid rgba(91, 7, 87, .12);
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 8px 24px rgba(46, 28, 41, .15);
	color: var(--ec-plum);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.ec-event-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 26px 26px;
}

.ec-event-title {
	margin: 0 0 17px;
	color: var(--ec-ink);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1.16;
}

.ec-event-title a {
	color: inherit;
	text-decoration: none;
}

.ec-event-title a:hover,
.ec-event-title a:focus-visible {
	color: var(--ec-plum);
}

.ec-event-meta {
	display: grid;
	gap: 10px;
	margin: 0;
	color: var(--ec-muted);
	font-size: 1rem;
	line-height: 1.35;
}

.ec-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.ec-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	flex: 0 0 22px;
	color: var(--ec-plum);
	font-size: 1.08rem;
	line-height: 1.2;
}

.ec-meta-icon i {
	line-height: inherit;
}

.ec-meta-item a {
	color: inherit;
	text-decoration: none;
}

.ec-meta-item--location a,
.ec-meta-item--location {
	color: #5d2758;
}

.ec-meta-item--availability {
	margin-top: 1px;
	color: var(--ec-ink);
}

.ec-time-separator {
	display: inline-block;
	margin: 0 .55rem;
	color: var(--ec-plum);
	font-weight: 700;
}

.ec-low-availability {
	color: #a34c19;
	font-weight: 700;
}

.ec-sold-out {
	color: #a62323;
	font-weight: 700;
}

.ec-event-description,
.ec-event-price-inline,
.ec-results-context,
.ec-date-group-heading,
.ec-carousel-nav,
.ec-swipe-hint {
	display: none !important;
}

.ec-event-actions {
	display: flex;
	align-items: stretch;
	width: 100%;
	margin-top: 22px;
}

.ec-event-actions,
.ec-event-actions ul,
.ec-event-actions li,
.ec-event-actions .btn,
.ec-event-actions a.btn,
.ec-details-button {
	width: 100%;
}

.ec-event-actions ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ec-event-actions li {
	list-style: none;
}

.ec-event-actions .btn,
.ec-event-actions a.btn,
.ec-details-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 11px 20px;
	border: 2px solid var(--ec-plum);
	border-radius: 999px;
	background: #fff;
	color: var(--ec-plum);
	font-size: .98rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.ec-event-actions .btn:hover,
.ec-event-actions a.btn:hover,
.ec-details-button:hover,
.ec-event-actions .btn:focus-visible,
.ec-event-actions a.btn:focus-visible,
.ec-details-button:focus-visible {
	transform: translateY(-1px);
	background: var(--ec-plum);
	color: #fff;
}

.ec-class-transaction-status {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f4f0f2;
	color: var(--ec-muted);
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.3;
}

.ec-class-transaction-status strong,
.ec-class-transaction-status span,
.ec-class-transaction-status small {
	display: block;
}

.ec-class-transaction-status small {
	margin-top: 3px;
	font-weight: 500;
}

.ec-event-card--future {
	background: #fdfbf9;
}

.ec-event-card--future .ec-event-media img,
.ec-cancelled .ec-event-media img {
	filter: saturate(.65);
}

.ec-featured {
	border-color: rgba(166, 95, 42, .45) !important;
}

.ec-cancelled {
	opacity: .7;
}

#eb-category-page-columns > .pagination {
	display: none !important;
}

@media (min-width: 1200px) {
	#eb-events.ec-events-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	#eb-category-page-columns {
		padding-right: 0;
		padding-left: 0;
	}

	#eb-events.ec-events-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		margin-top: 18px;
		padding: 0 12px;
		overflow: visible;
	}

	#eb-events.ec-events-grid > .ec-event-card {
		display: flex;
		min-height: 0;
		border-radius: 24px;
		transform: none !important;
		box-shadow: 0 13px 34px rgba(46, 28, 41, .10);
	}

	.ec-event-media {
		width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.ec-event-price {
		top: 13px;
		right: 13px;
		bottom: auto;
		padding: 9px 14px;
		font-size: 1rem;
	}

	.ec-event-body {
		padding: 19px 20px 21px;
	}

	.ec-event-title {
		margin-bottom: 15px;
		font-size: 1.55rem;
	}

	.ec-event-meta {
		gap: 9px;
		margin-bottom: 0;
		font-size: .98rem;
	}

	.ec-meta-item {
		gap: 11px;
		font-size: .98rem;
	}

	.ec-meta-icon {
		width: 22px;
		flex-basis: 22px;
		font-size: 1.06rem;
	}

	.ec-event-actions {
		margin-top: 19px;
	}

	.ec-event-actions .btn,
	.ec-event-actions a.btn,
	.ec-details-button {
		min-height: 50px;
		padding: 11px 16px;
		font-size: .96rem;
	}

	/*
	 * Even when one workshop is selected, retain the same complete vertical
	 * card. Repeated imagery is intentional here: it keeps all results
	 * predictable and matches the approved Book an Experience mock-up.
	 */
	.ec-filter-state--workshop .ec-event-card {
		display: flex;
	}

	.ec-filter-state--workshop .ec-event-media,
	.ec-filter-state--workshop .ec-event-title {
		display: block;
	}

	.ec-filter-state--workshop .ec-event-body {
		display: flex;
		padding: 19px 20px 21px;
	}
}

@media (max-width: 389.98px) {
	#eb-events.ec-events-grid {
		padding-right: 8px;
		padding-left: 8px;
	}

	.ec-event-body {
		padding-right: 17px;
		padding-left: 17px;
	}

	.ec-event-title {
		font-size: 1.4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ec-event-card,
	.ec-event-media img,
	.ec-details-button {
		transition: none !important;
	}

	.ec-event-card:hover,
	.ec-event-card:hover .ec-event-media img,
	.ec-details-button:hover {
		transform: none !important;
	}
}
