/* Location blocks styles */

.releated-location .is-vertical {
	gap: 0 !important;
}

.releated-location-heading {
	text-transform: uppercase;
}

/* Maps embed styles - match the inline styles from the original design */
.embed-map-responsive {
	position: relative;
	text-align: right;
	width: 100%;
	height: 0;
	padding-bottom: 66.66666666666666%;
}

.embed-map-container {
	overflow: hidden;
	background: none !important;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.embed-map-frame {
	width: 100% !important;
	height: 100% !important;
	position: absolute;
	top: 0;
	left: 0;
}

/* Specific styling for the related-location pattern to match design */
.releated-location .embed-map-responsive {
	height: 100%;
	padding-bottom: 0;
	margin: 0 !important;
	overflow: hidden;
}

.community-card--featured .related-location__map {
	height: 100%;
	min-height: 400px;
	display: flex;
	flex-direction: column;
}

.community-card--featured .related-location__map .wp-block-group__inner-container {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Featured card map embed styling */
.community-card--featured .location-map-embed {
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.community-card--featured .embed-map-responsive {
	position: relative;
	text-align: right;
	width: 100%;
	height: 100%;
	padding-bottom: 0;
	margin: 0 !important;
	overflow: hidden;
	flex: 1;
}

.community-card--featured .related-location__map .embed-map-responsive {
	height: 100%;
	padding-bottom: 0;
}

.locations-list .location-item {
	transition: transform 0.2s ease-in-out;
}

.locations-list .location-item:hover {
	transform: translateY( -2px );
	box-shadow: 0 4px 6px rgba( 0, 0, 0, 0.1 );
}

@media ( max-width: 768px ) {
	.community-card--featured {
		grid-template-columns: 1fr !important;
	}

	.community-card--featured .related-location__map {
		min-height: 300px;
	}
}

@media ( min-width: 600px ) {
	.community-card-location {
		max-width: 410px;
	}
}

/* Map placeholder styling for editor */
.map-placeholder {
	display: inline-block;
	width: 100%;
	min-height: 200px;
	background-color: #f7f7f7;
	border: 2px dashed #d0d0d0;
	border-radius: 8px;
	color: #666;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	line-height: 200px;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.map-placeholder:hover {
	background-color: #f0f0f0;
	border-color: #bbb;
}

/* Adjust for different layout contexts */
.releated-location .map-placeholder {
	width: 100%;
	height: 100%;
	min-height: 120px;
	line-height: normal;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Make the paragraph containing the placeholder fill the column height */
.releated-location .location-map-embed {
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
}

.community-card--featured .map-placeholder {
	height: 100%;
	min-height: 400px;
	line-height: normal;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
}

.community-card-location .map-placeholder {
	min-height: 180px;
	line-height: 180px;
}

.related-location,
.community-card-location,
.community-card--featured {
	margin-bottom: 32px;
}

.community-card-location,
.community-card--featured .community-card {
	gap: var(--wp--preset--spacing--50) !important;
}

.community-card-location .wp-block-group,
.community-card--featured .wp-block-group {
	gap: 0;
}

.community-card-location .wp-block-group:where(.is-layout-grid),
.community-card--featured .wp-block-group:where(.is-layout-grid) {
	gap: 0.5em;
}