/* ==========================================================================
   GF Locations widget
   ========================================================================== */

/* Navy background + photo at low opacity (Figma: 14%) */
.gf-locations {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--gf-navy);
	color: var(--gf-white);
}

.gf-locations::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--gf-loc-bg, none);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	opacity: var(--gf-loc-bg-opacity, .14);
	pointer-events: none;
}

@media (min-width: 1200px) {
	.gf-locations::before {
		background-size: 100% auto;
		background-position: center 48.3%;
	}
}

/* Content follows Elementor Site Settings → Layout width */
.gf-locations__inner {
	max-width: calc(var(--gf-site-width) + var(--gf-site-pad-l) + var(--gf-site-pad-r));
	margin: 0 auto;
	padding: 0 var(--gf-site-pad-r) 0 var(--gf-site-pad-l);
}

/* Header */
.gf-locations__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 60px;
	text-align: center;
}

.gf-locations__title {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: 64px;
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -1.28px;
	color: var(--gf-white);
}

.gf-locations__subtitle {
	max-width: 889px;
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: 18px;
	line-height: 1.43;
	letter-spacing: -.36px;
	color: #e2e2e2;
}

.gf-locations__empty {
	padding: 40px;
	border: 1px dashed rgba(255, 255, 255, .4);
	text-align: center;
}

/* Cards */
.gf-locations__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.gf-location-card {
	position: relative;
	isolation: isolate;
	aspect-ratio: 873 / 477; /* minimum shape — grows if the list is taller */
	background-color: rgba(43, 38, 104, .5);
	border: 1px solid #5348b5;
	border-radius: 13px;
	container-type: inline-size;
}

/* Glows are clipped here so the card itself can grow with its content */
.gf-location-card__fx {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.gf-location-card__glow {
	position: absolute;
	width: 115.49%;
	max-width: none;
	height: auto;
	pointer-events: none;
}

.gf-location-card__glow--top {
	top: -39.2%;
	left: -15.58%;
}

.gf-location-card__glow--bottom {
	top: 107.4%;
	left: 68.26%;
	transform: translate(-50%, -50%) rotate(-17.36deg);
}

.gf-location-card__map {
	position: absolute;
	top: .42%;
	right: .11%;
	z-index: 0;
	width: auto;
	max-width: 75%;
	height: 99.37%;
	object-fit: contain;
	object-position: right center;
	border-radius: 2.86cqw;
	mix-blend-mode: lighten;
}

.gf-location-card__content {
	position: relative;
	z-index: 1;
	padding: 4.07cqw 3.78cqw;
}

.gf-location-card__title {
	margin: 0 0 min(36px, 4.15cqw);
	font-family: var(--gf-font-alt);
	font-size: min(36px, 4.12cqw);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -.72px;
	color: var(--gf-white);
}

.gf-location-card__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gf-location-card__item {
	display: flex;
	align-items: center;
	gap: 15px;
	min-height: 40px;
	font-family: var(--gf-font-body);
	font-size: min(24px, 2.75cqw);
	line-height: 1.43;
	letter-spacing: -.48px;
	color: var(--gf-white);
	text-decoration: none;
	transition: color .2s ease;
}

a.gf-location-card__item:hover,
a.gf-location-card__item:focus {
	color: var(--gf-gold);
}

.gf-location-card__pin {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

/* Responsive */
@media (max-width: 1440px) {
	.gf-locations__title {
		font-size: 56px;
	}

	.gf-location-card__list {
		gap: 10px;
	}
}

@media (max-width: 1024px) {
	.gf-location-card__title {
		font-size: min(32px, 4.12cqw);
	}

	.gf-location-card__item {
		font-size: min(22px, 2.75cqw);
	}
}

@media (max-width: 767px) {
	.gf-locations__head {
		margin-bottom: 36px;
	}

	.gf-locations__title {
		font-size: 40px;
		letter-spacing: -.8px;
	}

	.gf-locations__subtitle {
		font-size: 15px;
	}

	.gf-locations__grid {
		gap: 20px;
	}

	/* Stack: list, then map */
	.gf-location-card {
		display: flex;
		flex-direction: column;
		aspect-ratio: auto;
	}

	.gf-location-card__content {
		order: 1;
		padding: 24px 20px 8px;
	}

	.gf-location-card__map {
		position: relative;
		top: auto;
		right: auto;
		order: 2;
		width: 100%;
		max-width: 100%;
		height: auto;
		border-radius: 0 0 13px 13px;
	}

	.gf-location-card__title {
		margin-bottom: 18px;
		font-size: 28px;
	}

	.gf-location-card__item {
		gap: 12px;
		min-height: 0;
		font-size: 18px;
	}

	.gf-location-card__pin {
		width: 20px;
		height: 20px;
	}
}
