/* Virtual Market Directory: maps and location picker (front end and admin). */
.vmd-map,
.vmd-picker__map {
	width: 100%;
	max-width: 100%;
	min-height: 200px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	z-index: 0;
}
.vmd-picker__map { height: 320px; margin: 0.5rem 0 1rem; }
.vmd-picker__map[hidden],
.vmd-picker__tools[hidden],
[data-vmd-physical-target][hidden] { display: none; }
.vmd-picker__tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.vmd-picker__status { min-height: 1.4em; margin: 0.25rem 0; font-size: 0.9em; }
.vmd-picker__coords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 600px) { .vmd-picker__coords { grid-template-columns: 1fr; } }
.vmd-picker__coords input { width: 100%; max-width: 100%; }

.vmd-map__links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem 0 0; }
.vmd-map__listwrap { margin-top: 0.75rem; }
.vmd-map__listwrap summary { cursor: pointer; font-weight: 600; }
.vmd-map__list { margin: 0.5rem 0 0; padding-left: 1.25rem; columns: 2 16rem; }
.vmd-map__list li { break-inside: avoid; margin-bottom: 0.25rem; }

/* Marker popup (built with textContent in vmd-map.js). */
.vmd-popup { min-width: 140px; line-height: 1.4; }
.vmd-popup__logo { display: block; width: 48px; height: 48px; margin: 0 0 6px; object-fit: contain; border-radius: 4px; }
.vmd-popup__title { display: block; font-size: 1.05em; }
.vmd-popup__location, .vmd-popup__rating { font-size: 0.9em; margin-top: 2px; }
.vmd-popup__rating .vmd-verify__stars { color: #c2410c; letter-spacing: 0.08em; }
.vmd-popup__link { display: inline-block; margin-top: 6px; font-weight: 600; }

/* Physical store badge on cards and profiles. */
.vmd-physical { display: inline-block; margin: 0 0 0.5rem; padding: 0.1rem 0.6rem; font-size: 0.8em; font-weight: 700; border: 1px solid #ffb36b; border-radius: 999px; background: #fff1e6; color: #7c2d12; }

@media (forced-colors: active) {
	.vmd-map, .vmd-picker__map { border: 1px solid CanvasText; }
}

/* Branch maps: pulsing pin and your own position. */
.vmd-pulse { background: transparent; border: 0; }
.vmd-pulse span { display: block; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 122, 26, 0.38); box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.6); animation: vmd-pulse 1.4s ease-out infinite; }
@keyframes vmd-pulse {
	0% { transform: scale(0.5); box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.6); }
	70% { transform: scale(1); box-shadow: 0 0 0 18px rgba(255, 122, 26, 0); }
	100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); }
}
.vmd-me { stroke: #fff; stroke-width: 3; fill: #1e3a8a; fill-opacity: 1; }
.vmd-popup__phone { font-size: 0.9em; margin-top: 2px; }
.vmd-popup__link--dir { display: block; }
@media (prefers-reduced-motion: reduce) { .vmd-pulse span { animation: none; } }

/* Brand: default Leaflet pins are blue; rotate them to orange. Pulse and "you are here" markers are excluded. */
.vmd-map .leaflet-marker-icon:not(.vmd-pulse),
.vmd-picker__map .leaflet-marker-icon:not(.vmd-pulse) { filter: hue-rotate(177deg) saturate(1.5) brightness(1.08); }
.vmd-map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 14px 34px -10px rgba(10, 21, 48, 0.45); }
.vmd-popup__link { color: #c2410c; }
