/*
 * Locations Map widget.
 * Every color and size is a custom property so the Elementor widget's Style controls can override it.
 */

.sg-loc {
	--sg-loc-list-width: 46%;
	--sg-loc-gap: 60px;
	--sg-loc-divider: #e3e6ea;
	--sg-loc-divider-width: 1px;
	--sg-loc-item-hover-bg: transparent;
	--sg-loc-item-active-bg: transparent;

	--sg-loc-subtitle: #1b1b1b;
	--sg-loc-subtitle-gap: 14px;
	--sg-loc-subtitle-icon: #0b2d49;
	--sg-loc-subtitle-icon-size: 10px;
	--sg-loc-subtitle-icon-gap: 6px;
	--sg-loc-title: #1b1b1b;
	--sg-loc-title-gap: 32px;

	--sg-loc-pin-size: 18px;
	--sg-loc-pin-gap: 12px;
	--sg-loc-pin-color: #4f7dd6;
	--sg-loc-pin-active: var(--sg-loc-pin-color);

	--sg-loc-city: #1b1b1b;
	--sg-loc-city-active: var(--sg-loc-city);

	--sg-loc-address: #4a4a4a;
	--sg-loc-address-gap: 10px;
	--sg-loc-address-indent: calc(var(--sg-loc-pin-size) + var(--sg-loc-pin-gap));

	--sg-loc-button: #12487c;
	--sg-loc-button-hover: #0b2d49;
	--sg-loc-button-active: var(--sg-loc-button-hover);
	--sg-loc-button-icon-size: 29px;
	--sg-loc-button-icon-gap: 14px;

	--sg-loc-map-width: 100%;

	--sg-loc-marker-size: 12px;
	--sg-loc-marker-color: #ffffff;
	--sg-loc-marker-border: #4f7dd6;
	--sg-loc-marker-border-width: 2px;
	--sg-loc-marker-pulse: rgba(255, 255, 255, 0.55);
	--sg-loc-marker-icon-size: 30px;
	--sg-loc-marker-icon-color: #ffffff;
	--sg-loc-inactive-opacity: 0.55;

	--sg-loc-tooltip-bg: #ffffff;
	--sg-loc-tooltip-text: #0b2d49;
	--sg-loc-tooltip-radius: 2px;

	display: flex;
	align-items: center;
	gap: var(--sg-loc-gap);
}

.sg-loc *,
.sg-loc *::before,
.sg-loc *::after {
	box-sizing: border-box;
}

.sg-loc .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sg-loc--list,
.sg-loc--map {
	display: block;
}

.sg-loc--both .sg-loc__content {
	flex: 0 0 auto;
	width: var(--sg-loc-list-width);
	max-width: 100%;
}

/* Heading */

.sg-loc .sg-loc__subtitle {
	display: flex;
	align-items: center;
	gap: var(--sg-loc-subtitle-icon-gap);
	margin: 0 0 var(--sg-loc-subtitle-gap);
	padding: 0;
	color: var(--sg-loc-subtitle);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sg-loc .sg-loc__subtitle-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: var(--sg-loc-subtitle-icon-size);
	color: var(--sg-loc-subtitle-icon);
	line-height: 1;
}

.sg-loc .sg-loc__subtitle-icon svg,
.sg-loc .sg-loc__subtitle-icon img {
	display: block;
	width: 100%;
	height: auto;
}

.sg-loc .sg-loc__subtitle-icon svg:not([fill="none"]) {
	fill: currentColor;
}

.sg-loc .sg-loc__subtitle-icon i {
	font-size: var(--sg-loc-subtitle-icon-size);
}

.sg-loc .sg-loc__title {
	margin: 0 0 var(--sg-loc-title-gap);
	padding: 0;
	color: var(--sg-loc-title);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.12;
	text-transform: uppercase;
}

