/**
 * Modern Map Sidebar Component
 * Clean, responsive sidebar for the map view
 * No legacy code - built from scratch
 */

/* Sidebar container */
.map-sidebar {
	display: flex;
	flex-direction: column;
	width: 320px;
	min-width: 320px;
	max-width: 320px;
	height: 100%;
	background-color: #2a2a2a;
	color: #e0e0e0;
	overflow: hidden; /* No scroll on container - only on exhibitor list */
	flex-shrink: 0;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Responsive widths for smaller desktop screens */
@media (max-width: 1600px) {
	.map-sidebar {
		width: 280px;
		min-width: 280px;
		max-width: 280px;
	}
}

@media (max-width: 1440px) {
	.map-sidebar {
		width: 260px;
		min-width: 260px;
		max-width: 260px;
	}
}

@media (max-width: 1280px) {
	.map-sidebar {
		width: 240px;
		min-width: 240px;
		max-width: 240px;
	}
}

/* Header */
.map-sidebar .sidebar-header {
	padding: 1.25rem;
	background-color: #1f1f1f;
	border-bottom: 2px solid #3258CD;
}

.map-sidebar .sidebar-header h2 {
	margin-top: 1rem;
	font-size: 1.5rem; /* Increased from 1.25rem */
	font-weight: 600;
	color: #fff;
}

/* Sections */
.map-sidebar .sidebar-section {
	padding: 1.25rem;
	border-bottom: 1px solid #3a3a3a;
}

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

.map-sidebar .sidebar-section h3 {
	margin: 0 0 1rem 0;
	font-size: 1.25rem; /* Increased from 1rem */
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
}

/* Exhibitors section - should grow to fill available space */
.map-sidebar .sidebar-exhibitors {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding-bottom: 0;
}

/* Action buttons */
.map-sidebar .sidebar-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.map-sidebar .btn {
	padding: 0.75rem 1rem;
	border: none;
	border-radius: 4px;
	font-size: 1rem; /* Increased from 0.875rem */
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

.map-sidebar .btn-primary {
	background-color: #48A648;
	color: #fff;
}

.map-sidebar .btn-primary:hover {
	background-color: #2847b3;
}

.map-sidebar .btn-secondary {
	background-color: #4a4a4a;
	color: #fff;
}

.map-sidebar .btn-secondary:hover {
	background-color: #5a5a5a;
}

.map-sidebar .btn-block {
	width: 100%;
	display: block;
}

/* Form controls */
.map-sidebar .form-control {
	width: 100%;
	padding: 0.625rem;
	background-color: #1f1f1f;
	border: 1px solid #4a4a4a;
	border-radius: 4px;
	color: #e0e0e0;
	font-size: 1rem; /* Increased from 0.875rem */
	transition: border-color 0.2s ease;
}

.map-sidebar .form-control:focus {
	outline: none;
	border-color: #3258CD;
}

.map-sidebar .form-control::placeholder {
	color: #808080;
}

/* Filters */
.map-sidebar .sidebar-filters {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

/* Stats */
.map-sidebar .sidebar-stats {
	display: flex;
	justify-content: space-around;
	padding: 1rem 0;
	margin-bottom: 1rem;
	background-color: #1f1f1f;
	border-radius: 4px;
}

.map-sidebar .stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.map-sidebar .stat-label {
	font-size: 0.875rem; /* Increased from 0.75rem */
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.map-sidebar .stat-value {
	font-size: 1.75rem; /* Increased from 1.5rem */
	font-weight: 700;
	color: #3258CD;
}

/* Exhibitor list */
.map-sidebar .exhibitor-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.map-sidebar .exhibitor-list li {
	padding: 0.875rem;
	border-bottom: 1px solid #3a3a3a;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.map-sidebar .exhibitor-list li:hover {
	background-color: #333;
}

.map-sidebar .exhibitor-list li.selected {
	background-color: #3258CD;
}

.map-sidebar .exhibitor-list li.selected:hover {
	background-color: #2847b3;
}

.map-sidebar .exhibitor-item-name {
	font-weight: 600;
	font-size: 1rem; /* Increased from 0.875rem */
	color: #fff;
	margin: 0 0 0.25rem 0;
	display: block;
}

.map-sidebar .exhibitor-item-company {
	font-size: 0.9375rem; /* Increased from 0.8125rem */
	color: #b0b0b0;
	margin: 0 0 0.25rem 0;
	display: block;
}

.map-sidebar .exhibitor-item-commodity {
	font-size: 0.875rem; /* Increased from 0.75rem */
	color: #808080;
	font-style: italic;
	margin: 0;
	display: none;
}

.map-sidebar .exhibitor-list li.selected .exhibitor-item-commodity {
	display: block;
	color: #d0d0d0;
}

/* Custom scrollbar */
.map-sidebar::-webkit-scrollbar,
.map-sidebar .exhibitor-list::-webkit-scrollbar {
	width: 8px;
}

.map-sidebar::-webkit-scrollbar-track,
.map-sidebar .exhibitor-list::-webkit-scrollbar-track {
	background: #1f1f1f;
}

.map-sidebar::-webkit-scrollbar-thumb,
.map-sidebar .exhibitor-list::-webkit-scrollbar-thumb {
	background: #4a4a4a;
	border-radius: 4px;
}

.map-sidebar::-webkit-scrollbar-thumb:hover,
.map-sidebar .exhibitor-list::-webkit-scrollbar-thumb:hover {
	background: #5a5a5a;
}

/* Responsive behavior */
@media (max-width: 1600px) {
	.map-sidebar .sidebar-header,
	.map-sidebar .sidebar-section {
		padding: 1rem;
	}

	.map-sidebar .sidebar-header h2 {
		font-size: 1.75rem;
		margin-top: 0.75rem;
	}

	.map-sidebar .sidebar-section h3 {
		font-size: 1.125rem;
		margin-bottom: 0.75rem;
	}

	.map-sidebar .btn {
		padding: 0.625rem 0.875rem;
		font-size: 0.9375rem;
	}

	.map-sidebar .form-control {
		font-size: 0.9375rem;
		padding: 0.5rem;
	}

	.map-sidebar .exhibitor-list li {
		padding: 0.75rem;
	}

	.map-sidebar .stat-value {
		font-size: 1.5rem;
	}
}

@media (max-width: 1440px) {
	.map-sidebar .sidebar-header,
	.map-sidebar .sidebar-section {
		padding: 0.875rem;
	}

	.map-sidebar .sidebar-header h2 {
		font-size: 1.5rem;
		margin-top: 0.625rem;
	}

	.map-sidebar .sidebar-section h3 {
		font-size: 1rem;
		margin-bottom: 0.625rem;
	}

	.map-sidebar .btn {
		padding: 0.5rem 0.75rem;
		font-size: 0.875rem;
	}

	.map-sidebar .form-control {
		font-size: 0.875rem;
		padding: 0.5rem;
	}

	.map-sidebar .exhibitor-list li {
		padding: 0.625rem;
	}

	.map-sidebar .exhibitor-item-name {
		font-size: 0.9375rem;
	}

	.map-sidebar .exhibitor-item-company {
		font-size: 0.875rem;
	}

	.map-sidebar .stat-value {
		font-size: 1.375rem;
	}

	.map-sidebar .stat-label {
		font-size: 0.8125rem;
	}
}

@media (max-width: 1280px) {
	.map-sidebar .sidebar-header,
	.map-sidebar .sidebar-section {
		padding: 0.75rem;
	}

	.map-sidebar .sidebar-header h2 {
		font-size: 1.375rem;
		margin-top: 0.5rem;
	}

	.map-sidebar .sidebar-section h3 {
		font-size: 0.9375rem;
		margin-bottom: 0.5rem;
	}

	.map-sidebar .btn {
		padding: 0.5rem 0.625rem;
		font-size: 0.8125rem;
	}

	.map-sidebar .form-control {
		font-size: 0.8125rem;
		padding: 0.4375rem;
	}

	.map-sidebar .exhibitor-list li {
		padding: 0.5rem;
	}

	.map-sidebar .exhibitor-item-name {
		font-size: 0.875rem;
	}

	.map-sidebar .exhibitor-item-company {
		font-size: 0.8125rem;
	}

	.map-sidebar .stat-value {
		font-size: 1.25rem;
	}

	.map-sidebar .stat-label {
		font-size: 0.75rem;
	}

	.map-sidebar .sidebar-actions {
		gap: 0.5rem;
	}

	.map-sidebar .sidebar-filters {
		gap: 0.5rem;
	}
}

@media (max-width: 991px) {
	.map-sidebar {
		position: absolute;
		top: 0;
		right: -320px;
		height: 100%;
		z-index: 1000;
		transition: right 0.3s ease;
	}

	.map-sidebar.visible {
		right: 0;
	}
}

@media (min-width: 992px) {
	.map-sidebar {
		position: relative;
		right: auto;
	}

	/* Increase font sizes for desktop */
	.map-sidebar .sidebar-header h2 {
		font-size: 2.25rem; /* 28px */
	}

	.map-sidebar .sidebar-section h3 {
		font-size: 1.55rem; /* 20px */
	}

	.map-sidebar .btn {
		font-size: 1.525rem; /* 18px */
	}

	.map-sidebar .form-control {
		font-size: 1.525rem; /* 18px */
	}

	.map-sidebar .stat-label {
		font-size: 1.35rem; /* 16px */
	}

	.map-sidebar .stat-value {
		font-size: 2.5rem; /* 32px */
	}

	.map-sidebar .exhibitor-item-name {
		font-size: 1.525rem; /* 18px */
	}

	.map-sidebar .exhibitor-item-company {
		font-size: 1.4625rem; /* 17px */
	}

	.map-sidebar .exhibitor-item-commodity {
		font-size: 1.4rem; /* 16px */
	}
}