.netatmo-weather-map {
	position: relative;
	width: 100%;
	min-height: 260px;
	overflow: hidden;
	border-radius: 12px;
	background: #dfeee2;
	z-index: 0;
}

.netatmo-weather-map .leaflet-container {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.netatmo-weather-map .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.76);
	color: #4d5560;
	font-size: 11px;
	line-height: 16px;
}

.netatmo-weather-map .leaflet-popup-content-wrapper {
	border-radius: 7px;
	box-shadow: 0 14px 36px rgba(22, 35, 48, 0.18);
}

.netatmo-weather-map .leaflet-popup-content {
	margin: 12px 14px;
	min-width: 150px;
	font-size: 13px;
	line-height: 1.45;
	color: #25303b;
}

.netatmo-weather-map .leaflet-popup-tip {
	box-shadow: 0 14px 36px rgba(22, 35, 48, 0.16);
}

.netatmo-weather-map .leaflet-left .leaflet-control {
	margin-left: 14px;
}

.netatmo-weather-map .leaflet-top .leaflet-control {
	margin-top: 14px;
}

.netatmo-weather-map .leaflet-bar {
	border: 0;
	box-shadow: none;
}

.netatmo-weather-map .leaflet-bar a {
	box-sizing: border-box;
	width: 60px;
	height: 60px;
	border: solid 0.5px rgba(255, 255, 255, 0);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(27, 39, 54, 0.18);
	color: #1f2933;
	font-size: 29px;
	font-weight: 700;
	line-height: 58px;
}

.netatmo-weather-map:fullscreen,
.netatmo-weather-map:-webkit-full-screen {
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: #dfeee2;
}

.netatmo-weather-map:fullscreen .leaflet-container,
.netatmo-weather-map:-webkit-full-screen .leaflet-container {
	border-radius: 0;
}

.netatmo-weather-map .leaflet-bar a:first-child {
	border-radius: 8px 8px 0 0;
}

.netatmo-weather-map .leaflet-bar a:last-child {
	border-radius: 0 0 8px 8px;
}

.netatmo-weather-map .leaflet-bar a:hover,
.netatmo-weather-map .leaflet-bar a:focus-visible {
	border-color: rgba(1, 1, 1, 0.75);
	background: rgba(255, 255, 255, 0.98);
	color: #1f2933;
}

.netatmo-weather-map .leaflet-control-zoom-in,
.netatmo-weather-map .leaflet-control-zoom-out {
	position: relative;
	overflow: hidden;
	text-indent: -9999px;
}

.netatmo-weather-map .leaflet-control-zoom-in::before,
.netatmo-weather-map .leaflet-control-zoom-in::after,
.netatmo-weather-map .leaflet-control-zoom-out::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 4px;
	border-radius: 999px;
	background: #1f2933;
	text-indent: 0;
	transform: translate(-50%, -50%);
}

.netatmo-weather-map .leaflet-control-zoom-in span,
.netatmo-weather-map .leaflet-control-zoom-out span {
	display: none;
}

.netatmo-weather-map .leaflet-control-zoom-in::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.nwm-popup-city {
	margin-bottom: 5px;
	font-weight: 700;
}

.nwm-popup-source {
	margin-top: 6px;
	color: #6f7b8b;
	font-size: 12px;
}

.nwm-pin-icon {
	background: transparent;
	border: 0;
}

.nwm-pin {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	margin: 2px 0 0 3px;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	background: var(--nwm-pin-color, #ff4f00);
	box-shadow: 0 2px 4px rgba(18, 25, 35, 0.28);
	transform: rotate(-45deg);
}

.nwm-pin span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	transform: rotate(45deg);
	-webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.25);
}

.nwm-bottom-controls {
	position: absolute;
	right: 14px;
	bottom: 24px;
	left: 14px;
	z-index: 790;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 9px;
	pointer-events: none;
}

.nwm-temp-scale {
	flex: 0 1 324px;
	box-sizing: border-box;
	min-width: 0;
	padding: 13px 16px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 4px 18px rgba(27, 39, 54, 0.16);
	pointer-events: auto;
}

.nwm-temp-gradient {
	height: 17px;
	border-radius: 999px;
	background:
		linear-gradient(
			90deg,
			#7a004c 0%,
			#5b008f 12.5%,
			#0050b8 25%,
			#00a8e8 37.5%,
			#00b85e 43.75%,
			#68d600 48.75%,
			#ffd21a 52.5%,
			#ff9f00 56.25%,
			#ff7a00 62.5%,
			#ff5a00 68.75%,
			#e60000 75%,
			#a00018 87.5%,
			#5b001f 100%
		);
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.34), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.nwm-temp-labels {
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	gap: 0;
	margin-top: 7px;
	color: #1f2933;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.nwm-temp-labels span {
	text-align: center;
	white-space: nowrap;
}

.nwm-map-button,
.nwm-home-button,
.nwm-extreme-button {
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 60px;
	height: 60px;
	border: solid 0.5px rgba(255, 255, 255, 0);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(27, 39, 54, 0.18);
	color: rgba(0, 0, 0, 0.75);
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	padding: 0 !important;
	cursor: pointer;
}

