/* ==========================================================================
   Floating WhatsApp button + map embed
   ========================================================================== */

.ad-wa {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 900;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	width: 58px;
	height: 58px;
	border-radius: 999px;
	background: #25D366;
	color: #FFFFFF;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55);
	transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
	            box-shadow 0.22s ease, width 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
	overflow: hidden;
	text-decoration: none;
	justify-content: center;
}

.ad-wa svg {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	fill: currentColor;
}

.ad-wa__label {
	white-space: nowrap;
	font-size: 0.94rem;
	font-weight: 600;
	opacity: 0;
	max-width: 0;
	transition: opacity 0.2s ease, max-width 0.28s ease;
	color: #FFFFFF;
}

/* Expand to a labelled pill on hover, pointer devices only */
@media (hover: hover) and (min-width: 768px) {
	.ad-wa:hover,
	.ad-wa:focus-visible {
		width: 208px;
		padding: 0 20px 0 14px;
		justify-content: flex-start;
		transform: translateY(-2px);
		color: #FFFFFF;
	}

	.ad-wa:hover .ad-wa__label,
	.ad-wa:focus-visible .ad-wa__label {
		opacity: 1;
		max-width: 160px;
	}
}

.ad-wa:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 3px;
}

/* Attention pulse - subtle, and only until first interaction */
@keyframes ad-wa-pulse {
	0%   { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
	70%  { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.ad-wa { animation: ad-wa-pulse 2.8s ease-out 3; }

@media (max-width: 767px) {
	.ad-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
	.ad-wa svg { width: 27px; height: 27px; flex-basis: 27px; }
}

@media (prefers-reduced-motion: reduce) {
	.ad-wa { animation: none; transition: none; }
	.ad-wa:hover { transform: none; }
}

@media print {
	.ad-wa { display: none; }
}

/* --------------------------------------------------------------------------
   Map embed
   -------------------------------------------------------------------------- */

.ad-map {
	position: relative;
	width: 100%;
	border-radius: var(--ad-radius, 14px);
	overflow: hidden;
	border: 1px solid var(--ad-line, rgba(255,255,255,0.08));
	background: #10151B;
	line-height: 0;
}

.ad-map iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
	/* Tone the bright default map down to sit in the dark theme */
	filter: grayscale(0.35) invert(0.9) hue-rotate(180deg) contrast(0.92) brightness(0.95);
}

@media (max-width: 767px) {
	.ad-map iframe { height: 300px; }
}

.ad-map__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	padding: 16px 18px;
	background: var(--ad-surface, #141922);
	border-top: 1px solid var(--ad-line, rgba(255,255,255,0.08));
	line-height: 1.5;
}

.ad-map__addr {
	color: var(--ad-muted, #9AA7B4);
	font-size: 0.94rem;
	margin: 0;
	flex: 1 1 260px;
}

.ad-map__dir {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--ad-accent, #C1121F);
	color: var(--ad-on-accent, #FFFFFF);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.ad-map__dir:hover { background: var(--ad-accent-hi, #E8323F); color: var(--ad-on-accent, #FFFFFF); }
