/*
 * Карта объекта: защита от случайного перехвата прокрутки.
 *
 * Пока карта не активирована, жесты и колесо мыши обрабатывает страница: сам iframe
 * не получает событий (`pointer-events: none`), а сверху лежит прозрачная кнопка.
 * Клик или тап по карте снимает защиту — дальше карта работает как обычно.
 */

.aikuo-map {
	position: relative;
	line-height: 0;
}

.aikuo-map iframe {
	pointer-events: none;
}

.aikuo-map--active iframe {
	pointer-events: auto;
}

.aikuo-map-activate {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 10px;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	appearance: none;
}

.aikuo-map--active .aikuo-map-activate {
	display: none;
}

/*
 * В теме есть reset.css, который красит ВСЕ <button> при наведении в розово-красный
 * (#cc3366). Наша кнопка — прозрачный оверлей, поэтому гасим это состояние явно.
 */
.aikuo-map-activate:hover,
.aikuo-map-activate:focus,
.aikuo-map-activate:focus-visible,
.aikuo-map-activate:active {
	background-color: transparent;
	background-image: none;
	border: 0;
	color: inherit;
	box-shadow: none;
}

.aikuo-map-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #2c241b;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 14px rgba(44, 36, 27, 0.18);
	transition: background-color 0.2s ease;
}

.aikuo-map-activate:hover .aikuo-map-hint {
	background: #ffffff;
}

.aikuo-map-hint::before {
	content: '';
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #8a6a2c;
	box-sizing: border-box;
}
