.whm-map {
	width: 100%;
	height: 500px;
}

/* テーマのヘッダー切り替え基準(768px)に合わせてスマホ時は低めに */
@media (max-width: 767px) {
	.whm-map {
		height: 400px;
	}
}

/* ===== ピン ===== */
.whm-marker {
	background: transparent;
	border: none;
}
.whm-marker__dot {
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 50% 50% 50% 0;
	background: #e63946;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}
.whm-marker:hover .whm-marker__dot {
	transform: rotate(-45deg) scale(1.2);
}

/* ===== クラスタ ===== */
.whm-cluster div {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(230, 57, 70, 0.85);
	color: #fff;
	font-weight: bold;
	border: 3px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease;
}
.whm-cluster:hover div {
	transform: scale(1.08);
}
.whm-cluster--small div {
	width: 36px;
	height: 36px;
	font-size: 13px;
}
.whm-cluster--medium div {
	width: 44px;
	height: 44px;
	font-size: 14px;
}
.whm-cluster--large div {
	width: 52px;
	height: 52px;
	font-size: 15px;
}

/* ===== ポップアップ（吹き出し） ===== */
.whm-popup-wrapper .leaflet-popup-content-wrapper {
	border-radius: 8px;
	overflow: hidden;
	padding: 0;
}
.whm-popup-wrapper .leaflet-popup-content {
	margin: 0;
	width: 220px !important;
}
.whm-popup-wrapper .leaflet-popup-tip {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.whm-popup__thumb-link {
	display: block;
	cursor: pointer;
}
.whm-popup__thumb {
	width: 220px;
	height: 140px;
	object-fit: cover; /* 元画像の縦横比に関わらず同じ大きさで統一表示 */
	display: block;
	transition: opacity 0.15s ease;
}
.whm-popup__thumb-link:hover .whm-popup__thumb {
	opacity: 0.85;
}
.whm-popup__body {
	padding: 10px 12px 12px;
}
.whm-popup__title {
	display: block;
	font-weight: bold;
	font-size: 14px;
	line-height: 1.4;
	color: #222;
	text-decoration: none;
	margin-bottom: 6px;
}
.whm-popup__title:hover {
	text-decoration: underline;
}
.whm-popup__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.whm-popup__cat {
	display: inline-block;
	font-size: 11px;
	background: #f1f1f1;
	color: #555;
	padding: 2px 8px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ===== レイヤー切り替えコントロール ===== */
.leaflet-control-layers {
	border-radius: 6px !important;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Leafletの全コントロール（ズームボタン、レイヤー切り替え、属性表示、ランダム表示など）は
   すべて<a>タグで作られているため、テーマ側の a { text-decoration: underline } のような
   グローバル指定に上書きされやすい。地図がどこに置かれても下線が付かないよう、
   Leafletのコントロール全般に対して確実に無効化しておく。 */
.leaflet-container a,
.leaflet-container a:hover,
.leaflet-container a:focus,
.leaflet-container a:visited {
	text-decoration: none !important;
}

/* ===== ランダム表示コントロール（地図上、ズームコントロールと同じ見た目） ===== */
.whm-random-control {
	background: #fff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}
.whm-random-control__btn {
	display: flex !important;
	align-items: center;
	gap: 6px;
	width: auto !important;
	height: 34px !important;
	padding: 0 12px;
	font-size: 13px;
	font-weight: bold;
	line-height: 1;
	white-space: nowrap;
	background: #fff;
	color: #333;
	text-decoration: none !important;
	cursor: pointer;
}
.whm-random-control__btn:hover {
	background: #f4f4f4;
}

/* ===== 地図の下に配置するカード型リスト（地図連動リスト／近くの世界遺産で共通） ===== */
.whm-card-strip {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 4px 2px 10px;
	margin-top: 12px;
	-webkit-overflow-scrolling: touch;
}
.whm-card-strip::-webkit-scrollbar {
	height: 6px;
}
.whm-card-strip::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 999px;
}

.whm-card {
	/* button要素とa要素の両方で使うため、ブラウザ標準の見た目を徹底的にリセットする */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-sizing: border-box;
	margin: 0;
	font: inherit;
	line-height: normal;
	flex: 0 0 130px;
	width: 130px;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	text-align: left;
	cursor: pointer;
	text-decoration: none !important;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	padding: 0;
	outline-offset: 2px;
}
.whm-card:hover,
.whm-card:focus,
.whm-card:visited,
.whm-card:active {
	text-decoration: none !important;
}
.whm-card,
.whm-card * {
	text-decoration: none !important;
}
.whm-card:hover {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}
.whm-card.is-active {
	border-color: #e63946;
	box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.25);
}
.whm-card__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #eee;
}
.whm-card__body {
	padding: 6px 8px 8px;
	flex: 0 0 auto; /* サムネイル側に圧迫されて縮まないように */
}
.whm-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.4;
	color: #222;
	text-decoration: none;
	min-height: calc(1.4em * 2); /* 2行分の高さを確実に確保し、詰まって上部が見切れるのを防ぐ */
	flex-shrink: 0;
}
.whm-card__meta {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	color: #888;
	text-decoration: none;
}

/* ===== 近くの世界遺産 ===== */
.whm-nearby {
	margin-top: 24px;
}
.whm-nearby__heading {
	margin-bottom: 4px;
	font-size: 15px;
}

