/*
 * 一覧のリスト表示の地図（左：リスト・右：地図・2026-10-31）。仕組みは public/assets/js/list-map.js。
 * .is-map-on は JS が付ける（PC でリスト表示のときだけ）。カード表示・スマホは何も変えない。
 */
.l-list-map.is-map-on {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	column-gap: 2em;
	align-items: start;
}
.l-list-map.is-map-on > :not(.p-list-map__col) { grid-column: 1; }
/* 地図の列は一覧の上から下まで（行を十分に跨がせる。中身の無い行は高さ0） */
.l-list-map.is-map-on > .p-list-map__col {
	grid-column: 2;
	grid-row: 1 / span 40;
	align-self: stretch;
}
.p-list-map__col { display: none; }
.l-list-map.is-map-on > .p-list-map__col { display: block; }
/* 新着（いくつもの .list を並べる）: 左右の余白は各 .list の container（左右 4%）がもつので、地図の側も同じだけ空ける */
.p-new-list-map.is-map-on { column-gap: 0; padding: 0 min(4%, 3em) 0 0; }
.p-new-list-map.is-map-on > .p-list-map__col { padding: 2em 0 0; }

/* 固定ヘッダー（3.75em）の下に止める */
.p-list-map__sticky {
	position: sticky;
	top: 4.75em;
	height: calc(100vh - 5.75em);
	border-radius: 0.5em;
	overflow: hidden;
}
.p-list-map__canvas { width: 100%; height: 100%; background: #f5f5f5; }

/* 一覧の行の番号（地図のピンと同じ） */
.l-list-map.is-map-on .column[data-map-n]::before {
	content: attr(data-map-n);
	position: absolute;
	top: 0.375em;
	left: 0.375em;
	z-index: 10; /* 写真（figure は z-index 9）の上 */
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75em;
	height: 1.75em;
	padding: 0 0.375em;
	border-radius: 0.875em;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.75em;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}
.l-list-map.is-map-on .column { transition: background-color 0.15s; border-radius: 0.5em; }
.l-list-map.is-map-on .column.is-map-active { background-color: #eef7fd; }
.l-list-map.is-map-on .column.is-map-active[data-map-n]::before { background: linear-gradient(90deg, #2af598, #009efd); }

/* ピン（list-v2.css の .p-lv-pin と同じ形） */
.p-list-map__pin { background: none; border: 0; }
.p-list-map__pin span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	font: 700 0.75em/1 'Google Sans', 'Noto Sans JP', sans-serif;
	box-shadow: 0 0 0 0.125em #fff;
}
.p-list-map__pin.is-active span { background: linear-gradient(90deg, #2af598, #009efd); transform: scale(1.2); }

/* まとまり（markercluster）: 番号のピンと見分けるため白地に黒の輪と件数 */
.p-list-map__cluster { background: none; border: 0; }
.p-list-map__cluster span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #fff;
	color: #1a1a1a;
	font: 700 0.8125em/1 'Google Sans', 'Noto Sans JP', sans-serif;
	box-shadow: inset 0 0 0 0.1875em #1a1a1a, 0 0 0 0.1875em rgba(255, 255, 255, 0.8);
}
.p-list-map__cluster.is-active span { background: linear-gradient(90deg, #2af598, #009efd); color: #fff; box-shadow: 0 0 0 0.1875em #fff; }

@media (max-width: 769px) {
	/* スマホは地図を出さない（JS も付けないが、念のため） */
	.p-list-map__col { display: none !important; }
	.l-list-map.is-map-on { display: block; }
}
