/**
 * WLOOKUPS Home Event Carousel v1.1.1
 * Scoped to the custom widget so existing MEUP Event cards remain unchanged.
 */

.wlk-events-carousel,
.wlk-events-carousel * {
	box-sizing: border-box;
}

.wlk-events-carousel {
	--wlk-navy: #102033;
	--wlk-ink: #161a1d;
	--wlk-blue: #3d6bff;
	--wlk-link: #3864f2;
	--wlk-lime: #c8ff3d;
	--wlk-lime-hover: #b8ef2e;
	--wlk-cloud: #f7f8f4;
	--wlk-selected: #eef3ff;
	--wlk-border: rgba(16, 32, 51, 0.12);
	--wlk-muted: #626b78;
	--wlk-card-radius: 16px;
	--wlk-card-gap: 16px;
	position: relative;
	width: 100%;
	min-width: 0;
	color: var(--wlk-ink);
	font-family: "IBM Plex Sans Thai Looped", "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wlk-events-carousel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
}

.wlk-events-carousel__title {
	min-width: 0;
	margin: 0;
	color: var(--wlk-navy);
	font: inherit;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.wlk-events-carousel__actions,
.wlk-events-carousel__navigation {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.wlk-events-carousel__actions {
	gap: 12px;
}

.wlk-events-carousel__navigation {
	gap: 8px;
}

.wlk-events-carousel__view-all {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 2px;
	color: var(--wlk-link);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
}

.wlk-events-carousel__view-all:hover {
	color: var(--wlk-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wlk-events-carousel__nav {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--wlk-lime);
	border-radius: 999px;
	background: var(--wlk-lime);
	color: var(--wlk-navy);
	box-shadow: 0 2px 8px rgba(16, 32, 51, 0.06);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.wlk-events-carousel__nav svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wlk-events-carousel__nav:hover:not(:disabled) {
	border-color: var(--wlk-lime-hover);
	background: var(--wlk-lime-hover);
	color: var(--wlk-navy);
	transform: translateY(-1px);
}

/*
 * MEUP applies a dark background to focused buttons globally. Keep mouse,
 * keyboard and pressed navigation states consistent with the Province carousel
 * while preserving the separate Journey Blue focus ring below.
 */
.wlk-events-carousel button.wlk-events-carousel__nav:focus,
.wlk-events-carousel button.wlk-events-carousel__nav:active {
	border-color: var(--wlk-lime);
	background: var(--wlk-lime);
	color: var(--wlk-navy);
}

.wlk-events-carousel__nav:disabled,
.wlk-events-carousel__nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	box-shadow: none;
	transform: none;
}

.wlk-events-carousel__view-all:focus-visible,
.wlk-events-carousel__nav:focus-visible,
.wlk-events-carousel .event_item.type1 a:focus-visible {
	outline: 3px solid var(--wlk-link);
	outline-offset: 3px;
}

.wlk-events-carousel__swiper.event_archive {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	touch-action: pan-y;
}

.wlk-events-carousel__swiper .swiper-wrapper {
	align-items: stretch;
}

.wlk-events-carousel__swiper .swiper-slide {
	display: flex;
	height: auto;
	min-width: 0;
}

/* Functional horizontal-scroll fallback before/without Swiper initialization. */
.wlk-events-carousel__swiper:not(.swiper-initialized) {
	overflow: hidden;
}

.wlk-events-carousel__swiper:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	gap: var(--wlk-card-gap);
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
	transform: none !important;
	-webkit-overflow-scrolling: touch;
}

.wlk-events-carousel__swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar {
	display: none;
}

.wlk-events-carousel__swiper:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 calc(20% - 12.8px);
	scroll-snap-align: start;
}

/* Card shell */
.wlk-events-carousel .event_entry,
.wlk-events-carousel .event_item.type1 {
	width: 100%;
	height: 100%;
	min-width: 0;
}

.wlk-events-carousel .event_entry {
	display: flex;
	position: relative;
	min-width: 0;
}

.wlk-events-carousel .event_entry.el_event_feature::before,
.wlk-events-carousel .event_entry.el_event_feature::after {
	display: none !important;
}

.wlk-events-carousel .event_item.type1 {
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--wlk-border);
	border-radius: var(--wlk-card-radius);
	background: #fff;
	box-shadow: 0 5px 18px rgba(16, 32, 51, 0.07);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
	.wlk-events-carousel .event_item.type1:hover {
		border-color: rgba(61, 107, 255, 0.26);
		box-shadow: 0 12px 28px rgba(16, 32, 51, 0.12);
		transform: translateY(-3px);
	}
}

