/**
 * Variant CSS: footer--map-contact-band
 * Layer 2 — local-business footer: faux-map panel (styled street grid + pin)
 * beside contact + hours columns, above a legal bar. Always-dark surface.
 * Scope: every selector starts with body.aibt-universal .universal-footer--map-contact-band
 */

body.aibt-universal .universal-footer--map-contact-band {
	background: var(--background-dark, #141414);
	color: var(--text-on-dark, #ffffff);
	padding-block: calc(clamp(3rem, 7vh, 5rem) * var(--density, 1));
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__band {
	align-items: center;
}

/* ── Faux-map panel ────────────────────────────────────────────── */
body.aibt-universal .universal-footer--map-contact-band .universal-footer__map {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--decor-radius);
	/* Tinted dark tile so the synthetic map reads as a surface, not a hole. */
	background: color-mix(in srgb, var(--accent) 12%, var(--background-dark, #141414));
	border: 1px solid color-mix(in srgb, var(--text-on-dark, #ffffff) 14%, transparent);
	color: var(--text-on-dark, #ffffff);
	text-decoration: none;
	transition: border-color var(--duration-fast) var(--ease-default),
		transform var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__map:hover,
body.aibt-universal .universal-footer--map-contact-band .universal-footer__map:focus-visible {
	border-color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #ffffff));
	transform: translateY(-2px);
}

/* Street-grid / route lines drawn with currentColor (on-dark white). */
body.aibt-universal .universal-footer--map-contact-band .universal-footer__map-grid {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--text-on-dark, #ffffff);
}

/* Centre pin — accent lift so it pops against the dark tile (KI-020). */
body.aibt-universal .universal-footer--map-contact-band .universal-footer__map-pin {
	position: absolute;
	top: 44%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	color: color-mix(in srgb, var(--accent) 70%, var(--on-dark, #ffffff));
	filter: drop-shadow(0 4px 8px color-mix(in srgb, #000000 45%, transparent));
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__map-tag {
	position: absolute;
	left: 50%;
	bottom: 0.9rem;
	transform: translateX(-50%);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--text-on-dark, #ffffff);
	background: color-mix(in srgb, #000000 45%, transparent);
	padding: 0.4rem 0.85rem;
	border-radius: var(--decor-radius-pill);
	white-space: nowrap;
}

/* ── Info column ───────────────────────────────────────────────── */
body.aibt-universal .universal-footer--map-contact-band .universal-footer__masthead {
	font-family: var(--font-display) !important;
	color: var(--text-on-dark, #ffffff) !important;
	margin: 0 0 var(--space-md) 0 !important;
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__details {
	gap: clamp(1.25rem, 3vw, 2rem);
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__dlabel {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	/* Accent lift for the labels on the dark band (KI-020). */
	color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #ffffff)) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__dval {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-on-dark, #ffffff) !important;
	opacity: 0.74;
	margin: 0 !important;
}

/* Hide a detail column whose value was cleared by the binding fill — e.g. a
   client who gave no opening hours: `footer-hours` is human-only, so the loader
   blanks the demo value, leaving the static "Godziny" label orphaned above an
   empty <p>. The cleared value renders truly :empty, so drop the whole column. */
body.aibt-universal .universal-footer--map-contact-band .universal-footer__dcol:has(> .universal-footer__dval:empty) {
	display: none !important;
}

/* ── Legal row ─────────────────────────────────────────────────── */
body.aibt-universal .universal-footer--map-contact-band .universal-footer__legal {
	margin-top: clamp(2.5rem, 5vh, 3.5rem);
	padding-top: var(--space-md);
	border-top: 1px solid color-mix(in srgb, var(--text-on-dark, #ffffff) 14%, transparent);
	gap: var(--space-sm);
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__copyright,
body.aibt-universal .universal-footer--map-contact-band .universal-footer__legal-links {
	font-family: var(--font-body) !important;
	font-size: 0.8rem !important;
	color: var(--text-on-dark, #ffffff) !important;
	opacity: 0.5;
	letter-spacing: var(--tracking-wide) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__legal-links a {
	color: var(--text-on-dark, #ffffff);
	text-decoration: none;
	transition: opacity var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__legal-links a:hover,
body.aibt-universal .universal-footer--map-contact-band .universal-footer__legal-links a:focus-visible {
	opacity: 1;
}

/* ── Mobile: stack map over info, then detail columns wrap ─────── */
@media (max-width: 781px) {
	body.aibt-universal .universal-footer--map-contact-band .universal-footer__mapcol,
	body.aibt-universal .universal-footer--map-contact-band .universal-footer__infocol {
		flex-basis: 100% !important;
	}

	body.aibt-universal .universal-footer--map-contact-band .universal-footer__details {
		gap: 1.5rem !important;
	}

	body.aibt-universal .universal-footer--map-contact-band .universal-footer__dcol {
		flex-basis: 100% !important;
	}
}

/* Narrow phones: drop wide tracking so labels don't look gappy (A5). */
@media (max-width: 640px) {
	body.aibt-universal .universal-footer--map-contact-band .universal-footer__dlabel,
	body.aibt-universal .universal-footer--map-contact-band .universal-footer__map-tag {
		letter-spacing: 0 !important;
	}
}

/* Keyboard focus rings — the map panel + legal links signal focus only via
   border/opacity otherwise; add an explicit ring. */
body.aibt-universal .universal-footer--map-contact-band .universal-footer__map:focus-visible,
body.aibt-universal .universal-footer--map-contact-band .universal-footer__legal-links a:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--accent) 55%, var(--on-dark, #FFFFFF));
	outline-offset: 2px;
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__map:focus-visible {
	border-radius: var(--decor-radius);
}

body.aibt-universal .universal-footer--map-contact-band .universal-footer__legal-links a:focus-visible {
	border-radius: var(--decor-radius, 4px);
}

/* Respect reduced-motion — neutralise the map-panel lift. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-footer--map-contact-band .universal-footer__map {
		transition: border-color var(--duration-fast) var(--ease-default);
	}

	body.aibt-universal .universal-footer--map-contact-band .universal-footer__map:hover,
	body.aibt-universal .universal-footer--map-contact-band .universal-footer__map:focus-visible {
		transform: none;
	}
}
