html,
body,
.container-fluid {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	background: #f4f6f8;
	color: #17212b;
	font-family: Arial, Helvetica, sans-serif;
}

.map-page {
	min-height: 100dvh;
	height: 100dvh;
	position: relative;
}

.map-panel {
	min-height: 0;
	height: 100%;
	position: relative;
}

.map-labels-section {
	margin-top: 0.35rem;
}

.filter-switch {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	color: #283746;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
}

.filter-switch input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	opacity: 0;
	pointer-events: none;
}

.filter-switch-track {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	width: 2.65rem;
	height: 1.45rem;
	padding: 0.15rem;
	border-radius: 999px;
	background: #cbd5e1;
	transition: background 0.18s ease;
}

.filter-switch-thumb {
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 0.12rem 0.35rem rgba(23, 33, 43, 0.28);
	transform: translateX(0);
	transition: transform 0.18s ease;
}

.filter-switch input:checked + .filter-switch-track {
	background: #1f5f8b;
}

.filter-switch input:checked + .filter-switch-track .filter-switch-thumb {
	transform: translateX(1.2rem);
}

.filter-switch input:focus-visible + .filter-switch-track {
	outline: 3px solid rgba(31, 95, 139, 0.3);
	outline-offset: 2px;
}

.level-toggle {
	display: inline-flex;
	gap: 0.35rem;
	padding: 0.25rem;
	background: #edf2f7;
	border: 1px solid #d9e0e7;
	border-radius: 0.45rem;
}

.level-toggle button {
	border: 0;

	border-radius: 0.3rem;

	padding: 0.45rem 0.75rem;

	background: transparent;

	color: #283746;

	font: inherit;

	font-weight: 700;

	cursor: pointer;
}

.level-toggle button.active {
	background: #1f5f8b;

	color: #ffffff;
}

.map-shell {
	--filter-panel-width: min(38rem, 96vw);

	height: 100%;

	min-height: 0;

	overflow: visible;

	position: relative;
}

.filter-panel {
	position: absolute;

	inset: 0 auto 0 0;

	z-index: 5;

	width: var(--filter-panel-width);

	min-width: 0;

	border-right: 1px solid #d9e0e7;

	background: #ffffff;

	box-shadow: 0.18rem 0 0.75rem rgba(23, 33, 43, 0.12);

	transform: translateX(0);

	transition: transform 0.22s ease;
}

.map-shell.panel-collapsed .filter-panel {
	transform: translateX(-100%);
}

.filter-panel-content {
	width: var(--filter-panel-width);

	max-width: var(--filter-panel-width);

	height: 100%;

	overflow: auto;

	padding: 1.2rem;

	transition: opacity 0.16s ease;
}

.map-shell.panel-collapsed .filter-panel-content {
	opacity: 0;

	pointer-events: none;
}

.basemap-recommendation-toast {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 30;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: start;
	width: max-content;
	max-width: min(40rem, calc(100vw - 2rem));
	padding: 1.2rem 1.25rem 1.2rem 1.45rem;
	border: 1px solid rgba(203, 213, 225, 0.95);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.99);
	box-shadow: 0 0.65rem 1.65rem rgba(15, 23, 42, 0.22);
	color: #b91c1c;
	font-size: 1.32rem;
	font-weight: 800;
	line-height: 1.35;
	text-align: left;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, calc(-50% - 0.45rem));
	transition:
		opacity 0.18s ease,
		transform 0.18s ease;
}

.basemap-recommendation-toast::before {
	display: none;
}

.basemap-recommendation-toast.active {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%);
}

.basemap-recommendation-close {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid #fecaca;
	border-radius: 999px;
	background: #ffffff;
	color: #991b1b;
	font: inherit;
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.basemap-recommendation-close:hover,
.basemap-recommendation-close:focus-visible {
	background: #991b1b;
	color: #ffffff;
	outline: none;
}

.regional-scale-panel {
	position: absolute;
	top: 0.75rem;
	left: 50%;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 0.6rem;
	width: min(62rem, calc(100% - 2rem));
	padding: 0;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -140%);
	transition:
		opacity 0.18s ease,
		transform 0.22s ease;
}

