/* LOC Category Grid Widget */

/* ── Sort filter bar ───────────────────────────────────────── */
.loc-filter-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 16px;
	width: 100%;
}

.loc-filter-bar .loc-filter-label {
	order: 1;
}

.loc-filter-bar .loc-filter-select {
	order: 2;
}

.loc-filter-label {
	font-size: 14px;
	color: inherit;
	white-space: nowrap;
}

.loc-filter-select {
	padding: 6px 12px;
	background-color: transparent;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	appearance: auto;
	-webkit-appearance: auto;
}

.loc-filter-select:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ── Grid ──────────────────────────────────────────────────── */
.loc-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.loc-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	overflow: hidden;
}

.loc-cat-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.loc-cat-img-wrap {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	flex-shrink: 0;
}

.loc-cat-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.35s ease;
}

/* No image fallback */
.loc-cat-no-img {
	width: 100%;
	height: 100%;
	background: #e0e0e0;
}

/* Hover: zoom */
.loc-hover-zoom:hover .loc-cat-img-wrap img {
	transform: scale(1.08);
}

/* Hover: overlay */
.loc-cat-overlay {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	z-index: 1;
}

.loc-hover-overlay:hover .loc-cat-overlay {
	opacity: 1;
}

/* Hover: shadow pop */
.loc-hover-shadow:hover {
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25) !important;
}

/* Hover: lift */
.loc-hover-lift:hover {
	transform: translateY(-6px);
}

/* Category name — below image */
.loc-cat-name {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: color 0.25s ease;
}

/* Category name — overlay on image */
.loc-cat-name--overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	color: #ffffff;
	background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
	padding: 24px 12px 12px;
}
