/*
 * Advanced Filter Catalog — base stylesheet.
 *
 * Every visual value comes from CSS custom properties generated per listing
 * (.afc-listing-{id} { --afc-*: … }). This file is also loaded inside the
 * editor preview iframe, so the editor and the frontend share one stylesheet.
 *
 * Unset inherited properties (font, color, text-align…) intentionally fall
 * back to "unset" = inherit, so the theme (Divi) typography applies until a
 * value is chosen in the editor.
 *
 * Selectors are scoped to .afc-listing (no generic .card/.button/.grid) and are
 * specific enough to win over theme element rules such as `h3`, `p`, `input`.
 */

.afc-listing {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--afc-g-max);
	margin-left: auto;
	margin-right: auto;
}
.afc-listing *,
.afc-listing *::before,
.afc-listing *::after {
	box-sizing: inherit;
}
.afc-listing [hidden] {
	display: none !important;
}
.afc-listing .afc-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.afc-listing .afc-icon {
	display: block;
	flex: none;
	width: 1em;
	height: 1em;
}

/* ---------- Filter bar ---------- */
.afc-listing .afc-bar {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--afc-f-rgap, 14px);
	margin: 0 0 var(--afc-f-mb, 24px);
	padding: var(--afc-f-p);
	background: var(--afc-f-bg);
	border: var(--afc-f-bw, 0) solid var(--afc-f-bc, transparent);
	border-radius: var(--afc-f-r);
	box-shadow: var(--afc-f-sh, none);
}
.afc-listing .afc-bar__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--afc-f-rgap, 14px) var(--afc-f-gap, 12px);
	min-width: 0;
}
.afc-listing .afc-bar__filters {
	position: relative;
	display: flex;
	flex: 1 1 320px;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--afc-f-gap, 12px);
	min-width: 0;
}
.afc-listing .afc-bar__measure {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	gap: var(--afc-f-gap, 12px);
	height: 0;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	white-space: nowrap;
}

