:root {
	--ec-primary: #9b5a2e;
	--ec-primary-dark: #6f3d1f;
	--ec-gold: #d7b56d;
	--ec-bg: #fffaf3;
	--ec-card: #ffffff;
	--ec-text: #2c2118;
	--ec-muted: #76685d;
	--ec-border: rgba(80, 55, 35, .14);
	--ec-radius: 22px;
	--ec-shadow: 0 18px 45px rgba(60, 35, 15, .10);
}

#eb-events.ec-events-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	margin-top: 30px;
}

.ec-event-card {
	background: var(--ec-card);
	border: 1px solid var(--ec-border);
	border-radius: var(--ec-radius);
	overflow: hidden;
	box-shadow: var(--ec-shadow);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}

.ec-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 60px rgba(60, 35, 15, .16);
}

.ec-event-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--ec-bg);
	overflow: hidden;
}

.ec-event-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.ec-event-card:hover .ec-event-media img {
	transform: scale(1.04);
}

.ec-event-price {
	position: absolute;
	right: 16px;
	bottom: 16px;
	background: rgba(255, 255, 255, .94);
	color: var(--ec-primary-dark);
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 700;
	box-shadow: 0 8px 25px rgba(0,0,0,.14);
}

.ec-event-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ec-event-title {
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 14px;
	color: var(--ec-text);
}

.ec-event-title a {
	color: inherit;
	text-decoration: none;
}

.ec-event-title a:hover {
	color: var(--ec-primary);
}

.ec-event-meta {
	display: grid;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--ec-muted);
	font-size: .95rem;
}

.ec-meta-item {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.ec-meta-icon {
	width: 22px;
	flex: 0 0 22px;
}

.ec-event-description {
	color: var(--ec-text);
	font-size: .96rem;
	line-height: 1.55;
	margin-bottom: 18px;
}

.ec-event-actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.ec-event-actions ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.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;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--ec-primary);
	background: var(--ec-primary);
	color: #fff;
	line-height: 1.2;
}

.ec-details-button {
	background: transparent;
	color: var(--ec-primary);
}

.ec-event-actions .btn:hover,
.ec-event-actions a.btn:hover {
	background: var(--ec-primary-dark);
	border-color: var(--ec-primary-dark);
	color: #fff;
}

.ec-details-button:hover {
	background: var(--ec-bg);
	color: var(--ec-primary-dark);
}

.ec-featured {
	border-color: rgba(215,181,109,.8);
}

.ec-cancelled {
	opacity: .65;
	filter: grayscale(.3);
}

@media (max-width: 991px) {
	#eb-events.ec-events-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	#eb-events.ec-events-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 18px;
		padding: 4px 18px 24px 4px;
		margin-left: -4px;
		-webkit-overflow-scrolling: touch;
	}

	#eb-events.ec-events-grid::-webkit-scrollbar {
		display: none;
	}

	.ec-event-card {
		min-width: 86%;
		scroll-snap-align: start;
		border-radius: 20px;
	}

	.ec-event-body {
		padding: 18px;
	}

	.ec-event-title {
		font-size: 1.18rem;
	}

	.ec-event-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.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 .btn,
	.ec-event-actions a.btn,
	.ec-details-button {
		text-align: center;
	}
}


@media (max-width: 767px) {
	.ec-swipe-hint {
		display: block;
		font-size: .85rem;
		color: var(--ec-muted);
		text-align: right;
		margin: 8px 4px 4px;
	}
}

.ec-mobile-carousel-wrap {
	position: relative;
}

.ec-carousel-nav {
	display: none;
}

@media (max-width: 767px) {
	.ec-carousel-nav {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin: 12px 4px 10px;
	}

	.ec-carousel-count {
		font-size: .86rem;
		font-weight: 700;
		color: var(--ec-primary-dark);
		background: var(--ec-bg);
		border: 1px solid var(--ec-border);
		border-radius: 999px;
		padding: 6px 11px;
	}

	.ec-carousel-dots {
		display: flex;
		align-items: center;
		gap: 6px;
	}

	.ec-carousel-dots button {
		width: 7px;
		height: 7px;
		border: 0;
		border-radius: 999px;
		background: rgba(111, 61, 31, .28);
		padding: 0;
		transition: width .2s ease, background .2s ease;
	}

	.ec-carousel-dots button.active {
		width: 22px;
		background: var(--ec-primary);
	}

	#eb-events.ec-events-grid {
		padding-right: 48px;
	}

	.ec-event-card {
		min-width: 82%;
	}

	.ec-event-actions {
		position: sticky;
		bottom: 0;
		background: linear-gradient(to top, #fff 72%, rgba(255,255,255,.88));
		padding-top: 12px;
		margin-left: -18px;
		margin-right: -18px;
		padding-left: 18px;
		padding-right: 18px;
		padding-bottom: 2px;
	}

	.ec-event-actions .btn,
	.ec-event-actions a.btn {
		background: var(--ec-primary);
		border-color: var(--ec-primary);
		color: #fff;
		min-height: 46px;
		font-size: .96rem;
	}

	.ec-details-button {
		min-height: 44px;
		border-color: var(--ec-border);
		background: var(--ec-bg);
		color: var(--ec-primary-dark);
	}
}

@media (max-width: 767px) {
	#eb-category-page-columns > .pagination {
		display: none !important;
	}
}
.ec-meta-icon {
    width: 22px;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ec-primary);
    font-size: 1rem;
}

.ec-meta-icon i {
    line-height: 1;
}
.ec-time-separator {
    display: inline-block;
    margin: 0 .35rem;
    font-weight: 600;
    color: var(--ec-primary);
}

.ec-event-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.ec-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 7px 11px;
	background: var(--ec-bg);
	border: 1px solid var(--ec-border);
	color: var(--ec-primary-dark);
	font-size: .86rem;
	font-weight: 700;
}

.ec-badge-availability {
	background: rgba(155, 90, 46, .08);
}

.ec-low-availability .ec-meta-icon {
    transform: scale(1.1);
}

.ec-low-availability {
    color: #c2410c;
    font-weight: 700;
}

.ec-sold-out {
    color: #b91c1c;
    font-weight: 700;
}