/* Image, category chip, and clean overlay */
.wlk-events-carousel .event_item.type1 .event_thumbnail {
	position: relative !important;
	border-radius: 0;
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .thumbnail_figure,
.wlk-events-carousel .event_item.type1 .event_thumbnail .thumbnail_figure a {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .thumbnail_figure a {
	border-radius: 0;
	background: var(--wlk-cloud);
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .thumbnail_figure a img {
	display: block;
	width: 100%;
	height: 100% !important;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
	.wlk-events-carousel .event_item.type1:hover .thumbnail_figure img {
		transform: scale(1.025);
	}
}

.wlk-events-carousel .event_item.type1 .img-author {
	display: none !important;
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .event_meta_cat {
	display: flex;
	position: absolute;
	z-index: 4;
	top: auto;
	right: auto;
	bottom: 12px;
	left: 12px;
	align-items: center;
	width: max-content;
	max-width: calc(100% - 76px);
	margin: 0;
	padding: 0;
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .event_meta_cat a {
	display: block;
	overflow: hidden;
	max-width: 100%;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid rgba(16, 32, 51, 0.08);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94) !important;
	box-shadow: 0 2px 8px rgba(16, 32, 51, 0.09);
	color: var(--wlk-navy);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	backdrop-filter: blur(8px);
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .event_meta_cat a:not(:first-child) {
	display: none;
}

/* One primary, evidence-backed status. Text remains visible so meaning never
 * depends on colour alone. */
.wlk-events-carousel .wlk-event-status-badge {
	display: inline-flex;
	position: absolute;
	z-index: 5;
	top: 12px;
	left: 12px;
	align-items: center;
	max-width: calc(100% - 24px);
	min-height: 28px;
	gap: 6px;
	margin: 0;
	padding: 5px 9px;
	overflow: hidden;
	border: 1px solid rgba(16, 32, 51, 0.08);
	border-radius: 999px;
	background: #eaf0ff;
	box-shadow: 0 2px 9px rgba(16, 32, 51, 0.12);
	color: #102033;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.25;
	pointer-events: none;
	white-space: nowrap;
	backdrop-filter: blur(8px);
}

.wlk-events-carousel .wlk-event-status-badge__dot {
	display: block;
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.wlk-events-carousel .wlk-event-status-badge__label {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wlk-events-carousel .wlk-event-status-badge--success,
.wlk-events-carousel .wlk-event-status-badge--live {
	background: #eaf7e0;
	color: #102033;
}

.wlk-events-carousel .wlk-event-status-badge--warning,
.wlk-events-carousel .wlk-event-status-badge--review {
	background: #fff2d9;
	color: #102033;
}

.wlk-events-carousel .wlk-event-status-badge--urgent,
.wlk-events-carousel .wlk-event-status-badge--danger {
	background: #fff0ed;
	color: #102033;
}

.wlk-events-carousel .wlk-event-status-badge--urgent .wlk-event-status-badge__dot,
.wlk-events-carousel .wlk-event-status-badge--danger .wlk-event-status-badge__dot {
	background: #ff6b5e;
}

.wlk-events-carousel .wlk-event-status-badge--unavailable,
.wlk-events-carousel .wlk-event-status-badge--muted {
	background: #f7f8f4;
	color: #102033;
}

.wlk-events-carousel .wlk-event-status-badge--info {
	background: #eaf0ff;
	color: #102033;
}

/* Main card information */
.wlk-events-carousel .event_item.type1 .event_detail {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 14px 14px 12px;
	border: 0;
	border-radius: 0;
	background: #fff;
}

.wlk-events-carousel .event_item.type1 .event_detail .loop_title {
	display: block;
	min-height: 2.8em;
	margin: 0 0 10px;
	line-height: 1.4;
}

.wlk-events-carousel .event_item.type1 .event_detail .loop_title a {
	display: -webkit-box;
	overflow: hidden;
	color: var(--wlk-navy);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Stretch the Event permalink across non-interactive card space. */
.wlk-events-carousel .event_item.type1 .event_detail .loop_title a::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
}

.wlk-events-carousel .event_item.type1 .event_detail .loop_title a:hover {
	color: var(--wlk-blue);
}

.wlk-events-carousel .event_item.type1 .event_excerpt,
.wlk-events-carousel .event_item.type1 .event_ratting,
.wlk-events-carousel .event_item.type1 .event-button {
	display: none !important;
}

.wlk-events-carousel .event_item.type1 .event_detail .event-location-time {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin: 0 0 10px;
}

.wlk-events-carousel .event_item.type1 .event_detail .event-location-time .event-time,
.wlk-events-carousel .event_item.type1 .event_detail .event-location-time .location-rating,
.wlk-events-carousel .event_item.type1 .event_detail .event-location-time .event_location {
	display: flex;
	align-items: flex-start;
	min-width: 0;
	margin: 0;
}

.wlk-events-carousel .event_item.type1 .event_detail .event-location-time .location-rating {
	justify-content: flex-start;
	flex-wrap: nowrap;
}

.wlk-events-carousel .event_item.type1 .event_detail .event-time .time,
.wlk-events-carousel .event_item.type1 .event_detail .event_location,
.wlk-events-carousel .event_item.type1 .event_detail .event_location a {
	overflow: hidden;
	color: var(--wlk-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	text-overflow: ellipsis;
}

.wlk-events-carousel .event_item.type1 .event_detail .event_location a {
	position: relative;
	z-index: 2;
}

.wlk-events-carousel .event_item.type1 .event_detail .event-time .time,
.wlk-events-carousel .event_item.type1 .event_detail .event_location {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.wlk-events-carousel .event_item.type1 .event_detail .event-location-time .event-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 17px;
	width: 17px;
	height: 20px;
	margin: 0 3px 0 0;
}

.wlk-events-carousel .event_item.type1 .event_detail .event-location-time .event-icon i {
	color: var(--wlk-muted) !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.wlk-events-carousel .event_item.type1 .event_detail .event-location-time .separator {
	margin-right: 3px;
}

.wlk-events-carousel .event_item.type1 .event_detail .meta-footer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 44px;
	margin-top: auto;
	padding: 7px 50px 0 0;
	border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.wlk-events-carousel .event_item.type1 .event_detail .meta-footer .event_loop_price {
	display: inline-block;
	max-width: 100%;
	margin: 0;
	color: var(--wlk-navy);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

/* Preserve MEUP wishlist behaviour while presenting the approved bookmark shape. */
.wlk-events-carousel .event_item.type1 .event_thumbnail .event-loop-favourite {
	display: grid;
	place-items: center;
	position: absolute;
	z-index: 4;
	top: auto;
	right: 10px;
	bottom: 8px;
	left: auto;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(16, 32, 51, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 4px 14px rgba(16, 32, 51, 0.22);
	color: var(--wlk-link);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .event-loop-favourite i {
	display: none !important;
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .event-loop-favourite::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12a1 1 0 0 1 1 1v17l-7-4-7 4V4a1 1 0 0 1 1-1Zm1 2v12.55l5-2.86 5 2.86V5H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12a1 1 0 0 1 1 1v17l-7-4-7 4V4a1 1 0 0 1 1-1Zm1 2v12.55l5-2.86 5 2.86V5H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .event-loop-favourite:hover {
	border-color: rgba(56, 100, 242, 0.48);
	background: #fff;
	box-shadow: 0 6px 18px rgba(16, 32, 51, 0.28);
	color: var(--wlk-link);
	transform: translateY(-1px);
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .event-loop-favourite.active {
	border-color: var(--wlk-lime);
	background: var(--wlk-lime);
	color: var(--wlk-navy);
}

.wlk-events-carousel .event_item.type1 .event_thumbnail .event-loop-favourite:focus-visible {
	outline: 3px solid var(--wlk-link);
	outline-offset: 3px;
}

.wlk-events-carousel__empty,
.wlk-events-carousel__notice {
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--wlk-border);
	border-radius: 14px;
	background: var(--wlk-cloud);
	color: var(--wlk-muted);
	font-size: 15px;
	line-height: 1.5;
}

.wlk-events-carousel__status {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

@media (max-width: 1024px) {
	.wlk-events-carousel__title {
		font-size: 22px;
	}

	.wlk-events-carousel__swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: calc(33.333% - 10.667px);
	}
}

@media (max-width: 767px) {
	.wlk-events-carousel__header {
		gap: 12px;
		margin-bottom: 14px;
	}

	.wlk-events-carousel__title {
		font-size: 20px;
	}

	.wlk-events-carousel__actions {
		gap: 8px;
	}

	.wlk-events-carousel__view-all {
		font-size: 13px;
	}

	.wlk-events-carousel__swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: 46%;
	}
}

@media (max-width: 479px) {
	.wlk-events-carousel__header {
		align-items: flex-start;
	}

	.wlk-events-carousel__actions {
		align-items: center;
	}

	.wlk-events-carousel__view-all {
		align-self: center;
	}

	.wlk-events-carousel__swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: 87%;
	}

	.wlk-events-carousel .event_item.type1 .event_detail {
		padding: 14px 14px 12px;
	}
}

@media (max-width: 359px) {
	.wlk-events-carousel__header {
		flex-wrap: wrap;
	}

	.wlk-events-carousel__actions {
		width: 100%;
		justify-content: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wlk-events-carousel *,
	.wlk-events-carousel *::before,
	.wlk-events-carousel *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
