*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
:root {
	--bg: #09090e;
	--surface: #111118;
	--surface-2: #17171f;
	--surface-3: #1d1d27;
	--border: #22222e;
	--border-h: #2e2e3e;
	--text: #e8e8f0;
	--text-2: #9898b0;
	--muted: #8b8bac;
	--accent: #6366f1;
	--accent-h: #818cf8;
	--accent-dim: rgba(99, 102, 241, 0.12);
	--green: #22c55e;
	--green-dim: rgba(34, 197, 94, 0.1);
	--green-b: rgba(34, 197, 94, 0.25);
	--blue: #3b82f6;
	--blue-dim: rgba(59, 130, 246, 0.1);
	--blue-b: rgba(59, 130, 246, 0.25);
	--yellow: #f59e0b;
	--yellow-dim: rgba(245, 158, 11, 0.1);
	--yellow-b: rgba(245, 158, 11, 0.25);
	--red: #ef4444;
	--red-dim: rgba(239, 68, 68, 0.1);
	--red-b: rgba(239, 68, 68, 0.25);
	--r: 10px;
	--r-lg: 14px;
	--r-sm: 6px;
}
html {
	scroll-behavior: smooth;
}
body {
	background: var(--bg);
	color: var(--text);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
	overflow: hidden;
}
::-webkit-scrollbar {
	width: 5px;
}
::-webkit-scrollbar-track {
	background: var(--bg);
}
::-webkit-scrollbar-thumb {
	background: var(--border-h);
	border-radius: 999px;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
}
*:focus {
	outline: none;
}
*:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--r-sm);
}
select,
input {
	color-scheme: dark;
}
select option {
	background: #1a1a24;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
}
input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

/* ── Layout ── */
.app {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

/* ── Header ── */
.hdr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 0 20px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 24px;
}
.hdr-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}
.hdr-icon {
	width: 34px;
	height: 34px;
	border-radius: var(--r-sm);
	background: var(--accent-dim);
	border: 1px solid rgba(99, 102, 241, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	flex-shrink: 0;
}
.hdr-name {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.3px;
}
.hdr-sub {
	font-size: 11px;
	color: var(--muted);
	margin-top: 1px;
}
.stat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 5px 12px 5px 8px;
	font-size: 12px;
	color: var(--text-2);
}
.live-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

/* ── Search panel ── */
.search-panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: 20px;
	margin-bottom: 14px;
}
.search-main {
	display: grid;
	grid-template-columns: 1fr 260px 120px;
	gap: 12px;
	align-items: end;
}
@media (max-width: 680px) {
	.search-main {
		grid-template-columns: 1fr;
	}
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.flabel {
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.loc-select {
	width: 100%;
	padding: 9px 12px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r);
	color: var(--text);
	font-family: inherit;
	font-size: 14px;
	appearance: none;
	cursor: pointer;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.loc-select:hover {
	border-color: var(--border-h);
}
.loc-select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-dim);
}

.tbadge {
	font-size: 11px;
	font-weight: 700;
	color: var(--accent);
	background: var(--accent-dim);
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: 0.02em;
}
.range-box {
	display: flex;
	align-items: center;
	height: 40px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 0 14px;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.range-box:hover {
	border-color: var(--border-h);
}
.range-box:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-dim);
}
input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 5px;
	background: linear-gradient(
		to right,
		var(--accent) var(--p, 18.36%),
		var(--muted) var(--p, 18.36%)
	);
	border-radius: 999px;
	outline: none;
	cursor: pointer;
	margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	background: var(--bg);
	border-radius: 50%;
	border: 2px solid var(--accent);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition:
		transform 0.1s,
		background 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.15);
	background: var(--surface-2);
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--text);
	color: var(--bg);
	border: none;
	border-radius: var(--r);
	padding: 9px 16px;
	font-weight: 600;
	font-size: 14px;
	height: 40px;
	transition:
		background 0.15s,
		transform 0.1s;
	white-space: nowrap;
}
.btn-primary:hover {
	background: #d0d0e0;
}
.btn-primary:active {
	transform: scale(0.97);
}
.btn-primary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

