/* Explorer filters panel styles extracted from inline CSS */

.filter-section {
	padding: var(--space-6);
	border-bottom: 1px solid var(--border-subtle);
}

.filter-section:last-child {
	border-bottom: none;
}

.filter-title {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: var(--space-4);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.form-group {
	margin-bottom: var(--space-5);
}

.form-group:last-child {
	margin-bottom: 0;
}

.form-label {
	display: block;
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: var(--space-2);
}

.form-input,
.form-select {
	width: 100%;
	padding: var(--space-3);
	background: var(--bg-tertiary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--space-2);
	color: var(--text-primary);
	font-size: var(--text-sm);
	transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
	outline: none;
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
	color: var(--text-muted);
}

.button-group {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2);
	margin-bottom: var(--space-4);
}

.button-group button {
	padding: var(--space-3);
	background: var(--bg-tertiary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--space-2);
	color: var(--text-secondary);
	font-size: var(--text-xs);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.button-group button.active,
.button-group button:hover {
	background: var(--brand-primary);
	color: var(--text-inverse);
	border-color: var(--brand-primary);
}

/* filters-dropdown removed (replaced by push-drawer). */

.filters-panel {
	margin-top: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
	box-shadow: none;
}

.filters-column {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.filters-panel .filter-section {
	padding: 0;
	border: none;
}

.filters-actions {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.filters-actions .btn,
.filters-actions .btn-secondary {
	width: 100%;
}

/* Left Filters Drawer implementation */
.filters-open-btn {
	position: absolute;
	top: var(--space-4);
	left: var(--space-6);
	z-index: 650;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--space-3);
	background: rgba(255,255,255,0.65);
	color: #0f172a;
	border: 1px solid rgba(255,255,255,0.75);
	box-shadow: var(--shadow-lg);
	backdrop-filter: blur(12px) saturate(160%);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	cursor: pointer;
	font-weight: 600;
	transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.filters-open-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 22px rgba(0,0,0,0.18);
	background: rgba(255,255,255,0.75);
}

.theme-dark .filters-open-btn {
	background: rgba(17,24,39,0.85);
	color: #e2e8f0;
	border-color: rgba(148,163,184,0.35);
}

.filters-overlay {
	display: none; /* deprecated */
}

.filters-drawer {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 300px;
	background: var(--bg-secondary);
	border-right: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-xl);
	transform: translateX(-100%);
	transition: transform .3s ease;
	z-index: 1099;
	display: flex;
	flex-direction: column;
}

.filters-drawer.visible { transform: translateX(0); }

.filters-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--border-subtle);
	background: var(--bg-tertiary);
}

.filters-drawer-close {
	all: unset;
	cursor: pointer;
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px;
	color: var(--text-secondary);
	border: 1px solid var(--border-subtle);
	transition: all .2s ease;
}

.filters-drawer-close:hover {
	color: var(--text-primary);
	background: var(--bg-secondary);
}

.filters-drawer-body {
	padding: var(--space-5);
	overflow-y: auto;
	height: 100%;
}

@media (max-width: 900px) {
	.filters-drawer { width: min(92vw, 300px); }
}

/* Light/Dark theme styling aligned with sample */
.theme-light .filters-drawer { background: #ffffff; border-right-color: rgba(0,0,0,0.06); }
.theme-dark .filters-drawer { background: #18181b; }

/* Push layout when filters open */
/* When filters drawer opens, shift map panel by drawer width (300px) */
body.filters-open .map-panel { margin-left: 300px; transition: margin .3s ease; }

/* Right Data Drawer (symmetric) */
.data-open-btn {
	position: absolute;
	top: var(--space-4);
	right: var(--space-6);
	z-index: 650;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--space-3);
	background: rgba(255,255,255,0.65);
	color: #0f172a;
	border: 1px solid rgba(255,255,255,0.75);
	box-shadow: var(--shadow-lg);
	backdrop-filter: blur(12px) saturate(160%);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	cursor: pointer;
	font-weight: 600;
	transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

/* Push layout when right city drawer opens (150px) */
body.city-open .main-content { margin-right: 150px; transition: margin .3s ease; }
body.show-panel:not(.city-open) .main-content { margin-right: 0; }

.data-open-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 22px rgba(0,0,0,0.18);
	background: rgba(255,255,255,0.75);
}

.theme-dark .data-open-btn {
	background: rgba(17,24,39,0.85);
	color: #e2e8f0;
	border-color: rgba(148,163,184,0.35);
}

.data-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width: 250px;
	background: var(--bg-secondary);
	border-left: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-xl);
	transform: translateX(100%);
	transition: transform .3s ease;
	z-index: 1099;
	display: flex;
	flex-direction: column;
}

.data-drawer.visible { transform: translateX(0); }

.theme-light .data-drawer { background: #ffffff; }
.theme-dark .data-drawer { background: #18181b; }

.data-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--border-subtle);
	background: var(--bg-tertiary);
}

.data-drawer-body { padding: var(--space-5); overflow-y: auto; height: 100%; }

/* Push layout when data drawer open */
body.data-open .main-content { margin-right: 250px; transition: margin .3s ease; }