.nwm-map-button:active,
.nwm-home-button:active,
.nwm-extreme-button:active {
	background: rgba(255, 255, 255, 0.98) !important;
	color: rgba(0, 0, 0, 0.75) !important;
}

.nwm-map-button::before,
.nwm-home-button::before,
.nwm-extreme-button::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: currentColor;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.nwm-map-button::before {
	-webkit-mask-image: url("full-screen-button-v3.svg?v=0.1.60");
	mask-image: url("full-screen-button-v3.svg?v=0.1.60");
	-webkit-mask-size: 54px 54px;
	mask-size: 54px 54px;
}

.nwm-map-button.is-active::before {
	-webkit-mask-image: url("reverse-full-screen-button-v3.svg?v=0.1.60");
	mask-image: url("reverse-full-screen-button-v3.svg?v=0.1.60");
}

.nwm-home-button::before {
	-webkit-mask-image: url("home-button-v1.svg?v=0.1.60");
	mask-image: url("home-button-v1.svg?v=0.1.60");
	-webkit-mask-size: 54px 54px;
	mask-size: 54px 54px;
}

.nwm-extreme-button::before {
	-webkit-mask-image: url("unusual-temperatures-v6.svg?v=0.1.60");
	mask-image: url("unusual-temperatures-v6.svg?v=0.1.60");
	-webkit-mask-size: 54px 54px;
	mask-size: 54px 54px;
}

.nwm-map-button:hover,
.nwm-map-button:focus,
.nwm-map-button:focus-visible,
.nwm-home-button:hover,
.nwm-home-button:focus,
.nwm-home-button:focus-visible {
	border-color: rgba(1, 1, 1, 0.75);
	background: rgba(255, 255, 255, 0.98) !important;
	color: rgba(0, 0, 0, 0.75) !important;
}

.nwm-home-button.is-home-active,
.nwm-home-button.is-home-active:hover,
.nwm-home-button.is-home-active:focus,
.nwm-home-button.is-home-active:focus-visible {
	border-color: rgba(234, 138, 0, 1);
	background: #f59e0b !important;
	color: #fff !important;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 4px 16px rgba(245, 158, 11, 0.45);
}

.nwm-map-button.is-active {
	border-color: rgba(234, 138, 0, 1);
	background: #f59e0b !important;
	color: #fff !important;
}

.nwm-map-button.is-active:active,
.nwm-map-button.is-active:focus,
.nwm-map-button.is-active:focus-visible {
	border-color: rgba(234, 138, 0, 1);
	background: #f59e0b !important;
	color: #fff !important;
}

.nwm-map-button.is-active:hover {
	border-color: rgba(1, 1, 1, 0.75);
	background: #f59e0b !important;
	color: #fff !important;
}

.nwm-action-stack {
	display: flex;
	flex: 0 0 60px;
	flex-direction: column;
	gap: 9px;
	pointer-events: auto;
}

.nwm-extreme-button {
	position: relative;
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	min-height: 0;
	border: solid 0.5px rgba(255, 255, 255, 0);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	color: rgba(0, 0, 0, 0.75);
	font-weight: 900;
	pointer-events: auto;
}

.nwm-extreme-button:hover,
.nwm-extreme-button:focus,
.nwm-extreme-button:focus-visible {
	border-color: rgba(1, 1, 1, 0.75);
	background-color: rgba(255, 255, 255, 0.98) !important;
	color: rgba(0, 0, 0, 0.75) !important;
}

.nwm-extreme-button.is-active {
	border-color: rgba(234, 138, 0, 1);
	background: #f59e0b !important;
	color: #fff !important;
}

.nwm-extreme-button.is-active:active,
.nwm-extreme-button.is-active:hover,
.nwm-extreme-button.is-active:focus,
.nwm-extreme-button.is-active:focus-visible {
	border-color: rgba(234, 138, 0, 1);
	background-color: #f59e0b !important;
	color: #fff !important;
}

.nwm-mouse-position {
	min-width: 132px;
	padding: 4px 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 2px 10px rgba(27, 39, 54, 0.14);
	color: #334155;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
}

.nwm-status {
	position: absolute;
	top: 14px;
	left: 50%;
	z-index: 800;
	max-width: min(420px, calc(100% - 28px));
	padding: 8px 13px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 18px rgba(27, 39, 54, 0.16);
	color: #334155;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	transform: translateX(-50%);
}

.nwm-status.is-error {
	color: #9f1239;
}

.nwm-status.is-highlight {
	background: #f59e0b;
	box-shadow: 0 3px 5px rgba(18, 25, 35, 0.28);
	color: #fff;
}