/* Advanced toggle */
.adv-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: 6px 12px;
	color: var(--text-2);
	font-size: 12px;
	font-weight: 500;
	margin-top: 14px;
	transition: all 0.15s;
}
.adv-toggle:hover {
	border-color: var(--border-h);
	color: var(--text);
	background: var(--surface-2);
}
.adv-toggle[aria-expanded="true"] {
	color: var(--accent);
	border-color: rgba(99, 102, 241, 0.4);
	background: var(--accent-dim);
}
.adv-toggle .chev {
	transition: transform 0.2s;
}
.adv-toggle[aria-expanded="true"] .chev {
	transform: rotate(180deg);
}
.adv-cnt {
	background: var(--accent);
	color: #fff;
	border-radius: 999px;
	padding: 1px 6px;
	font-size: 10px;
	font-weight: 600;
}

.adv-panel {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition:
		max-height 0.3s ease,
		opacity 0.25s;
}
.adv-panel.open {
	max-height: 600px;
	opacity: 1;
}
.adv-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	margin-top: 14px;
}
@media (max-width: 680px) {
	.adv-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.num-input {
	width: 100%;
	padding: 7px 10px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	color: var(--text);
	font-family: inherit;
	font-size: 13px;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.num-input::placeholder {
	color: var(--muted);
}
.num-input:hover {
	border-color: var(--border-h);
}
.num-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-dim);
}

.sel-input {
	width: 100%;
	padding: 7px 10px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	color: var(--text);
	font-family: inherit;
	font-size: 13px;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.15s;
}
.sel-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-dim);
}

.toggle-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding-top: 14px;
}
.pill {
	display: inline-flex;
	cursor: pointer;
	user-select: none;
}
.pill input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.pill-inner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text-2);
	font-size: 12px;
	font-weight: 500;
	transition: all 0.15s;
}
.pill-inner::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--muted);
	transition: background 0.15s;
}
.pill:hover .pill-inner {
	border-color: var(--border-h);
	color: var(--text);
}
.pill input:checked + .pill-inner {
	border-color: rgba(99, 102, 241, 0.5);
	color: var(--accent);
	background: var(--accent-dim);
}
.pill input:checked + .pill-inner::before {
	background: var(--accent);
}

/* ── Chips ── */
.chips-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 3px 6px 3px 10px;
	font-size: 11px;
	color: var(--text-2);
}
.chip-x {
	background: none;
	border: none;
	color: var(--muted);
	display: flex;
	align-items: center;
	transition: color 0.1s;
	padding: 0 2px;
}
.chip-x:hover {
	color: var(--text);
}

/* ── Results bar ── */
.results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 10px;
	flex-wrap: wrap;
}
.results-meta {
	font-size: 13px;
	color: var(--text-2);
}
.results-meta strong {
	color: var(--text);
	font-weight: 600;
}
.results-ctrl {
	display: flex;
	align-items: center;
	gap: 7px;
}

.sort-sel {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: 6px 10px;
	color: var(--text-2);
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
	appearance: none;
	transition: border-color 0.15s;
}
.sort-sel:hover {
	border-color: var(--border-h);
}

.vbtn {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	color: var(--muted);
	transition: all 0.15s;
}
.vbtn:hover {
	color: var(--text);
	border-color: var(--border-h);
}
.vbtn.on {
	color: var(--accent);
	border-color: rgba(99, 102, 241, 0.4);
	background: var(--accent-dim);
}

.saved-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: 5px 10px;
	color: var(--text-2);
	font-size: 12px;
	font-weight: 500;
	transition: all 0.15s;
}
.saved-toggle:hover {
	border-color: var(--yellow-b);
	color: var(--yellow);
	background: var(--yellow-dim);
}
.saved-toggle.on {
	border-color: var(--yellow-b);
	color: var(--yellow);
	background: var(--yellow-dim);
}

