* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
#loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
#loading-overlay.hidden {
	display: none;
}
.spinner {
	position: relative;
	font-size: 28px;
	color: #555;
}
.spinner .smoke {
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
}
.spinner .smoke span {
	width: 4px;
	height: 4px;
	background: #aaa;
	border-radius: 50%;
	animation: smoke-rise 1.4s ease-out infinite;
	opacity: 0;
}
.spinner .smoke span:nth-child(1) {
	animation-delay: 0s;
}
.spinner .smoke span:nth-child(2) {
	animation-delay: 0.4s;
}
.spinner .smoke span:nth-child(3) {
	animation-delay: 0.8s;
}
@keyframes smoke-rise {
	0% {
		transform: translateY(0);
		opacity: 0.7;
	}
	100% {
		transform: translateY(-20px);
		opacity: 0;
	}
}
.loading-text {
	font-family: system-ui, sans-serif;
	font-size: 14px;
	color: #555;
}
.loading-text .dot {
	animation: dot-blink 1.2s step-end infinite;
	opacity: 0;
}
.loading-text .dot:nth-child(1) {
	animation-delay: 0s;
}
.loading-text .dot:nth-child(2) {
	animation-delay: 0.3s;
}
.loading-text .dot:nth-child(3) {
	animation-delay: 0.6s;
}
@keyframes dot-blink {
	0% {
		opacity: 0;
	}
	33% {
		opacity: 1;
	}
}
html,
body,
#map {
	width: 100%;
	height: 100%;
}

/* Drawer */
#drawer {
	position: fixed;
	z-index: 1000;
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
		"Segoe UI Symbol", "Noto Color Emoji";
}
#drawer-handle {
	width: 100%;
	padding: 10px 0;
	cursor: grab;
	touch-action: none;
	display: flex;
	justify-content: center;
}
#drawer-handle::after {
	content: "";
	width: 36px;
	height: 4px;
	background: #dadce0;
	border-radius: 2px;
}
@media (min-width: 601px) {
	#drawer {
		top: 0;
		left: 0;
		width: 370px;
		height: 100%;
		transform: translateX(-100%);
		box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
	}
	#drawer.drawer-open {
		transform: translateX(0);
	}
	#drawer-handle {
		position: absolute;
		top: 50%;
		right: 0;
		transform: translateY(-50%);
		width: 16px;
		height: 36px;
		padding: 0;
		cursor: grab;
		touch-action: auto;
		align-items: center;
	}
	#drawer-handle::after {
		width: 4px;
		height: 36px;
	}
}
@media (max-width: 600px) {
	#drawer {
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 55vh;
		border-radius: 14px 14px 0 0;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
		transform: translateY(100%);
	}
	#drawer.drawer-open {
		transform: translateY(0);
	}
}
#drawer-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #5f6368;
	line-height: 1;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.15s;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}
#drawer-close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #202124;
}
#drawer-header {
	padding: 20px 48px 0 20px;
	flex-shrink: 0;
	touch-action: none;
	cursor: grab;
}
@media (max-width: 600px) {
	#drawer-header {
		padding: 4px 48px 0 20px;
	}
}
#drawer-header .drawer-title {
	font-size: 22px;
	font-weight: 400;
	color: #202124;
	line-height: 1.3;
}
#drawer-header .drawer-subtitle {
	margin-top: 4px;
	font-size: 14px;
	color: #70757a;
	display: flex;
	align-items: center;
	gap: 6px;
}
#drawer-header .drawer-subtitle i {
	font-size: 13px;
}
#drawer-actions-bar {
	flex-shrink: 0;
	touch-action: none;
}
#drawer-divider {
	height: 1px;
	background: #e8eaed;
	margin: 16px 0 4px;
}
#drawer-content {
	padding: 0;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
	position: relative;
}
#drawer-content-inner {
	padding-bottom: 10px;
}
#drawer-content-fade {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0;
	box-shadow: 0 -12px 28px 8px rgba(0, 0, 0, 0.18);
	pointer-events: none;
	transition: opacity 0.2s;
}
#drawer-content-fade.hidden {
	opacity: 0;
}
.drawer-actions {
	padding: 12px 20px 4px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.drawer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 36px;
	padding: 0 20px;
	border-radius: 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid #dadce0;
	color: #3c4043;
	background: #fff;
	transition: background 0.15s;
}
.drawer-btn i {
	font-size: 13px;
}
.drawer-btn:hover {
	background: #f1f3f4;
}
.drawer-btn-primary {
	background: #1a73e8;
	color: #fff;
	border-color: #1a73e8;
}
.drawer-btn-primary:hover {
	background: #1557b0;
}
.drawer-row {
	display: flex;
	align-items: flex-start;
	padding: 10px 20px;
	gap: 16px;
	font-size: 14px;
	color: #3c4043;
	line-height: 1.4;
}
.drawer-row i {
	color: #70757a;
	font-size: 16px;
	width: 20px;
	text-align: center;
	flex-shrink: 0;
	margin-top: 1px;
}
.drawer-row a {
	color: #1a73e8;
	text-decoration: none;
}
.drawer-row a:hover {
	text-decoration: underline;
}
.drawer-row .drawer-label {
	color: #70757a;
	font-size: 12px;
	margin-bottom: 1px;
}

