/* Excel Ent — Search no-results (Figma desktop 2202:31473 / empty 2202:31547 / tablet 1114:11425 / mobile 1053:4365) */

.search-page {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	background: #fff;
}

.search-page__chips-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 30px 80px;
	background: rgba(235, 32, 85, 0.04);
	box-sizing: border-box;
}

.search-page__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 30px;
	min-width: 0;
}

.search-page__chips-bar.is-empty {
	display: none;
}

.search-page__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 66px;
	padding: 20px 25px;
	border: 2px solid rgba(0, 0, 0, 0.8);
	border-radius: 30px;
	background: linear-gradient(
		90deg,
		rgba(248, 154, 66, 0.05) 0%,
		rgba(235, 32, 85, 0.05) 100%
	);
	color: rgba(0, 0, 0, 0.8);
	cursor: pointer;
	font-family: var(--ee-font-condensed, "Open Sans", sans-serif);
	font-variation-settings: "wdth" 75;
	font-weight: 400;
	font-size: 24px;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.search-page__chip img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	display: block;
}

.search-page__chip:hover,
.search-page__chip:focus-visible {
	border-color: #eb2055;
	color: #eb2055;
}

.search-page__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-shrink: 0;
	height: 64px;
	min-width: 275px;
	padding: 20px 25px;
	border: 1px solid rgba(0, 0, 0, 0.8);
	border-radius: 30px;
	background: #fff;
	color: #000;
	cursor: pointer;
	font-family: var(--ee-font-condensed, "Open Sans", sans-serif);
	font-variation-settings: "wdth" 75;
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.search-page__clear img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	display: block;
}

.search-page__clear .search-page__clear-icon--mobile {
	display: none;
}

.search-page__clear:hover,
.search-page__clear:focus-visible {
	border-color: #eb2055;
	color: #eb2055;
}

/* Search results — Phase 1 API grid (reuses explore-artist-card) */
.search-page__results {
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;
	padding: 40px 80px 120px;
	background: #fff;
	box-sizing: border-box;
}

.search-page__results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.search-page__results-count {
	margin: 0;
	font-family: var(--ee-font-condensed, "Open Sans", sans-serif);
	font-variation-settings: "wdth" 75;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.1;
	color: #000;
}

.search-page__results-label {
	display: none;
}

.search-page__grid {
	width: 100%;
}

.search-page__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
	margin-top: 16px;
}

.search-page__page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 28px;
	border: 1px solid rgba(0, 0, 0, 0.8);
	border-radius: 30px;
	background: #fff;
	color: #000;
	text-decoration: none;
	font-family: var(--ee-font-condensed, "Open Sans", sans-serif);
	font-variation-settings: "wdth" 75;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.5px;
}

.search-page__page-link:hover,
.search-page__page-link:focus-visible {
	border-color: #eb2055;
	color: #eb2055;
}

.search-page__page-link--disabled {
	opacity: 0.35;
	pointer-events: none;
	cursor: default;
}

.search-page__page-status {
	font-family: var(--ee-font-body-os, "Open Sans", sans-serif);
	font-size: 16px;
	color: rgba(0, 0, 0, 0.72);
}

/* Figma 2202:31547 / 1299:11417 — empty state */
.search-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	/* py 60 + outer frame gap 100 before CTA = 160 bottom */
	padding: 60px 160px 160px;
	background: #fff;
	box-sizing: border-box;
	text-align: center;
}

.search-empty__eyebrow {
	display: none;
}

.search-empty__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 120px;
	width: 100%;
}

.search-empty__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 410px;
}

.search-empty__illustration {
	display: block;
	width: 100%;
	max-width: 410px;
	height: auto;
	aspect-ratio: 410 / 372;
	object-fit: contain;
}

.search-empty__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: 1600px;
	letter-spacing: 1px;
	text-align: center;
}

.search-empty__title {
	margin: 0;
	width: 100%;
	font-family: var(--ee-font-condensed, "Open Sans", sans-serif);
	font-variation-settings: "wdth" 75;
	font-weight: 700;
	font-size: 80px;
	line-height: normal;
	letter-spacing: 1px;
	color: #000;
}

.search-empty__lede {
	margin: 0;
	width: 100%;
	font-family: var(--ee-font-body-os, "Open Sans", sans-serif);
	font-variation-settings: "wdth" 100;
	font-weight: 400;
	font-size: 24px;
	line-height: normal;
	letter-spacing: 1px;
	color: #000;
}

