@charset "UTF-8";

.header-advancedsearch {
	position: relative;
	z-index: 30;
}

.serach-modal {
	--serach-modal-width: min(600px, calc(100vw - 3.2rem));
	--serach-modal-border: #e7e7e7;
	--serach-modal-muted: #7e7e7e;
	--serach-modal-font-base: 1.4rem;
	--serach-modal-font-small: 1.3rem;
	--serach-modal-font-large: 1.7rem;
	--serach-modal-font-title: 1.7rem;
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: block;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.serach-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.serach-modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.34);
}

.serach-modal__panel {
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	width: var(--serach-modal-width);
	max-height: calc(100svh - 5.6rem);
	background-color: #fff;
	border: 1px solid var(--serach-modal-border);
	border-radius: 0.4rem;
	box-shadow: 0 2.5rem 4rem rgba(0, 0, 0, 0.2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.serach-modal__header {
	position: sticky;
	top: 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 2.2rem 1.5rem;
	border-bottom: 1px solid var(--serach-modal-border);
	background-color: #fff;
	z-index: 2;
}

.serach-modal__back {
	justify-self: end;
  font-size: 18px;
	line-height: 1;
	color: var(--color-black);
	cursor: pointer;
}

.serach-modal__title {
	grid-column: 2;
	justify-self: center;
	font-size: var(--serach-modal-font-title);
	line-height: 1.4;
	letter-spacing: 0.06em;
	font-weight: var(--fw-semi, 600);
}

.serach-modal__body {
	padding: 1.2rem 0 0;
	overflow-y: auto;
}

.serach-modal__section {
	padding: 3.8rem 5.2rem;
	border-top: 1px solid var(--serach-modal-border);
}

.serach-modal__section:first-child {
	border-top: 0;
}

.serach-modal__section-title {
	font-size: var(--serach-modal-font-base);
	line-height: 1.35;
	font-weight: var(--fw-semi, 600);
}

.serach-modal__section-content {
	margin-top: 2.4rem;
}

.serach-modal__section-content input[type="search"],
.serach-modal__section-content input[type="text"],
.serach-modal__section-content select {
	width: 100%;
	height: 5rem;
	padding: 0 1.6rem;
	border: 1px solid #A7A7A7;
	border-radius: 0.4rem !important;
	font-size: var(--serach-modal-font-base);
	line-height: 1.2;
	background-color: #fff;
	outline: none;
}

.serach-modal__section-content input[type="search"]:focus,
.serach-modal__section-content input[type="text"]:focus,
.serach-modal__section-content select:focus {
	border-color: #92c9e5;
	box-shadow: 0 0 0 2px rgba(99, 184, 226, 0.16);
}

.serach-modal__chips {
	display: flex;
	column-gap: 4rem;
	row-gap: 2rem;
}

.serach-modal__chip {
	min-height: 4.4rem;
	display: flex;
	align-items: center;
}

.serach-modal__chip img {
	display: block;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	border: 1px solid #A7A7A7;
	background-color: #fff;
	cursor: pointer;
}

.serach-modal__options,
.serach-modal__price-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 4.8rem;
	row-gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}


.serach-modal__options li,
.serach-modal__price-list li {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	min-height: 4.4rem;
	font-size: var(--serach-modal-font-base);
	line-height: 1.4;
}

.serach-modal input[type="radio"],
.serach-modal input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	width: 2.8rem;
	height: 2.8rem;
	margin: 0;
	border: 1px solid #959595;
	border-radius: 50%;
	background-color: #fff;
	position: relative;
	flex-shrink: 0;
	cursor: pointer;
}

.serach-modal input[type="checkbox"] {
	border-radius: 0.4rem;
}

.serach-modal input[type="radio"]:checked::after,
.serach-modal input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 1rem;
  height: 1rem;
	background-color: var(--color-black);
	border-radius: 50%;
}

.serach-modal input[type="checkbox"]:checked::after {
	border-radius: 0.2rem;
}

.serach-modal label {
	cursor: pointer;
	font-size: var(--serach-modal-font-base);
	line-height: 1.35;
}

.serach-modal__footer {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: 2.8rem 4rem 3rem;
	border-top: 1px solid var(--serach-modal-border);
	background-color: #fff;
	z-index: 2;
}

.serach-modal__clear,
.serach-modal__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 23rem;
	height: 5.8rem;
	border-radius: 0.6rem;
	font-size: var(--serach-modal-font-base);
	font-weight: var(--fw-medium, 500);
	letter-spacing: 0.05em;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.serach-modal__clear {
	border: 1px solid #bcbcbc;
	background-color: #fff;
	color: #4f4f4f;
}

.serach-modal__submit {
	border: 1px solid var(--color-btn-positive);
	background-color: var(--color-btn-positive);
	color: #fff;
}

.serach-modal__clear:hover,
.serach-modal__submit:hover {
	opacity: 0.86;
	color: inherit;
}

@media screen and (max-width: 768px) {
	.serach-modal {
		--serach-modal-width: calc(100vw - 1.6rem);
	}

	.serach-modal__panel {
		max-height: calc(100svh - 1.6rem);
	}

	.serach-modal__header {
		padding: 1.4rem 1.8rem;
	}

	.serach-modal__title {
		font-size: 1.7rem;
	}

	.serach-modal__section {
		padding: 2rem 1.8rem;
	}

	.serach-modal__section-title {
		font-size: 1.3rem;
	}

	.serach-modal__section-content {
		margin-top: 1.4rem;
	}

	.serach-modal__section-content input[type="search"],
	.serach-modal__section-content input[type="text"],
	.serach-modal__section-content select {
		height: 3.8rem;
		font-size: 1.3rem;
	}

	.serach-modal__chips,
	.serach-modal__options {
		column-gap: 1.8rem;
		row-gap: 1rem;
	}

  .serach-modal__price-list {
    grid-template-columns: 1fr;
    row-gap: 1.2rem;
  }

	.serach-modal__options li,
	.serach-modal__price-list li {
		font-size: 1.3rem;
		min-height: 3.5rem;
		gap: 0.8rem;
	}

	.serach-modal label {
		font-size: 1.3rem;
	}

	.serach-modal input[type="radio"],
	.serach-modal input[type="checkbox"] {
		width: 2rem;
		height: 2rem;
	}
  
	.serach-modal__footer {
		padding: 1.6rem 1.8rem 2rem;
		gap: 1rem;
	}

	.serach-modal__clear,
	.serach-modal__submit {
		width: calc((100% - 1rem) / 2);
		height: 4.6rem;
		font-size: 1.3rem;
	}
}
