/* SJRA Interactive Map - by Fyresite */
.sjra-map {
	width: 100%;
	min-height: 300px;
	background: #e8ecf3;
	font-family: 'DM Sans', sans-serif;
	z-index: 0; /* keep Leaflet panes below sticky headers/menus */
	border-radius:16px !important;
}

/* Elementor: a shortcode widget inside a flex container shrinks to 0 width — make it fill */
.elementor-widget:has(.sjra-map),
.elementor-widget-shortcode:has(.sjra-map) {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
}
.elementor-widget:has(.sjra-map) .elementor-widget-container,
.elementor-widget:has(.sjra-map) .elementor-shortcode {
	width: 100%;
}

/* Grey, slightly blue map look (matches the design).
   Kept soft/low-contrast so the white pins stand out against it. */
.sjra-map .sjra-map__tiles {
	filter: grayscale(1) sepia(0.15) hue-rotate(180deg) saturate(1.3) brightness(1.12) contrast(0.72);
}

/* Pins: thin navy outline + soft lift shadow so the white pin separates from the map */
.sjra-map .sjra-map__pin {
	filter:
		drop-shadow(0 0 0.75px #232b66)
		drop-shadow(0 0 0.75px #232b66)
		drop-shadow(0 4px 5px rgba(20, 26, 70, 0.4));
	transition: filter 0.15s ease;
}
.sjra-map .sjra-map__pin:hover,
.sjra-map .sjra-map__pin:focus {
	filter:
		drop-shadow(0 0 1px #232b66)
		drop-shadow(0 0 1px #232b66)
		drop-shadow(0 6px 8px rgba(20, 26, 70, 0.5));
}

/* Hide any Leaflet branding; keep only the small required map-data credit */
.sjra-map .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.7);
	font-family: 'DM Sans', sans-serif;
	font-size: 10px;
	color: #7a8396;
	padding: 0 6px;
}
.sjra-map .leaflet-control-attribution a {
	color: #7a8396;
}
.sjra-map .leaflet-attribution-flag {
	display: none !important;
}

/* Zoom buttons */
.sjra-map .leaflet-bar {
	border: 0;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.sjra-map .leaflet-bar a {
	width: 40px;
	height: 40px;
	line-height: 40px;
	font-size: 22px;
	color: #555;
}

/* Popup shell */
.sjra-map .sjra-popup .leaflet-popup-content-wrapper {
	border-top: 3px solid #8cc9a6;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(35, 43, 102, 0.18);
	/* padding (not child margin) so the bottom space can't collapse away */
	padding: 14px 16px 18px !important;
}
.sjra-map .sjra-popup .leaflet-popup-content {
	width: 260px !important;
	margin: 0 !important;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
}
.sjra-map .sjra-popup a.leaflet-popup-close-button {
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	font: 400 20px/22px 'DM Sans', sans-serif;
	color: #8a91a3;
	border-radius: 50%;
}
.sjra-map .sjra-popup a.leaflet-popup-close-button:hover {
	color: #232b66;
	background: #f1f3f8;
}

/* Card content — !important guards against theme/Elementor global typography */
.sjra-map .sjra-card,
.sjra-map .sjra-card * {
	font-family: 'DM Sans', sans-serif !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	box-sizing: border-box;
}
.sjra-map .sjra-card {
	color: #3b4255;
}
.sjra-map .sjra-card__title {
	margin: 0 24px 10px 0 !important;
	padding: 0 0 10px !important;
	border-bottom: 1px solid #e6e9f0;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #232b66 !important;
}
.sjra-map .sjra-card__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.sjra-map .sjra-card__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	color: #3b4255;
}
.sjra-map .sjra-card__list li:last-child {
	margin-bottom: 0 !important;
}
.sjra-map .sjra-card__list li::before,
.sjra-map .sjra-card__list li::marker {
	content: none !important;
}
.sjra-map .sjra-card__icon {
	flex: 0 0 13px;
	width: 13px;
	height: 13px;
	margin-top: 3px;
	color: #8a91a3;
}
.sjra-map .sjra-card svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}
.sjra-map .sjra-card__list a {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #232b66 !important;
	text-decoration: none !important;
}
.sjra-map .sjra-card__list a:hover,
.sjra-map .sjra-card__list a:focus {
	color: #1a6f9e !important;
	text-decoration: underline !important;
}

/* Primary button */
.sjra-map .sjra-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 12px;
	padding: 9px 12px !important;
	border-radius: 6px;
	background: #232b66;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	transition: background 0.15s ease;
}
.sjra-map .sjra-card__btn svg {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}
.sjra-map .sjra-card__btn:hover,
.sjra-map .sjra-card__btn:focus {
	background: #1a6f9e;
	color: #fff !important;
}
