.api-filters-wrapper {
	container-name: api-filters;
	container-type: inline-size;
	margin: 0 0 2rem;
}

.api-filters--home {
	display: flex;
	gap: 0;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	padding: 0.45rem;
	border: 1px solid #d6dbe4;
	border-radius: 16px;
	background-color: #ffffff !important;
	box-shadow: none;
}

.api-home-search,
.api-home-type {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	height: 54px;
	padding: 0 0.85rem;
	background: #fff;
	box-sizing: border-box;
}

.api-home-search {
	flex: 1 1 auto;
	border-right: 1px solid #d6dbe4;
}

.api-home-type {
	flex: 0 0 auto;
	width: clamp(190px, 22vw, 280px);
	margin-left: auto;
}

.api-home-search__icon,
.api-home-advanced-button__icon {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 23px;
	height: 23px;
}

.api-home-search__icon::before {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 13px;
	height: 13px;
	border: 2px solid currentColor;
	border-radius: 50%;
	content: "";
}

.api-home-search__icon::after {
	position: absolute;
	right: 3px;
	bottom: 3px;
	width: 9px;
	height: 2px;
	background: currentColor;
	transform: rotate(45deg);
	content: "";
}

.api-home-search__select,
.api-home-type select {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 54px;
	min-height: 54px;
	border: 0;
	padding-right: 1.75rem;
	background: transparent;
	color: #303846;
	font: inherit;
	outline: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.api-home-search__select::-ms-expand,
.api-home-type select::-ms-expand {
	display: none;
}

.api-home-search__select:focus,
.api-home-search__select:focus-visible,
.api-home-search__select:hover,
.api-home-type select:focus,
.api-home-type select:focus-visible,
.api-home-type select:hover {
	border-color: transparent !important;
	outline: 0 !important;
	box-shadow: none !important;
}

.api-home-select-arrow {
	position: absolute;
	top: 50%;
	right: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: #303846;
	font-size: 0.85rem;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

.api-filter-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #303846;
}

.api-filter-icon--image {
	object-fit: contain;
}

.api-filter-icon--font {
	font-size: 1.15rem;
	line-height: 1;
}

.api-filter-icon:not(.api-filter-icon--image):not(.api-filter-icon--font)::before {
	width: 20px;
	height: 20px;
	border: 2px solid currentColor;
	border-radius: 5px;
	content: "";
}

.api-filter-icon--price::before {
	border-radius: 50%;
}

.api-filter-icon--area::before {
	border-radius: 3px;
	transform: rotate(45deg);
}

.api-home-search .api-filter-icon,
.api-home-type .api-filter-icon {
	flex: 0 0 auto;
}

.api-home-advanced-button,
.api-home-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 54px;
	min-height: 54px;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.api-filters--home p:has(.api-home-advanced-button),
.api-filters--home p:has(.api-home-submit),
.api-filters--home p:has(.api-filter-modal__reset),
.api-filters--home p:has(.api-filter-modal__submit) {
	display: contents;
	margin: 0 !important;
}

.api-filters--home p:empty {
	display: none !important;
	margin: 0 !important;
}

.api-home-advanced-button {
	margin: 0 0.45rem;
	box-sizing: border-box;
	width: 54px;
	min-width: 54px;
	padding: 0;
	aspect-ratio: 1 / 1;
	border: 1px solid #1d1d1b;
	background: #fff;
}

.api-home-advanced-button:hover,
.api-home-advanced-button:focus {
	border-color: #9c1006;
	outline: 0;
}

.api-home-advanced-button__icon::before,
.api-home-advanced-button__icon::after {
	position: absolute;
	left: 3px;
	right: 3px;
	height: 2px;
	background: currentColor;
	content: "";
}

.api-home-advanced-button__icon::before {
	top: 7px;
	box-shadow: 0 8px 0 currentColor;
}

.api-home-advanced-button__icon::after {
	top: 4px;
	left: 12px;
	width: 5px;
	height: 5px;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: #fff;
	box-shadow: -9px 8px 0 -1px #fff, -9px 8px 0 1px currentColor;
}

.api-home-submit {
	gap: 0.55rem;
	min-width: 136px;
	border-color: #9c1006 !important;
	border-radius: 8px;
	background: #9c1006 !important;
	color: #fff !important;
	text-transform: uppercase;
}

.api-home-submit:hover,
.api-home-submit:focus {
	border-color: #000 !important;
	background: #000 !important;
	color: #fff !important;
}

.api-home-submit .awb-button__icon,
.api-home-submit .awb-button__text {
	color: inherit !important;
}

.api-home-submit .awb-button__text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.api-home-submit:focus {
	outline: 0;
}

.api-filter-modal[hidden] {
	display: none;
}

.api-filter-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 4vh 1rem;
}

.api-filter-modal__backdrop {
	position: absolute;
	z-index: 999999;
	inset: 0;
	background: rgba(20, 25, 33, 0.58);
}