.regional-scale-panel.active {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.regional-scale-header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	padding: 0.5rem 0.65rem 0.85rem;
	border: 1px solid #d9e0e7;
	border-radius: 0.63rem;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 0.35rem 1rem rgba(23, 33, 43, 0.14);
}

.regional-scale-tabs {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	flex-wrap: wrap;
}

.regional-settings-toggle {
	position: absolute;
	bottom: -1.15rem;
	left: 50%;
	z-index: 1;
	display: grid;
	width: 4rem;
	height: 2.7rem;
	padding: 0;
	place-items: center;
	border: 1px solid #94a3b8;
	border-radius: 0.48rem;
	background: #ffffff;
	color: #111827;
	font: inherit;
	box-shadow: 0 0.22rem 0.55rem rgba(23, 33, 43, 0.2);
	cursor: pointer;
	transform: translateX(-50%);
}

.regional-settings-toggle:hover,
.regional-settings-toggle:focus-visible {
	border-color: #475569;
	background: #f8fafc;
	outline: none;
}

.regional-settings-toggle:focus-visible {
	box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.22);
}

.regional-settings-toggle-icon {
	flex: 0 0 auto;
	font-size: 1.2rem;
	line-height: 1;
}

.regional-settings-toggle-text {
	display: none;
}

.regional-settings-content .bratislava-detach-switch input {
	order: 2;
	margin-left: auto;
}

.regional-settings-content .bratislava-detach-switch > span {
	order: 1;
}

.regional-settings-content {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	align-self: center;
	width: fit-content;
	max-width: 100%;
	margin-top: 0.55rem;
	overflow: hidden;
	opacity: 1;
	transition:
		grid-template-rows 0.22s ease,
		margin-top 0.22s ease,
		opacity 0.16s ease;
}

.regional-settings-content-inner {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-height: 0;
	overflow: hidden;
	padding: 0.55rem 0.8rem;
	border: 1px solid #d9e0e7;
	border-radius: 0.63rem;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 0.35rem 1rem rgba(23, 33, 43, 0.14);
}

.regional-scale-panel.settings-collapsed .regional-settings-content {
	grid-template-rows: minmax(0, 0fr);
	margin-top: 0;
	opacity: 0;
	pointer-events: none;
}

@media (min-width: 721px) {
	.map-shell:not(.panel-collapsed) .regional-scale-panel {
		left: calc(50% + var(--filter-panel-width) / 2 - 2rem);
		max-width: calc(100% - var(--filter-panel-width) - 6rem);
	}

	.map-shell:not(.panel-collapsed) .regional-scale-header {
		display: flex;
		flex-wrap: wrap;
	}

	.map-shell:not(.panel-collapsed) .static-map-mode-tabs {
		flex-wrap: wrap;
		justify-content: center;
		max-width: 100%;
	}

	.regional-scale-panel {
		gap: 0;
		width: max-content;
		max-width: calc(100% - 2rem);
	}

	.regional-scale-header {
		display: grid;
		grid-template-columns: max-content max-content max-content;
		justify-content: center;
		padding-bottom: 0.5rem;
		border-radius: 0.63rem 0.63rem 0 0;
	}

	.regional-scale-tabs {
		display: contents;
	}

	.regional-settings-content {
		margin-top: -1px;
	}

	.regional-settings-content-inner {
		border-radius: 0 0 0.63rem 0.63rem;
	}

	.regional-scale-panel > .regional-settings-toggle {
		position: relative;
		bottom: auto;
		left: auto;
		align-self: center;
		margin-top: -1px;
		border-radius: 0 0 0.48rem 0.48rem;
		transform: none;
	}
}

.regional-scale-switch[hidden] {
	display: none;
}

.static-map-mode-tabs {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem;
	border: 1px solid #b8c7d8;
	border-radius: 0.55rem;
	background: #e7eef6;
}

.static-map-mode-tab {
	margin: 0;
}

