.wjn-sampler {
	margin: 40px auto;
	max-width: 1200px;
}

.wjn-sampler__title {
	margin: 0 0 16px;
}

.wjn-sampler__grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	justify-content: center;
}

.wjn-sampler__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	box-sizing: border-box;
	padding: 18px 16px;
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	text-decoration: none;
	transition: all 0.15s ease;
	min-height: 110px;
	overflow: visible;
}

.wjn-sampler__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.wjn-sampler__name {
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.wjn-sampler__city {
	line-height: 1.35;
	margin-top: 6px;
	padding-bottom: 2px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.wjn-sampler__footer {
	margin-top: 20px;
	text-align: center;
}

.wjn-sampler__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: 6px;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	background: #000;
	color: #fff;
}

.wjn-archive-widget {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
}

.wjn-archive-top-anchor {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.wjn-county-filter {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	position: sticky;
	top: 10px;
	z-index: 10;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(6px);
	margin-bottom: 20px;
	padding: 8px 0;
}

.wjn-county-filter__button {
	appearance: none;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	padding: 12px 18px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wjn-county-filter__button.is-active {
	background: #1f3f75;
	color: #fff;
	border-color: #1f3f75;
}

.wjn-archive-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wjn-archive-card {
	display: block;
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	padding: 18px;
	min-height: 150px;
	transition: all 0.15s ease;
}

.wjn-archive-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.wjn-archive-card__title {
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 10px;
}

.wjn-archive-card__address,
.wjn-archive-card__meta {
	line-height: 1.45;
}

.wjn-archive-card__meta {
	margin-top: 8px;
}

.wjn-archive-loading {
	text-align: center;
	padding: 18px 0;
	opacity: 0.8;
}

.wjn-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 2px solid #003D6B;
	border-radius: 50%;
	cursor: pointer;
	z-index: 1000;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
	padding: 0;
}

.wjn-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.wjn-back-to-top svg {
	width: 18px;
	height: 18px;
	stroke: #003D6B;
	transition: stroke 0.2s ease;
}

.wjn-back-to-top:hover {
	background: #003D6B;
	border-color: transparent;
}

.wjn-back-to-top:hover svg {
	stroke: #ffffff;
}

/* Subcategory widget */
.wjn-subcats {
	margin: 0 auto 28px;
	max-width: 1200px;
}

.wjn-subcats__breadcrumbs {
	font-size: 14px;
	margin-bottom: 8px;
	color: rgba(0, 0, 0, 0.7);
}

.wjn-subcats__breadcrumbs a {
	text-decoration: none;
	color: inherit;
}

.wjn-subcats__breadcrumbs a:hover {
	text-decoration: underline;
}

.wjn-subcats__sep {
	margin: 0 6px;
	opacity: 0.6;
}

.wjn-subcats__current {
	font-weight: 500;
}

.wjn-subcats__back {
	display: none;
	margin-bottom: 8px;
	font-size: 14px;
}

.wjn-subcats__back a {
	text-decoration: none;
	font-weight: 500;
}

.wjn-subcats__title-wrap {
	margin-bottom: 18px;
}

.wjn-subcats__title {
	margin: 0;
}

.wjn-subcats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.wjn-subcats__card {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	padding: 16px;
	min-height: 72px;
	transition: all 0.15s ease;
	box-sizing: border-box;
}

.wjn-subcats__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.wjn-subcats__card-title {
	font-weight: 600;
	line-height: 1.3;
	word-break: break-word;
}

.wjn-subcats__empty {
	padding: 12px 0;
	opacity: 0.8;
}

@media (max-width: 1024px) {
	.wjn-sampler__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wjn-subcats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wjn-archive-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wjn-back-to-top {
		right: 20px;
		bottom: 20px;
		width: 48px;
		height: 48px;
	}

	/* Tablet limits for sampler */
	.wjn-sampler--tablet-1 .wjn-sampler__card:nth-child(n+2) { display: none; }
	.wjn-sampler--tablet-2 .wjn-sampler__card:nth-child(n+3) { display: none; }
	.wjn-sampler--tablet-3 .wjn-sampler__card:nth-child(n+4) { display: none; }
	.wjn-sampler--tablet-4 .wjn-sampler__card:nth-child(n+5) { display: none; }
	.wjn-sampler--tablet-5 .wjn-sampler__card:nth-child(n+6) { display: none; }
	.wjn-sampler--tablet-6 .wjn-sampler__card:nth-child(n+7) { display: none; }
	.wjn-sampler--tablet-7 .wjn-sampler__card:nth-child(n+8) { display: none; }
	.wjn-sampler--tablet-8 .wjn-sampler__card:nth-child(n+9) { display: none; }
	.wjn-sampler--tablet-9 .wjn-sampler__card:nth-child(n+10) { display: none; }
	.wjn-sampler--tablet-10 .wjn-sampler__card:nth-child(n+11) { display: none; }
	.wjn-sampler--tablet-11 .wjn-sampler__card:nth-child(n+12) { display: none; }
	.wjn-sampler--tablet-12 .wjn-sampler__card:nth-child(n+13) { display: none; }
}

@media (max-width: 767px) {
	.wjn-sampler__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wjn-archive-results,
	.wjn-subcats__grid {
		grid-template-columns: 1fr;
	}

	.wjn-county-filter {
		top: 0;
	}

	.wjn-county-filter__button {
		flex: 1 1 calc(50% - 10px);
		text-align: center;
	}

	.wjn-back-to-top {
		right: 16px;
		bottom: 72px;
		width: 44px;
		height: 44px;
	}

	.wjn-back-to-top svg {
		width: 16px;
		height: 16px;
	}

	.wjn-subcats__breadcrumbs {
		display: none;
	}

	.wjn-subcats__back {
		display: block;
	}

	/* Mobile limits for sampler */
	.wjn-sampler--mobile-1 .wjn-sampler__card:nth-child(n+2) { display: none; }
	.wjn-sampler--mobile-2 .wjn-sampler__card:nth-child(n+3) { display: none; }
	.wjn-sampler--mobile-3 .wjn-sampler__card:nth-child(n+4) { display: none; }
	.wjn-sampler--mobile-4 .wjn-sampler__card:nth-child(n+5) { display: none; }
	.wjn-sampler--mobile-5 .wjn-sampler__card:nth-child(n+6) { display: none; }
	.wjn-sampler--mobile-6 .wjn-sampler__card:nth-child(n+7) { display: none; }
	.wjn-sampler--mobile-7 .wjn-sampler__card:nth-child(n+8) { display: none; }
	.wjn-sampler--mobile-8 .wjn-sampler__card:nth-child(n+9) { display: none; }
	.wjn-sampler--mobile-9 .wjn-sampler__card:nth-child(n+10) { display: none; }
	.wjn-sampler--mobile-10 .wjn-sampler__card:nth-child(n+11) { display: none; }
	.wjn-sampler--mobile-11 .wjn-sampler__card:nth-child(n+12) { display: none; }
	.wjn-sampler--mobile-12 .wjn-sampler__card:nth-child(n+13) { display: none; }
}