.api-filter-modal__panel {
	position: relative;
	z-index: 999999;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(920px, 100%);
	max-height: 92vh;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 48px rgba(19, 31, 46, 0.26);
	color: #303846;
}

.api-filter-modal__header,
.api-filter-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: #f5f6f8;
}

.api-filter-modal__header {
	min-height: 74px;
	padding: 0.85rem 1.4rem;
	box-sizing: border-box;
}

.api-filter-modal__footer {
	min-height: 74px;
	padding: 0.85rem 1.4rem;
	box-sizing: border-box;
	flex: 0 0 auto;
	justify-content: flex-end;
}

.api-filter-modal__header h2 {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.25;
}

.api-filter-modal__header p {
	margin: 0 !important;
}

.api-filter-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #303846;
	cursor: pointer;
}

.api-filter-modal__close-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	line-height: 1;
}

.api-filter-modal__body {
	overflow: auto;
	padding: 0 1.4rem;
}

.api-filter-row {
	position: relative;
	display: grid;
	gap: 0.9rem;
	padding: 1.05rem 0;
	border-bottom: 1px solid #d8dde6;
}

.api-filter-modal__body .api-filter-row:last-child {
	border-bottom: 0;
}

.api-filter-row__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.api-filter-row__heading p {
	margin: 0 !important;
}

.api-filter-row__label {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
	font-size: 1.04rem;
}

.api-filter-range-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 100%;
	margin-left: auto;
	min-width: 190px;
	min-height: 48px;
	padding: 0.5rem 0.9rem;
	border: 1px solid #d1d6df;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	cursor: pointer;
	flex: 0 1 clamp(336px, 33.6vw, 512px);
	width: clamp(336px, 33.6vw, 512px);
}

.api-filter-range-toggle__chevron,
.api-filter-range-toggle[aria-expanded="true"] .api-filter-range-toggle__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 0;
	font-size: 0.85rem;
	line-height: 1;
	transform: none !important;
}

.api-filter-range-popover {
	position: absolute;
	top: calc(100% - 1rem);
	right: 0;
	z-index: 999999;
	width: min(512px, 100%);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(19, 31, 46, 0.22);
}

.api-filter-range-popover__inputs {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-end !important;
	gap: 1rem !important;
	width: 100% !important;
	min-width: 0 !important;
	padding: 1rem;
	border-bottom: 1px solid #d8dde6;
	box-sizing: border-box;
}

.api-filter-range-popover__inputs > * {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
}