.static-map-mode-tab input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.static-map-mode-tab span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	padding: 0.72rem 1.05rem;
	border-radius: 0.42rem;
	color: #283746;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
}

.static-map-mode-tab input:checked + span {
	background: #ffffff;
	color: #122334;
	box-shadow: 0 0.14rem 0.45rem rgba(23, 33, 43, 0.14);
}

.static-map-mode-tab input:focus-visible + span {
	outline: 3px solid rgba(31, 95, 139, 0.24);
	outline-offset: 2px;
}

.regional-scale-switch {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	color: #283746;
	font-size: 1.38rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
}

.regional-scale-switch input {
	width: 1.65rem;
	height: 1.65rem;
	margin: 0;
	accent-color: #1f5f8b;
}

.regional-labels-switch {
	border-inline: 1px solid #d9e0e7;
	padding-inline: 1rem;
}

.map-language-switch {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.5rem;
	margin-left: auto;
}

.map-language-toggle {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	width: 5.6rem;
	min-height: 2.45rem;
	padding: 0.2rem;
	overflow: hidden;
	border: 1px solid #b8c7d8;
	border-radius: 999px;
	background: #e7eef6;
	color: #475569;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 900;
	letter-spacing: 0.03em;
	cursor: pointer;
}

.map-language-toggle::before {
	position: absolute;
	top: 0.2rem;
	bottom: 0.2rem;
	left: 0.2rem;
	width: calc(50% - 0.2rem);
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 0.12rem 0.35rem rgba(23, 33, 43, 0.14);
	content: "";
	transition: transform 0.18s ease;
}

.map-language-toggle.is-en::before {
	transform: translateX(100%);
}

.map-language-option {
	position: relative;
	z-index: 1;
	display: grid;
	min-height: 2rem;
	place-items: center;
}

.map-language-toggle:hover,
.map-language-toggle:focus-visible {
	color: #17212b;
	outline: 2px solid rgba(31, 95, 139, 0.35);
	outline-offset: 1px;
}

.map-language-toggle:not(.is-en) .map-language-option--sk,
.map-language-toggle.is-en .map-language-option--en {
	color: #1f5f8b;
}

.regional-scale-panel .building-heating-degree-toggle[hidden] {
	display: none;
}

.regional-scale-panel .building-heating-degree-toggle {
	display: inline-flex;
	grid-template-columns: none;
	align-items: center;
	gap: 1rem;
	margin: 0;
	color: #283746;
	font-size: 1.38rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.regional-scale-panel .building-heating-degree-toggle input {
	width: 1.65rem;
	height: 1.65rem;
	margin: 0;
}

.regional-scale-panel .regional-level-toggle {
	flex: 0 0 auto;
	gap: 0.9rem;
	padding: 0.35rem;
	background: #e7eef6;
	border-color: #b8c7d8;
}

.regional-scale-panel .regional-level-toggle button {
	padding: 0.72rem 1.05rem;
	font-size: 1.2rem;
	line-height: 1.1;
	flex: 0 0 auto;
}

.filter-panel-toggle {
	position: absolute;

	top: 50%;

	right: -2.6rem;

	z-index: 6;

	width: 2.6rem;

	height: 3.6rem;

	border: 1px solid #cbd5e1;

	border-left: 0;

	border-radius: 0 0.35rem 0.35rem 0;

	padding: 0;

	background: #ffffff;

	color: #17212b;

	font: inherit;

	font-size: 1.75rem;

	font-weight: 700;

	line-height: 1;

	box-shadow: 0.25rem 0.25rem 0.75rem rgba(23, 33, 43, 0.16);

	cursor: pointer;
}

.filter-panel-toggle:focus-visible {
	outline: 2px solid #1f5f8b;

	outline-offset: 2px;
}

.filter-panel-toggle-label {
	display: none;
}

.filter-panel-toggle-icon {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.filter-panel-toggle-icon {
		display: inline;
		font-size: 1.75rem;
		line-height: 1;
	}
}

.filter-panel-heading {
	display: flex;

	align-items: baseline;

	justify-content: space-between;

	gap: 0.75rem;

	margin: 0 0 1rem;
}

.filter-panel h2 {
	margin: 0;

	font-size: 2rem;

	line-height: 1.25;
}

.filter-panel-building-count {
	flex: 0 0 auto;

	color: #526170;

	font-size: 1rem;

	font-weight: 700;

	line-height: 1.25;

	white-space: nowrap;
}

.building-filter-section {
	padding: 0.9rem 0;
	border-top: 1px solid #d9e0e7;
}

.building-filter-section:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.building-filter-section-title {
	margin: 0 0 0.65rem;
	color: #526170;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.building-filter-section-body {
	padding: 0.75rem 0 0.2rem;
}

.building-search {
	display: grid;
	gap: 0.65rem;
	margin: 0;
}

.building-search-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.65rem;
	align-items: end;
}

