.map-search__status {
	min-height: 24px;
	margin: 8px 0 16px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--black);
}

.map-search__stage {
	position: relative;
	height: 680px;
	border-radius: 16px;
	overflow: hidden;
	background: #d9dde3;
	margin-top: 40px;
}

.map-search__canvas,
.map-search__canvas .ymaps-2-1-79-map {
	width: 100%;
	height: 100%;
}

.map-search__empty {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: 420px;
	padding: 20px 24px;
	border-radius: 12px;
	background: #fff;
	text-align: center;
	font-size: 16px;
	line-height: 1.45;
	color: var(--black);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.map-search__panel {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 5;
	width: 380px;
	max-height: calc(100% - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.map-search__panel[hidden],
.map-search__empty[hidden] {
	display: none;
}

.map-card__head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 12px;
	background: #fff;
}

.map-card__heading {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
	padding-right: 28px;
}

.map-card__loading,
.map-card__note {
	padding: 16px;
	font-size: 14px;
	line-height: 1.4;
}

.map-card__back,
.map-card__close {
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--black);
	font-family: inherit;
}

.map-card__back {
	padding: 6px 0;
	font-size: 14px;
	font-weight: 600;
}

.map-card__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f3f4f6;
	font-size: 22px;
	line-height: 1;
}

.map-card__photo {
	position: relative;
	height: 232px;
	background: #eee;
	overflow: hidden;
}

.map-card__photo img,
.map-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.map-card__counter {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 1;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.72);
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
}

.map-card__nav {
	position: absolute;
	top: 50%;
	z-index: 1;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	color: #111;
	font: 22px/32px Arial, sans-serif;
	cursor: pointer;
}

.map-card__nav_prev {
	left: 8px;
}

.map-card__nav_next {
	right: 8px;
}

.map-card__body {
	padding: 16px 16px 20px;
}

.map-card__price {
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	margin-bottom: 8px;
}

.map-card__title {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
	margin-bottom: 12px;
}

.map-card__specs {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.map-card__spec {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.3;
}

.map-card__spec-label {
	opacity: 0.65;
}

.map-card__more {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	border-radius: 8px;
	background: var(--red);
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
}

.map-card__more:hover {
	background: #c20c15;
	color: #fff;
}

.map-card__list {
	padding: 0 16px 12px;
}

.map-card__group {
	margin-top: 8px;
	font-weight: 600;
	font-size: 14px;
}

.map-card__item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	text-decoration: none;
	color: var(--black);
}

.map-card__item:hover {
	background: #fafafa;
}

.map-card__thumb {
	flex: 0 0 84px;
	width: 84px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	background: #eee;
}

.map-card__item-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.map-card__item-title {
	font-size: 14px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.map-card__item-price {
	font-weight: 700;
	font-size: 14px;
}

@media screen and (max-width: 800px) {
	.map-search .container {
		width: 100%;
		max-width: 100%;
		padding: 0 16px;
		box-sizing: border-box;
	}

	.map-search h1 {
		margin: 8px 0 0;
		font-size: 22px;
		line-height: 1.2;
	}

	.map-search__status {
		margin: 6px 0 8px;
		font-size: 14px;
	}

	.map-search .filter {
		display: block;
		margin-bottom: 12px;
	}

	.map-search .filter__item {
		min-width: 0;
		width: 100%;
	}

	.map-search .filter__item select,
	.map-search .filter__btn {
		font-size: 16px;
	}

	.map-search__stage {
		height: 70vh;
		min-height: 420px;
		border-radius: 12px;
		overflow: visible;
	}

	.map-search__canvas {
		border-radius: 12px;
		overflow: hidden;
	}

	.map-search__empty {
		width: calc(100% - 32px);
		max-width: none;
		box-sizing: border-box;
	}

	.map-search__panel {
		position: fixed;
		top: auto;
		right: 0;
		left: 0;
		bottom: 0;
		z-index: 1000;
		width: 100%;
		max-height: calc(100dvh - 72px);
		border-radius: 16px 16px 0 0;
		padding-bottom: env(safe-area-inset-bottom);
		-webkit-overflow-scrolling: touch;
	}

	.map-card__head {
		top: 0;
		z-index: 3;
		padding-top: 14px;
	}

	.map-search__panel::before {
		content: '';
		position: absolute;
		top: 8px;
		left: 50%;
		display: block;
		width: 36px;
		height: 4px;
		margin: 0;
		border-radius: 4px;
		background: #d5d5d5;
		transform: translateX(-50%);
		z-index: 4;
	}

	.map-card__close,
	.map-card__back,
	.map-card__nav,
	.map-card__more,
	.map-card__item {
		touch-action: manipulation;
	}

	.map-card__close {
		width: 44px;
		height: 44px;
	}

	.map-card__nav {
		width: 44px;
		height: 44px;
		margin-top: -22px;
		font-size: 28px;
		line-height: 44px;
	}

	.map-card__photo {
		height: 210px;
	}

	.map-card__item {
		min-height: 72px;
		padding: 12px 0;
	}

	.map-card__thumb {
		flex-basis: 96px;
		width: 96px;
		height: 72px;
	}

	.map-card__item_plain {
		cursor: default;
	}

	.map-card__item_plain:hover {
		background: transparent;
	}

	.map-card__photo_inset {
		height: 180px;
		margin: 0 0 12px;
		border-radius: 8px;
	}

	.map-card__more {
		position: static;
		margin-top: 8px;
	}
}