.api-filter-range-field,
.api-filter-range-popover__inputs > p > .api-filter-range-field {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.35rem !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.api-filter-range-field > label {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
}

.api-filter-range-popover select,
.api-filter-choice select {
	width: 100%;
	min-height: 48px;
	border: 1px solid #d1d6df;
	border-radius: 8px;
	padding: 0.45rem 2.1rem 0.45rem 0.65rem;
	background: #fff;
	font: inherit;
	font-weight: 400;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.api-filter-range-popover select {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.api-filter-range-popover select::-ms-expand,
.api-filter-choice select::-ms-expand {
	display: none;
}

.api-filter-range-select-wrap {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
}

.api-filter-range-select__chevron,
.api-filter-choice__chevron {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 0;
	font-size: 0.85rem;
	line-height: 1;
	transform: translateY(-50%) !important;
	pointer-events: none;
}

.api-filter-choice {
	position: relative;
	display: grid;
	gap: 0.35rem;
	width: clamp(336px, 33.6vw, 512px);
	max-width: 100%;
	margin-left: auto;
}

.api-filter-row--choice .api-filter-choice {
	flex: 0 1 clamp(336px, 33.6vw, 512px);
	margin-left: auto;
}

.api-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.api-filter-pill-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.api-filter-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.45rem 0.85rem;
	border: 1px solid #d1d6df;
	border-radius: 8px;
	background: #fff;
	color: #303846;
	cursor: pointer;
}

.api-filter-pill-input:checked + .api-filter-pill {
	border-color: currentColor;
	background: transparent;
	color: inherit;
}

.api-filter-pill-input:focus + .api-filter-pill {
	border-color: #9c1006;
	background: #9c1006;
	color: #fff;
	outline: 0;
}

.api-filter-modal__reset,
.api-filter-modal__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	opacity: 1 !important;
	visibility: visible !important;
}

.api-filter-modal__reset {
	min-height: 46px;
	padding: 0.55rem 1.2rem;
	border: 1px solid #9c1006 !important;
	border-radius: 50px !important;
	background: transparent !important;
	color: #9c1006 !important;
	font-weight: 700;
	text-decoration: none;
}

.api-filter-modal__reset .fusion-button-text {
	color: inherit !important;
}

.api-filter-modal__reset:hover,
.api-filter-modal__reset:focus {
	border-color: #000 !important;
	background: #000 !important;
	color: #fff !important;
	outline: 0;
}

.api-filter-modal__submit {
	border-color: #9c1006 !important;
	background: #9c1006 !important;
	color: #fff !important;
	cursor: pointer;
	text-transform: none !important;
}

.api-filter-modal__submit:only-child {
	min-width: 180px;
}

.api-filter-modal__submit:hover,
.api-filter-modal__submit:focus {
	border-color: #000 !important;
	background: #000 !important;
	color: #fff !important;
	outline: 0;
}

.api-filter-modal__submit:disabled,
.api-filter-modal__submit[aria-disabled="true"],
.api-filter-modal__submit.api-filter-submit--disabled {
	border-color: #d1d6df !important;
	background: #d1d6df !important;
	color: #6b7280 !important;
	cursor: not-allowed;
	opacity: 0.75 !important;
	pointer-events: none;
}

.api-filter-modal__submit .fusion-button-text {
	color: inherit !important;
}

.api-filter-modal-is-open {
	overflow: hidden;
}

@media (max-width: 678px) {
	.api-filters--home {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0.6rem;
		align-items: center;
		justify-content: stretch;
		justify-items: stretch;
		width: 100%;
		max-width: 100%;
		overflow: visible;
		padding: 0.7rem;
		box-sizing: border-box;
	}

	.api-home-search,
	.api-home-type,
	.api-home-advanced-button,
	.api-home-submit {
		grid-column: 1 / -1;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		height: 54px;
		min-height: 54px;
		margin: 0;
		box-sizing: border-box;
	}

	.api-home-search,
	.api-home-type {
		border: 1px solid #d6dbe4;
		border-radius: 8px;
		overflow: hidden;
	}

	.api-home-type {
		margin-left: 0;
	}

	.api-home-advanced-button {
		justify-self: stretch;
		aspect-ratio: auto;
	}

	.api-home-submit {
		justify-self: stretch;
	}

	.api-filter-modal {
		align-items: stretch;
		padding: 0;
	}

	.api-filter-modal__panel {
		width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}

	.api-filter-row__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.api-filter-range-toggle,
	.api-filter-range-popover,
	.api-filter-choice,
	.api-filter-choice select {
		width: 100%;
		min-width: 0;
	}

	.api-filter-row--choice .api-filter-choice {
		margin-left: 0;
	}

	.api-filter-range-popover {
		position: static;
	}
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
	.api-filters--home {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 0.6rem;
		align-items: stretch;
		justify-content: stretch;
		justify-items: stretch;
		width: 100%;
		max-width: 100%;
		overflow: visible;
		box-sizing: border-box;
	}

	.api-home-search,
	.api-home-type,
	.api-home-advanced-button,
	.api-home-submit {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: 54px;
		min-height: 54px;
		margin-right: 0 !important;
		margin-left: 0 !important;
		box-sizing: border-box;
	}

	.api-home-type {
		margin-left: 0 !important;
	}

	.api-home-advanced-button {
		aspect-ratio: auto;
	}

	.api-filter-modal {
		align-items: stretch;
		padding: 0;
	}

	.api-filter-modal__panel {
		display: grid;
		grid-template-rows: auto minmax(0, 1fr) auto;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: 100vh;
		max-height: 100dvh;
		border-radius: 0;
		overflow: hidden;
	}

	.api-filter-modal__body {
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.api-filter-modal__footer {
		position: relative;
		bottom: 0;
		z-index: 999999;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0.75rem;
		align-items: center;
		justify-content: stretch;
		width: 100%;
		min-height: auto;
		padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
		background: #f5f6f8;
		box-sizing: border-box;
	}

	.api-filter-modal__reset,
	.api-filter-modal__submit {
		width: 100%;
		min-width: 0;
		min-height: 48px;
		margin: 0 !important;
		white-space: nowrap;
		box-sizing: border-box;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.api-filter-modal__submit:only-child {
		grid-column: 1 / -1;
	}

	.api-filter-row__heading {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 0.8rem;
		align-items: start;
		justify-content: stretch;
	}

	.api-filter-row__heading > * {
		width: 100%;
		min-width: 0;
	}

	.api-filter-row__heading p {
		margin: 0 !important;
	}

	.api-filter-range-toggle,
	.api-filter-range-popover,
	.api-filter-choice,
	.api-filter-choice select {
		width: 100%;
		min-width: 0;
	}

	.api-filter-row--choice .api-filter-choice {
		margin-left: 0;
	}

	.api-filter-range-popover {
		position: static;
	}
}

@container api-filters (max-width: 720px) {
	.api-filters--home {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 0.6rem;
		align-items: stretch;
		justify-content: stretch;
		justify-items: stretch;
		width: 100%;
		max-width: 100%;
		overflow: visible;
		box-sizing: border-box;
	}

	.api-home-search,
	.api-home-type,
	.api-home-advanced-button,
	.api-home-submit {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: 54px;
		min-height: 54px;
		margin-right: 0 !important;
		margin-left: 0 !important;
		box-sizing: border-box;
	}

	.api-home-search,
	.api-home-type {
		border: 1px solid #d6dbe4;
		border-radius: 8px;
		overflow: hidden;
	}

	.api-home-advanced-button {
		aspect-ratio: auto;
	}
}
