body {
	margin: 0;
	padding: 20px;
	font-family: Arial, sans-serif;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	height: 100vh;
	padding: 20px;
	box-sizing: border-box;
}

.search-form {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	position: relative;
}

.search-container {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	align-items: center;
}

.search-box {
	flex-grow: 1;
	position: relative;
}

.form-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
}

.form-group {
	flex: 1;
	position: relative;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #333;
}

.form-group input {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.form-group input:focus {
	outline: none;
	border-color: #4A90E2;
	box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

#bsg-address {
	width: 100%;
	padding: 10px;
	font-size: 16px;
	border: 2px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

.button-container {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.search-button {
	background-color: #4A90E2;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	transition: background-color 0.2s;
}

.search-button:hover {
	background-color: #357ABD;
}

.export-button {
	padding: 10px 20px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s;
}

.export-button:hover {
	background-color: #45a049;
}

.button-text {
	display: inline-block;
	vertical-align: middle;
}

#map {
	height: 600px;
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 1;
	flex-grow: 1;
	border-radius: 4px;
	border: 2px solid #ddd;
}

.info-panel {
	padding: 10px;
	background: white;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	max-width: 300px;
}

/* Autocomplete styles */
.autocomplete-items {
	position: absolute;
	border: 1px solid #ddd;
	border-top: none;
	z-index: 1000;
	/* Higher z-index to appear above map */
	top: 100%;
	left: 0;
	right: 0;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	background-color: white;
	max-height: 200px;
	overflow-y: auto;
}

.autocomplete-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #ddd;
	border-radius: 0 0 4px 4px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
}

.autocomplete-item {
	padding: 10px;
	cursor: pointer;
	background-color: #fff;
	border-bottom: 1px solid #ddd;
}

.autocomplete-item:hover {
	background-color: #f8f9fa;
}

.autocomplete-item.active {
	background-color: #e9ecef;
}

.autocomplete-item:last-child {
	border-bottom: none;
	border-radius: 0 0 4px 4px;
}

/* Make sure Leaflet controls appear above autocomplete */
.leaflet-top,
.leaflet-bottom {
	z-index: 1001;
}

.legend {
	background-color: white;
	padding: 10px;
	border-radius: 4px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}
