/*
 * Location cards with a click-to-load map (rp_layout_location_cards()), shared by Contact and the Home locations
 * block. The map is a button until clicked: nothing from Google loads with the page (assets/rp-embeds.js).
 */

.rp-shell .rp-place {
	--rp-line: #cfdcd3;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border: 1px solid var(--rp-line);
	border-radius: 18px;
	background: #fff;
}

.rp-shell .rp-place__name {
	margin: 0;
	font: 700 19px/1.25 var(--rp-display);
	color: var(--rp-ink);
	text-align: left;
}

.rp-shell .rp-place__addr {
	font-size: 17px;
}

/* The map is a button until it is clicked: nothing from Google loads with the page. */
.rp-shell .rp-map {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	background-color: #e8f3ea;
	background-image:
		linear-gradient(90deg, rgb(255 255 255 / 70%) 2px, transparent 2px),
		linear-gradient(0deg, rgb(255 255 255 / 70%) 2px, transparent 2px),
		linear-gradient(35deg, transparent 46%, #cfe3d4 46%, #cfe3d4 54%, transparent 54%);
	background-size: 38px 38px, 38px 38px, 100% 100%;
	color: var(--rp-green);
	cursor: pointer;
}

.rp-shell .rp-map__label {
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	font: 700 16px/1.2 var(--rp-body);
	color: var(--rp-ink);
	box-shadow: 0 2px 6px rgb(0 0 0 / 12%);
}

.rp-shell .rp-map:hover .rp-map__label {
	background: var(--rp-sun);
}

.rp-shell .rp-map:focus-visible {
	outline: 3px solid var(--rp-blue);
	outline-offset: 2px;
}

.rp-shell iframe.rp-map--loaded {
	display: block;
	border: 1px solid var(--rp-line);
	cursor: auto;
}

.rp-shell .rp-place__dir {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font: 700 17px/1.2 var(--rp-body);
	color: var(--rp-green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rp-shell .rp-place__dir:hover {
	color: var(--rp-blue);
}

.rp-shell .rp-place__meta a {
	font-family: var(--rp-body);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
	color: var(--rp-green);
	text-decoration: none;
}

.rp-shell .rp-place p {
	margin: 0;
	font: 400 17px/1.5 var(--rp-body);
	text-align: left;
	color: var(--rp-ink);
}
