/**
 * Mapa Google z trybem „click to load".
 * Paleta z theme.json — bez własnych kolorów.
 */

.nm-mapa-wrap {
	position: relative;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
}

.nm-mapa-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: 2.5rem 1.5rem;
	background: #FBFAF7;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	text-align: center;
	box-sizing: border-box;
}

.nm-mapa-pin {
	color: var(--wp--preset--color--sage);
	margin-bottom: 0.25rem;
}

.nm-mapa-address {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	margin: 0;
	max-width: 380px;
}

.nm-mapa-rodo {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
	margin: 0;
	max-width: 380px;
}

.nm-mapa-button {
	display: inline-block;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	padding: 0.8rem 1.75rem;
	margin-top: 0.5rem;
	background: var(--wp--preset--color--cta);
	color: var(--wp--preset--color--bg);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.nm-mapa-button:hover,
.nm-mapa-button:focus-visible {
	background: var(--wp--preset--color--cta-hover);
	outline: none;
}

.nm-mapa-button:focus-visible {
	box-shadow: 0 0 0 3px rgba(111, 136, 151, 0.28);
}

.nm-mapa-button:active {
	transform: translateY(1px);
}

.nm-mapa-fallback {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	margin: 0.25rem 0 0;
}

.nm-mapa-fallback a {
	color: var(--wp--preset--color--cta);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nm-mapa-fallback a:hover {
	color: var(--wp--preset--color--cta-hover);
}

/* Iframe wstrzykiwany przez JS po klik — dziedziczy wymiary z parenta. */
.nm-mapa-iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 4px;
}

@media (max-width: 600px) {
	.nm-mapa-placeholder {
		padding: 2rem 1rem;
	}
	.nm-mapa-address {
		font-size: 1.2rem;
	}
}