.sg-loc--both .sg-loc__map {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

/* List */

.sg-loc .sg-loc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-loc .sg-loc__item {
	padding: 18px 0;
	border-bottom: var(--sg-loc-divider-width) solid var(--sg-loc-divider);
	background-color: transparent;
	transition: background-color 0.2s ease;
}

.sg-loc .sg-loc__item:hover {
	background-color: var(--sg-loc-item-hover-bg);
}

.sg-loc .sg-loc__item.is-active {
	background-color: var(--sg-loc-item-active-bg);
}

.sg-loc .sg-loc__head {
	display: flex;
	align-items: center;
	gap: var(--sg-loc-pin-gap);
}

.sg-loc .sg-loc__pin {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--sg-loc-pin-size);
	color: var(--sg-loc-pin-color);
	line-height: 1;
	transition: color 0.2s ease;
}

.sg-loc .sg-loc__item.is-active .sg-loc__pin {
	color: var(--sg-loc-pin-active);
}

.sg-loc .sg-loc__pin svg,
.sg-loc .sg-loc__pin img {
	display: block;
	width: 100%;
	height: auto;
}

.sg-loc .sg-loc__pin svg:not([fill="none"]) {
	fill: currentColor;
}

.sg-loc .sg-loc__pin i {
	font-size: var(--sg-loc-pin-size);
}

.sg-loc .sg-loc__city {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--sg-loc-city);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.sg-loc .sg-loc__item.is-active .sg-loc__city {
	color: var(--sg-loc-city-active);
}

.sg-loc .sg-loc__address {
	margin: var(--sg-loc-address-gap) 0 0 var(--sg-loc-address-indent);
	color: var(--sg-loc-address);
	font-size: 14px;
	line-height: 1.75;
}

.sg-loc--no-pin .sg-loc__address {
	--sg-loc-address-indent: 0px;
}

/* Button (resets the theme's default button styles) */

.sg-loc .sg-loc__button,
.sg-loc .sg-loc__button:hover,
.sg-loc .sg-loc__button:focus {
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.sg-loc .sg-loc__button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--sg-loc-button-icon-gap);
	margin: 0;
	padding: 0;
	color: var(--sg-loc-button);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s ease;
}

.sg-loc .sg-loc__button:hover,
.sg-loc .sg-loc__button:focus-visible {
	color: var(--sg-loc-button-hover);
}

.sg-loc .sg-loc__button[aria-pressed="true"] {
	color: var(--sg-loc-button-active);
}

.sg-loc .sg-loc__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.sg-loc .sg-loc__button-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	transition: transform 0.2s ease;
}

.sg-loc .sg-loc__button:hover .sg-loc__button-icon {
	transform: translateX(3px);
}

.sg-loc .sg-loc__button-icon svg,
.sg-loc .sg-loc__button-icon img {
	display: block;
	width: var(--sg-loc-button-icon-size);
	height: auto;
}

.sg-loc .sg-loc__button-icon i {
	font-size: calc(var(--sg-loc-button-icon-size) * 0.6);
}

/* Map */

.sg-loc .sg-loc__map-inner {
	position: relative;
	max-width: var(--sg-loc-map-width);
	line-height: 0;
}