/* ── States ── */
.state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	gap: 10px;
	text-align: center;
}
.state-ico {
	color: var(--muted);
	opacity: 0.4;
	margin-bottom: 4px;
}
.state-title {
	font-size: 15px;
	font-weight: 500;
	color: var(--text-2);
}
.state-sub {
	font-size: 13px;
	color: var(--muted);
	max-width: 300px;
	line-height: 1.6;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
.spin {
	animation: spin 0.7s linear infinite;
}

/* ── Grid ── */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
@media (max-width: 900px) {
	.cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 580px) {
	.cards-grid {
		grid-template-columns: 1fr;
	}
}
.cards-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ── Card (grid) ── */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition:
		border-color 0.2s,
		box-shadow 0.2s,
		transform 0.2s;
	animation: fadeUp 0.3s ease both;
}
.card:hover {
	border-color: var(--border-h);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
	transform: translateY(-2px);
}

.card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}
.card-loc {
	font-size: 11px;
	color: var(--muted);
	margin-bottom: 3px;
	letter-spacing: 0.02em;
}
.card-price {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1.1;
}
.card-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}

.tier-badge {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid;
	white-space: nowrap;
}
.bmark-btn {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	color: var(--muted);
	transition: all 0.15s;
}
.bmark-btn:hover {
	color: var(--yellow);
	border-color: var(--yellow-b);
	background: var(--yellow-dim);
}
.bmark-btn.on {
	color: var(--yellow);
	border-color: var(--yellow-b);
	background: var(--yellow-dim);
}

/* Discount bar */
.disc-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 7px;
}
.disc-lbl {
	font-size: 11px;
	color: var(--muted);
}
.disc-val {
	font-size: 16px;
	font-weight: 700;
}
.disc-bar {
	height: 4px;
	background: var(--surface-3);
	border-radius: 999px;
	overflow: hidden;
}
.disc-fill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.5s ease;
}
.disc-avg {
	font-size: 11px;
	color: var(--muted);
	margin-top: 5px;
}

/* Stats */
.card-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}
.stat-c {
	background: var(--surface-2);
	border-radius: var(--r-sm);
	padding: 8px 6px;
	text-align: center;
}
.stat-c-lbl {
	font-size: 10px;
	color: var(--muted);
	margin-bottom: 3px;
}
.stat-c-val {
	font-size: 12px;
	font-weight: 600;
}

/* Tags */
.card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
.tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 500;
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid;
	white-space: nowrap;
}

/* Card footer */
.card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}
.card-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--muted);
	transition: color 0.15s;
}
.card-link:hover {
	color: var(--text);
}
.card-btns {
	display: flex;
	align-items: center;
	gap: 10px;
}
.icon-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: var(--muted);
	font-size: 11px;
	padding: 0;
	transition: color 0.15s;
}
.icon-btn:hover {
	color: var(--text);
}

/* ── Card (list) ── */
.card-row {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 12px 16px;
	display: grid;
	align-items: center;
	grid-template-columns: 68px 1fr auto auto;
	gap: 14px;
	transition:
		border-color 0.15s,
		background 0.15s;
	animation: fadeUp 0.25s ease both;
}
.card-row:hover {
	border-color: var(--border-h);
	background: var(--surface-2);
}
.row-disc {
	text-align: center;
}
.row-price {
	font-size: 14px;
	font-weight: 700;
}
.row-meta {
	font-size: 12px;
	color: var(--muted);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.row-acts {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── Load more ── */
.load-more {
	text-align: center;
	margin-top: 28px;
}
.btn-sec {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 9px 20px;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 500;
	transition: all 0.15s;
}
.btn-sec:hover {
	border-color: var(--border-h);
	color: var(--text);
	background: var(--surface-3);
}
.btn-sec:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.load-info {
	font-size: 11px;
	color: var(--muted);
	margin-top: 8px;
}

/* ── Toasts ── */
.toasts {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}
.toast {
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 10px 16px;
	font-size: 13px;
	color: var(--text-2);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	pointer-events: auto;
	animation: fadeUp 0.2s ease;
}
.toast.err {
	border-color: var(--red-b);
	color: var(--red);
}

/* ── Modals ── */
dialog {
	background: transparent;
	border: none;
	padding: 0;
	max-width: 100vw;
	max-height: 100vh;
	width: 100%;
	height: 100%;
}
dialog::backdrop {
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(4px);
}
.modal-box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* ── Leaflet ── */
.leaflet-container {
	background: #0d0d14;
	font-family: "Inter", sans-serif;
}
.leaflet-control-zoom a {
	background: var(--surface);
	color: var(--text-2);
	border-color: var(--border);
}
.leaflet-control-zoom a:hover {
	background: var(--surface-2);
	color: var(--text);
}
@keyframes mpulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}
.map-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--green);
	border: 2px solid var(--bg);
	animation: mpulse 2s ease-out infinite;
}

