.corfacio-map-board {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.corfacio-map-stage {
	order: -1;
}

.corfacio-map-canvas {
	height: 28rem;
	overflow: hidden;
	border: 1px solid #e4e0ef;
	border-radius: 22px;
	background: #efeaf8;
}

.corfacio-map-list {
	min-width: 0;
}

.corfacio-map-tile {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 0.75rem;
	width: 100%;
	overflow: hidden;
	padding: 0;
	border: 1px solid #e4e0ef;
	border-radius: 16px;
	background: #fff;
	color: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(28, 27, 46, 0.04);
}

.corfacio-photo-slot {
	display: block;
	width: 7.5rem;
	height: 5.5rem;
	overflow: hidden;
	background: #efeaf8;
}

.corfacio-photo-slot img,
.corfacio-photo-slot [data-photo-missing] {
	width: 7.5rem;
	height: 5.5rem;
}

.corfacio-photo-slot img {
	display: block;
	object-fit: cover;
}

.corfacio-photo-slot [data-photo-missing] svg {
	width: 2rem;
	height: 2rem;
}

.corfacio-map-tile-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
	padding: 0.7rem 0.8rem 0.7rem 0;
}

.corfacio-map-kicker {
	color: #3730a3;
	font-size: 0.75rem;
	font-weight: 700;
}

.corfacio-map-name {
	color: #1c1b2e;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.corfacio-map-tile:hover,
.corfacio-map-tile:focus-visible {
	border-color: #3730a3;
}

.corfacio-map-tile:focus-visible {
	outline: 2px solid #3730a3;
	outline-offset: 2px;
}

.corfacio-pin {
	background: transparent;
	border: 0;
}

.corfacio-pin-shape {
	display: block;
	width: 28px;
	height: 28px;
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 0;
	background: #3730a3;
	box-shadow: 0 2px 6px rgba(28, 27, 46, 0.45);
	transform: rotate(-45deg);
}

.corfacio-pin-shape span {
	display: block;
	width: 8px;
	height: 8px;
	margin: 8px auto 0;
	border-radius: 50%;
	background: #fff;
}

.leaflet-popup.corfacio-popup .leaflet-popup-content-wrapper {
	padding: 0;
	overflow: hidden;
	border-radius: 16px;
	color: #1c1b2e;
}

.leaflet-popup.corfacio-popup .leaflet-popup-content {
	width: 240px !important;
	margin: 0;
}

.leaflet-popup.corfacio-popup .leaflet-popup-tip {
	background: #fff;
}

.corfacio-popup-tile {
	display: block;
	color: inherit;
	text-decoration: none;
}

.corfacio-popup-tile .corfacio-photo-slot,
.corfacio-popup-tile .corfacio-photo-slot img,
.corfacio-popup-tile .corfacio-photo-missing {
	width: 100%;
	height: 140px;
}

.corfacio-popup-tile img {
	display: block;
	object-fit: cover;
	background: #efeaf8;
}

.corfacio-photo-missing {
	display: block;
	background: #efeaf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Crect x='10' y='22' width='44' height='30' rx='3' stroke='%233730a3' stroke-width='2.5'/%3E%3Cpath d='M10 32h44M24 22v30M40 22v30' stroke='%233730a3' stroke-width='2.5'/%3E%3Cpath d='M18 22 32 10l14 12' stroke='%233730a3' stroke-width='2.5'/%3E%3C/svg%3E") center / 2.5rem 2.5rem no-repeat;
}

.corfacio-popup-copy {
	padding: 0.75rem 0.9rem 0.95rem;
}

.corfacio-popup-kicker {
	margin: 0;
	color: #3730a3;
	font-size: 0.75rem;
	font-weight: 700;
}

.corfacio-popup-name {
	margin: 0.2rem 0 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

.corfacio-popup-more {
	display: inline-block;
	margin-top: 0.45rem;
	color: #3730a3;
	font-size: 0.875rem;
	font-weight: 700;
}

@media (min-width: 1024px) {
	.corfacio-map-board {
		display: grid;
		grid-template-columns: 22rem minmax(0, 1fr);
		grid-template-areas:
			"form form"
			"list map";
		align-items: start;
	}

	.corfacio-finder-form {
		grid-area: form;
	}

	.corfacio-map-list {
		grid-area: list;
	}

	.corfacio-map-stage {
		grid-area: map;
		order: 0;
	}

	.corfacio-map-canvas,
	.corfacio-map-list {
		height: 70vh;
		min-height: 32rem;
	}

	.corfacio-map-list {
		overflow: auto;
	}
}
