/*
 * Elementor columns use flex; without an explicit width the widget can compute to
 * 0px wide (clientWidth 0), so Google Maps never initialises. Fill the column.
 */
.elementor-widget-a-better-google-map {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	flex: 1 1 100%;
	min-width: 0;
	align-self: stretch;
}

.elementor-widget-a-better-google-map .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-width: 0;
}

.abgm-wrapper {
	line-height: 0; /* prevent gap between wrapper and map */
	width: 100%;
	/* Flex/grid parents (common in Elementor columns) can shrink this to 0 on iOS Safari. */
	min-height: 1px;
	flex-shrink: 0;
	align-self: stretch;
}

.abgm-map {
	position: relative;
	z-index: 1;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	min-height: 200px;
	/* Opaque fallback + keep map canvas above section backgrounds / pseudo-elements */
	background-color: #e5e3df !important;
}

@media (max-width: 767px) {
	.abgm-map {
		min-height: 240px;
	}
}

/* Shown in the editor when no API key is set */
.abgm-editor-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: #f7f7f7;
	border: 2px dashed #d5d5d5;
	color: #999;
	font-family: inherit;
	font-size: 14px;
	text-align: center;
	padding: 20px;
	box-sizing: border-box;
}

/* Info window content */
.abgm-info-window {
	max-width: 220px;
	padding: 2px 2px 4px;
	font-family: inherit;
}

.abgm-info-window strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #1a1a1a;
	margin-bottom: 4px;
}

.abgm-info-window p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}
