/* Vigilex Locations Map - list frames, selected state and map markers (overrides theme button styles). */
.vxloc .vxloc-card,
.vxloc .vxloc-filters button { border-radius: 0 !important; }

/* Selected location in the list: full green background. */
.vxloc .vxloc-card.is-active {
	background: #259B5B !important;
	border-color: #259B5B !important;
	box-shadow: 0 6px 20px rgba(9, 54, 84, .15) !important;
}
.vxloc .vxloc-card.is-active .vxloc-type,
.vxloc .vxloc-card.is-active h3,
.vxloc .vxloc-card.is-active .vxloc-country,
.vxloc .vxloc-card.is-active .vxloc-line,
.vxloc .vxloc-card.is-active .vxloc-line a,
.vxloc .vxloc-card.is-active .vxloc-dir { color: #fff !important; }
.vxloc .vxloc-card.is-active .vxloc-country { opacity: .85; }
.vxloc .vxloc-card.is-active .vxloc-dir { text-decoration: underline; }

/* Map markers. */
.vxloc-map button.vxloc-marker {
	position: absolute;
	transform: translate(-50%, calc(-100% - 9px));
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 12px 7px 10px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #093654 !important;
	font-family: Montserrat, sans-serif !important;
	text-align: left;
	text-transform: none !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .35) !important;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
	z-index: 1;
}
.vxloc-map button.vxloc-marker::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -7px;
	transform: translateX(-50%);
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 7px solid #fff;
}
.vxloc-map .vxloc-marker-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 24px;
	flex: 0 0 auto;
	background: none;
	color: #259B5B;
}
.vxloc-map .vxloc-marker-icon svg { width: 24px; height: 20px; display: block; }
.vxloc-map .vxloc-marker-text { display: flex; flex-direction: column; }
.vxloc-map .vxloc-marker-meta { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.vxloc-map .vxloc-marker-type { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #259B5B; }
.vxloc-map .vxloc-marker-name { font-size: 15px; font-weight: 700; }
.vxloc-map .vxloc-marker-country { font-size: 12px; font-weight: 500; opacity: .7; }
.vxloc-map .vxloc-marker-country::before { content: "\00B7"; margin-right: 6px; }

.vxloc-map button.vxloc-marker:hover,
.vxloc-map button.vxloc-marker.is-hover { transform: translate(-50%, calc(-100% - 9px)) scale(1.06); z-index: 3; }
.vxloc-map button.vxloc-marker.is-active { background: #259B5B !important; color: #fff !important; z-index: 4; }
.vxloc-map button.vxloc-marker.is-active::after { border-top-color: #259B5B; }
.vxloc-map button.vxloc-marker.is-active .vxloc-marker-country { opacity: .9; }
.vxloc-map button.vxloc-marker.is-active .vxloc-marker-icon,
.vxloc-map button.vxloc-marker.is-active .vxloc-marker-type { color: #fff; }
.vxloc-map button.vxloc-marker[hidden] { display: none; }

/* Label placed below its point (to avoid overlapping another label): arrow points up. */
.vxloc-map button.vxloc-marker.is-below { transform: translate(-50%, 9px); }
.vxloc-map button.vxloc-marker.is-below:hover,
.vxloc-map button.vxloc-marker.is-below.is-hover { transform: translate(-50%, 9px) scale(1.06); }
.vxloc-map button.vxloc-marker.is-below::after {
	top: -7px;
	bottom: auto;
	border-top: 0;
	border-bottom: 7px solid #fff;
}
.vxloc-map button.vxloc-marker.is-below.is-active::after { border-bottom-color: #259B5B; }

/* Label placed to the right / left of its point: arrow points sideways. */
.vxloc-map button.vxloc-marker.is-right { transform: translate(9px, -50%); }
.vxloc-map button.vxloc-marker.is-left { transform: translate(calc(-100% - 9px), -50%); }
.vxloc-map button.vxloc-marker.is-right:hover,
.vxloc-map button.vxloc-marker.is-right.is-hover { transform: translate(9px, -50%) scale(1.06); }
.vxloc-map button.vxloc-marker.is-left:hover,
.vxloc-map button.vxloc-marker.is-left.is-hover { transform: translate(calc(-100% - 9px), -50%) scale(1.06); }
.vxloc-map button.vxloc-marker.is-right::after,
.vxloc-map button.vxloc-marker.is-left::after {
	top: 50%;
	bottom: auto;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
}
.vxloc-map button.vxloc-marker.is-right::after {
	left: -7px;
	transform: translateY(-50%);
	border-left: 0;
	border-right: 7px solid #fff;
}
.vxloc-map button.vxloc-marker.is-left::after {
	left: auto;
	right: -7px;
	transform: translateY(-50%);
	border-right: 0;
	border-left: 7px solid #fff;
}
.vxloc-map button.vxloc-marker.is-right.is-active::after { border-right-color: #259B5B; }
.vxloc-map button.vxloc-marker.is-left.is-active::after { border-left-color: #259B5B; }
