/* Интерактивная карта этажа (контуры из конструктора brand.metropark.az) */
.fmap { --fm-blue: #0f5ea8; --fm-pink: #ec5870; --fm-ink: #111827; --fm-mute: #6b7280; --fm-line: #e6ebf2; --fm-green: #16a34a;
	position: relative; margin: 6px 0 18px; font-family: inherit; }
.fmap-stage { position: relative; width: 100%; max-width: 940px; margin: 0 auto; border-radius: 14px; overflow: visible; }
.fmap-img { display: block; width: 100%; height: auto; border-radius: 14px; user-select: none; -webkit-user-drag: none; }
.fmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* зоны: в режиме «overlay» почти невидимы (картинка сайта уже с логотипами), подсвечиваются при наведении */
.fmap-zone { cursor: pointer; outline: none; }
.fmap-zone polygon { fill: rgba(15, 94, 168, 0); stroke: rgba(15, 94, 168, 0); stroke-width: 2; stroke-linejoin: round;
	vector-effect: non-scaling-stroke; transition: fill .18s ease, stroke .18s ease; }
.fmap--overlay:hover .fmap-zone polygon { stroke: rgba(15, 94, 168, .22); stroke-dasharray: 4 4; }
.fmap-zone:hover polygon, .fmap-zone:focus-visible polygon, .fmap-zone.is-on polygon {
	fill: rgba(15, 94, 168, .16); stroke: var(--fm-blue); stroke-dasharray: none; stroke-width: 2.5;
	filter: drop-shadow(0 4px 10px rgba(15, 94, 168, .35)); }
.fmap-zone.is-static { cursor: default; }
.fmap-zone.is-static:hover polygon { fill: rgba(107, 114, 128, .12); stroke: #9aa3af; }
/* режим «constructor»: чистый план + аккуратные помещения с логотипами */
.fmap--constructor .fmap-zone polygon { fill: rgba(255, 255, 255, .92); stroke: #c9d6e6; stroke-width: 1.5; }
.fmap--constructor .fmap-zone text { fill: var(--fm-ink); font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.fmap--constructor .fmap-zone image { pointer-events: none; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.fmap--constructor .fmap-zone:hover image { transform: scale(1.06); }
.fmap--constructor .fmap-zone:hover polygon, .fmap--constructor .fmap-zone.is-on polygon { fill: #fff; stroke: var(--fm-blue); }
/* магазин, пришедший со страницы магазина (?shop=…) — пульсирует */
.fmap-zone.is-focus polygon { animation: fmPulse 1.6s ease-in-out 3; fill: rgba(236, 88, 112, .2); stroke: var(--fm-pink); stroke-width: 3; }
@keyframes fmPulse { 50% { fill: rgba(236, 88, 112, .38); } }

/* всплывающая карточка */
.fmap-tip { position: absolute; z-index: 30; left: 0; top: 0; width: 290px; max-width: calc(100vw - 32px);
	background: #fff; color: var(--fm-ink); border-radius: 16px; border: 1px solid var(--fm-line);
	box-shadow: 0 2px 6px rgba(17, 24, 39, .06), 0 18px 44px -8px rgba(17, 24, 39, .28);
	opacity: 0; transform: translateY(6px) scale(.97); transform-origin: var(--fm-ox, 50%) var(--fm-oy, 100%);
	transition: opacity .16s ease, transform .2s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; text-align: left; }
.fmap-tip.is-on { opacity: 1; transform: none; }
.fmap-tip.is-pinned { pointer-events: auto; }
.fmap-tip::after { content: ""; position: absolute; left: var(--fm-ax, 50%); width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg);
	border: 1px solid var(--fm-line); }
.fmap-tip.is-below::after { top: -8px; border-right: 0; border-bottom: 0; }
.fmap-tip:not(.is-below)::after { bottom: -8px; border-left: 0; border-top: 0; }
.fmap-tip .t-head { display: flex; gap: 12px; align-items: center; padding: 14px 14px 10px; }
.fmap-tip .t-logo { flex: 0 0 56px; height: 56px; border-radius: 12px; border: 1px solid var(--fm-line); background: #fff center/contain no-repeat;
	box-shadow: 0 4px 12px rgba(17, 24, 39, .08); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--fm-blue); font-size: 18px; }
.fmap-tip .t-name { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.fmap-tip .t-cat { font-size: 12px; color: var(--fm-mute); margin-top: 3px; line-height: 1.35; }
.fmap-tip .t-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.fmap-tip .t-chips span { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #eaf3fd; color: var(--fm-blue); }
.fmap-tip .t-chips span.gray { background: #f3f4f6; color: #374151; }
.fmap-tip .t-rows { border-top: 1px solid var(--fm-line); padding: 9px 14px; display: grid; gap: 6px; font-size: 12.5px; }
.fmap-tip .t-rows div { display: flex; gap: 8px; align-items: center; }
.fmap-tip .t-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex: 0 0 8px; }
.fmap-tip .t-dot.on { background: var(--fm-green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.fmap-tip .t-rows a { color: var(--fm-ink); text-decoration: none; }
.fmap-tip .t-go { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 12px 12px; padding: 10px 12px; border-radius: 11px;
	background: linear-gradient(135deg, #0f5ea8, #1b8fd8); color: #fff !important; font-weight: 800; font-size: 13px; text-decoration: none;
	box-shadow: 0 8px 18px -6px rgba(15, 94, 168, .6); }
.fmap-tip .t-go:hover { filter: brightness(1.08); }
.fmap-tip .t-soon { margin: 2px 14px 12px; font-size: 12px; color: var(--fm-mute); }
.fmap-hint { text-align: center; color: var(--fm-mute); font-size: 12.5px; margin: 10px 0 0; }
.fmap-hint-m { display: none; }
@media (hover: none) { .fmap-hint-d { display: none; } .fmap-hint-m { display: inline; } }
@media (prefers-reduced-motion: reduce) { .fmap-tip, .fmap-zone polygon { transition: none; } .fmap-zone.is-focus polygon { animation: none; } }
/* цветные зоны (как в конструкторе brand.metropark.az): у каждой марки свой мягкий цвет */
.fmap-zone.has-color polygon{fill:var(--zc);fill-opacity:.22;stroke:var(--zc);stroke-opacity:.9;stroke-width:1.5;stroke-dasharray:none}
.fmap-zone.has-color:hover polygon,.fmap-zone.has-color:focus-visible polygon,.fmap-zone.has-color.is-on polygon{fill-opacity:.42;stroke:#0f5ea8;stroke-width:2.5}
.fmap--constructor .fmap-zone.has-color polygon{fill:var(--zc);fill-opacity:.2}
