.tsv-map-panel {
	min-width: 0;
	padding: 1rem;
	border: 1px solid #d9dee1;
	border-radius: 6px;
	background: #fff;
	color: #171a1c;
}
.tsv-map-panel h2 { margin-top: 0; font-size: 1.5rem; }
.tsv-map-panel p { overflow-wrap: anywhere; }
.tsv-map {
	height: 30rem;
	width: 100%;
	background: #e3e7ea;
	font: inherit;
	z-index: 0;
}
.tsv-map-panel--detail { padding: 0; border: 0; }
.tsv-map-panel--detail .tsv-map { height: 20rem; }
.tsv-map-status { font-size: 0.9rem; min-height: 2.8em; }
.tsv-view-toggle { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 1rem; }
.tsv-view-toggle a {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	border: 1px solid #465b6a;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
}
.tsv-view-toggle a[aria-current] { background: #465b6a; color: #fff; }
.tsv-search-area, .tsv-show-pin {
	min-height: 44px;
	padding: 0.5rem 1rem;
	border: 1px solid #465b6a;
	border-radius: 4px;
	background: #fff;
	color: #171a1c;
	font: inherit;
	cursor: pointer;
}
.tsv-search-area { margin-top: 0.75rem; background: #465b6a; color: #fff; }
.tsv-search-area:disabled, .tsv-show-pin:disabled { opacity: 0.65; cursor: not-allowed; }
.tsv-show-pin[aria-pressed="true"] { background: #465b6a; color: #fff; }
.tsv-card--selected { box-shadow: inset 0 0 0 3px #465b6a; }
.tsv-marker, .tsv-cluster {
	display: grid;
	place-items: center;
	border: 2px solid #fff;
	box-shadow: 0 1px 5px #171a1c;
	background: #465b6a;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 50%;
	box-sizing: border-box;
}
.tsv-marker--R { background: #171a1c; border-radius: 4px; }
.tsv-marker--V { background: #fff; color: #171a1c; border: 3px solid #465b6a; }
.tsv-cluster { background: #171a1c; border: 4px double #fff; }
.tsv-marker--selected { outline: 3px solid #171a1c; outline-offset: 3px; }
.tsv-map :is(.tsv-marker, .tsv-cluster, a):focus-visible {
	outline: 3px solid #171a1c;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #fff;
}
.tsv-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.tsv-map .leaflet-control-attribution { max-width: calc(100% - 15px); overflow-wrap: anywhere; font-size: 11px; }
.tsv-map .tsv-map-popup .leaflet-popup-content { margin-top: 44px; }
.tsv-map .tsv-map-popup .tsv-pin-preview h3 { color: #172127; }
.tsv-map .tsv-map-popup .leaflet-popup-close-button { width: 44px; height: 44px; line-height: 44px; }
.tsv-map .tsv-map-popup .leaflet-popup-scrolled { overscroll-behavior: contain; }
.tsv-map .tsv-map-popup .leaflet-popup-content:focus-visible { outline: 3px solid #172127; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.tsv-map .tsv-map-popup--shifted .leaflet-popup-tip-container { display: none; }
.tsv-map-report { margin: 0.5rem 0; font-size: 0.9rem; }
.tsv-pin-preview { min-width: 0; }
.tsv-pin-preview h3 { margin: 0.6rem 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.tsv-pin-preview p { margin: 0.5rem 0; }
.tsv-pin-preview img { width: 100%; height: auto; max-height: 12rem; object-fit: cover; }
.tsv-map-placeholder {
	display: grid;
	place-items: center;
	padding: 1rem;
	min-height: 5rem;
	border: 1px dashed #465b6a;
	background: #f7f8f8;
	color: #465b6a;
	text-align: center;
}
.tsv-map-view .tsv-discovery-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.tsv-map-view .tsv-discovery-layout > * { min-width: 0; margin: 0; }
.tsv-map-view .tsv-discovery-layout .wp-block-post-template { display: grid; grid-template-columns: minmax(0, 1fr); }
.tsv-map-view .tsv-discovery--map { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
@media (max-width: 800px) {
	.tsv-map-view .tsv-discovery-layout { grid-template-columns: minmax(0, 1fr); }
	.tsv-map-view .tsv-discovery--map { position: static; max-height: none; overflow: visible; }
	.tsv-map { height: 22rem; }
	.tsv-map .leaflet-popup-content { max-width: 190px; }
}
