/* 地図（設計書③ 4.7。⑤ でも使う）。プラグインの数字の丸・名前の一覧の見た目も、ここで新しい色に合わせる。 */

.lg-map {
	--lg-map-color: var(--lg-island, var(--lg-amami));
	padding-top: 96px;
	padding-bottom: 40px;
	scroll-margin-top: 60px;
}

.lg-map-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
}

.lg-map h2 {
	font-size: clamp(32px, 4.4vw, 48px);
}

.lg-map-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.lg-map-list {
	font-weight: 600;
}

.lg-map-button {
	padding: 9px 18px;
	border: 1px solid var(--lg-line);
	border-radius: 999px;
	background: var(--lg-bg);
	color: var(--lg-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.lg-map-status:empty {
	display: none;
}

.lg-map-status,
.lg-map-count,
.lg-map-help,
.lg-map-note {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--lg-sub);
}

.lg-map-frame {
	position: relative;
	margin-top: 20px;
	border-radius: var(--lg-radius-panel);
	overflow: hidden;
	background: color-mix(in srgb, var(--lg-map-color) 10%, white);
}

#wp-map {
	z-index: 0;
	height: clamp(440px, 65vh, 640px);
}

.lg-map-noscript {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 20px;
	text-align: center;
}

.lg-map-help {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lg-map-dot {
	flex: none;
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--lg-map-color);
	box-shadow: 0 0 0 1px var(--lg-line);
}

/* プラグインの数字の丸（map-clusters.js が作る） */
.journey-cluster-marker,
.journey-place-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	cursor: pointer;
}

.journey-cluster-marker span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 6px;
	border: 3px solid #fff;
	border-radius: 999px; /* 4 けたの数でも収まるよう、横に伸びる */
	white-space: nowrap;
	background: var(--lg-map-color);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

/* 沖永良部島の黄色の上は、黒い文字 */
.lg-island[data-island="okinoerabu"] .journey-cluster-marker span {
	color: var(--lg-ink);
}

.journey-place-marker span {
	width: 16px;
	height: 16px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--lg-map-color);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

.journey-cluster-marker:focus-visible,
.journey-place-marker:focus-visible {
	outline: 3px solid var(--lg-link);
	outline-offset: 2px;
	border-radius: 50%;
}

#wp-map .leaflet-popup-content {
	margin: 16px 20px;
	font-size: 15px;
	line-height: 1.7;
}

#wp-map .leaflet-popup-content a {
	display: block;
	padding: 4px 0;
	font-weight: 600;
}

.journey-map-choices {
	max-height: 240px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.journey-map-choices p {
	margin: 0 0 6px;
}

.journey-map-choices ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 734px) {
	#wp-map {
		height: clamp(320px, 52vh, 440px);
	}
}
