/*
 * Featured event section under the hero (the Horizon hero card from the child
 * theme's functions.php): Lexend instead of the serif, and a curved top edge
 * that answers the hero's curved bottom. Only on pages that show the hero.
 */

body.itsb-has-hero {
	--itsb-curve-h: clamp(36px, 6vw, 90px);
	--itsb-font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Fonts ---------- */
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme {
	--hz-serif: var(--itsb-font);
	--hz-sans: var(--itsb-font);
}

body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_title,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_title a,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_badge,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_desc,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_desc_more,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_info_label,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_info_value,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_info_value a,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_location_more,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_ticket_btn,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_modal_title,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_modal_text,
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_modal_map_btn {
	font-family: var(--itsb-font) !important;
}

/* Title set like the hero headline: heavy, tight, no serif flourish */
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_title {
	font-weight: 700 !important;
	letter-spacing: -0.035em !important;
	line-height: 1.04 !important;
	font-size: clamp(2.3rem, 4.6vw, 3.6rem) !important;
	max-width: 14ch;
}
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_desc { font-weight: 400; letter-spacing: 0; }
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_desc_more { font-weight: 600; }
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_badge { font-weight: 600; letter-spacing: .14em; }
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_info_label { font-weight: 600; letter-spacing: .1em; }
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_info_value { font-weight: 500 !important; letter-spacing: -0.01em; }
body.itsb-has-hero:not(.itsb-featured-keep-font) .horizon_theme .horizon_hero_ticket_btn { font-weight: 600 !important; letter-spacing: 0 !important; }

/* ---------- Curved top edge ----------
 * Only the photo and its shading are cut, so the info cards, buttons and the
 * location pop-up are never clipped. The curve is drawn at the full window width
 * and centred, so it lines up with the hero's curve even though the card is inset.
 */
body.itsb-has-hero .itsb-featured-curved .horizon_hero_media,
body.itsb-has-hero .itsb-featured-curved .horizon_hero_shade {
	-webkit-mask:
		var(--itsb-featured-mask) 50% 0 / var(--itsb-mask-w, 100vw) var(--itsb-curve-h) no-repeat,
		linear-gradient(#000 0 0) 0 100% / 100% calc(100% - var(--itsb-curve-h) + 1px) no-repeat;
	mask:
		var(--itsb-featured-mask) 50% 0 / var(--itsb-mask-w, 100vw) var(--itsb-curve-h) no-repeat,
		linear-gradient(#000 0 0) 0 100% / 100% calc(100% - var(--itsb-curve-h) + 1px) no-repeat;
}

/* Mirror: the hero's curve flipped upside down */
body.itsb-has-hero .itsb-featured-mirror {
	--itsb-featured-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 52 C 260 -2, 620 -6, 900 20 C 1120 40, 1300 72, 1440 90 L1440 90 L0 90 Z'/%3E%3C/svg%3E");
}

/* Follow: the same curve, so the white gap is an even ribbon */
body.itsb-has-hero .itsb-featured-follow {
	--itsb-featured-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 38 C 260 92, 620 96, 900 70 C 1120 50, 1300 18, 1440 0 L1440 90 L0 90 Z'/%3E%3C/svg%3E");
}

/* With the search bar, the hero ends in a symmetric arc; the card answers it */
body.itsb-has-hero .itsb-featured-mirror.itsb-curve-arc {
	--itsb-featured-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90 Q 720 -90, 1440 90 Z'/%3E%3C/svg%3E");
}
body.itsb-has-hero .itsb-featured-follow.itsb-curve-arc {
	--itsb-featured-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q 720 180, 1440 0 L1440 90 L0 90 Z'/%3E%3C/svg%3E");
}

/* Keep the badge clear of the cut */
body.itsb-has-hero .itsb-featured-curved .horizon_hero_inner {
	padding-top: calc(48px + var(--itsb-curve-h) * .55) !important;
}

@media (max-width: 767px) {
	body.itsb-has-hero .itsb-featured-curved .horizon_hero_inner {
		padding-top: calc(32px + var(--itsb-curve-h) * .6) !important;
	}
}

/* The wrapper's grey panel would show around the curve: let the page colour through */
body.itsb-has-hero .horizon_theme:has(> .itsb-featured-curved),
body.itsb-has-hero .itsb-featured-curved,
body.itsb-has-hero .horizon_theme:has(> .itsb-featured-full),
body.itsb-has-hero .itsb-featured-full {
	background: transparent !important;
}

/* ---------- Full width ----------
 * The script sizes the card to the window; here the corners go square (the
 * hero's sides are square too) and the text lines up with the hero's text.
 */
body.itsb-has-hero .itsb-featured-full,
body.itsb-has-hero .itsb-featured-full .horizon_hero_media,
body.itsb-has-hero .itsb-featured-full .horizon_hero_shade {
	border-radius: 0 !important;
}
body.itsb-has-hero .itsb-featured-full-box {
	padding-left: 0 !important;
	padding-right: 0 !important;
	overflow: visible !important;
	box-sizing: border-box;
}
body.itsb-has-hero .itsb-featured-full-box .horizon_theme:has(> .itsb-featured-full),
body.itsb-has-hero .itsb-featured-full-box .itsb-featured-full {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
body.itsb-has-hero .itsb-featured-full .horizon_hero_inner {
	padding-left: max(var(--itsb-gutter, clamp(16px, 5vw, 72px)), calc((100% - 1440px) / 2 + clamp(16px, 5vw, 72px))) !important;
	padding-right: max(var(--itsb-gutter, clamp(16px, 5vw, 72px)), calc((100% - 1440px) / 2 + clamp(16px, 5vw, 72px))) !important;
}

/* ---------- Featured event moved under the search bar ---------- */
body.itsb-has-hero .itsb-featured-slot > .horizon_theme {
	margin: 0 !important;
	padding-top: 0 !important;
}
body.itsb-has-hero .itsb-featured-slot .horizon_hero {
	margin-top: 0 !important;
}
body.itsb-has-hero .itsb-featured-slot {
	transition:
		height .55s cubic-bezier(.22, .8, .24, 1),
		margin-top .55s cubic-bezier(.22, .8, .24, 1),
		opacity .3s ease,
		transform .55s cubic-bezier(.22, .8, .24, 1);
	transform-origin: 50% 0;
}
body.itsb-has-hero .itsb-featured-slot.is-animating { overflow: hidden; }
body.itsb-has-hero .itsb-featured-slot.is-collapsed {
	opacity: 0;
	transform: translateY(-28px) scale(.985);
	pointer-events: none;
}

/* Cards rise into place when results come in */
body.itsb-has-hero .itsb-searching .all_filter_item {
	animation: itsbResultsUp .5s cubic-bezier(.22, .8, .24, 1) both;
}
@keyframes itsbResultsUp {
	from { opacity: .35; transform: translateY(36px); }
	to   { opacity: 1;   transform: none; }
}

/* ---------- Search bar under the hero (as in the design) ---------- */
body.itsb-has-hero .itsb-hero-searchbar {
	/* Compact bar: 45px fields inside a 6px frame. Inner corners = outer radius − frame,
	   so the curves sit parallel. --itsb-searchbar-overlap: how far the bar rides up
	   over the hero's curve, in px ("auto" = the curve meets the bar's sides at their middle). */
	--itsb-field-h: 45px;
	--itsb-bar-pad: 6px;
	--itsb-bar-radius: 16px;
	--itsb-field-radius: calc(var(--itsb-bar-radius) - var(--itsb-bar-pad));
	--itsb-searchbar-overlap: auto;
	position: relative;
	z-index: 6;
	width: 100%;
	max-width: 1240px;
	margin-left: auto !important;
	margin-right: auto !important;
	font-family: var(--itsb-font);
}
body.itsb-has-hero .itsb-hero-searchbar .search_sort_code_area,
body.itsb-has-hero .itsb-hero-searchbar .search_sort_code {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_bar {
	background: #fff !important;
	border: 1px solid rgba(7, 24, 43, .06) !important;
	border-radius: var(--itsb-bar-radius) !important;
	box-shadow: 0 22px 50px -14px rgba(7, 24, 43, .26), 0 2px 8px rgba(7, 24, 43, .06) !important;
	padding: var(--itsb-bar-pad) !important;
	margin: 0 !important;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_bar__fields {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--itsb-bar-pad) !important;
	margin: 0 !important;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field {
	flex: 1 1 0;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	display: block;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field--search { flex-grow: 1.7; }

/* Labels stay for screen readers only, as in the design */
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__label {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 10px;
	height: var(--itsb-field-h);
	padding: 0 14px !important;
	background: #f5f7fa !important;
	border: 1px solid #e6ebf1 !important;
	border-radius: var(--itsb-field-radius) !important;
	box-shadow: none !important;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control:hover { border-color: #d3dbe5 !important; }
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control:focus-within {
	background: #fff !important;
	border-color: #1a8fe8 !important;
	box-shadow: 0 0 0 3px rgba(26, 143, 232, .14) !important;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__icon {
	position: static !important;
	display: inline-flex;
	color: #6b7a8c !important;
	font-size: 15px;
	transform: none !important;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control .formControl {
	flex: 1;
	min-width: 0;
	height: 100% !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	color: #13202f !important;
	font: 400 15px/1.2 var(--itsb-font) !important;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control .formControl:focus,
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control .formControl:hover {
	border: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}
body.itsb-has-hero .itsb-hero-searchbar .formControl::placeholder { color: #7d8a99; opacity: 1; }

/* Selects: own chevron, and an icon like the other fields */
body.itsb-has-hero .itsb-hero-searchbar select.formControl {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	padding-right: 22px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0 center !important;
	background-size: 16px !important;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control--select::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: #6b7a8c;
	-webkit-mask: var(--itsb-field-icon) center / contain no-repeat;
	mask: var(--itsb-field-icon) center / contain no-repeat;
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control--select:has(select[name="filter_with_category"]) {
	--itsb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.6'/%3E%3C/svg%3E");
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control--select:has(select[name="filter_with_organizer"]) {
	--itsb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3.2'/%3E%3Cpath d='M3.5 19c.8-3.2 2.9-4.9 5.5-4.9s4.7 1.7 5.5 4.9'/%3E%3Ccircle cx='16.5' cy='9.5' r='2.6'/%3E%3Cpath d='M16 14.3c2.3.1 3.8 1.6 4.5 4.2'/%3E%3C/svg%3E");
}
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control--select:has(select[name="filter_with_city"]),
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control--select:has(select[name="filter_with_state"]) {
	--itsb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
}

/* Date: the browser's own calendar button, kept subtle */
body.itsb-has-hero .itsb-hero-searchbar input[type="date"].formControl { color: #13202f !important; }
body.itsb-has-hero .itsb-hero-searchbar input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

/* The button */
body.itsb-has-hero .itsb-search-go {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: var(--itsb-field-h);
	padding: 0 24px;
	border: 0;
	border-radius: var(--itsb-field-radius);
	background: #0b3a63;
	color: #fff;
	font: 600 15px/1 var(--itsb-font);
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s, transform .2s;
}
body.itsb-has-hero .itsb-search-go:hover { background: #0e4b80; }
body.itsb-has-hero .itsb-search-go:active { transform: translateY(1px); }
body.itsb-has-hero .itsb-search-go .itsb-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.itsb-has-hero .itsb-search-go:focus-visible { outline: 2px solid #6fd0ff; outline-offset: 3px; }

/* "Showing x of y": only while searching, right above the results */
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_counts { display: none !important; }
body.itsb-has-hero .itsb-searching .itsb-hero-searchbar .mep_filter_counts {
	display: block !important;
	margin: 22px 0 0 !important;
	font: 500 14px/1.4 var(--itsb-font) !important;
	color: #5b6878 !important;
	text-align: left !important;
	background: none !important;
}

@media (max-width: 960px) {
	body.itsb-has-hero .itsb-hero-searchbar .mep_filter_bar__fields {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}
	body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field--search,
	body.itsb-has-hero .itsb-search-go { grid-column: 1 / -1; }
	/* a little taller on touch screens */
	body.itsb-has-hero .itsb-hero-searchbar { --itsb-field-h: 48px; }
}
@media (max-width: 480px) {
	body.itsb-has-hero .itsb-hero-searchbar .mep_filter_bar__fields { grid-template-columns: 1fr; }
	body.itsb-has-hero .itsb-hero-searchbar { --itsb-bar-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	body.itsb-has-hero .itsb-featured-slot { transition: none; }
	body.itsb-has-hero .itsb-searching .all_filter_item { animation: none; }
}

/* ---------- "Get Tickets": bottom-right corner of the featured photo ----------
 * Inside the event list (where the featured event now sits) the list's own
 * styles stretch links to full width, so the button's place is set here.
 */
body.itsb-has-hero .horizon_theme .horizon_hero .horizon_hero_cta {
	position: absolute !important;
	right: 44px !important;
	bottom: 28px !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 4;
	display: flex !important;
	justify-content: flex-end;
	align-self: auto !important;
	float: none !important;
}
/* Full width: line up with the hero's content */
body.itsb-has-hero .itsb-featured-full .horizon_hero_cta {
	right: max(clamp(16px, 5vw, 72px), calc((100% - 1440px) / 2 + clamp(16px, 5vw, 72px))) !important;
}
body.itsb-has-hero .horizon_theme .horizon_hero .horizon_hero_cta .horizon_hero_ticket_btn {
	width: auto !important;
	max-width: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	flex: none !important;
}
/* Phones: under the description, like the hero's own button */
@media (max-width: 767px) {
	body.itsb-has-hero .horizon_theme .horizon_hero .horizon_hero_content { order: 1; }
	body.itsb-has-hero .horizon_theme .horizon_hero .horizon_hero_cta {
		position: static !important;
		order: 2;
		justify-content: flex-start;
		margin-top: -8px !important;
	}
	body.itsb-has-hero .horizon_theme .horizon_hero .horizon_hero_cards { order: 3; }
}

/* ---------- Dropdown list (desktop) ---------- */
body.itsb-has-hero .itsb-hero-searchbar .mep_filter_field__control.is-open {
	background: #fff !important;
	border-color: #1a8fe8 !important;
	box-shadow: 0 0 0 3px rgba(26, 143, 232, .14) !important;
}
.itsb-dd-panel {
	position: absolute;
	z-index: 100000;
	max-height: 340px;
	overflow-y: auto;
	padding: 6px;
	background: #fff;
	border: 1px solid rgba(7, 24, 43, .08);
	border-radius: 14px;
	box-shadow: 0 24px 56px -12px rgba(7, 24, 43, .28), 0 4px 12px rgba(7, 24, 43, .08);
	font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
	opacity: 0;
	transform: translateY(-6px) scale(.98);
	transform-origin: 50% 0;
	transition: opacity .16s ease, transform .18s cubic-bezier(.22, .8, .24, 1);
	scrollbar-width: thin;
	box-sizing: border-box;
}
.itsb-dd-panel.is-above { transform-origin: 50% 100%; transform: translateY(6px) scale(.98); }
.itsb-dd-panel.is-open { opacity: 1; transform: none; }
.itsb-dd-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 10px;
	color: #13202f;
	font-size: 15px;
	line-height: 1.25;
	cursor: pointer;
	user-select: none;
}
.itsb-dd-option + .itsb-dd-option { margin-top: 2px; }
.itsb-dd-option.is-all { color: #5b6878; }
.itsb-dd-option.is-all + .itsb-dd-option { margin-top: 7px; position: relative; }
.itsb-dd-option.is-all + .itsb-dd-option::before {
	content: "";
	position: absolute;
	left: 8px; right: 8px; top: -5px;
	height: 1px;
	background: #edf0f4;
}
.itsb-dd-option.is-active { background: #eef5fd; }
.itsb-dd-option.is-selected { color: #0d6fd1; font-weight: 500; }
.itsb-dd-option svg {
	flex: none;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
}
.itsb-dd-option.is-selected svg { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.itsb-dd-panel { transition: none; }
}

/* =========================================================
 * Blending the hero and the featured event (Customizer → Events hero: blending)
 * ========================================================= */

/* 1. Brand colours instead of MagePeople's purple */
body.itsb-featured-brand .horizon_theme .horizon_hero_media {
	background-image:
		linear-gradient(90deg, rgba(var(--itsb-feat-shade-rgb), .8) 0%, rgba(var(--itsb-feat-shade-rgb), .42) 48%, rgba(var(--itsb-feat-shade-rgb), .12) 100%),
		linear-gradient(180deg, rgba(var(--itsb-feat-shade-rgb), .1) 0%, rgba(var(--itsb-feat-shade-rgb), .55) 100%),
		var(--horizon-hero-image, none) !important;
	background-color: rgb(var(--itsb-feat-shade-rgb)) !important;
}
body.itsb-featured-brand .horizon_theme .horizon_hero_shade {
	background: radial-gradient(ellipse at 20% 72%, rgba(var(--itsb-feat-accent-rgb), .22), transparent 55%) !important;
}
body.itsb-featured-brand .horizon_theme .horizon_hero_badge { background: var(--itsb-feat-accent) !important; }
body.itsb-featured-brand .horizon_theme .horizon_info_label,
body.itsb-featured-brand .horizon_theme .horizon_info_icon,
body.itsb-featured-brand .horizon_theme .horizon_info_icon i,
body.itsb-featured-brand .horizon_theme .horizon_location_more { color: var(--itsb-feat-accent) !important; }

/* 2. Small heading, in the hero's spaced capitals, with the badge beside it */
body.itsb-has-hero .itsb-feat-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 0 0 14px;
}
body.itsb-has-hero .itsb-feat-kicker {
	margin: 0 !important;
	color: rgba(255, 255, 255, .88) !important;
	font: 500 .78rem/1.2 var(--itsb-font) !important;
	letter-spacing: .32em !important;
	text-transform: uppercase;
}
body.itsb-has-hero .itsb-feat-top .horizon_hero_badge { margin: 0 !important; }
body.itsb-featured-quiet-badge .itsb-feat-top .horizon_hero_badge {
	background: rgba(255, 255, 255, .14) !important;
	border: 1px solid rgba(255, 255, 255, .3);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff !important;
	padding: 6px 12px 6px 10px !important;
	font-size: 10px !important;
}
@media (max-width: 767px) {
	body.itsb-has-hero .itsb-feat-kicker { font-size: .68rem !important; letter-spacing: .24em !important; }
}

/* 3. Tinted band behind the space between the two sections */
body.itsb-has-hero .itsb-featured-slot { position: relative; z-index: 1; }
.itsb-gap-band {
	position: absolute;
	left: 0;
	z-index: 0;
	pointer-events: none;
	background: var(--itsb-gap-color, #eef5fc);
	transition: opacity .4s ease;
}
.itsb-gap-band.is-glow {
	background:
		radial-gradient(ellipse 42% 85% at 50% 0%, rgba(var(--itsb-feat-accent-rgb, 26, 143, 232), .16), transparent 72%),
		var(--itsb-gap-color, #eef5fc);
}
.itsb-gap-band.is-hidden { opacity: 0; }

/* 5. Fade up as it scrolls into view */
body.itsb-has-hero .itsb-feat-anim .horizon_hero_inner,
body.itsb-has-hero .itsb-feat-anim .horizon_info_card { animation: none !important; }
body.itsb-has-hero .itsb-feat-anim :is(.itsb-feat-top, .horizon_hero_content > .horizon_hero_badge, .horizon_hero_title, .horizon_hero_desc_wrap, .horizon_info_card, .horizon_hero_cta) {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease, transform .75s cubic-bezier(.22, .8, .24, 1);
}
body.itsb-has-hero .itsb-feat-anim.is-in :is(.itsb-feat-top, .horizon_hero_content > .horizon_hero_badge, .horizon_hero_title, .horizon_hero_desc_wrap, .horizon_info_card, .horizon_hero_cta) {
	opacity: 1;
	transform: none;
}
body.itsb-has-hero .itsb-feat-anim .horizon_hero_title { transition-delay: .08s; }
body.itsb-has-hero .itsb-feat-anim .horizon_hero_desc_wrap { transition-delay: .16s; }
body.itsb-has-hero .itsb-feat-anim .horizon_info_card:nth-child(1) { transition-delay: .24s; }
body.itsb-has-hero .itsb-feat-anim .horizon_info_card:nth-child(2) { transition-delay: .3s; }
body.itsb-has-hero .itsb-feat-anim .horizon_info_card:nth-child(3) { transition-delay: .36s; }
body.itsb-has-hero .itsb-feat-anim .horizon_hero_cta { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
	body.itsb-has-hero .itsb-feat-anim :is(.itsb-feat-top, .horizon_hero_content > .horizon_hero_badge, .horizon_hero_title, .horizon_hero_desc_wrap, .horizon_info_card, .horizon_hero_cta) { opacity: 1; transform: none; transition: none; }
}

/* Event cards: full-width buttons and badges stay inside the card */
.filter_item .mep_event_card__book, .filter_item .mpwem_get_status { box-sizing: border-box; max-width: 100%; }
