/* State Tacos List — ACF block (filter + card styling aligned with recipes list) */

.ortega-state-tacos-list {
	--ortega-stl-blue: #0058a4;
	--ortega-stl-blue-dark: #093272;
	--ortega-stl-yellow: #ffe400;
	--ortega-stl-grey: #f7f7f8;
	--ortega-stl-cloud: var(--wp--preset--color--blue-200, #e9f2f9);
	--ortega-stl-card-radius: 8px;
	--ortega-stl-card-radius-mobile: 4px;
	--ortega-stl-tab-cap-width: 5px;
	--ortega-stl-padding-inline: clamp(1rem, 3vw, 3rem);
	box-sizing: border-box;
	color: var(--ortega-stl-blue-dark);
	max-width: 100vw;
	overflow-x: clip;
	padding: clamp(1.5rem, 4vw, 3rem) var(--ortega-stl-padding-inline) clamp(2.5rem, 6vw, 4rem);
	position: relative;
	width: 100%;
}

/* Preload tab border assets (shared with recipes list). */
.ortega-state-tacos-list::before {
	background-image:
		url("../images/recipes-list/tab-active-left.svg"),
		url("../images/recipes-list/tab-active-right.svg"),
		url("../images/recipes-list/tab-default-left.svg"),
		url("../images/recipes-list/tab-default-right.svg");
	content: "";
	height: 0;
	overflow: hidden;
	position: absolute;
	visibility: hidden;
	width: 0;
}

.ortega-state-tacos-list__inner {
	box-sizing: border-box;
	display: grid;
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
	margin-inline: auto;
	max-width: min(1347px, 100%);
	min-width: 0;
	padding-top: 3rem;
	width: 100%;
}

/* Header */

.ortega-state-tacos-list__header {
	align-items: center;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	justify-items: center;
	text-align: center;
	width: 100%;
}

.ortega-state-tacos-list__title-wrap {
	position: relative;
	width: min(100%, 48rem);
}

.ortega-state-tacos-list__eyebrow {
	align-items: center;
	color: var(--ortega-stl-blue);
	display: inline-flex;
	font-family: var(--ortega-font-display);
	font-size: clamp(1.125rem, 2.8vw, 2rem);
	font-weight: 700;
	gap: 0.35rem;
	justify-content: center;
	letter-spacing: 0.02em;
	line-height: 1.1;
	margin: 0 0 -0.15rem;
	position: relative;
	text-transform: none;
	transform: rotate(-2.28deg);
	z-index: 2;
}

.ortega-state-tacos-list__eyebrow-text {
	display: inline-block;
}

.ortega-state-tacos-list__headline {
	color: var(--ortega-stl-blue-dark);
	font-family: var(--ortega-font-display);
	font-size: clamp(2.5rem, 7vw, 5.5rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 0.92;
	margin: 0;
	text-transform: uppercase;
	white-space: pre-line;
}

/* Filter chips */

.ortega-state-tacos-list__filters {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(0.5rem, 1.2vw, 0.85rem);
	justify-content: center;
	max-width: 100%;
	width: 100%;
}

.ortega-state-tacos-list__filters--mobile {
	display: none;
}

.ortega-state-tacos-list__filter,
.ortega-state-tacos-list__filter-toggle {
	--ortega-stl-tab-border: var(--ortega-stl-grey);
	--ortega-stl-tab-cap-left: url("../images/recipes-list/tab-default-left.svg");
	--ortega-stl-tab-cap-right: url("../images/recipes-list/tab-default-right.svg");
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--ortega-stl-blue);
	cursor: pointer;
	font-family: var(--ortega-font-copy);
	font-size: clamp(1rem, 1.4vw, 1.375rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.27;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

.ortega-state-tacos-list__filter:focus-visible,
.ortega-state-tacos-list__filter-toggle:focus-visible,
.ortega-state-tacos-list__drawer-filter:focus-visible,
.ortega-state-tacos-list__drawer-close:focus-visible {
	outline: 2px solid var(--ortega-stl-blue-dark);
	outline-offset: 3px;
}

.ortega-state-tacos-list__filter-label {
	align-items: center;
	background: var(--ortega-stl-tab-border);
	color: var(--ortega-stl-blue);
	display: inline-flex;
	font-family: var(--ortega-font-copy);
	font-size: clamp(1rem, 1.4vw, 1.375rem);
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.01em;
	line-height: 1.27;
	min-width: 1.75rem;
	padding: 4px 12px;
	position: relative;
	white-space: nowrap;
}

.ortega-state-tacos-list__filter-label::before,
.ortega-state-tacos-list__filter-label::after {
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	content: "";
	height: 100%;
	pointer-events: none;
	position: absolute;
	top: 0;
	width: var(--ortega-stl-tab-cap-width);
}

.ortega-state-tacos-list__filter-label::before {
	background-image: var(--ortega-stl-tab-cap-left);
	left: -3px;
}

.ortega-state-tacos-list__filter-label::after {
	background-image: var(--ortega-stl-tab-cap-right);
	right: -3px;
}

.ortega-state-tacos-list__filter.is-active,
.ortega-state-tacos-list__filter-toggle {
	--ortega-stl-tab-border: var(--ortega-stl-yellow);
	--ortega-stl-tab-cap-left: url("../images/recipes-list/tab-active-left.svg");
	--ortega-stl-tab-cap-right: url("../images/recipes-list/tab-active-right.svg");
}

/* Grid + cards */

.ortega-state-tacos-list.is-cards-entrance-pending .ortega-state-tacos-list__card {
	opacity: 0;
	visibility: hidden;
}

.ortega-state-tacos-list__grid {
	display: grid;
	gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.375rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
}

.ortega-state-tacos-list__card {
	display: grid;
	gap: 0.45rem;
	min-width: 0;
}

.ortega-state-tacos-list__card[hidden] {
	display: none;
}

.ortega-state-tacos-list__card-media {
	aspect-ratio: 167 / 177;
	border-radius: var(--ortega-stl-card-radius-mobile);
	margin-bottom: 0.2rem;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.ortega-state-tacos-list__card-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.ortega-state-tacos-list__card-state {
	color: var(--ortega-stl-blue);
	font-family: var(--ortega-font-copy);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.ortega-state-tacos-list__card-title {
	color: var(--ortega-stl-blue);
	font-family: var(--ortega-font-display);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 0.98;
	margin: 0;
	text-transform: uppercase;
}

.ortega-state-tacos-list__card-description {
	color: var(--ortega-stl-blue-dark);
	font-family: var(--ortega-font-copy, var(--ortega-font-body));
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.4;
	margin: 0;
}

.ortega-state-tacos-list__empty {
	color: var(--ortega-stl-blue);
	font-family: var(--ortega-font-copy);
	font-size: var(--ortega-type-body-lg, 1.125rem);
	margin: 0;
	text-align: center;
	width: 100%;
}

.ortega-state-tacos-list__empty[hidden] {
	display: none;
}

/* Mobile filter drawer */

.ortega-state-tacos-list__drawer {
	inset: 0;
	position: fixed;
	z-index: 120;
}

.ortega-state-tacos-list__drawer[hidden] {
	display: none;
}

.ortega-state-tacos-list__drawer-backdrop {
	background: rgb(9 50 114 / 45%);
	inset: 0;
	position: absolute;
}

.ortega-state-tacos-list__drawer-panel {
	background: #fff;
	border-radius: 1rem 1rem 0 0;
	bottom: 0;
	box-shadow: 0 -12px 40px rgb(9 50 114 / 12%);
	display: grid;
	gap: 1rem;
	left: 0;
	max-height: min(78vh, 32rem);
	overflow: auto;
	padding: 1.25rem 1rem 1.75rem;
	position: absolute;
	right: 0;
}

.ortega-state-tacos-list__drawer-header {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.ortega-state-tacos-list__drawer-title {
	color: var(--ortega-stl-blue-dark);
	font-family: var(--ortega-font-copy);
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
}

.ortega-state-tacos-list__drawer-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--ortega-stl-blue-dark);
	cursor: pointer;
	display: inline-flex;
	font-size: 2rem;
	height: 2.5rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 2.5rem;
}

.ortega-state-tacos-list__drawer-filters {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ortega-state-tacos-list__drawer-filter {
	background: var(--ortega-stl-grey);
	border: 0;
	border-radius: 0.35rem;
	color: var(--ortega-stl-blue);
	cursor: pointer;
	font-family: var(--ortega-font-copy);
	font-size: 1.125rem;
	font-weight: 700;
	padding: 0.85rem 0.5rem;
	text-align: center;
}

.ortega-state-tacos-list__drawer-filter.is-active {
	background: var(--ortega-stl-yellow);
}

.ortega-state-tacos-list-placeholder {
	font-family: var(--ortega-font-body);
	font-size: var(--ortega-type-body, 1rem);
}

@media (min-width: 782px) {
	.ortega-state-tacos-list__grid {
		gap: clamp(2rem, 3vw, 3rem) clamp(1rem, 1.5vw, 1.375rem);
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ortega-state-tacos-list__card-media {
		aspect-ratio: 312 / 328;
		border-radius: var(--ortega-stl-card-radius);
	}

	.ortega-state-tacos-list__card-state {
		font-size: 0.875rem;
	}

	.ortega-state-tacos-list__card-title {
		font-size: clamp(1.125rem, 1.5vw, 1.625rem);
		line-height: 1.12;
	}

	.ortega-state-tacos-list__card-description {
		font-size: 0.9375rem;
	}
}

@media (min-width: 1200px) {
	.ortega-state-tacos-list__filters--desktop {
		display: flex;
	}

	.ortega-state-tacos-list__filters--mobile {
		display: none;
	}

	.ortega-state-tacos-list__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1199px) {
	.ortega-state-tacos-list__filters--desktop {
		display: none;
	}

	.ortega-state-tacos-list__filters--mobile {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-state-tacos-list.is-cards-entrance-pending .ortega-state-tacos-list__card {
		opacity: 1;
		visibility: visible;
	}
}