/* Filter / "Más filtros" / mobile toggle buttons. */
.afc-listing .afc-fbtn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	height: var(--afc-fb-h, 44px);
	margin: 0;
	padding: var(--afc-fb-p, 0 14px);
	font-family: var(--afc-fb-font, inherit);
	font-size: var(--afc-fb-size, 15px);
	font-weight: var(--afc-fb-weight, 500);
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: var(--afc-fb-color, inherit);
	background: var(--afc-fb-bg, #fff);
	border: var(--afc-fb-bw, 1px) var(--afc-fb-bs, solid) var(--afc-fb-bc, #ccc);
	border-radius: var(--afc-fb-r, 0);
	box-shadow: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.afc-listing .afc-fbtn:hover,
.afc-listing .afc-fbtn.afc-force-hover {
	color: var(--afc-fb-color-h, var(--afc-fb-color, inherit));
	background: var(--afc-fb-bg-h, var(--afc-fb-bg, #fff));
	border-color: var(--afc-fb-bc-h, var(--afc-fb-bc, #ccc));
}
.afc-listing .afc-fbtn[aria-expanded="true"],
.afc-listing .afc-dd.is-active > .afc-fbtn,
.afc-listing .afc-more.is-active > .afc-fbtn,
.afc-listing .afc-bar__toggle.is-active,
.afc-listing .afc-fbtn.afc-force-active {
	color: var(--afc-fb-color-a, var(--afc-fb-color, inherit));
	background: var(--afc-fb-bg-a, var(--afc-fb-bg, #fff));
	border-color: var(--afc-fb-bc-a, var(--afc-fb-bc, #ccc));
}
.afc-listing .afc-fbtn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.afc-listing .afc-fbtn:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.afc-listing .afc-fbtn .afc-icon {
	width: 1.1em;
	height: 1.1em;
}
.afc-listing .afc-fbtn__label {
	overflow: hidden;
	text-overflow: ellipsis;
}
.afc-listing .afc-fbtn__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6em;
	height: 1.6em;
	padding: 0 .45em;
	font-size: .78em;
	font-weight: 600;
	line-height: 1;
	color: var(--afc-fb-bg, #fff);
	background: var(--afc-fb-color-a, var(--afc-fb-color, #222));
	border-radius: 999px;
}
.afc-listing .afc-fbtn__count:empty {
	display: none;
}
.afc-listing .afc-fbtn__chev {
	margin-left: auto;
	transition: transform .2s ease;
}
.afc-listing .afc-fbtn[aria-expanded="true"] > .afc-fbtn__chev {
	transform: rotate(180deg);
}

/* Dropdowns. */
.afc-listing .afc-dd,
.afc-listing .afc-more {
	position: relative;
	flex: none;
	min-width: 0;
}
.afc-listing .afc-dd__panel,
.afc-listing .afc-more__panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 60;
	min-width: max(100%, var(--afc-pn-w, 260px));
	max-width: min(92vw, 440px);
	max-height: var(--afc-pn-mh, 360px);
	overflow: auto;
	padding: var(--afc-pn-p, 8px);
	background: var(--afc-pn-bg, #fff);
	border: var(--afc-pn-bw, 1px) solid var(--afc-pn-bc, #ddd);
	border-radius: var(--afc-pn-r, 4px);
	box-shadow: var(--afc-pn-sh, 0 12px 32px rgba(0, 0, 0, .14));
	overscroll-behavior: contain;
}
.afc-listing .afc-dd--right > .afc-dd__panel,
.afc-listing .afc-more--right > .afc-more__panel {
	left: auto;
	right: 0;
}
.afc-listing.afc-js .afc-dd:not(.is-open) > .afc-dd__panel,
.afc-listing.afc-js .afc-more:not(.is-open) > .afc-more__panel {
	display: none;
}

/* Inside "Más filtros" and the mobile drawer, filters become an accordion. */
.afc-listing .afc-more__panel {
	min-width: max(100%, var(--afc-pn-w, 280px));
	padding: 4px var(--afc-pn-p, 8px);
}
.afc-listing .afc-more__panel .afc-dd,
.afc-listing .afc-drawer__body .afc-dd {
	display: block;
	border-bottom: 1px solid var(--afc-pn-bc, #e3e3e3);
}
.afc-listing .afc-more__panel .afc-dd:last-child,
.afc-listing .afc-drawer__body .afc-dd:last-child {
	border-bottom: 0;
}
.afc-listing .afc-more__panel .afc-fbtn,
.afc-listing .afc-drawer__body .afc-fbtn {
	display: flex;
	width: 100%;
	height: auto;
	min-height: 44px;
	padding: 10px 6px;
	color: var(--afc-pn-oc, inherit);
	background: transparent;
	border: 0;
	border-radius: 0;
}
.afc-listing .afc-more__panel .afc-dd.is-active > .afc-fbtn,
.afc-listing .afc-drawer__body .afc-dd.is-active > .afc-fbtn {
	color: var(--afc-fb-color-a, inherit);
	background: transparent;
}
.afc-listing .afc-more__panel .afc-fbtn__chev,
.afc-listing .afc-drawer__body .afc-fbtn__chev {
	transform: rotate(-90deg);
}
.afc-listing .afc-more__panel .afc-fbtn[aria-expanded="true"] > .afc-fbtn__chev,
.afc-listing .afc-drawer__body .afc-fbtn[aria-expanded="true"] > .afc-fbtn__chev {
	transform: rotate(0deg);
}
.afc-listing .afc-more__panel .afc-dd__panel,
.afc-listing .afc-drawer__body .afc-dd__panel {
	position: static;
	min-width: 0;
	max-width: none;
	max-height: none;
	padding: 0 0 8px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Options. */
.afc-listing .afc-opts {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.afc-listing .afc-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 10px 8px calc(10px + var(--afc-depth, 0) * 18px);
	font-size: var(--afc-pn-os, 15px);
	font-weight: normal;
	line-height: 1.3;
	color: var(--afc-pn-oc, inherit);
	border-radius: 3px;
	cursor: pointer;
	transition: background-color .15s ease;
}
.afc-listing .afc-opt:hover,
.afc-listing .afc-opt.afc-force-hover {
	background: var(--afc-pn-obh, rgba(0, 0, 0, .04));
}
.afc-listing .afc-opt__input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--afc-pn-ac, currentColor);
	cursor: pointer;
}
.afc-listing .afc-opt__input:focus-visible {
	outline: 2px solid var(--afc-pn-ac, currentColor);
	outline-offset: 2px;
}
.afc-listing .afc-opts__empty {
	margin: 0;
	padding: 8px 10px;
	opacity: .7;
}

/* Search. */
.afc-listing .afc-search {
	position: relative;
	flex: 0 1 var(--afc-fi-w, 280px);
	min-width: min(200px, 100%);
	margin: 0;
	padding: 0;
}
/* Search on its own line (chosen by the script when it lets more filters fit). */
.afc-listing .afc-bar--stacked .afc-count {
	order: 1;
}
.afc-listing .afc-bar--stacked .afc-search {
	flex: 1 1 100%;
	order: 2;
}
.afc-listing .afc-bar.is-compact .afc-search {
	flex: 1 1 200px;
}
.afc-listing .afc-search__icon {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 18px;
	height: 18px;
	color: var(--afc-fi-ic, currentColor);
	transform: translateY(-50%);
	pointer-events: none;
}
.afc-listing .afc-filter__input {
	display: block;
	width: 100%;
	max-width: none;
	height: var(--afc-fi-h);
	margin: 0;
	padding: var(--afc-fi-p);
	font-family: var(--afc-fi-font);
	font-size: var(--afc-fi-size);
	line-height: 1.2;
	color: var(--afc-fi-color);
	background-color: var(--afc-fi-bg);
	border-width: var(--afc-fi-bw);
	border-style: var(--afc-fi-bs);
	border-color: var(--afc-fi-bc);
	border-radius: var(--afc-fi-r);
	box-shadow: none;
	outline: 2px solid transparent;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.afc-listing .afc-filter__input::placeholder {
	color: var(--afc-fi-ph);
	opacity: 1;
}
.afc-listing .afc-filter__input::-webkit-search-cancel-button {
	cursor: pointer;
}
.afc-listing .afc-filter__input:hover,
.afc-listing .afc-filter__input.afc-force-hover {
	background-color: var(--afc-fi-bg-h, var(--afc-fi-bg));
	border-color: var(--afc-fi-bc-h, var(--afc-fi-bc));
}
.afc-listing .afc-filter__input:focus,
.afc-listing .afc-filter__input.afc-force-focus {
	background-color: var(--afc-fi-bg-f, var(--afc-fi-bg));
	border-color: var(--afc-fi-bc-f, var(--afc-fi-bc));
	box-shadow: 0 0 0 3px var(--afc-fi-ring, rgba(0, 0, 0, .2));
}

/* Counter. */
.afc-listing .afc-bar .afc-count {
	flex: none;
	margin-left: auto;
	white-space: nowrap;
}

/* Chips + reset. */
.afc-listing .afc-bar__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}
.afc-listing .afc-chips {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: var(--afc-ch-gap, 8px);
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.afc-listing .afc-chips:empty {
	display: none;
}
.afc-listing .afc-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	margin: 0;
	padding: var(--afc-ch-p, 5px 8px 5px 12px);
	font-family: var(--afc-ch-font, inherit);
	font-size: var(--afc-ch-size, 14px);
	font-weight: var(--afc-ch-weight, 500);
	line-height: 1.3;
	color: var(--afc-ch-color, inherit);
	background: var(--afc-ch-bg, #eee);
	border: var(--afc-ch-bw, 0) solid var(--afc-ch-bc, transparent);
	border-radius: var(--afc-ch-r, 3px);
	list-style: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.afc-listing .afc-chip::before,
.afc-listing .afc-chip::marker {
	content: none;
}
.afc-listing .afc-chip:hover,
.afc-listing .afc-chip:focus-within,
.afc-listing .afc-chip.afc-force-hover {
	color: var(--afc-ch-color-h, var(--afc-ch-color, inherit));
	background: var(--afc-ch-bg-h, var(--afc-ch-bg, #eee));
	border-color: var(--afc-ch-bc-h, var(--afc-ch-bc, transparent));
}
.afc-listing .afc-chip__text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.afc-listing .afc-chip__x {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: calc(var(--afc-ch-xs, 14px) + 8px);
	height: calc(var(--afc-ch-xs, 14px) + 8px);
	margin: -4px -2px -4px 0;
	padding: 0;
	color: var(--afc-ch-xc, currentColor);
	text-decoration: none;
	border-radius: 50%;
	transition: background-color .15s ease;
}
.afc-listing .afc-chip__x .afc-icon {
	width: var(--afc-ch-xs, 14px);
	height: var(--afc-ch-xs, 14px);
}
.afc-listing .afc-chip__x:hover {
	background: rgba(0, 0, 0, .08);
}
.afc-listing .afc-chip__x:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}
.afc-listing .afc-clear {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin: 0 0 0 auto;
	padding: var(--afc-b-p);
	font-family: var(--afc-b-font);
	font-weight: var(--afc-b-weight);
	font-size: var(--afc-b-size);
	letter-spacing: var(--afc-b-ls);
	text-transform: var(--afc-b-tt);
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	color: var(--afc-b-color);
	background: var(--afc-b-bg);
	border: var(--afc-b-bw, 0) var(--afc-b-bs, solid) var(--afc-b-bc, transparent);
	border-radius: var(--afc-b-r);
	cursor: pointer;
	transition: color var(--afc-b-tr, 200ms) ease, background-color var(--afc-b-tr, 200ms) ease, border-color var(--afc-b-tr, 200ms) ease;
}
.afc-listing .afc-clear:hover,
.afc-listing .afc-clear:focus-visible,
.afc-listing .afc-clear.afc-force-hover {
	color: var(--afc-b-color-h, var(--afc-b-color));
	background: var(--afc-b-bg-h, var(--afc-b-bg));
	border-color: var(--afc-b-bc-h, var(--afc-b-bc));
}
.afc-listing .afc-clear:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.afc-listing .afc-clear__icon {
	width: 1.05em;
	height: 1.05em;
}

/* Compact (narrow container): toggle + search, filters in a drawer. */
.afc-listing .afc-bar.is-compact .afc-bar__filters {
	display: none;
}
.afc-listing .afc-bar.is-compact .afc-bar__toggle {
	flex: 0 0 auto;
}
.afc-listing .afc-bar.is-compact .afc-count {
	flex-basis: 100%;
	order: 5;
	margin-left: 0;
}

/* Drawer (dialog). */
.afc-listing .afc-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	justify-content: flex-end;
	margin: 0;
}
.afc-listing .afc-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 15, 20, .45);
}
.afc-listing .afc-drawer__sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	height: 100%;
	color: var(--afc-pn-oc, #1d2733);
	background: var(--afc-pn-bg, #fff);
	box-shadow: -10px 0 40px rgba(0, 0, 0, .2);
	animation: afc-drawer-in .25s ease;
}
.afc-listing .afc-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px 12px 18px;
	border-bottom: 1px solid var(--afc-pn-bc, #e3e3e3);
}
.afc-listing .afc-drawer__title {
	margin: 0;
	padding: 0;
	font-size: 1.1em;
	font-weight: 600;
}
.afc-listing .afc-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.afc-listing .afc-drawer__close .afc-icon {
	width: 22px;
	height: 22px;
}
.afc-listing .afc-drawer__close:focus-visible {
	outline: 2px solid currentColor;
}
.afc-listing .afc-drawer__body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 4px 16px;
	overscroll-behavior: contain;
}
.afc-listing .afc-drawer__foot {
	padding: 12px 16px;
	border-top: 1px solid var(--afc-pn-bc, #e3e3e3);
}
.afc-listing .afc-drawer__apply {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 16px;
	font: inherit;
	font-weight: 600;
	color: var(--afc-fb-bg, #fff);
	background: var(--afc-fb-color-a, #1d2733);
	border: 0;
	border-radius: var(--afc-fb-r, 0);
	cursor: pointer;
}
.afc-listing .afc-drawer__apply:focus-visible {
	outline: 2px solid var(--afc-fb-color-a, #1d2733);
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.afc-listing .afc-drawer {
		align-items: flex-end;
	}
	.afc-listing .afc-drawer__sheet {
		width: 100%;
		height: auto;
		max-height: 88vh;
		border-radius: 14px 14px 0 0;
		animation-name: afc-drawer-up;
	}
}
@keyframes afc-drawer-in {
	from { transform: translateX(40px); opacity: 0; }
	to { transform: none; opacity: 1; }
}
@keyframes afc-drawer-up {
	from { transform: translateY(40px); opacity: 0; }
	to { transform: none; opacity: 1; }
}
.afc-portal {
	position: static;
	height: 0;
	margin: 0;
	padding: 0;
}

/* Without JavaScript: every list visible, submit button shown. */
.afc-listing:not(.afc-js) .afc-bar__filters {
	flex-wrap: wrap;
	align-items: flex-start;
}
.afc-listing:not(.afc-js) .afc-dd__panel {
	position: static;
	display: block;
	max-height: 240px;
	box-shadow: none;
}
.afc-listing:not(.afc-js) .afc-more,
.afc-listing:not(.afc-js) .afc-bar__toggle,
.afc-listing:not(.afc-js) .afc-drawer {
	display: none !important;
}
.afc-listing.afc-js .afc-filters__submit {
	display: none;
}

/* ---------- Text targets (counter, card texts) ---------- */
.afc-listing .afc-count,
.afc-listing .afc-el--text {
	margin: var(--afc-t-m);
	padding: 0;
	font-family: var(--afc-t-font);
	font-weight: var(--afc-t-weight);
	font-size: var(--afc-t-size);
	line-height: var(--afc-t-lh);
	letter-spacing: var(--afc-t-ls);
	color: var(--afc-t-color);
	text-align: var(--afc-t-align);
	text-transform: var(--afc-t-tt);
	font-style: var(--afc-t-fs);
	text-decoration: var(--afc-t-td);
	word-wrap: break-word;
}
.afc-listing .afc-el--text a {
	color: inherit;
	text-decoration: inherit;
	font: inherit;
	transition: color .2s ease;
}
.afc-listing .afc-el--text a:hover,
.afc-listing .afc-el--text a:focus-visible,
.afc-listing .afc-el--text.afc-force-hover a,
.afc-listing .afc-card--clickable:hover .afc-el--title a {
	color: var(--afc-t-color-h, inherit);
}
.afc-listing .afc-empty {
	margin: 0;
	padding: 24px 0;
	text-align: center;
}

/* ---------- Buttons (card button) ---------- */
.afc-listing .afc-el--button {
	margin: var(--afc-b-m);
	padding: 0;
	text-align: var(--afc-b-ta);
}
.afc-listing .afc-button {
	display: inline-block;
	width: var(--afc-b-w, auto);
	margin: 0;
	padding: var(--afc-b-p);
	font-family: var(--afc-b-font);
	font-weight: var(--afc-b-weight);
	font-size: var(--afc-b-size);
	letter-spacing: var(--afc-b-ls);
	text-transform: var(--afc-b-tt);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--afc-b-color);
	background: var(--afc-b-bg);
	border: var(--afc-b-bw) var(--afc-b-bs) var(--afc-b-bc);
	border-radius: var(--afc-b-r);
	box-shadow: none;
	cursor: pointer;
	transition: color var(--afc-b-tr, 200ms) ease, background-color var(--afc-b-tr, 200ms) ease, border-color var(--afc-b-tr, 200ms) ease;
}
.afc-listing .afc-button:hover,
.afc-listing .afc-button:focus-visible,
.afc-listing .afc-button.afc-force-hover {
	color: var(--afc-b-color-h, var(--afc-b-color));
	background: var(--afc-b-bg-h, var(--afc-b-bg));
	border-color: var(--afc-b-bc-h, var(--afc-b-bc));
}
.afc-listing .afc-button:focus-visible,
.afc-listing .afc-page:focus-visible,
.afc-listing .afc-el a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---------- Grid & card ---------- */
.afc-listing .afc-results {
	transition: opacity .2s ease;
}
.afc-listing .afc-results[aria-busy="true"] {
	opacity: .55;
}
.afc-listing .afc-grid {
	display: grid;
	grid-template-columns: repeat(var(--afc-g-cols, 3), minmax(0, 1fr));
	column-gap: var(--afc-g-gapx);
	row-gap: var(--afc-g-gapy);
	align-items: var(--afc-g-align, stretch);
	margin: 0;
	padding: 0;
}
.afc-listing .afc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--afc-c-gap);
	min-width: 0;
	margin: 0;
	padding: var(--afc-c-p);
	overflow: hidden;
	text-align: var(--afc-c-ta);
	background: var(--afc-c-bg);
	border-width: var(--afc-c-bw);
	border-style: var(--afc-c-bs);
	border-color: var(--afc-c-bc);
	border-radius: var(--afc-c-r);
	box-shadow: var(--afc-c-sh);
	transition: background-color var(--afc-c-tr, 250ms) ease, border-color var(--afc-c-tr, 250ms) ease, box-shadow var(--afc-c-tr, 250ms) ease, transform var(--afc-c-tr, 250ms) ease;
}
.afc-listing .afc-card:hover,
.afc-listing .afc-card.afc-force-hover {
	background: var(--afc-c-bg-h, var(--afc-c-bg));
	border-color: var(--afc-c-bc-h, var(--afc-c-bc));
	box-shadow: var(--afc-c-sh-h, var(--afc-c-sh));
	transform: var(--afc-c-tf-h, none);
}
.afc-listing .afc-card__body {
	display: contents;
}
.afc-listing .afc-card--bleed {
	gap: 0;
	padding: 0;
}
.afc-listing .afc-card--bleed > .afc-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--afc-c-gap);
	min-width: 0;
	padding: var(--afc-c-p);
}
.afc-listing .afc-card > .afc-el,
.afc-listing .afc-card__body > .afc-el {
	min-width: 0;
}
.afc-listing .afc-card > .afc-el--push,
.afc-listing .afc-card__body > .afc-el--push {
	margin-top: auto;
}
.afc-listing .afc-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.afc-listing .afc-card--clickable {
	cursor: pointer;
}
.afc-listing .afc-card--clickable .afc-card__body a,
.afc-listing .afc-card--clickable .afc-arrow--inline {
	position: relative;
	z-index: 2;
}

/* ---------- Image ---------- */
.afc-listing .afc-el--image {
	position: relative;
	margin: var(--afc-im-m);
	padding: var(--afc-im-p);
	overflow: hidden;
	aspect-ratio: var(--afc-im-ratio);
	height: var(--afc-im-h);
	background: var(--afc-im-bg);
	border-radius: var(--afc-im-r);
}
.afc-listing .afc-el__media {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: inherit;
}
.afc-listing .afc-el__img,
.afc-listing .afc-el__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: var(--afc-im-fit, cover);
	border: 0;
	border-radius: 0;
	transition: transform var(--afc-im-tr, 400ms) ease;
}
.afc-listing .afc-el__placeholder {
	min-height: 80px;
	background: linear-gradient(135deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .1));
}
.afc-listing .afc-card:hover .afc-el__img,
.afc-listing .afc-card:hover .afc-el__placeholder,
.afc-listing .afc-el--image.afc-force-hover .afc-el__img,
.afc-listing .afc-el--image.afc-force-hover .afc-el__placeholder,
.afc-listing .afc-card.afc-force-hover .afc-el__img {
	transform: scale(var(--afc-im-zoom, 1));
}

/* ---------- Badge over the image ---------- */
.afc-listing .afc-el--badge {
	position: absolute;
	z-index: 3;
	display: inline-block;
	max-width: calc(100% - 2 * var(--afc-bd-x, 14px));
	margin: 0;
	padding: var(--afc-bd-p, 4px 8px);
	overflow: hidden;
	font-family: var(--afc-bd-font, inherit);
	font-size: var(--afc-bd-size, 11px);
	font-weight: var(--afc-bd-weight, 600);
	line-height: 1.3;
	letter-spacing: var(--afc-bd-ls);
	text-transform: var(--afc-bd-tt);
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--afc-bd-color, inherit);
	background: var(--afc-bd-bg, #fff);
	border: var(--afc-bd-bw, 0) solid var(--afc-bd-bc, transparent);
	border-radius: var(--afc-bd-r);
	box-shadow: var(--afc-bd-sh, none);
	pointer-events: none;
}
.afc-listing .afc-badge--tl { top: var(--afc-bd-y, 14px); left: var(--afc-bd-x, 14px); }
.afc-listing .afc-badge--tc { top: var(--afc-bd-y, 14px); left: 50%; transform: translateX(-50%); }
.afc-listing .afc-badge--tr { top: var(--afc-bd-y, 14px); right: var(--afc-bd-x, 14px); }
.afc-listing .afc-badge--bl { bottom: var(--afc-bd-y, 14px); left: var(--afc-bd-x, 14px); }
.afc-listing .afc-badge--bc { bottom: var(--afc-bd-y, 14px); left: 50%; transform: translateX(-50%); }
.afc-listing .afc-badge--br { bottom: var(--afc-bd-y, 14px); right: var(--afc-bd-x, 14px); }

/* ---------- Info line (under the title) ---------- */
.afc-listing .afc-el--info {
	display: flex;
	align-items: center;
	gap: var(--afc-in-ig, 6px);
	min-width: 0;
	margin: var(--afc-in-m);
	padding: var(--afc-in-p);
	font-family: var(--afc-in-font);
	font-size: var(--afc-in-size);
	font-weight: var(--afc-in-weight);
	line-height: var(--afc-in-lh);
	letter-spacing: var(--afc-in-ls);
	text-transform: var(--afc-in-tt);
	color: var(--afc-in-color);
}
.afc-listing .afc-el--info .afc-el__icon {
	width: var(--afc-in-is, 1em);
	height: var(--afc-in-is, 1em);
	color: var(--afc-in-ic, currentColor);
}
.afc-listing .afc-el--info .afc-el__text {
	min-width: 0;
	overflow-wrap: anywhere;
}
.afc-listing .afc-card:has(.afc-arrow--corner) .afc-el--info {
	padding-right: 36px;
}

/* ---------- Action arrow ---------- */
.afc-listing .afc-el--arrow {
	margin: 0;
	padding: 0;
	line-height: 0;
}
.afc-listing .afc-arrow--corner {
	position: absolute;
	right: var(--afc-ar-x, 18px);
	bottom: var(--afc-ar-y, 16px);
	z-index: 2;
}
.afc-listing .afc-arrow--inline {
	align-self: flex-end;
}
.afc-listing .afc-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--afc-ar-p, 0);
	color: var(--afc-ar-color, currentColor);
	background: var(--afc-ar-bg, transparent);
	border: var(--afc-ar-bw, 0) solid var(--afc-ar-bc, transparent);
	border-radius: var(--afc-ar-r);
	text-decoration: none;
	transition: color var(--afc-ar-tr, 200ms) ease, background-color var(--afc-ar-tr, 200ms) ease, transform var(--afc-ar-tr, 200ms) ease;
}
.afc-listing .afc-arrow .afc-icon {
	width: var(--afc-ar-size, 22px);
	height: var(--afc-ar-size, 22px);
}
.afc-listing .afc-card:hover .afc-arrow,
.afc-listing .afc-arrow:focus-visible,
.afc-listing .afc-el--arrow.afc-force-hover .afc-arrow {
	color: var(--afc-ar-color-h, var(--afc-ar-color, currentColor));
	background: var(--afc-ar-bg-h, var(--afc-ar-bg, transparent));
	transform: translateX(3px);
}

/* ---------- Separator ---------- */
.afc-listing .afc-el--separator {
	width: var(--afc-s-w, 100%);
	height: 0;
	margin: var(--afc-s-m);
	padding: 0;
	border: 0;
	border-top: var(--afc-s-th, 1px) var(--afc-s-style, solid) var(--afc-s-color, currentColor);
}

/* ---------- Pagination ---------- */
.afc-listing .afc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--afc-p-gap);
	justify-content: var(--afc-p-align, center);
	margin: var(--afc-p-mt) 0 0;
	padding: 0;
}
.afc-listing .afc-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--afc-p-size);
	height: var(--afc-p-size);
	margin: 0;
	padding: 0 .75em;
	font-size: var(--afc-p-fs);
	line-height: 1;
	text-decoration: none;
	color: var(--afc-p-color);
	background: var(--afc-p-bg);
	border: var(--afc-p-bw) solid var(--afc-p-bc);
	border-radius: var(--afc-p-r);
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.afc-listing a.afc-page:hover,
.afc-listing a.afc-page:focus-visible,
.afc-listing .afc-page.afc-force-hover {
	color: var(--afc-p-color-h, var(--afc-p-color));
	background: var(--afc-p-bg-h, var(--afc-p-bg));
	border-color: var(--afc-p-bc-h, var(--afc-p-bc));
}
.afc-listing .afc-page--current {
	color: var(--afc-p-color-a, var(--afc-p-color));
	background: var(--afc-p-bg-a, var(--afc-p-bg));
	border-color: var(--afc-p-bc-a, var(--afc-p-bc));
}
.afc-listing .afc-page--dots {
	background: transparent;
	border-color: transparent;
}

/* ---------- Showcase: grid or carousel of a listing's cards ----------
 * The root also has .afc-listing-{id}, so cards, colours and spacing come from
 * the source listing; .afc-sc-{id}-{n} only sets --afc-g-cols per device. */
/* The carousel is a scroller, and a scroller clips what overflows it: the
 * card shadow and hover lift of the listing design would be cut at the edges.
 * The track gets room around the cards (vertical: enough for large shadows;
 * sides: one column gap, so the neighbouring cards stay out of view) and
 * negative margins, so the cards keep exactly the listing size and position.
 * The root clips only beyond that room, so the page never scrolls sideways. */
.afc-listing.afc-showcase--carousel {
	overflow-x: clip;
	overflow-clip-margin: var(--afc-g-gapx, 24px);
}
.afc-showcase--carousel .afc-showcase__stage {
	position: relative;
}
.afc-listing.afc-showcase--carousel .afc-showcase__track {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--afc-g-cols, 3) - 1) * var(--afc-g-gapx, 24px)) / var(--afc-g-cols, 3));
	margin: -24px calc(-1 * var(--afc-g-gapx, 24px)) -48px;
	padding: 24px var(--afc-g-gapx, 24px) 48px;
	scroll-padding-inline: var(--afc-g-gapx, 24px);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
/* While the script animates the scroll (eased, its own duration). */
.afc-listing.afc-showcase--carousel .afc-showcase__track.is-animating {
	scroll-snap-type: none;
	scroll-behavior: auto;
}
.afc-listing.afc-showcase--js .afc-showcase__track {
	scrollbar-width: none;
}
.afc-listing.afc-showcase--js .afc-showcase__track::-webkit-scrollbar {
	display: none;
}
.afc-listing .afc-showcase__track:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.afc-listing .afc-showcase__slide {
	display: flex;
	min-width: 0;
	scroll-snap-align: start;
}
.afc-listing .afc-showcase__slide > .afc-card {
	flex: 1 1 auto;
	width: 100%;
}
.afc-listing .afc-showcase__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: var(--afc-p-size, 40px);
	padding: 0;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
	transform: translateY(-50%);
}
.afc-listing .afc-showcase__arrow--prev {
	left: 10px;
}
.afc-listing .afc-showcase__arrow--next {
	right: 10px;
}
.afc-listing .afc-showcase__arrow .afc-icon {
	width: 1.15em;
	height: 1.15em;
}
.afc-listing .afc-showcase__arrow:hover:not([disabled]),
.afc-listing .afc-showcase__arrow:focus-visible {
	color: var(--afc-p-color-h, var(--afc-p-color));
	background: var(--afc-p-bg-h, var(--afc-p-bg));
	border-color: var(--afc-p-bc-h, var(--afc-p-bc));
}
.afc-listing .afc-showcase__arrow[disabled] {
	opacity: .35;
	cursor: default;
}
.afc-listing .afc-showcase__nav {
	display: flex;
	align-items: center;
	justify-content: var(--afc-p-align, center);
	gap: 8px;
	margin: 18px 0 0;
}
.afc-listing .afc-showcase__nav[hidden] {
	display: none !important;
}
.afc-listing .afc-showcase__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
}
.afc-listing .afc-showcase__dot,
.afc-listing .afc-showcase__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 50%;
}
.afc-listing .afc-showcase__dot::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	background: var(--afc-p-bc, #d6dbe1);
	border-radius: 999px;
	transition: width .25s ease, background-color .25s ease;
}
.afc-listing .afc-showcase__dot:hover::before {
	background: var(--afc-p-bc-h, var(--afc-p-bc, #9aa4ae));
}
.afc-listing .afc-showcase__dot[aria-current="true"]::before {
	width: 22px;
	background: var(--afc-p-bg-a, #0b3a63);
}
.afc-listing .afc-showcase__dot[aria-current="true"] {
	width: 34px;
}
.afc-listing .afc-showcase__dot:focus-visible,
.afc-listing .afc-showcase__play:focus-visible {
	outline: 2px solid var(--afc-p-bg-a, #0b3a63);
	outline-offset: 1px;
}
.afc-listing .afc-showcase__play {
	color: var(--afc-p-bg-a, #0b3a63);
}
/* Pause icon (two bars); play triangle when paused. */
.afc-listing .afc-showcase__play span {
	display: block;
	width: 8px;
	height: 10px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}
.afc-listing .afc-showcase__play.is-paused span {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 9px solid currentColor;
	border-right: 0;
}
@media (max-width: 767px) {
	.afc-listing .afc-showcase__arrow {
		width: 34px;
		min-width: 34px;
		height: 34px;
	}
	.afc-listing .afc-showcase__arrow--prev {
		left: 6px;
	}
	.afc-listing .afc-showcase__arrow--next {
		right: 6px;
	}
}

/* ---------- Notices / errors ---------- */
.afc-listing .afc-error {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: rgba(214, 54, 56, .06);
}

@media (prefers-reduced-motion: reduce) {
	.afc-listing *,
	.afc-listing *::before,
	.afc-listing *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.afc-listing .afc-card:hover,
	.afc-listing .afc-card.afc-force-hover {
		transform: none;
	}
	.afc-listing .afc-card:hover .afc-el__img,
	.afc-listing .afc-card:hover .afc-arrow {
		transform: none;
	}
	.afc-listing.afc-showcase--carousel .afc-showcase__track {
		scroll-behavior: auto;
	}
}
