html { height: 100% }
body {
	height: 100%;
	margin: 0;
	padding: 0;
	/* font-family: Arial, sans-serif; */
}

#map_canvas { height: 100% }

#tcomm_controls {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1000;
	white-space: nowrap;
}

#tcomm_controls .btn,
#map_actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.map-control-label {
	display: none;
}

#tcomm_controls .tcomm-brand {
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
	font-weight: 600;
}

#map_actions {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1000;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.map-control-label {
		display: inline;
	}
}

/* Leave the native top-left MapLibre controls below the branding row. */
#map_canvas .maplibregl-ctrl-top-left {
	top: 48px;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-ctrl-group,
html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-content,
html[data-bs-theme="dark"] #map_canvas .maplibregl-ctrl-attrib {
	background: #212529;
	color: #dee2e6;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-ctrl-attrib a {
	color: #9ec5fe;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-ctrl-group button {
	color: #dee2e6;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-ctrl-icon {
	filter: invert(1) grayscale(1) brightness(1.35);
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-ctrl-group button:hover {
	background-color: #343a40;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-anchor-top .maplibregl-popup-tip,
html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
	border-bottom-color: #212529;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
	border-top-color: #212529;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-anchor-left .maplibregl-popup-tip {
	border-right-color: #212529;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-anchor-right .maplibregl-popup-tip {
	border-left-color: #212529;
}

html[data-bs-theme="dark"] #map_canvas .maplibregl-popup-close-button {
	color: #dee2e6;
}

html[data-bs-theme="dark"] .mapv3-popup-button,
html[data-bs-theme="dark"] #tcomm_controls .btn-light,
html[data-bs-theme="dark"] #map_actions .btn-light {
	--bs-btn-color: #f8f9fa;
	--bs-btn-bg: #343a40;
	--bs-btn-border-color: #495057;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #495057;
	--bs-btn-hover-border-color: #6c757d;
}


#update_info {
	position: fixed;
	bottom: 10px;
	left: 10px;
	font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
	background: #fff;
	border-radius: 4px;
	padding: 3px 8px;
	text-align: left;
	border: 0;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
	color: #333;
	z-index: 1000;
}

html[data-bs-theme="dark"] #update_info {
	background: #212529;
	color: #dee2e6;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

#update_info img {
	width: 14px;
	height: 14px;
	margin-right: 3px;
}

#data_updating_spinner {
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-right: 5px;
	vertical-align: -1px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	opacity: 0.65;
	animation: data-updating-spin 0.6s linear infinite;
}

#data_updating_spinner.hidden {
	display: none;
}

@keyframes data-updating-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	#data_updating_spinner {
		animation-duration: 1.5s;
	}
}

.hidden {
	display: none;
}

@media only screen and (max-device-width: 640px) {
	#update_info {
		bottom: 6px;
		left: 6px;
	}
}

#doorbell-button {
	z-index: 1010;
	bottom: 15px;
}
#doorbell-background {
	z-index: 1011;
}
#doorbell {
	z-index: 1012;
}

.stop_icon {
	text-align: center;
	line-height: 10px;
}

.stop_icon_symbol {
	color: white;
	background-color: rgba(10, 100, 164, 255);
	width: 16px;
	height: 16px;
	font-weight: bold;
	vertical-align: middle;
}

.stop_icon_no {
	font-size: 10px;
	color: rgba(10, 100, 164, 255);
	font-weight: bold;
}

#map_canvas .departures-list .stop-modification,
#map_canvas .departures-list .trip-btn,
#map_canvas .departures-list .block-btn,
#map_canvas .departures-list .vehicle-model {
	display: none;
}

#locate-bus-modal .autocomplete-menu {
	z-index: 1060;
}
