/* ---------- Locations: cards with a map shown on request, address and ways to get there ---------- */

.renater-design .renater-locations {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin: 2rem 0;
}

@media (min-width: 48em) {
	.renater-design .renater-locations {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.renater-location {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--renater-radius);
	background: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(3, 26, 48, 0.12), 0 18px 40px -28px rgba(3, 26, 48, 0.4);
}

/* The map: same placeholder as on the event pages, shorter. */
.renater-location__map {
	position: relative;
	min-height: 14rem;
	overflow: hidden;
	background: var(--renater-paper);
}

.renater-location__map .renater-event-map__placeholder {
	gap: 0.5rem;
	padding: 1.25rem;
}

.renater-location__map .renater-event-map__pin {
	width: 2.2rem;
	height: 2.2rem;
}

.renater-location__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.5rem 1.75rem 1.75rem;
}

.renater-design .renater-location__name {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--renater-ink-2);
}

.renater-location__line {
	position: relative;
	margin: 0;
	padding-left: 1.9rem;
	line-height: 1.5;
}

/* Small pictograms before the address and the phone. */
.renater-location__line::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1.2rem;
	height: 1.2rem;
	background-color: var(--renater-sky);
	-webkit-mask: var(--pictogram) center / contain no-repeat;
	mask: var(--pictogram) center / contain no-repeat;
}

.renater-location__line--address {
	--pictogram: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s7-5.6 7-11a7 7 0 1 0-14 0c0 5.4 7 11 7 11z'/><circle cx='12' cy='10' r='2.5'/></svg>");
}

.renater-location__line--phone {
	--pictogram: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/></svg>");
}

/* Ways to get there: folded, opens in place. */
.renater-location__access {
	margin-top: 0.5rem;
	border-top: 1px solid rgba(3, 26, 48, 0.12);
	padding-top: 0.9rem;
}

.renater-location__access summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-weight: 700;
	color: var(--renater-navy);
	cursor: pointer;
	list-style: none;
}

.renater-location__access summary::-webkit-details-marker {
	display: none;
}

.renater-location__access summary::after {
	content: "+";
	display: grid;
	place-items: center;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	font-size: 1.2rem;
	line-height: 1;
	color: var(--renater-navy);
	background: color-mix(in srgb, var(--renater-sky) 14%, #fff);
	transition: transform 0.3s var(--renater-ease);
}

.renater-location__access[open] summary::after {
	content: "−";
}

.renater-location__access summary:focus-visible {
	outline: 3px solid var(--renater-sky);
	outline-offset: 4px;
	border-radius: 0.4rem;
}

.renater-location__access-body {
	padding-top: 0.75rem;
	font-size: 0.97rem;
	line-height: 1.55;
}

.renater-location__access-body > * {
	margin: 0 0 0.6rem;
}

.renater-design .renater-location__access-body h4 {
	margin: 1rem 0 0.4rem;
	font-size: 1rem;
	color: var(--renater-ink-2);
}

.renater-location__open {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 0.5rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--renater-navy);
}

.renater-location__open::after {
	content: " ↗";
}

.renater-location__open:hover {
	text-decoration: underline;
}
