/* Google profile link + contact map (15.11.2026).
   The contact map is MapLibre + OpenFreeMap (assets/js/bival-map.js), recoloured to the Bival palette. */

/* Rating link: "★ 5.0 na Googleu · 21 recenzija" */
.gmaps-badge {
	display: inline-flex;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	align-items: center;
	gap: var(--space-2, 8px);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.3;
	color: var(--color-gray-900, #111);
	text-decoration: none;
	padding: 6px 12px;
	border: 1px solid var(--color-border, #e0e0e0);
	border-radius: 999px;
	background: var(--color-white, #fff);
	transition: border-color 0.2s ease;
}
.gmaps-badge:hover,
.gmaps-badge:focus-visible {
	border-color: var(--color-primary-text, #3e9ba0);
}
.gmaps-badge:focus-visible {
	outline: 2px solid var(--color-primary-text, #3e9ba0);
	outline-offset: 2px;
}
.gmaps-badge__star {
	color: #f4b400;
	font-size: 16px;
}
.gmaps-badge__text {
	text-decoration: underline;
	text-decoration-color: var(--color-gray-300, #c9d2dd);
	text-underline-offset: 3px;
}
.bone-hero .gmaps-badge {
	margin-top: var(--space-4, 16px);
}

/* ---------- Contact map ---------- */
.contact-map--osm {
	background: #f7f7f7;
}
/* Higher specificity than MapLibre's own .maplibregl-map { position: relative }. */
.contact-map--osm .bival-map,
.contact-map--osm .bival-map.maplibregl-map {
	position: absolute;
	inset: 0;
	background: #f1f2f2;
}
.bival-map__fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-6, 24px);
	margin: 0;
	text-align: center;
	font-family: var(--font-body);
	color: var(--color-gray-600, #666);
}
.bival-map.is-ready .bival-map__fallback {
	display: none;
}
.bival-map .maplibregl-canvas:focus-visible {
	outline: 2px solid var(--color-primary-text, #3e9ba0);
	outline-offset: -2px;
}

/* Marker: Bival mark in a white badge with a teal ring and tip. */
.bival-map-pin {
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: none;
}
.bival-map-pin__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--color-primary, #58c1c7);
	box-shadow: 0 6px 18px rgba(17, 17, 17, 0.18), 0 0 0 8px rgba(88, 193, 199, 0.18);
}
.bival-map-pin__badge img {
	width: 26px;
	height: auto;
	display: block;
}
.bival-map-pin__tip {
	width: 0;
	height: 0;
	margin-top: -1px;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 12px solid var(--color-primary, #58c1c7);
}

/* Controls + attribution in the brand style (attribution is required by the OSM licence). */
.bival-map .maplibregl-ctrl-group {
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(17, 17, 17, 0.12);
	overflow: hidden;
}
.bival-map .maplibregl-ctrl-attrib,
.bival-map .maplibregl-ctrl-attrib.maplibregl-compact {
	background: rgba(255, 255, 255, 0.85);
	color: var(--color-gray-600, #666);
	font-family: var(--font-body);
	font-size: 10px;
	border-radius: 999px;
}
.bival-map .maplibregl-ctrl-attrib a {
	color: inherit;
}
.bival-map .maplibregl-cooperative-gesture-screen {
	font-family: var(--font-body);
	background: rgba(17, 17, 17, 0.55);
}

/* Our single card: bottom-left on desktop, so the pin (up and right) and the
   WhatsApp bubble (bottom-right of the screen) stay clear of it. */
.contact-map--osm .contact-map__pin {
	right: auto;
	left: var(--space-6, 24px);
	width: 400px;
	z-index: 2;
	padding: var(--space-4, 16px) var(--space-5, 20px);
}
.contact-map--osm .contact-map__pin-label {
	margin-bottom: var(--space-2, 8px);
}
.contact-map--osm .contact-map__pin-address {
	font-size: 24px;
	line-height: 1.2;
	margin-bottom: var(--space-2, 8px);
}
.contact-map__pin-phone {
	margin: 0 0 var(--space-3, 12px);
	font-family: var(--font-body);
	font-size: var(--text-body, 16px);
	color: var(--color-gray-900, #111);
}
.contact-map__pin-phone a {
	color: inherit;
}
.gmaps-badge--card {
	font-size: 14px;
}
.contact-map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2, 8px);
	margin-top: var(--space-3, 12px);
}
.contact-map__actions .btn {
	padding: 8px 14px;
	font-size: 14px;
	white-space: nowrap;
}

/* Contact page: the WhatsApp bubble is the round icon there, so it never reaches the map card. */
body.bival-has-map .wa-bubble {
	width: 56px;
	height: 56px;
	padding: 0;
	justify-content: center;
}
body.bival-has-map .wa-bubble .wa-icon {
	width: 30px;
	height: 30px;
}
body.bival-has-map .wa-bubble__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
body.bival-map-card-in-view .wa-bubble {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Phones/tablets: map on top (fixed height), card under it. */
@media (max-width: 900px) {
	.contact-map--osm {
		min-height: 0;
		height: auto;
		display: flex;
		flex-direction: column;
		background: var(--color-white, #fff);
		border: 1px solid var(--color-border, #e0e0e0);
	}
	.contact-map--osm .bival-map,
	.contact-map--osm .bival-map.maplibregl-map {
		position: relative;
		inset: auto;
		height: 360px;
		flex: none;
	}
	.contact-map--osm .contact-map__pin {
		position: static;
		width: auto;
		max-width: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}
	.contact-map__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* Opening hours in the contact map card (15.11.2026) */
.contact-map__pin-hours { margin: 10px 0 2px; }
.contact-map__pin-hours-title { margin: 0 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.contact-map__pin-hours ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.55; }
.contact-map__pin-hours li { display: flex; justify-content: space-between; gap: 12px; }
.contact-map__pin-hours li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
