/* Lightweight mobile hero + slide sheet shell (no Yandex / map CSS). */

.ar-city-map--hero {
	position: relative;
	left: calc((100% - 100dvw) / 2);
	width: 100dvw;
	margin: 0 0 24px;
	overflow: hidden;
	background: #111;
}

.ar-city-map__hero-img {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	pointer-events: none;
	user-select: none;
}

.ar-city-map--hero .ar-city-map__gate {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	gap: 16px;
	inset: 0;
	z-index: 2;
	padding: 40px 15px;
	background: linear-gradient(
		180deg,
		rgba(10, 10, 10, 0.12) 0%,
		rgba(10, 10, 10, 0.28) 45%,
		rgba(10, 10, 10, 0.78) 100%
	);
	pointer-events: auto;
	box-sizing: border-box;
}

.ar-city-map__gate-title {
	max-width: 14ch;
	margin: 0;
	color: #fff;
	font:
		800 clamp(22px, 6.5vw, 28px) / 1.05 system-ui,
		sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.ar-city-map__gate-actions {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.ar-city-map__gate-open {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: stretch;
	min-height: 52px;
	padding: 0;
	border: 0;
	background: #00d100;
	color: #fff;
	font:
		600 12px / 1 system-ui,
		sans-serif;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	cursor: pointer;
}

.ar-city-map__gate-open-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	border-right: 1px solid rgba(255, 255, 255, 0.28);
	flex: 0 0 auto;
}

.ar-city-map__gate-open > span:last-child {
	display: inline-flex;
	align-items: center;
	padding: 0 16px;
}

.ar-city-map__gate-city {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: stretch;
	min-height: 52px;
	padding: 0;
	border: 1px solid #00d100;
	color: #fff;
	font:
		600 12px / 1 system-ui,
		sans-serif;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	cursor: pointer;
	min-width: 0;
	background: transparent;
}

.ar-city-map__gate-city-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	border-right: 1px solid #00d100;
	flex: 0 0 auto;
}

.ar-city-map__gate-city > span:last-child {
	display: inline-flex;
	align-items: center;
	padding: 0 17px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Sliding map sheet */
.ar-map-sheet {
	position: fixed;
	inset: 0;
	top: var(--ar-site-header, 56px);
	z-index: 999999;
	pointer-events: none;
	visibility: hidden;
}

.ar-map-sheet.is-visible {
	pointer-events: auto;
	visibility: visible;
}

.ar-map-sheet__panel {
	position: absolute;
	inset: 0;
	background: #f3f3f3;
	transform: translate3d(100%, 0, 0);
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.ar-map-sheet.is-visible .ar-map-sheet__panel {
	transform: translate3d(0, 0, 0);
}

.ar-map-sheet.is-closing .ar-map-sheet__panel {
	transform: translate3d(100%, 0, 0);
}

.speedbar:has(+ .ar-city-map) {
	margin-bottom: 120px;
}

#ar-city-map:not(:has(> ymaps)) {
	width: 100dvw;
	position: relative;
	left: calc((100% - 100dvw) / 2);
	height: 640px;
	margin: 0 0 40px;
	overflow: hidden;
	background-color: #dcdcdc;
	background-image: linear-gradient(90deg, #dcdcdc 0%, #dcdcdc 42%, #f2f2f2 50%, #dcdcdc 58%, #dcdcdc 100%);
	background-size: 220% 100%;
	animation: ar-map-gate-shine 1.25s linear infinite;
}

@keyframes ar-map-gate-shine {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -120% 0;
	}
}

.ar-map-sheet__live {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ar-map-sheet__live.ar-city-map,
.ar-map-sheet .ar-city-map.is-open {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	overflow: hidden;
	z-index: 1;
}

body.ar-map-mobile-open {
	overflow: hidden;
}

/* Hero only on mobile; desktop uses #ar-city-map mount. */
@media (min-width: 901px) {
	.ar-city-map--hero,
	.ar-map-sheet {
		display: none !important;
	}
}

@media (max-width: 900px) {
	#ar-city-map:not(.ar-city-map--hero):not(.ar-map-sheet__live) {
		display: none !important;
	}

	.speedbar:has(+ .ar-city-map) {
		margin-bottom: 64px;
	}
}
