/* Interactive areas map (/areas/ only) */
.pm-amap-section { padding-bottom: var(--section-spacing); }
.pm-amap { position: relative; border-radius: var(--radius-hero); overflow: hidden; background: #0a0d12; isolation: isolate; }
.pm-amap__svg { display: block; width: 100%; height: auto; }

/* Living background: river and lanes flow slowly */
.pm-amap__river { stroke-dasharray: 26 12; animation: pm-am-flow 6s linear infinite; }
.pm-amap__lane { animation: pm-am-flow 9s linear infinite; }
@keyframes pm-am-flow { to { stroke-dashoffset: -152; } }

/* Pins */
.pm-amap__pin { cursor: pointer; outline: none; }
.pm-amap__dot, .pm-amap__halo, .pm-amap__pulse { transform-box: fill-box; transform-origin: 50% 50%; }
.pm-amap__dot { fill: #d90a0a; stroke: #fff; stroke-width: 1.6; transition: transform .25s cubic-bezier(.2, .8, .2, 1), fill .25s; }
.pm-amap__halo { fill: #d90a0a; fill-opacity: .16; transition: transform .3s cubic-bezier(.2, .8, .2, 1), fill .25s, fill-opacity .25s; }
.pm-amap__pulse { fill: none; stroke: #00c2db; stroke-width: 2; opacity: 0; }
.pm-amap__label {
	font: 500 12.5px/1 "Noto Sans Georgian", "IBM Plex Sans", sans-serif;
	fill: #e6ebf2; fill-opacity: .72; paint-order: stroke; stroke: #0a0d12; stroke-width: 4px; stroke-linejoin: round;
	pointer-events: none; transition: fill-opacity .25s, fill .25s;
}
.pm-amap__pin:hover .pm-amap__dot, .pm-amap__pin:focus-visible .pm-amap__dot, .pm-amap__pin.is-active .pm-amap__dot { transform: scale(1.5); }
.pm-amap__pin:hover .pm-amap__halo, .pm-amap__pin:focus-visible .pm-amap__halo, .pm-amap__pin.is-active .pm-amap__halo { transform: scale(1.9); fill: #00c2db; fill-opacity: .22; }
.pm-amap__pin:hover .pm-amap__label, .pm-amap__pin:focus-visible .pm-amap__label, .pm-amap__pin.is-active .pm-amap__label { fill: #fff; fill-opacity: 1; font-weight: 600; }
.pm-amap__pin.is-target .pm-amap__pulse { animation: pm-am-ping 1.2s ease-out infinite; }
.pm-amap__pin.is-target .pm-amap__dot { fill: #00c2db; }
.pm-amap__pin.is-arrived .pm-amap__pulse { animation: pm-am-ping 1.2s ease-out 2; }
.pm-amap__pin.is-arrived .pm-amap__dot { fill: #22c55e; }
@keyframes pm-am-ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4.5); } }

/* Car + trail */
.pm-amap__car-body { filter: drop-shadow(0 0 6px rgba(217, 10, 10, .65)); }
.pm-amap__trail { opacity: 0; transition: opacity .6s ease; }
.pm-amap__hub circle:first-child { transform-box: fill-box; transform-origin: 50% 50%; animation: pm-am-hub 2.4s ease-in-out infinite; }
@keyframes pm-am-hub { 50% { transform: scale(1.5); opacity: .4; } }

/* Status pill (top-left) */
.pm .pm-amap__status:empty { display: none; }
.pm .pm-amap__status {
	position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
	margin: 0; padding: 9px 16px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 500;
	background: rgba(10, 13, 18, .75); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pm .pm-amap__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.pm-amap.is-driving .pm-amap__status::before { background: #00c2db; box-shadow: 0 0 10px #00c2db; animation: pm-am-blink .8s steps(2, jump-none) infinite; }
@keyframes pm-am-blink { 50% { opacity: .3; } }

/* Info card */
.pm-amap__card {
	position: absolute; z-index: 3; width: 300px; padding: 18px 18px 16px;
	background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	animation: pm-am-card .22s cubic-bezier(.2, .8, .2, 1);
}
.pm-amap__card[hidden] { display: none; }
@keyframes pm-am-card { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.pm .pm-amap__card-title { margin: 0 26px 6px 0; color: #0e1116; font-size: 16px; line-height: 1.35; font-weight: 600; }
.pm .pm-amap__card-text { margin: 0; color: var(--color-text); font-size: 14px; line-height: 1.55; }
.pm .pm-amap__card-text:empty { display: none; }
.pm-amap__card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.pm .pm-amap__card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-weight: 500; text-decoration: none; }
.pm .pm-amap__card-link:hover { color: var(--color-secondary); }
.pm .pm-amap__card-call {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
	background: var(--color-primary); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .25s;
}
.pm .pm-amap__card-call:hover { background: var(--color-secondary); color: #fff; }
.pm .pm-amap__close {
	position: absolute; top: 10px; right: 10px; display: none; place-items: center; width: 28px; height: 28px; padding: 0;
	border: 0; border-radius: 50%; background: var(--color-background); color: #0e1116; cursor: pointer;
}
.pm-amap__card.is-sticky .pm-amap__close { display: grid; }
.pm .pm-amap__close:hover { background: var(--color-secondary); color: #fff; }

/* Touch / phones: whole map fits; names show for the active area; card docks at the bottom */
@media (max-width: 767px), (hover: none) {
	/* Hide names completely (fill AND the dark outline); show only the tapped / target area */
	.pm-amap__label { opacity: 0; transition: opacity .25s; }
	.pm-amap__pin.is-active .pm-amap__label, .pm-amap__pin.is-target .pm-amap__label { opacity: 1; fill-opacity: 1; }
	.pm-amap__dot { transform: scale(1.35); }
	.pm-amap__card { left: 10px !important; right: 10px; bottom: 10px; top: auto !important; width: auto; }
	.pm .pm-amap__close { display: grid; }
	/* Hint moves out of the map: a strip under it, so it never covers pins */
		.pm .pm-amap__status { top: 10px; left: 10px; font-size: 12px; padding: 7px 12px; }
}
@media (max-width: 767px) {
	.pm-amap { border-radius: var(--radius-card); }
	/* Phones: a bigger map that swipes sideways (opens centred on the city, see JS) */
	.pm-amap__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.pm-amap__scroll::-webkit-scrollbar { display: none; }
	.pm-amap__svg { width: 920px; max-width: none; }
	.pm-amap__dot { transform: scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
	.pm-amap__river, .pm-amap__lane, .pm-amap__hub circle:first-child, .pm-amap__pin .pm-amap__pulse { animation: none; }
	.pm-amap__card { animation: none; }
}
