/* 地域デジタルマップ — 表示側のスタイル */

.tiiki-map-container {
	width: 100%;
	border: 1px solid #d5d7da;
	border-radius: 6px;
	overflow: hidden;
	background: #f6f7f8;
}

/* テーマ側が leaflet の内部要素に max-width を掛けてくることがあるので打ち消す */
.tiiki-map-container img {
	max-width: none;
}

/* --- ポップアップ ------------------------------------------------------- */
.leaflet-popup-content {
	margin: 12px 14px;
	width: auto !important;   /* leaflet が算出する幅で潰れるのを防ぐ */
	min-width: 190px;
	line-height: 1.6;
}

.tiiki-popup {
	font-size: 14px;
}

.tiiki-popup h4 {
	margin: 0 0 .5em;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	word-break: normal;
	overflow-wrap: anywhere;
}

.tiiki-popup h4 a {
	text-decoration: none;
}

.tiiki-popup img {
	display: block;
	width: 100%;
	max-width: 240px !important;
	height: auto;
	margin: 0 0 .6em;
	border-radius: 4px;
}

.tiiki-popup p {
	margin: 0 0 .5em;
}

.tiiki-popup p:last-child {
	margin-bottom: 0;
}

.tiiki-popup .tiiki-meta {
	color: #555;
	font-size: 13px;
}

/* --- レイヤー切り替え --------------------------------------------------- */
.leaflet-control-layers {
	max-height: 60%;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.7;
}

.leaflet-control-layers-list label {
	display: block;
	white-space: nowrap;
	cursor: pointer;
}

.tiiki-empty {
	margin: .8em 0;
	color: #555;
	font-size: 14px;
}

/* --- 狭い画面 ----------------------------------------------------------- */
@media (max-width: 600px) {
	.leaflet-control-layers {
		max-height: 45%;
		font-size: 12px;
	}
	.leaflet-popup-content {
		min-width: 150px;
	}
}