.building-search-input-wrap {
	position: relative;
	min-width: 0;
}

.building-search-field {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.building-ownership-filter {
	display: grid;
	grid-column: 1 / -1;
	gap: 0.35rem;
	min-width: 0;
}

.building-ownership-list {
	display: grid;
	gap: 0.25rem;
	max-height: 18rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	padding: 0.45rem;
	border: 1px solid #b8c7d8;
	border-radius: 0.42rem;
	background: #ffffff;
}

.building-ownership-option {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0;
	padding: 0.36rem 0.4rem;
	border-radius: 0.32rem;
	color: #283746;
	font-size: 1.2rem;
	font-weight: 650;
	line-height: 1.25;
	cursor: pointer;
}

.building-ownership-option:hover {
	background: #eef4f8;
}

.building-ownership-option input {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.1rem 0 0;
	accent-color: #1f5f8b;
}

.building-ownership-option input:focus-visible {
	outline: 3px solid rgba(31, 95, 139, 0.22);
	outline-offset: 2px;
}

.building-ownership-loading,
.building-ownership-empty {
	padding: 0.3rem 0.4rem;
	color: #64748b;
	font-size: 1.08rem;
}

.building-search-label,
.building-search-range-label {
	margin: 0;
	color: #17212b;
	font-size: 0.96rem;
	font-weight: 800;
	line-height: 1.2;
}

.building-search-input {
	min-width: 0;
	width: 100%;
	height: 2.35rem;
	border: 1px solid #b8c7d8;
	border-radius: 0.42rem;
	padding: 0 2rem 0 0.65rem;
	background: #ffffff;
	color: #17212b;
	caret-color: #17212b;
	font: inherit;
	font-size: 0.98rem;
}

.building-search-input:hover,
.building-search-input:focus {
	background: #ffffff;
	color: #17212b;
	caret-color: #17212b;
}

.building-search-input::placeholder {
	color: #526170;
	opacity: 1;
}

.building-search-input:-webkit-autofill,
.building-search-input:-webkit-autofill:hover,
.building-search-input:-webkit-autofill:focus {
	-webkit-text-fill-color: #17212b;
	box-shadow: 0 0 0 1000px #ffffff inset;
}

.building-field-clear {
	position: absolute;
	top: 50%;
	right: 0.42rem;
	display: grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #dc2626;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 900;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
}

.building-field-clear:hover,
.building-field-clear:focus-visible {
	background: rgba(220, 38, 38, 0.1);
	outline: none;
}

.building-field-clear[hidden] {
	display: none;
}

.building-search-input:focus {
	border-color: #1f5f8b;
	outline: 3px solid rgba(31, 95, 139, 0.18);
}

.building-search-input[aria-invalid="true"] {
	border-color: #dc2626;
}

.building-search-input[aria-invalid="true"]:focus {
	outline-color: rgba(220, 38, 38, 0.2);
}

.building-search-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.9rem;
	align-items: stretch;
}

