/* Общий слой карты новой версии (метки, инлайн-карточка, маркер «Вы»).
   Вёрстка контейнера/высоты карты — на стороне страницы, тут только сами объекты карты. */

.pk-map-marker {
	transform: translate(-50%, -100%);
	cursor: pointer;
	white-space: nowrap;
}

.pk-map-marker__price {
	display: inline-block;
	padding: 4px 6px;
	background: var(--black-light);
	color: #fff;
	font-family: var(--font-HelveticaNeue);
	font-size: 14px;
	font-weight: 400;
	line-height: 140%;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* Хвостик плашки вниз к точке */
.pk-map-marker__price::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	width: 8px;
	height: 8px;
	background: var(--black-light);
	transform: translateX(-50%) rotate(45deg);
	border-radius: 1px;
}

.pk-map-marker:hover {
	z-index: 5;
}

.pk-map-pin {
	position: relative;
	transform: translate(-50%, -100%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #2e2f33;
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

/* Острие пина */
.pk-map-pin::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -6px;
	z-index: -1;
	width: 18px;
	height: 18px;
	background: #2e2f33;
	transform: translateX(-50%) rotate(45deg);
	border-radius: 0 0 4px 0;
}

.pk-map-pin__icon {
	display: block;
	width: 20px;
	height: 31px;
}

.pk-map-user {
	transform: translate(-50%, -100%);
}

.pk-map-user__label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: #ef7d4e;
	color: #fff;
	font-family: var(--font-HelveticaNeue);
	font-size: 16px;
	font-weight: 300;
	line-height: 1;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.pk-map-user__label::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	z-index: -1;
	width: 16px;
	height: 16px;
	background: #ef7d4e;
	transform: translateX(-50%) rotate(45deg);
	border-radius: 0 0 3px 0;
}

.pk-map-card-wrap {
	transform: translate(-50%, -100%);
	padding-bottom: 16px;
}

.pk-map-card {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 23em;
	max-width: 80vw;
	background: #fff;
	border-radius: 1em;
	overflow: hidden;
	box-shadow: 0 0.4em 1.6em rgba(0, 0, 0, .18);
	cursor: pointer;
	font-family: var(--font-HelveticaNeue);
	font-size: clamp(13px, 1.6vh, 16px);
	opacity: 0;
	transform: translateY(0.4em) scale(0.96);
	transform-origin: bottom center;
	transition: opacity .45s ease, transform .45s ease;
}

/* Плавное появление карточки */
.pk-map-card.is-open {
	opacity: 1;
	transform: none;
}

.pk-map-card__img {
	flex: 0 0 8.5em;
	align-self: stretch;
	min-height: 6.3em;
}

.pk-map-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pk-map-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.7em;
	padding: 0.9em 2.2em 0.9em 1.1em;
}

.pk-map-card__addr {
	font-family: var(--font-HelveticaNeue);
	font-size: 1em;
	font-weight: 700;
	line-height: 1.3;
	color: var(--black-light);
}

.pk-map-card__price {
	align-self: flex-start;
	padding: 0.5em 0.9em;
	background: var(--black-light);
	color: #fff;
	font-family: var(--font-primary);
	font-size: 0.875em;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.01em;
	text-align: center;
	border-radius: 0.6em;
	text-decoration: none;
}

.pk-map-card__close {
	position: absolute;
	top: 0.5em;
	right: 0.6em;
	width: 1.4em;
	height: 1.4em;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gray-middle);
	font-size: 1.2em;
	line-height: 1;
	cursor: pointer;
}

.pk-map-card__close:hover {
	color: var(--black-light);
}
