.fullscreen-icon {
	background-image: url('/assets/vendor/leaflet-fullscreen/icon-fullscreen.svg?v=e2803201');
	background-size: 26px 52px;
}

.fullscreen-icon.leaflet-fullscreen-on {
	background-position: 0 -26px;
}

.leaflet-control-location-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 244px; /* search button 30 + field 180 + clear button 30 + border; the checkbox line wraps below */
	background: #fff;
}

/* second line under the search field: one checkbox per group of pins */
.location-search-filter {
	flex-basis: 100%;
	display: flex;
	gap: 16px;
	padding: 5px 8px 6px;
	border-top: 1px solid #ddd;
	font-size: 13px;
	line-height: 20px;
}

.location-search-group {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	white-space: nowrap;
}

.location-search-group input {
	margin: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.leaflet-control-location-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

.location-search-input {
	box-sizing: border-box;
	-webkit-appearance: none; /* iOS: no grey, rounded search field */
	appearance: none;
	border: 0;
	border-radius: 0;
	background: #fff;
	height: 30px;
	width: 180px;
	padding: 0 8px;
	font: inherit;
	font-size: 16px;
	line-height: 30px;
}

.location-search-input:focus {
	outline: 0;
}

.location-search-button {
	position: relative;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	border: 0;
	background: #fff;
	cursor: pointer;
}

/* magnifier: circle and handle are placed relative to the button's center,
   so the icon stays centered whatever height or width the button has */
.location-search-button::before {
	content: '';
	position: absolute;
	box-sizing: border-box; /* 13px including the border, regardless of the theme */
	width: 13px;
	height: 13px;
	border: 2px solid #333;
	border-radius: 50%;
	top: calc(50% - 8px);
	left: calc(50% - 8px);
}

.location-search-button::after {
	content: '';
	position: absolute;
	width: 7px;
	height: 2px;
	background: #333;
	transform: rotate(45deg);
	top: calc(50% + 4px);
	left: calc(50% + 3px);
}

.location-search-clear {
	position: relative;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	border: 0;
	background: #fff;
	cursor: pointer;
}

/* keeps its space so the field does not jump while typing */
.location-search-clear.is-hidden {
	visibility: hidden;
}

/* ×: both bars are centered on the button's center, whatever its size */
.location-search-clear::before,
.location-search-clear::after {
	content: '';
	position: absolute;
	width: 13px;
	height: 2px;
	background: #333;
	top: 50%;
	left: 50%;
}

.location-search-clear::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.location-search-clear::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* the browser's own clear icon would be a second one */
.location-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.leaflet-touch .location-search-input,
.leaflet-touch .location-search-button,
.leaflet-touch .location-search-clear {
	height: 30px;
}

.leaflet-touch .fullscreen-icon {
	background-position: 2px 2px;
}

.leaflet-touch .fullscreen-icon.leaflet-fullscreen-on {
	background-position: 2px -24px;
}

/* Safari still needs this vendor-prefix: https://caniuse.com/mdn-css_selectors_fullscreen */
/* stylelint-disable-next-line selector-no-vendor-prefix */
.leaflet-container:-webkit-full-screen {
	width: 100% !important;
	height: 100% !important;
	z-index: 99999;
}

.leaflet-container:fullscreen {
	width: 100% !important;
	height: 100% !important;
	z-index: 99999;
}

.leaflet-pseudo-fullscreen {
	position: fixed !important;
	width: 100% !important;
	height: 100% !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 99999;
}

.leaflet-control-attribution,
.leaflet-control-attribution a {
	font-size: 14px;
	line-height: 1.6;
}

.leaflet-control-attribution {
	padding: 1px 8px;
}