@media (min-width: 1200px) {
	.search-empty {
		min-height: var(--ee-search-empty-min-height, calc(100vh - 280px));
		min-height: var(--ee-search-empty-min-height, calc(100dvh - 280px));
		padding: 60px 160px;
	}

	.search-empty.is-viewport-fitted {
		height: var(--ee-search-empty-min-height);
		min-height: var(--ee-search-empty-min-height);
		overflow: hidden;
	}

	.search-empty.is-viewport-fitted .search-empty__inner {
		transform: scale(var(--ee-search-empty-fit-scale, 1));
		transform-origin: center center;
	}
}

/* Tablet empty — Figma 1114:11425 (also in search-page-tablet.css) */
@media (min-width: 768px) and (max-width: 1199px) {
	body.search .search-page,
	.search-page {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: hidden;
	}

	/* Empty frame has no filter chips; selected filters — Figma 1706:32608 */
	body.search .search-page .search-page__chips-bar.is-empty,
	.search-page .search-page__chips-bar.is-empty {
		display: none !important;
	}

	body.search .search-page .search-page__chips-bar:not(.is-empty),
	.search-page .search-page__chips-bar:not(.is-empty) {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		padding: 24px 40px;
		background: rgba(235, 32, 85, 0.04);
		box-sizing: border-box;
	}

	.search-page__chips {
		gap: 20px;
		flex-wrap: wrap;
	}

	.search-page__chip {
		height: 58px;
		font-size: 18px;
	}

	.search-page__clear {
		height: 58px;
		min-width: 0;
		font-size: 18px;
	}

	.search-page__clear img {
		width: 18px;
		height: 18px;
	}

	body.search .search-page .search-empty,
	.search-page .search-empty {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		width: 100%;
		/* Figma 1114:11423 — ~100px white before CTA (Contact at y=1016 after empty at 916) */
		padding: 60px 0 100px;
		background: #fff;
		box-sizing: border-box;
		text-align: center;
	}

	body.search .search-page .search-empty__inner,
	.search-page .search-empty__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 120px;
		width: 100%;
	}

	body.search .search-page .search-empty__visual,
	.search-page .search-empty__visual {
		width: 100%;
		max-width: 376px;
	}

	body.search .search-page .search-empty__illustration,
	.search-page .search-empty__illustration {
		width: 100%;
		max-width: 376px;
		height: auto;
		aspect-ratio: 376 / 339;
		object-fit: contain;
	}

	body.search .search-page .search-empty__copy,
	.search-page .search-empty__copy {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 40px;
		width: 100%;
		max-width: none;
		padding: 0 40px;
		letter-spacing: 1px;
		box-sizing: border-box;
	}

	body.search .search-page .search-empty__title,
	.search-page .search-empty__title {
		width: 100%;
		max-width: 724px;
		font-size: 54px;
		line-height: normal;
		letter-spacing: 1px;
	}

	body.search .search-page .search-empty__lede,
	.search-page .search-empty__lede {
		width: 100%;
		max-width: none;
		font-size: 20px;
		line-height: 32px;
		letter-spacing: 1px;
	}
}

