/* Interactive map + filters for the addresses module */

.address-map-host > .container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

.address-interactive-map,
.address-interactive-map.leaflet-container {
	width: 100%;
	height: clamp(360px, 70svh, 963px);
	overflow: hidden;
	background: #003254;
	z-index: 1;
}

.address-map-marker {
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.12s ease-in-out;

	&.is-partner {
		width: 14px;
		height: 14px;
		background: #f18700;
	}

	&.is-location {
		width: 44px;
		height: 44px;
		background: radial-gradient(circle,
				#f18700 0,
				#f18700 12px,
				rgba(241, 135, 0, 0.4) 12px,
				rgba(241, 135, 0, 0.4) 22px,
				transparent 22px);
	}

	&:hover {
		transform: scale(1.2);
	}
}

.address-map-logo {
	position: absolute;
	top: 32px;
	right: var(--content-width-padding);
	z-index: 1000;
	width: 175px;
	height: auto;
	pointer-events: none;
	user-select: none;

	@media only screen and (max-width: 980px) {
		top: 16px;
		right: 16px;
		width: 110px;
	}
}

.address-map-overlay {
	position: absolute;
	bottom: 70px;
	left: var(--content-width-padding);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	pointer-events: none;
	user-select: none;
	color: #ffffff;

	.h1-highlight {
		text-align: right;
		font-size: 150px;
		font-style: normal;
		font-weight: 390;
		line-height: 105%;
		margin-bottom: -20px;

		@media only screen and (max-width: 980px) {
			font-size: 75px;
			margin-bottom: -10px;
		}
	}

	.h1-highlight-subline {
		color: #FFF;
		font-size: 48px;
		font-style: normal;
		font-weight: 400;
		line-height: 150%;
		font-family: "Noto Sans";
		margin-left: 4px;

		@media only screen and (max-width: 980px) {
			font-size: 25px;
		}
	}

	@media only screen and (max-width: 980px) {
		bottom: 90px;
	}
}

.address-map-legend {
	position: absolute;
	bottom: 32px;
	right: var(--content-width-padding);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	pointer-events: none;
	user-select: none;
	color: #ffffff;
	font-family: "Noto Sans";

	.address-map-legend-rows {
		display: flex;
		flex-wrap: wrap;
		gap: 28px;
		align-items: center;

		@media only screen and (max-width: 980px) {
			gap: 16px;
		}
	}

	.address-map-legend-row {
		display: flex;
		align-items: center;
		gap: 12px;
		font-size: var(--fz-h5-preline);
		font-weight: 600;
	}

	.address-map-legend-dot {
		display: inline-block;
		flex-shrink: 0;

		&.is-location {
			width: 28px;
			height: 28px;
			border-radius: 50%;
			background: radial-gradient(circle,
					#f18700 0,
					#f18700 7px,
					rgba(241, 135, 0, 0.4) 7px,
					rgba(241, 135, 0, 0.4) 14px,
					transparent 14px);
		}

		&.is-partner {
			width: 10px;
			height: 10px;
			border-radius: 50%;
			background: #f18700;
		}
	}

	.address-map-disclaimer {
		font-size: 0.75rem;
		font-weight: 400;
		opacity: 0.6;

		@media only screen and (max-width: 980px) {
			font-size: 0.625rem;
			text-align: right;
		}
	}

	@media only screen and (max-width: 980px) {
		bottom: 16px;
		right: 16px;
		font-size: 0.875rem;
	}
}

.addresses-filter-container {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-s, 16px);
	align-items: flex-end;
	margin-bottom: var(--spacing-s, 16px);

	.addresses-filter {
		display: flex;
		flex-direction: column;
		gap: 4px;
		min-width: 200px;
		flex: 1 1 240px;
		max-width: 320px;
	}

	.addresses-filter-label {
		font-size: 0.875rem;
		font-weight: 600;
		color: inherit;
	}

	.addresses-filter-select {
		appearance: none;
		-webkit-appearance: none;
		background-color: var(--color-white, #fff);
		border: 1px solid var(--color-grey-300, #ccc);
		border-radius: 2px;
		padding: 10px 32px 10px 12px;
		font: inherit;
		color: inherit;
		cursor: pointer;
		background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
			linear-gradient(135deg, currentColor 50%, transparent 50%);
		background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
		background-size: 6px 6px;
		background-repeat: no-repeat;

		&:focus {
			outline: 2px solid var(--color-dark-blue, #002347);
			outline-offset: 1px;
		}
	}
}

.address {
	&.is-filtered-out {
		display: none !important;
	}

	/* Highlighted (clicked) card uses the established card-design drop shadow
	   instead of an orange outline (WEBDEV-434). */
	&.is-active .address-wrapper {
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
	}
}

.addresses-locations-hint {
	margin-bottom: var(--spacing-s, 16px);
	color: var(--color-dark-blue, #002347);
	font-size: var(--fz-h5-headline, 1.5rem);
	font-weight: 600;
	line-height: 1.3;
}

.addresses-no-results {
	padding: var(--spacing-m, 24px);
	text-align: center;
	color: var(--color-dark-blue, #002347);
	font-style: italic;
}