.building-search-submit,
.building-search-clear {
	min-height: 2.35rem;
	border: 1px solid #1f5f8b;
	border-radius: 0.42rem;
	padding: 0 0.78rem;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.building-search-submit {
	background: #1f5f8b;
	color: #ffffff;
}

.building-search-clear {
	background: #ffffff;
	color: #1f5f8b;
}

.building-search-clear[hidden] {
	display: none;
}

.building-search-submit:focus-visible,
.building-search-clear:focus-visible {
	outline: 3px solid rgba(31, 95, 139, 0.24);
	outline-offset: 2px;
}

.building-search-status {
	min-height: 1.1rem;
	color: #526170;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.35;
}

@media (max-width: 560px) {
	.building-search-fields,
	.building-search-actions {
		grid-template-columns: 1fr;
	}
}

.building-master-filter {
	display: grid;

	grid-template-columns: 1.3rem minmax(0, 1fr);

	align-items: start;

	gap: 0.65rem;

	margin: 0;
}

.building-category-dropdown + .building-master-filter {
	margin-top: 0.85rem;
}

.building-visibility-checkbox,
.building-consumption-checkbox {
	width: 1.3rem;

	height: 1.3rem;

	margin: 0.08rem 0 0;

	accent-color: #1f5f8b;
}

.building-dropdown-toggle {
	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 0.75rem;

	min-width: 0;

	border: 0;

	padding: 0;

	background: transparent;

	color: #17212b;

	font: inherit;

	font-size: 1.18rem;

	font-weight: 700;

	line-height: 1.35;

	text-align: left;

	cursor: pointer;

	user-select: none;
}

.building-dropdown-toggle::after {
	flex: 0 0 auto;

	width: 0.45rem;

	height: 0.45rem;

	border-right: 2px solid currentColor;

	border-bottom: 2px solid currentColor;

	transform: rotate(45deg);

	transition: transform 0.16s ease;

	content: "";
}

.building-dropdown-toggle.active::after {
	transform: rotate(225deg);
}

.building-dropdown-toggle:focus-visible {
	outline: 2px solid #1f5f8b;

	outline-offset: 0.2rem;
}

.building-category-dropdown,
.building-consumption-category-dropdown {
	padding-top: 50%;
}

.filter-panel--static-categories .filter-panel-content {
	gap: 0;
}

.filter-panel--static-categories .building-category-dropdown {
	padding-top: 0;
}

.filter-panel--static-categories .building-category-list {
	padding-top: 0.1rem;
}

.building-category-list {
	display: grid;

	gap: 0.62rem;
}

.building-report-year-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	margin-bottom: 0.6rem;
}

.building-report-year-dropdown {
	border: 1px solid #d9e0e7;
	border-radius: 0.45rem;
	background: #f8fafc;
}

.building-report-year-dropdown summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.62rem 0.7rem;
	color: #283746;
	font-size: 0.94rem;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.building-report-year-dropdown summary::-webkit-details-marker {
	display: none;
}

.building-report-year-dropdown summary::after {
	margin-left: 0.15rem;
	color: #526170;
	content: "⌄";
}

.building-report-year-dropdown[open] summary {
	border-bottom: 1px solid #d9e0e7;
}

.building-report-year-dropdown[open] summary::after {
	transform: rotate(180deg);
}

.building-report-year-selection {
	margin-left: auto;
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 700;
	text-align: right;
}

.building-report-year-controls {
	justify-content: flex-start;
	margin: 0.62rem 0 0;
}

.building-report-year-list {
	max-height: 9rem;
	overflow: auto;
	padding: 0.62rem 0.7rem;
}

.building-report-year-mode {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid #cbd5e1;
	border-radius: 0.4rem;
	background: #ffffff;
}