.sg-loc .sg-loc__map-image {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

/* Markers: a zero-size anchor on the location; the dot / icon / name are centred on it. */

.sg-loc .sg-loc__marker,
.sg-loc .sg-loc__marker:hover,
.sg-loc .sg-loc__marker:focus {
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.sg-loc .sg-loc__marker {
	position: absolute;
	z-index: 1;
	display: block;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
	cursor: pointer;
	transform: scale(0.4);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.sg-loc .sg-loc__marker.is-active,
.sg-loc--show-all .sg-loc__marker {
	opacity: 1;
	pointer-events: auto;
	transform: scale(1);
}

.sg-loc--show-all .sg-loc__marker:not(.is-active) {
	opacity: var(--sg-loc-inactive-opacity);
}

.sg-loc--show-all .sg-loc__marker:not(.is-active):hover,
.sg-loc--show-all .sg-loc__marker:not(.is-active):focus-visible {
	opacity: 1;
}

.sg-loc .sg-loc__marker.is-active {
	z-index: 2;
}

.sg-loc .sg-loc__marker:focus-visible {
	outline: none;
}

.sg-loc .sg-loc__dot {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--sg-loc-marker-size);
	height: var(--sg-loc-marker-size);
	border-radius: 50%;
	background: var(--sg-loc-marker-color);
	box-shadow: 0 0 0 var(--sg-loc-marker-border-width) var(--sg-loc-marker-border);
	transform: translate(-50%, -50%);
}

.sg-loc .sg-loc__marker:focus-visible .sg-loc__dot {
	box-shadow: 0 0 0 var(--sg-loc-marker-border-width) var(--sg-loc-marker-border), 0 0 0 calc(var(--sg-loc-marker-border-width) + 3px) var(--sg-loc-marker-pulse);
}

.sg-loc--pulse .sg-loc__marker.is-active::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(var(--sg-loc-marker-size) * 3.2);
	height: calc(var(--sg-loc-marker-size) * 3.2);
	margin: calc(var(--sg-loc-marker-size) * -1.6) 0 0 calc(var(--sg-loc-marker-size) * -1.6);
	border-radius: 50%;
	background: var(--sg-loc-marker-pulse);
	pointer-events: none;
	animation: sg-loc-pulse 1.8s ease-out infinite;
}

.sg-loc .sg-loc__marker-icon {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sg-loc-marker-icon-size);
	color: var(--sg-loc-marker-icon-color);
	line-height: 1;
	transform: translate(-50%, -50%);
}

.sg-loc--anchor-bottom .sg-loc__marker-icon {
	transform: translate(-50%, -100%);
}

.sg-loc .sg-loc__marker-icon svg,
.sg-loc .sg-loc__marker-icon img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
}

.sg-loc .sg-loc__marker-icon svg:not([fill="none"]) {
	fill: currentColor;
}

.sg-loc .sg-loc__marker-icon i {
	position: relative;
	z-index: 1;
	font-size: var(--sg-loc-marker-icon-size);
}

/* Marker city name */

.sg-loc .sg-loc__tooltip {
	--sg-loc-tooltip-offset: calc(var(--sg-loc-marker-size) / 2 + var(--sg-loc-marker-border-width) + 10px);

	position: absolute;
	bottom: var(--sg-loc-tooltip-offset);
	left: 0;
	z-index: 2;
	padding: 6px 10px;
	border-radius: var(--sg-loc-tooltip-radius);
	background: var(--sg-loc-tooltip-bg);
	box-shadow: 0 6px 18px rgba(11, 45, 73, 0.18);
	color: var(--sg-loc-tooltip-text);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.sg-loc .sg-loc__tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	border: 5px solid transparent;
	border-top-color: var(--sg-loc-tooltip-bg);
	transform: translateX(-50%);
}

.sg-loc--custom-marker .sg-loc__tooltip {
	--sg-loc-tooltip-offset: calc(var(--sg-loc-marker-icon-size) / 2 + 8px);
}

.sg-loc--custom-marker.sg-loc--anchor-bottom .sg-loc__tooltip {
	--sg-loc-tooltip-offset: calc(var(--sg-loc-marker-icon-size) + 8px);
}

.sg-loc .sg-loc__marker.is-active .sg-loc__tooltip,
.sg-loc--show-all .sg-loc__marker:hover .sg-loc__tooltip,
.sg-loc--show-all .sg-loc__marker:focus-visible .sg-loc__tooltip {
	opacity: 1;
	transform: translate(-50%, 0);
}

@keyframes sg-loc-pulse {
	0% {
		opacity: 0.9;
		transform: scale(0.3);
	}

	100% {
		opacity: 0;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sg-loc .sg-loc__marker,
	.sg-loc .sg-loc__tooltip,
	.sg-loc .sg-loc__button-icon {
		transition: none;
	}

	.sg-loc--pulse .sg-loc__marker.is-active::before {
		animation: none;
		opacity: 0.5;
		transform: none;
	}
}

@media (max-width: 767px) {
	.sg-loc--both {
		flex-direction: column;
		align-items: stretch;
	}

	.sg-loc--both .sg-loc__content {
		width: 100%;
	}

	.sg-loc .sg-loc__title {
		font-size: 30px;
	}
}

/* Editor notice */

.sg-loc-empty {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	color: #757575;
	font-size: 13px;
	text-align: center;
}
