#FilterPanel {
	position: fixed;
	inset: auto 0 0;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: calc(100vh - 34px);
	height: calc(100dvh - 34px);
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 20px 20px 0 0;
	background: #fff;
	color: #202020;
}

#FilterPanel[open] {
	animation: filterSheetSlideUp 260ms cubic-bezier(.2, .75, .3, 1) both;
}

#FilterPanel::backdrop {
	background: rgb(0 0 0 / 48%);
	animation: filterSheetFadeIn 260ms ease-out both;
}

@keyframes filterSheetSlideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

@keyframes filterSheetFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	#FilterPanel[open], #FilterPanel::backdrop {
		animation: none;
	}
}

html.MobileResultsFilterOpen,
html.MobileResultsFilterOpen body {
	overflow: hidden;
}

#FilterPanelWrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}

#FilterPanelHeader {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px 16px 10px;
}

#FilterPanelHeader::before {
	grid-column: 1 / -1;
	justify-self: center;
	width: 40px;
	height: 4px;
	border-radius: 4px;
	background: #c9c9cc;
	content: "";
}

#FilterPanelTitle {
	margin: 0;
	color: inherit;
	font-size: 23px;
	line-height: 1.2;
}

#FilterPanelHeader button {
	box-sizing: border-box;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

#FilterPanelHeader .FilterSheetClose {
	font-size: 28px;
	line-height: 1;
}

#FilterPanelHeader .FilterSheetReset {
	color: #b83c30;
	font-size: 15px;
}

#FilterPanelContent {
	flex: 1;
	min-height: 0;
	padding: 0 16px 14px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

#FilterPanel .FilterSheetGroup {
	padding: 10px 0;
}

#FilterPanel .FilterSubHeader {
	display: block;
	margin: 0 0 8px;
	color: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

#FilterPanel .FilterSheetGroup > label:not(.FilterSubHeader),
#FilterPanel .FilterSheetGroup > div > label:not(.FilterSubHeader) {
	display: inline-flex;
	min-height: 28px;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
}

#FilterPanel input[type="checkbox"],
#FilterPanel input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #d7473a;
}

#FilterPanel input[type="text"],
#FilterPanel input[type="number"],
#FilterPanel .FilterSheetDateField {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0 11px;
	border: 1px solid #c4c4c8;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 16px;
}

#FilterPanel .FilterSheetDateField {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#FilterPanel .FilterSheetDateField input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

#FilterPanel .FilterSheetDateField input::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

#FilterPanel .FilterSheetDateField:focus-within {
	outline: 2px solid #b83c30;
	outline-offset: 2px;
}

#FilterPanelEventDateDisplay[data-empty] {
	color: #767676;
}

#FilterPanel .FilterSheetDateField i {
	color: #d7473a;
	font-size: 19px;
	pointer-events: none;
}

#FilterPanel .FilterSheetPriceRange {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

#RecommendedBudgetSection {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 5px;
	margin-top: 10px;
}

#FilterPanel .RecommendedBudget {
	box-sizing: border-box;
	min-height: 42px;
	padding: 4px 2px;
	border: 1px solid #c4c4c8;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
}

#FilterPanel .RecommendedBudget[aria-pressed="true"] {
	border-color: #d7473a;
	background: #fff0ed;
	color: #a12e25;
}

#FilterPanelButtonPanel {
	padding: 12px 16px max(12px, env(safe-area-inset-bottom));
	border-top: 1px solid #efeff0;
	box-shadow: 0 -2px 8px rgb(0 0 0 / 5%);
}

#FilterPanel .FilterPanelButton {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: #de5043;
	color: #fff;
	font: inherit;
	font-size: 19px;
	font-weight: 700;
	cursor: pointer;
}

#SearchBoxFloatingSection button.filter-bar {
	border: 0;
	background: transparent;
	cursor: pointer;
}
