.gtamv {
	position: relative;
	overflow: hidden;
	background: #2a7f9e;
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.gtamv.is-drag {
	cursor: grabbing;
}

.gtamv--mini {
	touch-action: pan-y;
}

.gtamv__stage,
.gtamv__tiles,
.gtamv__lv {
	position: absolute;
	left: 0;
	top: 0;
	transform-origin: 0 0;
}

/* Pedaços do mapa: tamanho fixo dentro da camada do nível; só a camada é esticada */
.gtamv__lv img {
	position: absolute;
	max-width: none !important;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.16s;
}

.gtamv__lv img.is-on {
	opacity: 1;
}

.gtamv__stage img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	pointer-events: none;
}

.gtamv__full {
	opacity: 0;
	transition: opacity 0.25s;
}

.gtamv__full.is-on {
	opacity: 1;
}

/* Pins: uma tela só por cima do mapa */
.gtamv__cv {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.15s;
}

.gtamv.is-tilting .gtamv__cv {
	opacity: 0;
}

.gtamv__over {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 5;
}

/* Controles */
.gtamv__ctrl {
	position: absolute;
	right: 12px;
	top: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 3;
}

.gtamv__ctrl button {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: #17132b;
	color: #fff;
	font: 700 20px/1 Arial, sans-serif;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gtamv__ctrl button:hover {
	background: #2a2350;
	color: #fff;
}

/* Balão */
.gtamv__pop {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: auto;
	width: 290px;
	max-width: 82vw;
	background: #fff;
	color: #1c1a20;
	border-radius: 12px;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
	cursor: auto;
	user-select: text;
	-webkit-user-select: text;
	text-align: left;
}

.gtamv__pop::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -7px;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	background: #fff;
	transform: rotate(45deg);
}

.gtamv__body {
	position: relative;
	z-index: 1;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.gtamv__close {
	position: absolute;
	z-index: 2;
	right: 6px;
	top: 6px;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(23, 19, 43, 0.8);
	color: #fff;
	font: 700 17px/1 Arial, sans-serif;
	letter-spacing: 0;
	cursor: pointer;
}

.gtamv__msg {
	padding: 24px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

/* Vista 3D: o mapa deita em perspectiva e os pins ficam em pé */
.gtamv__plane {
	position: absolute;
	inset: 0;
	transform-origin: 50% 62%;
}

.gtamv.is-tilting .gtamv__plane {
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gtamv.is-3d {
	background: linear-gradient(180deg, #8fc7dd 0%, #2a7f9e 46%);
}

.gtamv.is-3d .gtamv__plane {
	transform: perspective(1500px) rotateX(var(--tilt, 44deg)) scale(1.15);
}

.gtamv__ctrl .gtamv__3d {
	font-size: 12px;
	font-weight: 800;
}

.gtamv__ctrl .gtamv__3d.is-on {
	background: linear-gradient(135deg, #ff4f8b, #a56bff);
}

@media (prefers-reduced-motion: reduce) {
	.gtamv__plane {
		transition: none;
	}
}

.gtamv__credit {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 3;
	max-width: 80%;
	padding: 3px 8px;
	background: rgba(23, 19, 43, 0.78);
	color: #d9d5ea;
	font: 11px/1.4 Arial, sans-serif;
	border-top-left-radius: 6px;
}

.gtamv__credit a {
	color: #fff;
	text-decoration: underline;
}