.building-report-year-mode-option {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.building-report-year-mode-option + .building-report-year-mode-option {
	border-left: 1px solid #cbd5e1;
}

.building-report-year-mode-option input {
	position: absolute;
	opacity: 0;
}

.building-report-year-mode-option span {
	display: block;
	min-width: 3.25rem;
	padding: 0.34rem 0.62rem;
	color: #526170;
	font-size: 0.86rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.building-report-year-mode-option input:checked + span {
	background: #1f5f8b;
	color: #ffffff;
}

.building-report-year-mode-option input:focus-visible + span,
.building-report-year-option input:focus-visible + span {
	outline: 3px solid rgba(31, 95, 139, 0.24);
	outline-offset: -2px;
}

.building-report-year-clear {
	min-height: 2rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.35rem;
	padding: 0.25rem 0.52rem;
	background: #ffffff;
	color: #283746;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.1;
	cursor: pointer;
}

.building-report-year-clear:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.building-report-year-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
}

.building-report-year-status {
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.3;
}

.building-report-year-option {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.building-report-year-option input {
	position: absolute;
	opacity: 0;
}

.building-report-year-option span {
	display: block;
	min-width: 3.7rem;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	padding: 0.34rem 0.62rem;
	background: #ffffff;
	color: #526170;
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.building-report-year-option input:checked + span {
	border-color: #1f5f8b;
	background: #1f5f8b;
	color: #ffffff;
}

.building-consumption-type-tabs {
	display: grid;

	grid-template-columns: repeat(4, minmax(0, 1fr));

	gap: 0.35rem;

	margin: 0 0 0.55rem;
}

.building-consumption-type-tab {
	min-width: 0;
}

.building-consumption-type-tab input {
	position: absolute;

	opacity: 0;

	pointer-events: none;
}

.building-consumption-type-tab span {
	display: flex;

	align-items: center;

	justify-content: center;

	min-height: 2.15rem;

	padding: 0.35rem 0.45rem;

	border: 1px solid rgba(31, 95, 139, 0.28);

	border-radius: 0.45rem;

	background: rgba(255, 255, 255, 0.86);

	color: #283746;

	font-size: 0.86rem;

	font-weight: 700;

	line-height: 1.15;

	text-align: center;

	cursor: pointer;
}

.building-consumption-type-tab input:checked + span {
	border-color: #1f5f8b;

	background: #1f5f8b;

	color: #ffffff;
}

.building-consumption-type-tab input:focus-visible + span {
	outline: 3px solid rgba(31, 95, 139, 0.24);

	outline-offset: 2px;
}

.building-category-filter,
.building-consumption-category-filter,
.building-data-availability-filter,
.building-all-category-filter,
.building-all-consumption-category-filter,
.building-heating-degree-toggle {
	display: grid;

	grid-template-columns: 1.3rem 1.65rem minmax(0, 1fr);

	align-items: start;

	gap: 0.65rem;

	margin: 0;

	color: #283746;

	font-size: 1.18rem;

	line-height: 1.35;

	cursor: pointer;

	user-select: none;
}

.building-category-filter.category-disabled,
.building-consumption-category-filter.category-disabled,
.building-data-availability-filter.category-disabled,
.building-all-category-filter.category-disabled,
.building-all-consumption-category-filter.category-disabled {
	color: #94a3b8;
	cursor: not-allowed;
}

.building-category-filter.category-disabled .category-icon,
.building-consumption-category-filter.category-disabled .category-icon,
.building-data-availability-filter.category-disabled .data-availability-icon,
.building-all-category-filter.category-disabled .category-icon,
.building-all-consumption-category-filter.category-disabled .category-icon {
	filter: grayscale(1);
	opacity: 0.42;
}

.building-category-filter.category-disabled .building-category-label,
.building-consumption-category-filter.category-disabled .building-category-label,
.building-data-availability-filter.category-disabled .building-category-label {
	color: #94a3b8;
}

.building-category-filter input:disabled,
.building-consumption-category-filter input:disabled,
.building-data-availability-filter input:disabled,
.building-all-category-filter input:disabled,
.building-all-consumption-category-filter input:disabled {
	cursor: not-allowed;
}

.building-category-filter input,
.building-consumption-category-filter input,
.building-data-availability-filter input,
.building-all-category-filter input,
.building-all-consumption-category-filter input,
.building-heating-degree-toggle input {
	width: 1.3rem;

	height: 1.3rem;

	margin: 0.08rem 0 0;

	accent-color: #1f5f8b;
}

.building-heating-degree-toggle {
	display: grid;

	grid-template-columns: 1.3rem 1.65rem minmax(0, 1fr);

	align-items: start;

	gap: 0.65rem;

	margin: 0;

	color: #283746;

	font-size: 1.18rem;

	line-height: 1.35;

	cursor: pointer;

	user-select: none;
}

.building-category-filter.category-disabled,
.building-consumption-category-filter.category-disabled,
.building-data-availability-filter.category-disabled,
.building-all-category-filter.category-disabled,
.building-all-consumption-category-filter.category-disabled {
	color: #94a3b8;
	cursor: not-allowed;
}

.building-category-filter.category-disabled .category-icon,
.building-consumption-category-filter.category-disabled .category-icon,
.building-data-availability-filter.category-disabled .data-availability-icon,
.building-all-category-filter.category-disabled .category-icon,
.building-all-consumption-category-filter.category-disabled .category-icon {
	filter: grayscale(1);
	opacity: 0.42;
}

.building-category-filter.category-disabled .building-category-label,
.building-consumption-category-filter.category-disabled .building-category-label,
.building-data-availability-filter.category-disabled .building-category-label {
	color: #94a3b8;
}

.building-category-filter input:disabled,
.building-consumption-category-filter input:disabled,
.building-data-availability-filter input:disabled,
.building-all-category-filter input:disabled,
.building-all-consumption-category-filter input:disabled {
	cursor: not-allowed;
}

.building-category-filter input,
.building-consumption-category-filter input,
.building-data-availability-filter input,
.building-all-category-filter input,
.building-all-consumption-category-filter input,
.building-heating-degree-toggle input {
	width: 1.3rem;

	height: 1.3rem;

	margin: 0.08rem 0 0;

	accent-color: #1f5f8b;
}

.building-heating-degree-toggle {
	grid-template-columns: 1.3rem minmax(0, 1fr);

	font-weight: 700;
}

.building-all-category-filter,
.building-all-consumption-category-filter {
	font-weight: 700;
}

.category-icon {
	position: relative;

	width: 1.65rem;

	height: 1.65rem;

	margin-top: -0.08rem;

	border-radius: 999px;

	box-shadow:
		0 0 0 1px rgba(15, 23, 42, 0.2),
		0 0.12rem 0.3rem rgba(15, 23, 42, 0.14);
}

.category-icon::before,
.category-icon::after {
	position: absolute;

	box-sizing: border-box;

	content: "";
}

.data-availability-icon {
	display: inline-grid;

	place-items: center;

	width: 1.65rem;

	height: 1.65rem;

	margin-top: -0.08rem;

	border-radius: 0.35rem;

	background: #f1f5f9;

	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.22);

	color: #1f2937;

	font-size: 0.82rem;

	font-weight: 800;

	line-height: 1;
}

.data-availability-icon::before {
	content: "";
}

.data-availability-icon--heating::before {
	content: "V";
}

.data-availability-icon--water::before {
	content: "T";
}

.data-availability-icon--light::before {
	content: "O";
}

.data-availability-icon--other::before {
	content: "I";
}

.category-icon--all {
	background: #17212b;
}

.category-icon--all::before {
	inset: 0.46rem;

	border: 0.16rem solid #ffffff;

	border-radius: 999px;
}

.category-icon--admin::before {
	left: 0.48rem;

	top: 0.67rem;

	width: 0.7rem;

	height: 0.46rem;

	border: 0.12rem solid #ffffff;
}

.category-icon--admin::after {
	left: 0.64rem;

	top: 0.43rem;

	width: 0.38rem;

	height: 0.32rem;

	border: 0.12rem solid #ffffff;

	border-bottom: 0;
}

.category-icon--hotel::before {
	left: 0.43rem;

	top: 0.72rem;

	width: 0.78rem;

	height: 0.32rem;

	background: #ffffff;
}

.category-icon--hotel::after {
	left: 0.45rem;

	top: 0.48rem;

	width: 0.16rem;

	height: 0.56rem;

	background: #ffffff;

	box-shadow: 0.7rem 0.1rem 0 #ffffff;
}

.category-icon--hospital::before,
.category-icon--hospital::after {
	background: #ffffff;
}

.category-icon--hospital::before {
	left: 0.73rem;

	top: 0.43rem;

	width: 0.2rem;

	height: 0.8rem;
}

.category-icon--hospital::after {
	left: 0.43rem;

	top: 0.73rem;

	width: 0.8rem;

	height: 0.2rem;
}

.category-icon--retail::before {
	left: 0.44rem;

	top: 0.55rem;

	width: 0.78rem;

	height: 0.2rem;

	border: 0.12rem solid #ffffff;

	border-bottom: 0;

	transform: skewX(-14deg);
}

.category-icon--retail::after {
	left: 0.5rem;

	top: 0.78rem;

	width: 0.66rem;

	height: 0.42rem;

	background: #ffffff;
}

.category-icon--industry::before {
	left: 0.42rem;

	top: 0.78rem;

	width: 0.82rem;

	height: 0.36rem;

	background: #ffffff;
}

.category-icon--industry::after {
	left: 0.5rem;

	top: 0.48rem;

	width: 0.18rem;

	height: 0.66rem;

	background: #ffffff;

	box-shadow: 0.52rem 0.2rem 0 #ffffff;
}

.category-icon--school::before {
	left: 0.39rem;

	top: 0.5rem;

	border-right: 0.44rem solid transparent;

	border-bottom: 0.25rem solid #ffffff;

	border-left: 0.44rem solid transparent;
}

.category-icon--school::after {
	left: 0.73rem;

	top: 0.76rem;

	width: 0.2rem;

	height: 0.48rem;

	background: #ffffff;
}

.category-icon--apartment::before {
	left: 0.52rem;

	top: 0.42rem;

	width: 0.62rem;

	height: 0.82rem;

	background: #ffffff;
}

.category-icon--apartment::after {
	left: 0.62rem;

	top: 0.54rem;

	width: 0.12rem;

	height: 0.12rem;

	background: currentColor;

	box-shadow:
		0.28rem 0 0 currentColor,
		0 0.28rem 0 currentColor,
		0.28rem 0.28rem 0 currentColor;
}

.category-icon--house::before {
	left: 0.42rem;

	top: 0.68rem;

	width: 0.82rem;

	height: 0.48rem;

	background: #ffffff;
}

.category-icon--house::after {
	left: 0.4rem;

	top: 0.44rem;

	border-right: 0.43rem solid transparent;

	border-bottom: 0.34rem solid #ffffff;

	border-left: 0.43rem solid transparent;
}

.category-icon--other::before {
	left: 0.5rem;

	top: 0.47rem;

	width: 0.66rem;

	height: 0.66rem;

	border: 0.16rem solid #ffffff;

	border-radius: 0.1rem;
}

.category-icon--sport::before {
	left: 0.44rem;

	top: 0.44rem;

	width: 0.78rem;

	height: 0.78rem;

	border: 0.14rem solid #ffffff;

	border-radius: 999px;
}

.category-icon--sport::after {
	left: 0.82rem;

	top: 0.48rem;

	width: 0.12rem;

	height: 0.7rem;

	background: #ffffff;

	box-shadow:
		-0.34rem 0.28rem 0 -0.02rem #ffffff,
		0.34rem 0.28rem 0 -0.02rem #ffffff;
}

.category-icon--mixed::before {
	left: 0.47rem;

	top: 0.47rem;

	width: 0.32rem;

	height: 0.32rem;

	background: #ffffff;

	box-shadow:
		0.4rem 0 0 #ffffff,
		0 0.4rem 0 #ffffff,
		0.4rem 0.4rem 0 #ffffff;
}

.category-icon--unknown::before {
	left: 0;

	top: 0.05rem;

	width: 100%;

	color: #ffffff;

	font-size: 1.15rem;

	font-weight: 800;

	line-height: 1.5rem;

	text-align: center;

	content: "?";
}

.map-dimension-toggle.is-3d::before {
	transform: translateX(100%);
}

.map-dimension-toggle:not(.is-3d) .map-dimension-option--2d,
.map-dimension-toggle.is-3d .map-dimension-option--3d {
	color: #1f5f8b;
}