.locate-btn a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	font-size: 14px;
	color: #333;
	text-decoration: none;
}

/* Info button + overlay */
.info-btn {
	background: white;
	border: none;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	color: #555;
}
.info-btn:hover {
	background: #f5f5f5;
}
#info-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}
#info-overlay.hidden {
	display: none;
}
#info-page {
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px;
	max-width: 400px;
	width: 90%;
	position: relative;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 14px;
	color: #3c4043;
	line-height: 1.6;
}
#info-page h2 {
	font-size: 20px;
	font-weight: 500;
	color: #202124;
	margin-bottom: 12px;
}
#info-page h2 i {
	color: #e74c3c;
}
#info-page p {
	margin-bottom: 2px;
}
#info-page a {
	color: #1a73e8;
	text-decoration: none;
}
#info-page a:hover {
	text-decoration: underline;
}
#info-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #5f6368;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}
#info-close:hover {
	background: rgba(0, 0, 0, 0.06);
}
.info-build {
	position: absolute;
	bottom: 12px;
	right: 12px;
	font-size: 11px;
	color: #c4c7cc;
}
.info-sync {
	margin-top: 12px;
	font-size: 12px;
	color: #70757a;
}
.info-sync i {
	margin-right: 4px;
}
.info-contact {
	margin-top: 16px;
	margin-bottom: 4px;
	font-size: 13px;
}
#info-page h3 {
	font-size: 14px;
	font-weight: 500;
	color: #202124;
	margin-top: 16px;
	margin-bottom: 6px;
}
.info-contact i {
	width: 16px;
	text-align: center;
	margin-right: 6px;
	color: #70757a;
}
#info-stats {
	margin-top: 16px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.info-stat-total {
	grid-column: 1 / -1;
}
.info-stat {
	text-align: center;
	padding: 12px 8px;
	background: #f8f9fa;
	border-radius: 8px;
}
.info-stat-number {
	font-size: 22px;
	font-weight: 600;
	color: #202124;
	line-height: 1.2;
	white-space: nowrap;
}
@media (max-width: 380px) {
	.info-stat-number {
		font-size: 17px;
	}
	.info-stat-number i {
		font-size: 14px;
	}
}
.info-stat-label {
	font-size: 11px;
	color: #70757a;
	margin-top: 2px;
}

.legend {
	background: white;
	padding: 8px 12px;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	font-size: 13px;
	line-height: 1.8;
}
.legend-divider {
	height: 1px;
	background: #e0e0e0;
	margin: 4px 0;
}
.legend-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 14px;
	border-radius: 3px;
	color: #fff;
	font-size: 9px;
	margin-right: 6px;
	vertical-align: middle;
}
.marker-icon {
	background: none !important;
	border: none !important;
	overflow: visible !important;
}
.marker-pin {
	overflow: visible;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	position: relative;
}
.marker-pin > .fa-solid:first-child {
	color: #fff;
	font-size: 14px;
}
.marker-lock {
	position: absolute;
	bottom: -2px;
	right: -2px;
	font-size: 10px;
	color: #fff;
	background: #555;
	border-radius: 3px;
	padding: 2px 3px;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.marker-note {
	position: absolute;
	top: -2px;
	right: -2px;
	font-size: 10px;
	color: #fff;
	background: #2980b9;
	border-radius: 3px;
	padding: 2px 3px;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.marker-fee {
	position: absolute;
	bottom: -2px;
	left: -2px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: #27ae60;
	border-radius: 3px;
	padding: 2px 3px;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
