/* Раздел «Паркинг». Всё остальное — CSS сайта gb12.ru (assets/local/templates/main/...). */

.pk-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.header .header-bottom .menu .menu__link.pk-current {
	color: #248F61;
}

/* визуальный выбор: план крупнее, чем план этажа, — на нём 99 мест */
.flats-visual.PARKING.FLOOR .vmap {
	padding: 110px 14vw 140px;
}

.flats-visual.PARKING .vmap > svg {
	width: 100%;
	max-width: 1000px;
	height: auto;
}

.flats-visual.PARKING .vmap > svg > path.FLAT {
	opacity: 0.55;
	stroke-width: 1;
}

.flats-visual.PARKING .vmap > svg > path.FLAT.--disabled {
	opacity: 0;
	pointer-events: none;
}

.flats-visual.PARKING .vmap > svg .pk-nums text.--off {
	opacity: 0.3;
}

.flats-visual.PARKING .vmap > svg > path.FLAT.--selected {
	opacity: 1;
	fill-opacity: 0.7;
}

/* легенда статусов — на месте переключателя секций */
.flats-visual .pk-legend {
	position: absolute;
	top: 52px;
	left: 50%;
	transform: translate(-50%, 0);
	display: flex;
	gap: 20px;
}

.flats-visual .pk-legend span {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 20px;
	color: #2C3B42;
	font-size: 12.81px;
	font-weight: 600;
	line-height: 16px;
	white-space: nowrap;
	border-radius: 16.45px;
	background: #FFFFFF;
}

.flats-visual .pk-legend span::before {
	content: '';
	width: 14px;
	height: 14px;
	border-radius: 3px;
}

.flats-visual .pk-legend .free::before { background: rgba(36, 143, 97, 0.35); }
.flats-visual .pk-legend .reserved::before { background: rgba(143, 122, 36, 0.35); }
.flats-visual .pk-legend .sold::before { background: rgba(143, 36, 36, 0.35); }

.flats-visual .pk-legend b {
	font-weight: 400;
	color: rgba(44, 59, 66, 0.6);
}

.flats-visual.PARKING .floor-selector li {
	cursor: default;
}

/* фрагменты плана в плитках, списке и карточке */
.search-list .search-list__item .img-wrapper svg,
.room .room-layout .room-plan > svg {
	display: block;
	width: 100%;
	height: 100%;
	mix-blend-mode: multiply;
}

.search-list.to-tile .search-list__item .img-wrapper {
	aspect-ratio: 13 / 9;
	margin-bottom: 20px;
	border-radius: 6px;
	background: #F6F6F9;
}

.search-list.to-list .search-list__item .img-wrapper svg {
	border-radius: 4px;
	background: #F6F6F9;
}

svg path.--current {
	opacity: 1;
	fill-opacity: 0.45;
	stroke: none;
}

svg path.--current.free { fill: #248F61; }
svg path.--current.reserved { fill: #8f7a24; }
svg path.--current.sold { fill: #8f2424; }

.room .room-layout .floor-plan > svg > path.--current {
	opacity: 1;
	fill-opacity: 0.6;
}

.room .room-layout .floor-plan > svg {
	display: block;
	max-height: 560px;
	margin: 0 auto;
}

.room .room-layout .room-plan {
	padding-top: 20px;
}

/* «Особенности» в колонке отделки */
.search-list .search-list__item .flat-finish .pk-feat {
	color: #2C3B42;
}

.search-list.to-list .search-list__item .flat-finish .pk-feat {
	display: block;
	color: #1C4A5F;
	font-size: 15px;
	font-weight: 600;
	line-height: 100%;
	white-space: normal;
}

.search-list.to-list .search-list__item .entrance,
.search-list.to-list .search-list__item .apartment-number {
	white-space: normal;
}

.search-list .pk-empty {
	grid-column: 1 / -1;
	padding: 40px 30px;
	color: #1C4A5F;
	font-size: 18px;
	border-radius: 10px;
	background: #FFFFFF;
}

.room .room-info .bottom-wrapper:empty {
	display: none;
}

@media (max-width: 992px) {
	.flats-visual .pk-legend {
		top: 100px;
		gap: 8px;
	}
	.flats-visual .pk-legend span {
		padding: 0 12px;
	}
}

.room .room-info .pk-short {
	display: none;
}

@media (max-width: 768px) {
	.room .room-info .pk-long {
		display: none;
	}
	.room .room-info .pk-short {
		display: inline;
	}
	.room .room-info .top-wrapper .inner-wrapper p {
		white-space: nowrap;
	}
	.flats-visual.PARKING.FLOOR .vmap {
		padding: 150px 0 120px;
		overflow-x: auto;
	}
	.flats-visual.PARKING .vmap > svg {
		width: 920px;
		max-width: none;
	}
	.flats-visual .pk-legend {
		left: var(--container-side-padding);
		transform: none;
		flex-wrap: wrap;
		top: 90px;
	}
}