/* stagger */
.card:nth-child(1) {
	animation-delay: 0ms;
}
.card:nth-child(2) {
	animation-delay: 30ms;
}
.card:nth-child(3) {
	animation-delay: 60ms;
}
.card:nth-child(4) {
	animation-delay: 90ms;
}
.card:nth-child(5) {
	animation-delay: 120ms;
}
.card:nth-child(6) {
	animation-delay: 150ms;
}
.card:nth-child(7) {
	animation-delay: 180ms;
}
.card:nth-child(8) {
	animation-delay: 210ms;
}
.card:nth-child(9) {
	animation-delay: 240ms;
}

/* ── Trend panel ── */
.trend-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 16px 20px 12px;
	margin-bottom: 16px;
	animation: fadeUp 0.2s ease both;
}
.trend-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 14px;
	gap: 12px;
}
.trend-lbl {
	font-size: 11px;
	color: var(--muted);
	margin-bottom: 5px;
	letter-spacing: 0.02em;
}
.trend-stat {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}
.trend-cur {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.5px;
}
.trend-chg {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid;
}
.trend-weeks {
	font-size: 11px;
	color: var(--muted);
	text-align: right;
	padding-top: 2px;
	white-space: nowrap;
}
.trend-chart {
	position: relative;
	margin: 0 -2px;
}
.trend-tip {
	position: absolute;
	display: none;
	background: var(--surface-3);
	border: 1px solid var(--border-h);
	border-radius: var(--r-sm);
	padding: 7px 11px;
	font-size: 12px;
	pointer-events: none;
	z-index: 10;
	white-space: nowrap;
	line-height: 1.5;
	top: 0;
	left: 0;
}
.trend-dates {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: var(--muted);
	margin-top: 5px;
	padding: 0 2px;
}

/* ── Heatmap ── */
.heatmap-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text-2);
	padding: 6px 12px;
	border-radius: var(--r-sm);
	font-size: 12px;
	font-weight: 500;
	transition:
		background 0.15s,
		color 0.15s,
		border-color 0.15s;
}
.heatmap-btn:hover {
	background: var(--surface-3);
	border-color: var(--border-h);
	color: var(--text);
}
.heatmap-modal-box {
	width: min(860px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: hidden;
}
.heatmap-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 14px;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}
.heatmap-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.2px;
}
.heatmap-sub {
	font-size: 11px;
	color: var(--muted);
	margin-top: 2px;
}
.modal-close {
	background: none;
	border: none;
	color: var(--muted);
	padding: 4px;
	border-radius: var(--r-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		color 0.15s,
		background 0.15s;
}
.modal-close:hover {
	color: var(--text);
	background: var(--surface-3);
}
.heatmap-legend {
	padding: 12px 20px;
	border-top: 1px solid var(--border);
	flex-shrink: 0;
}
.hm-legend-label {
	font-size: 10px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}
.hm-legend-scale {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.hm-legend-step {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: var(--text-2);
}
.hm-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}
/* Leaflet heatmap tooltip */
.hm-tooltip {
	background: var(--surface-3) !important;
	border: 1px solid var(--border-h) !important;
	border-radius: var(--r-sm) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
	padding: 0 !important;
}
.hm-tooltip::before {
	display: none !important;
}
.hm-tip {
	padding: 10px 13px;
	min-width: 130px;
}
.hm-tip-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 4px;
}
.hm-tip-price {
	font-size: 17px;
	font-weight: 700;
	color: var(--text);
	line-height: 1;
}
.hm-tip-price span {
	font-size: 11px;
	color: var(--muted);
	font-weight: 400;
}
.hm-tip-count {
	font-size: 11px;
	color: var(--muted);
	margin-top: 3px;
}
