/**
 * VENTI Multi Location Marker - Styles
 *
 * Handles responsive sizing for the map container. Leaflet's own CSS
 * (loaded as a separate dependency, vmlm-leaflet-css) handles the internal
 * map/marker/popup styling.
 */

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

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

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

/**
 * Marker popup card: image (auto map preview or custom photo) on top,
 * location name + "Get Directions" link below.
 */
.leaflet-popup-content-wrapper {
	padding: 0;
	overflow: hidden;
	border-radius: 8px;
}

.leaflet-popup-content {
	margin: 0;
	width: 220px !important;
}

.vmlm-popup-media {
	width: 100%;
	height: 110px;
	background: #e9ecef;
	position: relative;
	overflow: hidden;
}

.vmlm-popup-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* The auto-preview mini map fills the same media area. */
.vmlm-popup-preview {
	z-index: 0;
}

.vmlm-popup-preview .leaflet-control-container {
	display: none;
}

.vmlm-popup-body {
	padding: 10px 12px 12px;
}

.vmlm-popup-title {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	color: #1d2327;
	margin-bottom: 8px;
}

.vmlm-popup-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #2271b1;
	text-decoration: none;
}

.vmlm-popup-link:hover {
	color: #135e96;
	text-decoration: underline;
}

.vmlm-directions-icon {
	flex-shrink: 0;
}

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

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