/**
 * css/map.web.css: the map of the grid in a browser, over map.css: its tiles (Leaflet, js/map.js) as wide as the block, as high as
 * a good part of the window; the list of the regions once the map is drawn left to the map.
 *
 * @package    way4os/w4os-helpers
 * @license    AGPLv3
 */
.block-map .map-view {
	width: 100%;
	height: min(70vh, 40rem);
	min-height: 18rem;
	border-radius: 0.5rem;
	/* The water of the grid, under the tiles while they load */
	background: #1d475f;
}
.block-map .map.is-drawn .map-regions {
	display: none;
}
/* The map that is the page (fill): no frame of its own, down to the bottom of the window */
.block-map .map[data-map-fill] .map-view {
	border-radius: 0;
}
/* The buttons of the map as Leaflet draws them, never the buttons of a theme (its padding and its corners on [role=button]: Pico's, Quark2's) */
.block-map .leaflet-bar a {
	margin: 0;
	padding: 0;
	border-radius: 0;
}
.block-map .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
}
.block-map .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
}
/* The texts of the map in the font of the page (Leaflet's own otherwise) */
.block-map .leaflet-container {
	font-family: inherit;
}
/* The name of a region at the middle of its south edge, as the page's own small cards, solid (its surface, text and corners: Pico's
   tokens, light and dark), cut to the width of the region (js/map.js); none from too far (map-labels-hidden) */
.block-map .leaflet-tooltip.map-label {
	margin: 0;
	padding: 0.1rem 0.45rem;
	border: 0;
	border-radius: var(--pico-border-radius, 0.25rem);
	background: var(--pico-card-background-color, Canvas);
	box-shadow: none;
	color: var(--pico-color, CanvasText);
	font-weight: 600;
	font-size: 0.8rem;
	line-height: 1.4;
	white-space: nowrap;
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
}
.block-map .leaflet-tooltip.map-label::before {
	display: none;
}
.block-map .map-labels-hidden .map-label {
	display: none;
}
/* The popup of a region: its teleport link, its menu over the map */
.block-map .leaflet-popup-content {
	margin: 0.6rem 0.9rem;
	font: inherit;
}
.block-map .leaflet-popup-content .w4os-tp-menu {
	z-index: 1000;
}
/* The coordinates in a popup: small, their values as OpenSim writes them */
.block-map .map-popup .map-coords {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	opacity: 0.8;
}
.block-map .map-popup .map-coords:first-child {
	margin-top: 0;
}
/* The region picker (Tom Select), over the map at its top right, framed as Leaflet's controls */
.block-map .map.is-drawn {
	position: relative;
}
.block-map .map-picker {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	width: 14rem;
	max-width: calc(100% - 5rem);
	font-size: 0.875rem;
}
.block-map .map-picker .ts-control {
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	background: #fff padding-box;
	color: #333;
}
.block-map .map-picker .ts-dropdown {
	background: #fff;
	color: #333;
}