@media (max-width: 640px) {
	.netatmo-weather-map {
		height: var(--nwm-height-mobile, 650px) !important;
		min-height: 360px;
	}

	.nwm-bottom-controls {
		right: 10px;
		bottom: 20px;
		left: 10px;
		gap: 7px;
	}

	.nwm-extreme-button {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.nwm-action-stack {
		flex-basis: 48px;
		gap: 8px;
	}

	.nwm-map-button::before,
	.nwm-home-button::before,
	.nwm-extreme-button::before {
		-webkit-mask-size: 44px 44px;
		mask-size: 44px 44px;
	}

	.nwm-map-button,
	.nwm-home-button {
		width: 48px;
		height: 48px;
		font-size: 28px;
		line-height: 46px;
	}

	.netatmo-weather-map .leaflet-control-zoom {
		display: none;
	}

	.netatmo-weather-map .leaflet-bar a {
		width: 44px;
		height: 44px;
		font-size: 24px;
		line-height: 42px;
	}

	.netatmo-weather-map .leaflet-control-zoom-in::before,
	.netatmo-weather-map .leaflet-control-zoom-in::after,
	.netatmo-weather-map .leaflet-control-zoom-out::before {
		width: 21px;
		height: 3.5px;
	}

	.netatmo-weather-map .leaflet-left .leaflet-control {
		margin-left: 10px;
	}

	.netatmo-weather-map .leaflet-top .leaflet-control {
		margin-top: 10px;
	}

	.nwm-temp-scale {
		flex-basis: 290px;
		padding: 11px 12px 10px;
	}

	.nwm-temp-gradient {
		height: 16px;
	}

	.nwm-temp-labels {
		font-size: 11px;
	}

}

@media (max-width: 640px) and (orientation: portrait) {
	.nwm-temp-scale {
		display: flex;
		flex-basis: min(290px, calc(100% - 56px));
		height: 48px;
		flex-direction: column;
		justify-content: center;
		padding: 6px 10px 5px;
	}

	.nwm-temp-gradient {
		height: 12px;
	}

	.nwm-temp-labels {
		margin-top: 5px;
		font-size: 10px;
	}
}

@media (min-width: 641px) and (max-width: 1180px) and (orientation: portrait) {
	.netatmo-weather-map {
		height: var(--nwm-height-tablet, 925px) !important;
	}

	.netatmo-weather-map .leaflet-control-zoom {
		display: none;
	}

	.nwm-action-stack {
		flex-basis: 66px;
		gap: 10px;
	}

	.nwm-map-button,
	.nwm-home-button,
	.nwm-extreme-button {
		width: 66px;
		height: 66px;
	}

	.nwm-extreme-button {
		flex-basis: 66px;
	}

	.nwm-map-button::before,
	.nwm-home-button::before,
	.nwm-extreme-button::before {
		-webkit-mask-size: 60px 60px;
		mask-size: 60px 60px;
	}

	.nwm-temp-scale {
		flex-basis: 360px;
		padding: 14px 18px 13px;
	}

	.nwm-temp-gradient {
		height: 19px;
	}

	.nwm-temp-labels {
		margin-top: 8px;
		font-size: 13px;
	}
}

@media (min-width: 641px) and (max-width: 1180px) and (orientation: landscape) {
	.netatmo-weather-map {
		height: var(--nwm-height-tablet-landscape, 600px) !important;
	}
}

@media (max-width: 1180px) and (max-height: 520px) and (orientation: landscape) {
	.netatmo-weather-map {
		height: var(--nwm-height-mobile-landscape, 320px) !important;
		min-height: 220px;
	}

	.nwm-bottom-controls {
		right: 8px;
		bottom: 20px;
		left: 8px;
		gap: 6px;
	}

	.nwm-action-stack {
		flex-basis: 48px;
		gap: 6px;
	}

	.nwm-map-button,
	.nwm-home-button,
	.nwm-extreme-button {
		width: 48px;
		height: 48px;
	}

	.nwm-extreme-button {
		flex-basis: 48px;
	}

	.nwm-map-button::before,
	.nwm-home-button::before,
	.nwm-extreme-button::before {
		-webkit-mask-size: 43px 43px;
		mask-size: 43px 43px;
	}

	.nwm-temp-scale {
		flex-basis: 259px;
		padding: 8px 10px 7px;
	}

	.nwm-temp-gradient {
		height: 14px;
	}

	.nwm-temp-labels {
		margin-top: 5px;
		font-size: 10px;
	}
}

@media (hover: none) and (pointer: coarse) {
	.netatmo-weather-map .leaflet-control-zoom {
		display: none;
	}
}

@media (hover: none), (pointer: coarse) {
	.nwm-map-button:hover,
	.nwm-map-button:focus-visible,
	.nwm-home-button:hover,
	.nwm-home-button:focus-visible,
	.nwm-extreme-button:hover,
	.nwm-extreme-button:focus-visible,
	.netatmo-weather-map .leaflet-bar a:hover,
	.netatmo-weather-map .leaflet-bar a:focus-visible {
		border-color: rgba(255, 255, 255, 0);
	}

	.nwm-extreme-button.is-active:hover,
	.nwm-map-button.is-active:hover,
	.nwm-extreme-button.is-active:focus-visible {
		border-color: rgba(234, 138, 0, 1);
		background-color: #f59e0b;
	}

	.netatmo-weather-map.is-fullscreen .leaflet-top.leaflet-left,
	.netatmo-weather-map:fullscreen .leaflet-top.leaflet-left,
	.netatmo-weather-map:-webkit-full-screen .leaflet-top.leaflet-left {
		display: none;
	}
}
