/**
 * Simple OpenStreetMap Widget - Styles
 *
 * Handles responsive sizing for the map container. Leaflet's own CSS
 * (loaded as a separate dependency, sow-leaflet-css) handles the internal
 * map/marker/popup styling.
 */

.sow-map-wrapper {
	width: 100%;
	min-height: 150px;
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: 4px;
}

/* Leaflet needs its tile panes to size to the wrapper. */
.sow-map-wrapper .leaflet-container {
	width: 100%;
	height: 100%;
	font-family: inherit;
}

.sow-map-placeholder {
	margin: 0;
	padding: 20px;
	text-align: center;
	color: #999;
	border: 1px dashed #ccc;
	border-radius: 4px;
}

/* Tablet */
@media ( max-width: 1024px ) {
	.sow-map-wrapper {
		min-height: 220px;
	}
}

/* Mobile */
@media ( max-width: 767px ) {
	.sow-map-wrapper {
		min-height: 200px;
	}
}
