/**
 * WLOOKUPS Home Province Carousel v1.0.2
 * Scoped to the custom Elementor widget.
 */

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

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

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

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

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

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

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

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

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

.wlk-province-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-province-lime);
	border-radius: 999px;
	background: var(--wlk-province-lime);
	box-shadow: 0 2px 8px rgba(16, 32, 51, 0.06);
	color: var(--wlk-province-navy);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

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

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

.wlk-province-carousel button.wlk-province-carousel__nav:focus,
.wlk-province-carousel button.wlk-province-carousel__nav:active {
	border-color: var(--wlk-province-lime);
	background: var(--wlk-province-lime);
	color: var(--wlk-province-navy);
}

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

.wlk-province-carousel--locked .wlk-province-carousel__navigation,
.wlk-province-carousel--fallback .wlk-province-carousel__navigation {
	display: none;
}

.wlk-province-carousel__view-all:focus-visible,
.wlk-province-carousel__nav:focus-visible {
	outline: 3px solid var(--wlk-province-link);
	outline-offset: 3px;
}

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

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

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

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

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

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

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

.wlk-province-card {
	display: flex;
	position: relative;
	align-items: flex-end;
	width: 100%;
	min-width: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid rgba(16, 32, 51, 0.1);
	border-radius: 16px;
	background:
		radial-gradient(circle at 78% 22%, rgba(200, 255, 61, 0.34), transparent 30%),
		linear-gradient(135deg, #3864f2 0%, #102033 82%);
	box-shadow: 0 5px 18px rgba(16, 32, 51, 0.08);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wlk-province-card::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 18, 32, 0.02) 24%, rgba(8, 18, 32, 0.26) 56%, rgba(16, 32, 51, 0.96) 100%);
	pointer-events: none;
}

.wlk-province-card::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: auto 0 0;
	height: 48%;
	background: linear-gradient(90deg, rgba(16, 32, 51, 0.42), rgba(16, 32, 51, 0.16) 76%, transparent);
	pointer-events: none;
}

.wlk-province-card__image {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100% !important;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.wlk-province-card__content {
	display: flex;
	position: relative;
	z-index: 2;
	align-items: flex-end;
	gap: 8px;
	width: 100%;
	min-width: 0;
	padding: 16px 14px 13px;
	color: #fff;
}

.wlk-province-card__pin {
	display: grid;
	place-items: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	margin-bottom: 1px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.34));
}

.wlk-province-card__pin svg {
	display: block;
	width: 27px;
	height: 27px;
	fill: rgba(8, 18, 32, 0.28);
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wlk-province-card__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.wlk-province-card__name,
.wlk-province-card__count {
	display: block;
	overflow: hidden;
	max-width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wlk-province-carousel .wlk-province-card .wlk-province-card__name {
	margin: 0;
	color: #fff !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.28;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.72);
}

.wlk-province-carousel .wlk-province-card .wlk-province-card__count {
	margin-top: 1px;
	color: #fff !important;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.68);
}

@media (hover: hover) and (pointer: fine) {
	.wlk-province-card:hover {
		border-color: rgba(61, 107, 255, 0.32);
		box-shadow: 0 12px 28px rgba(16, 32, 51, 0.16);
		color: #fff;
		transform: translateY(-3px);
	}

	.wlk-province-card:hover .wlk-province-card__name,
	.wlk-province-card:hover .wlk-province-card__count {
		color: #fff !important;
	}

	.wlk-province-card:hover .wlk-province-card__image {
		filter: saturate(1.04);
		transform: scale(1.035);
	}
}

.wlk-province-card:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 7px var(--wlk-province-link);
}

.wlk-province-card:focus-visible .wlk-province-card__name,
.wlk-province-card:focus-visible .wlk-province-card__count {
	color: #fff !important;
}

.wlk-province-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;
}

.wlk-province-carousel__notice {
	padding: 14px 16px;
	border: 1px dashed rgba(56, 100, 242, 0.45);
	border-radius: 12px;
	background: var(--wlk-province-selected);
	color: var(--wlk-province-navy);
	font-size: 14px;
	line-height: 1.55;
}

@media (max-width: 1024px) {
	.wlk-province-carousel__swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: calc(33.333% - 9.34px);
	}
}

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

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

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

	.wlk-province-card {
		border-radius: 14px;
	}

	.wlk-province-card__content {
		padding: 14px 12px 12px;
	}

	.wlk-province-card__name {
		font-size: 15px;
	}
}

@media (max-width: 479px) {
	.wlk-province-carousel__swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: 74%;
	}
}

@media (max-width: 419px) {
	.wlk-province-carousel__header {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	.wlk-province-carousel__actions {
		justify-content: space-between;
		width: 100%;
	}
}

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