@media (max-width: 767px) {
	/* Figma 2331:3265 — selected filters under the mobile search header */
	.search-page__chips-bar {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 22px;
		padding: 15px 24px;
		background: rgba(236, 40, 84, 0.04);
		overflow: hidden;
	}

	.search-page__chips-bar.is-empty {
		display: none;
	}

	.search-page__clear {
		order: -1;
		gap: 6px;
		height: 44px;
		min-width: 0;
		padding: 8px 12px;
		border: 1px solid rgba(0, 0, 0, 0.8);
		border-radius: 30px;
		background: #fff;
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 1px;
	}

	.search-page__clear .search-page__clear-icon--desktop {
		display: none;
	}

	.search-page__clear .search-page__clear-icon--mobile {
		display: block;
		width: 16px;
		height: 16px;
	}

	/* Scroll row bleeds to the screen edge so chips slide under the right margin. */
	.search-page__chips {
		flex-wrap: nowrap;
		gap: 10px;
		width: calc(100% + 48px);
		max-width: none;
		margin: 0 -24px;
		padding: 0 24px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		box-sizing: border-box;
	}

	.search-page__chips::-webkit-scrollbar {
		display: none;
	}

	.search-page__chip {
		flex: 0 0 auto;
		gap: 12px;
		height: 40px;
		padding: 8px 12px;
		border: 0.5px solid #000;
		background: transparent;
		color: #000;
		font-size: 14px;
		font-weight: 400;
		letter-spacing: 1px;
	}

	.search-page__chip img {
		width: 14px;
		height: 14px;
	}

	/* Figma 2331:3284 — "Results found “106 Artists”" + 2-col card grid */
	.search-page__results {
		gap: 10px;
		padding: 10px 24px 60px;
	}

	.search-page__results .search-page__grid {
		padding: 0;
	}

	.search-page__results-count {
		font-weight: 800;
		font-size: 12px;
		line-height: 1.2;
		text-transform: capitalize;
	}

	.search-page__results-label {
		display: inline;
	}

	.search-page__results-num {
		color: #ed3153;
	}

	.search-page__results-num::before {
		content: "\201C";
	}

	.search-page__results-num::after {
		content: "\201D";
	}

	.search-page__pagination {
		flex-direction: column;
		gap: 12px;
	}

	.search-empty {
		align-items: stretch;
		justify-content: flex-start;
		gap: 10px;
		min-height: 0;
		padding: 10px 24px 60px;
	}

	.search-empty__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 34px;
		width: 100%;
		padding-top: 24px;
		box-sizing: border-box;
	}

	.search-empty__eyebrow {
		display: block;
		margin: 0;
		font-family: var(--ee-font-condensed, "Open Sans", sans-serif);
		font-variation-settings: "wdth" 75;
		font-weight: 800;
		font-size: 12px;
		line-height: 1;
		text-transform: capitalize;
		color: #000;
		white-space: nowrap;
	}

	.search-empty__visual {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: 190px;
	}

	.search-empty__illustration {
		max-width: 190px;
		aspect-ratio: auto;
	}

	.search-empty__copy {
		gap: 30px;
		padding: 0;
		max-width: none;
	}

	.search-empty__title {
		font-size: 32px;
		letter-spacing: 1px;
	}

	.search-empty__lede {
		font-size: 16px;
		letter-spacing: 1px;
		max-width: none;
	}

	/* BEEN LET DOWN? — Figma 2473:10613 */
	body.search .cta-neon {
		padding: 40px 24px;
		border-top: 1px solid #fff;
		background: #000;
		color: #fff;
		box-sizing: border-box;
	}

	body.search .cta-neon__inner {
		flex-direction: column;
		align-items: stretch;
		row-gap: 30px;
	}

	body.search .cta-neon__copy {
		order: 1;
		gap: 20px;
		min-width: 0;
		width: 100%;
	}

	body.search .cta-neon__title {
		font-size: 32px;
		line-height: 36px;
		color: #fff;
		text-box-trim: trim-both;
		text-box-edge: cap alphabetic;
	}

	body.search .cta-neon__title-plain {
		color: #fff;
	}

	body.search .cta-neon__title-accent {
		margin: 0 0.08em;
		background-image: linear-gradient(90deg, #f89a42 0%, #eb2055 100%);
	}

	body.search .cta-neon__lede {
		font-size: 14px;
		line-height: 20px;
		color: #fff;
		opacity: 0.7;
		text-box-trim: trim-both;
		text-box-edge: cap alphabetic;
	}

	body.search .cta-neon__rail {
		display: contents;
	}

	body.search .cta-neon__socials {
		order: 2;
		padding-top: 0;
		gap: 24px;
	}

	body.search .cta-neon__social {
		width: 20px;
		height: 20px;
		margin: 0;
	}

	body.search .cta-neon__social img,
	body.search .cta-neon__social-icon {
		width: 20px;
		height: 20px;
	}

	body.search .cta-neon__social-icon--light-bg {
		display: none !important;
	}

	body.search .cta-neon__social-icon--default {
		display: block;
		opacity: 0.6;
	}

	body.search .cta-neon__actions {
		order: 3;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	body.search .cta-neon__btn--outline {
		display: none;
	}

	body.search .cta-neon__btn--primary {
		width: 100%;
		height: 51px;
		min-height: 51px;
		padding: 20px;
		border-radius: 0;
		font-size: 16px;
		font-weight: 800;
		line-height: 1;
		letter-spacing: 1px;
		text-transform: uppercase;
		color: #fff;
		white-space: nowrap;
		box-sizing: border-box;
	}

	/* Empty state uses the outline button (Figma 2473:10613); results keep the shared gradient (Figma 2331:3448). */
	body.search:has(.search-empty) .cta-neon__btn--primary {
		border: 1px solid #fff;
		border-bottom: 1px solid #fff;
		background: rgba(0, 0, 0, 0.2);
		background-image: none;
		box-shadow: none;
		backdrop-filter: blur(40px);
		-webkit-backdrop-filter: blur(40px);
	}
}
