﻿@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600,700&family=Work+Sans:wght@400;500;600;700&display=swap');

html, body {
	padding: 0;
	margin: 0;
	height: 100%;
	width: 100%;
	font-family: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
	font-weight: 400;
}


/* Hide the default zoom-to action at top, will add custom button at bottom */
/*.esri-popup__header-action--zoom-to {
	display: none;
}
*/
/* Optionally style the popup footer for custom actions */
.esri-popup__footer {
	border-top: 1px solid #ddd;
	padding-top: 0.75rem;
	margin-top: 0.75rem;
}

.esri-popup .esri-popup-header .esri-title {
	font-size: 18px;
	font-weight: bolder;
}

.esri-popup .esri-popup-body .esri-popup-content {
	font-size: 14px;
}

/* Hide the default Esri zoom-to button in popup header */
/*.esri-popup__header .esri-icon-zoom-to-object:before,
.esri-popup__header-action[title="Zoom to"],
.esri-popup__header-action.esri-popup__header-action--zoom-to {
	display: none !important;
}*/

/* Style the custom zoom button */
.popup-zoom-button:hover {
	background-color: #094a6b;
	transition: background-color 0.2s ease;
}

.popup-zoom-button:active {
	opacity: 0.9;
}

/* Visually hidden but screen reader accessible */
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Focus indicators - WCAG 2.4.7 */
button:focus,
select:focus,
input:focus,
a:focus {
	outline: 3px solid #500000;
	outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #500000;
	color: white;
	padding: 8px;
	text-decoration: none;
	z-index: 100000;
}

	.skip-link:focus {
		top: 0;
	}


@media (max-width: 768px) {
	.skip-links {
		display: none;
	}
}

/* Minimum touch target size - WCAG 2.5.5 */
button,
select,
input {
	min-height: 44px;
	min-width: 44px;
}



/* High contrast mode support */
@media (prefers-contrast: high) {
	.panel-toggle-btn {
		border: 2px solid;
	}
}

/* Header Styles */
.parking-map-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	background: #500000;
	color: white;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1001;
	box-sizing: border-box;
	/* Fix: Ensure all children are interactive */
	pointer-events: none; /* Make container non-blocking */
}

	/* Make all children interactive */
	.parking-map-header * {
		pointer-events: auto !important; /* Override container */
	}


.header-left {
	display: flex;
	align-items: center;
	gap: 15px;
	pointer-events: auto !important;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 10px;
}



/* Premium Map Selector - TAMU Brand Enhancement */
.map-selector-dropdown select {
	padding: 12px 40px 12px 14px;
	border-radius: 6px;
	border: 2px solid #F5F0F0;
	background: #f6f6f6;
	color: #333;
	font-size: 14px;
	min-width: 240px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23500000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 22px;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(80, 0, 0, 0.08);
	transition: all 0.3s ease;
	pointer-events: auto !important;
}

/* Optgroup - Category headers with gradient */
.map-selector-dropdown optgroup {
	font-weight: 700;
	color: #ffffff;
	background: #500000;
	padding: 10px 5px;
	font-size: 14px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	border-top: 1px solid #500000;
	border-bottom: 2px solid #500000;
}

/* Options with better spacing */
.map-selector-dropdown option {
	padding: 12px 14px;
	font-weight: 500;
	color: #333;
	background: #f6f6f6;
	line-height: 1.6;
	border-left: 3px solid transparent;
}

	/* Hover effect on options */
	.map-selector-dropdown option:hover {
		background-color: #F5F0F0;
		color: #500000;
		font-weight: 600;
	}

	/* Selected option - Maroon background with Gold text */
	.map-selector-dropdown option:checked {
		background: linear-gradient(135deg, #500000 0%, #70262f 100%);
		background-color: #F5F0F0;
		color: #500000;
		font-weight: 600;
		border-left-color: #FFD100;
	}

/* Focus state */
.map-selector-dropdown select:focus {
	outline: none;
	border-color: #500000;
	box-shadow: 0 0 0 4px rgba(80, 0, 0, 0.15), 0 2px 8px rgba(80, 0, 0, 0.15);
}

/* Hover state on select */
.map-selector-dropdown select:hover {
	border-color: #732f2f;
	box-shadow: 0 4px 12px rgba(80, 0, 0, 0.15);
}

h1.map-title {
	font-size: 24px;
	font-weight: 600;
	padding: 0;
	margin: 0;
	height: auto;
	line-height: 1;
	display: inline-block;
	vertical-align: middle; /* Aligns with the logo */
}



/* Map Container */
#viewDiv {
	position: absolute;
	top: 60px;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1; /* Lower than header */
}



/* Legend Panel with attached button */
/* Legend Panel */
.legend-panel,
.search-panel {
	position: fixed;
	right: -320px;
	top: 70px;
	height: calc(100vh - 70px);
	width: 320px;
	background: white;
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	transition: right 0.3s ease;
	z-index: 1000;
	box-sizing: border-box; /* Ensure padding is included */
}

	.legend-panel.open,
	.search-panel.open {
		right: 0;
	}



.search-container {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.search-input {
	flex: 1;
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s;
}

	.search-input:focus {
		outline: none;
		border-color: #500000;
		box-shadow: 0 0 0 3px rgba(80, 0, 0, 0.1);
	}

.search-btn {
	padding: 10px 20px;
	background: #500000;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
	transition: background 0.3s;
}

	.search-btn:hover {
		background: #700000;
	}

	.search-btn:active {
		transform: translateY(1px);
	}

/* Make search panel content padding consistent */
.search-panel .panel-content {
	padding: 20px;
}



/* Toggle buttons container - always at right edge */
.panel-toggle-btn {
	position: fixed;
	right: 0;
	width: 40px;
	height: 40px;
	background: white;
	border: 2px solid #500000;
	border-right: none;
	border-radius: 4px 0 0 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-shadow: -2px 2px 4px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	z-index: 999;
}

/* Position buttons at different heights */
#legendToggle {
	top: 80px;
}

#searchToggle {
	top: 130px;
}

/* When panel is open, move buttons with the panel */
.panel-toggle-btn.panel-shifted {
	transform: translateX(-320px);
}

/* When any panel is open, move both buttons */
body.panel-open #legendToggle,
body.panel-open #searchToggle {
	right: 320px;
}

.panel-toggle-btn:hover {
	background: #f5f5f5;
}

/* Fix active state - ensure it shows properly */
.panel-toggle-btn.active {
	background: #500000 !important;
	color: white !important;
}

	.panel-toggle-btn.active svg {
		color: white !important;
	}

.panel-toggle-btn.panel-shifted.active {
	background: #500000 !important;
	border-color: #500000;
}


/* Panel close button */
.panel-close-btn {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #500000;
	padding: 6px;
	border-radius: 6px;
	transition: background 0.15s ease;
}

	.panel-close-btn:hover {
		background: rgba(80,0,0,0.06);
	}

/* Mobile: slide panels leaving map visible and keep toggles on-screen */
@media (max-width: 768px) {
	/* Default hidden state (off-canvas) */
	.legend-panel,
	.search-panel {
		width: 86vw !important; /* leave ~14% of viewport for map */
		right: -86vw !important; /* fully hidden off-screen */
		top: 70px !important;
		height: calc(100vh - 74px) !important;
		transition: right 0.28s ease !important;
		box-shadow: -6px 0 20px rgba(0,0,0,0.18) !important;
		z-index: 1100 !important;
	}

		/* Open state: slide in but keep a small right margin so toggles & map are still reachable */
		.legend-panel.open,
		.search-panel.open {
			right: 8px !important;
			width: 86vw !important;
		}

	/* Ensure toggle buttons sit above panels and remain tappable */
	.panel-toggle-btn {
		right: 8px !important;
		z-index: 1200 !important;
	}

	/* Keep close button and header visible */
	.panel-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
	}

	.panel-close-btn {
		background: none;
		border: none;
		font-size: 20px;
		color: #500000;
		padding: 6px;
		border-radius: 6px;
	}

		.panel-close-btn:hover {
			background: rgba(80,0,0,0.06);
		}

	/* Make panel content scrollable */
	.legend-panel .panel-content,
	.search-panel .panel-content {
		height: calc(100% - 56px) !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}
}

/* Small phones */
@media (max-width: 480px) {
	.legend-panel,
	.search-panel {
		width: 88vw !important;
		right: -88vw !important;
		top: 60px !important;
		height: calc(100vh - 64px) !important;
	}

		.legend-panel.open,
		.search-panel.open {
			right: 6px !important;
		}
}

/*@media (max-width: 768px) {
	.panel-toggle-btn.panel-shifted {
		transform: translateX(-280px);
	}

	.legend-panel,
	.search-panel {
		width: 280px;
		right: -280px;
	}
}

@media (max-width: 480px) {
	.panel-toggle-btn.panel-shifted {
		transform: translateX(calc(-100vw + 40px));
	}

	.legend-panel,
	.search-panel {
		width: 100%;
		right: -100%;
	}
}*/


/* Legend Styles */
.legend-section {
	margin-bottom: 20px;
}

	.legend-section h3 {
		margin-top: 0;
		margin-bottom: 10px;
		color: #500000;
		font-size: 14px;
		font-weight: 600;
	}

.legend-service {
	padding-bottom: 15px;
}

.legend-service-title {
	font-weight: bold;
	font-size: 16px;
	color: #500000;
	margin-bottom: 10px;
	padding-bottom: 8px;
	/*	border-bottom: 2px solid #500000;*/
}

.legend-group {
	font-size: 13px;
	color: #333;
	margin-bottom: 15px;
}

.legend-group-title {
	font-weight: 600;
	font-size: 14px;
	color: #333;
	margin-bottom: 8px;
	padding-left: 5px;
}

.legend-items {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px;
}

	.legend-item:hover {
		background: #f5f5f5;
		border-radius: 4px;
	}

.legend-label {
	font-size: 13px;
	color: #333;
}

.legend-empty {
	padding: 10px;
	color: #999;
	font-style: italic;
}

.legend-error {
	padding: 10px;
	color: #d9534f;
}

.legend-loading {
	padding: 10px;
	color: #666;
}

.color-box {
	width: 20px;
	height: 20px;
	border: 0px solid #ddd;
	border-radius: 3px;
	flex-shrink: 0;
}

/* Search Styles */
.search-type-selector {
	margin-bottom: 15px;
}

	.search-type-selector label {
		display: block;
		margin-bottom: 5px;
		font-weight: 500;
		color: #333;
	}

	.search-type-selector select {
		width: 100%;
		padding: 8px;
		border: 1px solid #ddd;
		border-radius: 4px;
		font-size: 14px;
	}

.search-container {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.search-input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.search-btn {
	padding: 10px 15px;
	background: #500000;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

	.search-btn:hover {
		background: #700000;
	}

.search-results {
	margin-top: 20px;
}

.search-result-item {
	padding: 10px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

	.search-result-item:hover {
		background: #f5f5f5;
	}


/* Legend panel content styling */
/*#legendPanel  {
	padding: 15px;
	overflow: hidden;*/ /* Changed from overflow-y: auto */
/*-webkit-overflow-scrolling: touch;
}*/

.panel-content {
	padding: 15px;
	height: calc(100% - 30px);
	overflow: hidden; /* Changed from overflow-y: auto */
	-webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}
/* Make scrollable regions keyboard accessible */
/*.panel-content:focus,*/
/*#searchResults:focus {
	outline: 3px solid #500000;
	outline-offset: -3px;
}
*/


#searchResults {
	margin-top: 12px;
	max-height: calc(100vh - 240px);
	overflow: hidden; /* Changed from overflow-y: auto */
	-webkit-overflow-scrolling: touch;
}

	/* Ensure scrollable regions are clearly interactive */
	.panel-content:focus-visible,
	#searchResults:focus-visible {
		outline: 3px solid #500000;
		outline-offset: -3px;
		box-shadow: inset 0 0 0 3px #500000;
	}

/* When panel is closed, remove overflow to hide scrollable state */
.legend-panel[aria-hidden="true"] .panel-content,
.search-panel[aria-hidden="true"] .panel-content,
.search-panel[aria-hidden="true"] #searchResults {
	overflow: hidden;
	pointer-events: none;
}

/* When panel is open, allow scrolling */
.legend-panel[aria-hidden="false"] .panel-content,
.search-panel[aria-hidden="false"] .panel-content,
.search-panel[aria-hidden="false"] #searchResults {
	overflow-y: auto;
	overflow-x: hidden;
	pointer-events: auto;
}


/* When panel is closed, ensure content is not focusable */
.legend-panel[aria-hidden="true"] .panel-content,
.search-panel[aria-hidden="true"] #searchResults {
	pointer-events: none;
}

/* When panel is open, allow focus */
.legend-panel[aria-hidden="false"] .panel-content:focus-visible,
.search-panel[aria-hidden="false"] #searchResults:focus-visible {
	outline: 3px solid #500000;
	outline-offset: -3px;
	box-shadow: inset 0 0 0 3px #500000;
}

/* Remove conflicting height on #searchResults */
#searchResults {
	max-height: none; /* Remove max-height constraint */
}

/* When panel is closed, ensure content is not focusable */
.search-panel[aria-hidden="true"] .panel-content {
	pointer-events: none;
}

/* When panel is open, allow focus */
.search-panel[aria-hidden="false"] .panel-content:focus-visible {
	outline: 3px solid #500000;
	outline-offset: -3px;
	box-shadow: inset 0 0 0 3px #500000;
}

/* Restore pointer-events when panel is open */
.search-panel[aria-hidden="false"] input,
.search-panel[aria-hidden="false"] button,
.search-panel[aria-hidden="false"] select,
.search-panel[aria-hidden="false"] textarea,
.search-panel[aria-hidden="false"] label,
.search-panel[aria-hidden="false"] fieldset,
.legend-panel[aria-hidden="false"] input,
.legend-panel[aria-hidden="false"] button,
.legend-panel[aria-hidden="false"] select,
.legend-panel[aria-hidden="false"] textarea,
.legend-panel[aria-hidden="false"] label,
.legend-panel[aria-hidden="false"] fieldset {
	pointer-events: auto !important;
}

/* Disable pointer-events when panel is closed */
.search-panel[aria-hidden="true"] input,
.search-panel[aria-hidden="true"] button,
.search-panel[aria-hidden="true"] select,
.search-panel[aria-hidden="true"] textarea,
.search-panel[aria-hidden="true"] label,
.search-panel[aria-hidden="true"] fieldset,
.legend-panel[aria-hidden="true"] input,
.legend-panel[aria-hidden="true"] button,
.legend-panel[aria-hidden="true"] select,
.legend-panel[aria-hidden="true"] textarea,
.legend-panel[aria-hidden="true"] label,
.legend-panel[aria-hidden="true"] fieldset {
	pointer-events: none;
}


/* When panel is closed, remove overflow to hide scrollable state */
.legend-panel[aria-hidden="true"] .panel-content,
.search-panel[aria-hidden="true"] .panel-content,
.search-panel[aria-hidden="true"] #searchResults {
	overflow: hidden;
	pointer-events: none;
}

/* When panel is open, allow scrolling */
.legend-panel[aria-hidden="false"] .panel-content,
.search-panel[aria-hidden="false"] .panel-content,
.search-panel[aria-hidden="false"] #searchResults {
	overflow-y: auto;
	overflow-x: hidden;
	pointer-events: auto;
}


/* Enhanced focus styling for scrollable regions with keyboard navigation hint */
/*.panel-content:focus,
#searchResults:focus {
	outline: 3px solid #500000;
	outline-offset: -3px;
	box-shadow: inset 0 0 0 3px #500000;
}

.panel-content:focus-visible,
#searchResults:focus-visible {
	outline: 3px solid #500000;
	outline-offset: -3px;
	box-shadow: inset 0 0 0 3px #500000;
}*/

/* Add visual indicator that region is scrollable */
.panel-content[tabindex="0"],
#searchResults[tabindex="0"] {
	position: relative;
}

	/*.panel-content[tabindex="0"]::after,
	#searchResults[tabindex="0"]::after {
		content: "Use arrow keys to scroll";
		position: absolute;
		bottom: 5px;
		right: 10px;
		font-size: 11px;
		color: #999;
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.2s;
	}*/

	.panel-content[tabindex="0"]:focus::after,
	#searchResults[tabindex="0"]:focus::after {
		opacity: 1;
	}



/* Esri Map Components Legend styling */
arcgis-legend {
	--calcite-ui-brand: #500000; /* Texas A&M maroon */
	--calcite-color-border-input: #ddd;
	width: 100%;
	max-height: calc(100% - 20px);
}

	arcgis-legend::part(legend-container) {
		padding: 10px;
		background: white;
		border-radius: 4px;
	}

	arcgis-legend::part(legend-title) {
		font-weight: bold;
		color: #500000;
		font-size: 16px;
		border-bottom: 2px solid #500000;
		padding-bottom: 8px;
		margin-bottom: 10px;
	}



/* Mobile Responsive */
@media (max-width: 768px) {
	.map-selector-dropdown select {
		min-width: 120px;
		font-size: 14px;
	}

	.header-right {
		display: none;
	}

	.map-title {
		font-size: 14px;
	}

	.legend-panel,
	.search-panel {
		width: 280px;
	}


		.legend-panel.open,
		.search-panel.open {
			right: 0;
		}

		.legend-panel .panel-header,
		.search-panel .panel-header {
			position: sticky;
			top: 0;
			z-index: 10;
		}

		/* Ensure panel content doesn't overlap header */
		.legend-panel .panel-content,
		.search-panel .panel-content {
			padding-top: 15px;
			height: calc(100% - 60px); /* Account for header height */
		}
}

@media (max-width: 480px) {
	.legend-panel,
	.search-panel {
		width: 100%;
	}

	.header-right {
		display: none;
	}

	.parking-map-header {
		padding: 8px 10px; /* Reduce padding on mobile */
	}

	.map-selector-dropdown select {
		font-size: 14px;
		padding: 8px 30px 8px 10px; /* Smaller padding */
	}

	.map-selector-dropdown optgroup {
		font-weight: 700;
		color: #500000;
		background: #F5F5F5;
		padding: 10px 5px;
		font-size: 14px;
		letter-spacing: 0.8px;
		text-transform: uppercase;
		border-top: 1px solid #696969;
		border-bottom: 2px solid #696969;
	}
}

/* Loading Indicator */
.loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.loading-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #500000;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Icon styles */
.icon-layers {
	font-size: 20px;
}

.icon-search {
	font-size: 20px;
	color: darkgray;
}

#searchToggle svg {
	color: #500000; /* Texas A&M maroon */
}

#searchToggle:hover svg {
	color: #700000; /* Darker on hover */
}

#searchToggle.active svg {
	color: white; /* White when active */
}


/* ============================================================
   SEARCH FORM STYLING - SIMPLIFIED & COMPACT
   ============================================================ */

.search-form {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Fieldset and Legend */
.search-type-fieldset {
	border: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row;
	gap: 10px;
	flex: 1;
}

/* Radio Button Container - Side by side */
.radio-option {
	display: flex;
	align-items: center;
	gap: 6px;
	position: relative;
	cursor: pointer;
	flex: 1;
}

	.radio-option input[type="radio"] {
		position: absolute;
		opacity: 0;
		cursor: pointer;
		width: 18px;
		height: 18px;
		margin: 0;
		padding: 0;
	}

	.radio-option label {
		display: flex;
		align-items: center;
		gap: 8px;
		cursor: pointer;
		margin: 0;
		padding: 0;
		user-select: none;
	}

	.radio-option input[type="radio"]:focus + label {
		outline: 2px solid #500000;
		outline-offset: 2px;
	}

/* Custom radio button circle - simple */
.radio-custom {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 2px solid #999;
	border-radius: 50%;
	background: white;
	transition: all 0.15s ease;
	flex-shrink: 0;
}

/* Checked state */
.radio-option input[type="radio"]:checked + label .radio-custom {
	border-color: #500000;
	background: #500000;
}

	/* Inner dot for checked state */
	.radio-option input[type="radio"]:checked + label .radio-custom::after {
		content: '';
		width: 4px;
		height: 4px;
		background: white;
		border-radius: 50%;
	}

/* Hover state */
.radio-option input[type="radio"]:not(:checked) + label:hover .radio-custom {
	border-color: #666;
}

/* Label text */
.radio-label-text {
	font-size: 13px;
	font-weight: 400;
	color: #333;
}

/* Search Input Group */
.search-input-group {
	display: flex;
	flex-direction: column;
	gap: 0;
}

	.search-input-group input {
		width: 100%;
		padding: 12px 14px;
		border: 2px solid #ddd;
		border-radius: 6px 6px 0 0;
		font-size: 14px;
		font-family: inherit;
		transition: all 0.2s ease;
		box-sizing: border-box;
	}

		.search-input-group input:focus {
			outline: none;
			border-color: #500000;
			box-shadow: 0 0 0 3px rgba(80, 0, 0, 0.08);
		}

		.search-input-group input::placeholder {
			color: #aaa;
		}

/* Search Button */
.search-btn {
	padding: 12px 20px;
	background: #500000;
	color: white;
	border: 2px solid #500000;
	border-radius: 0 0 6px 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s ease;
	min-height: 44px;
	width: 100%;
}

	.search-btn:hover {
		background: #700000;
		border-color: #700000;
	}

	.search-btn:active {
		opacity: 0.95;
	}

	.search-btn:focus {
		outline: 2px solid #500000;
		outline-offset: -4px;
	}

/* Panel Header Styling */
.panel-header {
	/*padding: 16px 20px;
	background: #eaeaea;
	color: #500000;
	border-bottom: none;
	font-weight: 600;
	font-size: 16px;*/
	padding: 16px 20px;
	background: #eaeaea;
	color: #500000;
	border-bottom: 1px solid #ddd;
	font-weight: 600;
	font-size: 16px;
	flex-shrink: 0;
	box-sizing: border-box;
}

	.panel-header h2 {
		margin: 0;
		font-size: 18px;
		font-weight: 600;
		letter-spacing: 0.5px;
	}

/* Panel Content */
.panel-content {
	flex: 1;
	overflow: hidden;
	padding: 15px;
	box-sizing: border-box; /* Critical */
	-webkit-overflow-scrolling: touch;
}

/* Make search results scrollable with a fixed max height */
#searchPanel {
	display: flex;
	flex-direction: column;
}

	/* Keep the form and results stacked vertically */
	#searchPanel .search-form {
		display: flex;
		flex-direction: column;
	}

/* Scrollable results area below the form/button */
#searchResults {
	margin-top: 12px;
	max-height: calc(100vh - 240px); /* adjust 240px to match your header + form height */
	overflow: hidden; /* Changed from overflow-y: auto */
	-webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
	padding-right: 4px; /* ensure scrollbar doesn't overlap content */
}

/* Small touch / focus affordances for items */
.search-result-list .search-result-item,
.search-result-table tbody tr {
	transition: background-color 120ms ease;
}

	.search-result-list .search-result-item:focus,
	.search-result-list .search-result-item:hover,
	.search-result-table tbody tr:hover {
		background: rgba(0,0,0,0.03);
		outline: none;
	}

/* Table styling to keep layout tight inside the scroll region */
.search-result-table {
	width: 100%;
	border-collapse: collapse;
}

	.search-result-table thead th {
		position: sticky;
		top: 0;
		background: #fff; /* or match panel background */
		z-index: 2;
	}

	.search-result-table tbody td {
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}
/* Responsive adjustments */
@media (max-width: 480px) {
	.search-form {
		padding: 16px;
		gap: 16px;
	}

	.search-type-fieldset {
		gap: 16px;
	}

	.radio-label-text {
		font-size: 12px;
	}

	.search-btn {
		width: 100%;
	}
}
/* Summer/Break Parking Info Panel */
#sblotinfo {
	position: fixed;
	top: 70px;
	left: 85px;
	background: rgba(80, 0, 0, 0.95);
	padding: 12px 15px;
	border-radius: 4px;
	max-width: 280px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.infolink a {
	color: white;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s;
}

	.infolink a:hover {
		color: #ffe9a6;
	}

#divinfo {
	font-size: 12px;
	color: white;
	line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 500px) {
	#sblotinfo {
		max-width: calc(100vw - 30px);
		font-size: 11px;
	}
}

/* Visitor Parking Occupancy Info Panel */
#sbOccupancy {
	position: fixed;
	top: 70px;
	left: 80px;
	background: #500000;
	padding: 10px 10px;
	border-radius: 4px;
	max-width: 160px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	max-height: 320px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

	#sbOccupancy > span {
		display: block;
		margin-bottom: 8px;
	}

	/* Occupancy Panel Toggle Styling */
	#sbOccupancy .infolink {
		color: #FFD100;
		font-size: 12px;
		text-decoration: none;
		font-weight: 600;
		cursor: pointer;
		padding: 4px 8px;
		border-radius: 3px;
		transition: all 0.2s ease;
	}

		#sbOccupancy .infolink:hover {
			background: rgba(255, 209, 0, 0.2);
			color: #FFFFFF;
		}

		#sbOccupancy .infolink:active {
			opacity: 0.8;
		}


#divOccupancy {
	font-size: 13px;
	line-height: 1.3;
	color: white;
	overflow: hidden;
}

	#divOccupancy.collapsed {
		max-height: 0;
		opacity: 0;
		overflow: hidden;
	}

	#divOccupancy ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	#divOccupancy li {
		padding: 6px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
		display: flex;
		justify-content: space-between;
	}

		#divOccupancy li:last-child {
			border-bottom: none;
		}

	#divOccupancy em {
		font-style: italic;
		color: gold;
		font-size: 12px;
	}


/* ============================================================
   MOBILE OPTIMIZATIONS - iPhone & Small Devices
   ============================================================ */

/* Improve mobile dropdown visibility */
@media (max-width: 768px) {
	.map-selector-dropdown {
		position: relative;
		z-index: 1005;
		width: 100%;
		background: white;
		border-radius: 6px;
		overflow: visible;
	}

		.map-selector-dropdown select {
			min-width: 100%;
			max-width: 100%;
			font-size: 16px;
			padding: 14px 40px 14px 12px;
			width: calc(100vw - 20px);
			margin: 0;
			border-radius: 6px;
			background: white;
			position: relative;
			z-index: 1005;
		}

	.header-left {
		width: 100%;
		flex: 1;
		position: relative;
		z-index: 1004;
		background: white;
		border-radius: 6px;
		padding: 0;
	}

	.parking-map-header {
		padding: 8px 10px;
		z-index: 1002;
		align-items: flex-start;
	}

	.header-right {
		display: none !important;
	}
}


/* Small phones - extra tight spacing */
@media (max-width: 480px) {
	.parking-map-header {
		padding: 5px 8px;
		height: auto;
		align-items: flex-start;
	}

	.map-selector-dropdown {
		position: relative;
		z-index: 1005;
		width: 100%;
		background: white;
		border-radius: 6px;
		overflow: visible;
	}

		.map-selector-dropdown select {
			min-width: 100%;
			font-size: 16px;
			padding: 12px 35px 12px 10px;
			width: calc(100vw - 16px);
			border-radius: 6px;
			background: white;
			position: relative;
			z-index: 1005;
		}

	.header-left {
		width: 100%;
		gap: 8px;
		position: relative;
		z-index: 1004;
		background: white;
		border-radius: 6px;
		padding: 0;
	}

	/* Hide header completely if needed */
	.header-right {
		display: none !important;
	}
}

/* ============================================================
   MOBILE FRIENDLY TOGGLE BUTTONS
   ============================================================ */

@media (max-width: 768px) {
	.panel-toggle-btn {
		width: 50px;
		height: 50px;
		right: 10px;
		border-radius: 8px;
		border: 3px solid #500000;
		background: white;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	}

	#legendToggle {
		top: 75px;
	}

	#searchToggle {
		top: 135px;
	}

	/* Adjust when panels are open */
	.panel-toggle-btn.panel-shifted {
		transform: translateX(0);
		right: 10px;
	}

	body.panel-open #legendToggle,
	body.panel-open #searchToggle {
		right: 10px;
		transform: none;
	}

	/* Make SVG icons larger for easier tapping */
	.panel-toggle-btn svg {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 480px) {
	.panel-toggle-btn {
		width: 48px;
		height: 48px;
		right: 8px;
		border-width: 2px;
	}

	#legendToggle {
		top: 72px;
	}

	#searchToggle {
		top: 128px;
	}

	.panel-toggle-btn svg {
		width: 22px;
		height: 22px;
	}
}

/* ============================================================
   MOBILE FRIENDLY PANELS
   ============================================================ */

/*@media (max-width: 768px) {
	.legend-panel,
	.search-panel {
		width: 100%;
		right: -100%;
		height: calc(100vh - 70px);
		top: 70px;
	}

		.legend-panel .panel-header,
		.search-panel .panel-header {
			padding: 12px 16px;
		}

	.panel-content {
		padding: 12px;
		height: calc(100% - 50px);
	}

	.search-form {
		padding: 12px;
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.legend-panel,
	.search-panel {
		width: 100%;
		right: -100%;
		top: 55px;
		height: calc(100vh - 55px);
	}

	.search-input-group input {
		font-size: 16px;*/ /* Prevent iOS zoom */
/*}

	.search-btn {
		font-size: 16px;
		padding: 14px 16px;
	}
}*/

/* ============================================
   HIDE ESRI ATTRIBUTION
   ============================================ */
.esri-attribution {
	display: none !important;
}

/* Also hide the Esri logo if present */
.esri-ui .esri-attribution,
.esri-ui-bottom-right .esri-attribution {
	display: none !important;
}

/* ============================================================
   MOBILE FRIENDLY ESRI POPUP
   ============================================================ */

@media (max-width: 768px) {
	/* Make popup full width on mobile */
	.esri-popup {
		max-width: 100% !important;
		width: calc(100vw - 20px) !important;
		left: 10px !important;
		right: 10px !important;
	}

	.esri-popup__content {
		max-height: 50vh;
		overflow-y: auto;
	}

	.esri-popup__header {
		padding: 12px 14px;
	}

		.esri-popup__header .esri-title {
			font-size: 16px;
			word-break: break-word;
		}

	.esri-popup-body .esri-popup-content {
		font-size: 13px;
		padding: 12px 14px;
	}

	.esri-popup__footer {
		padding: 10px 14px;
	}

	/* Close button more accessible */
	.esri-popup__close-button {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
		padding: 8px;
	}
}

@media (max-width: 480px) {
	.esri-popup {
		max-width: 100vw !important;
		width: 100vw !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		border-radius: 12px 12px 0 0;
	}

	.esri-popup__content {
		max-height: 60vh;
	}

	.esri-popup__header {
		padding: 14px 14px;
	}

		.esri-popup__header .esri-title {
			font-size: 15px;
		}

	.esri-popup-body .esri-popup-content {
		font-size: 12px;
	}

	/* Prevent popup from going off-screen */
	.esri-popup__footer {
		padding: 12px;
		margin-bottom: 10px;
	}
}

/* ============================================================
   MOBILE FRIENDLY INFO PANELS (sbOccupancy, sblotinfo)
   ============================================================ */

/*@media (max-width: 768px) {
	#sbOccupancy,
	#sblotinfo {
		left: 60px !important;
		max-width: calc(100vw - 140px);
		font-size: 12px;
		padding: 10px;
	}

		#sbOccupancy > span,
		#sblotinfo span {
			font-size: 11px;
		}

	#divOccupancy,
	#divinfo {
		font-size: 11px;
		max-height: 200px;
	}
}
*/
/*@media (max-width: 480px) {
	#sbOccupancy,
	#sblotinfo {
		position: fixed;
		top: 65px;
		left: 8px;
		right: 8px;
		width: auto;
		max-width: none;*/
/*font-size: 11px;*/
/*padding: 8px 10px;
		border-radius: 6px;
	}

		#sbOccupancy > span,
		#sblotinfo span {
			font-size: 10px;
		}

	#divOccupancy,
	#divinfo {
		font-size: 10px;
		max-height: 150px;
	}

		#divOccupancy ul {
			padding: 0;
			margin: 0;
		}

		#divOccupancy li {
			padding: 4px 0;
			font-size: 10px;
		}

	.infolink a {
		font-size: 10px;
		padding: 2px 4px;
	}
}*/

/* ============================================================
   FIX HEADER OVERLAP ON MAP
   ============================================================ */

@media (max-width: 768px) {
	#viewDiv {
		top: 55px; /* Reduced from 60px */
	}

	.legend-panel,
	.search-panel {
		top: 55px;
	}

	#legendToggle {
		top: 65px;
	}

	#searchToggle {
		top: 115px;
	}
}

@media (max-width: 480px) {
	#viewDiv {
		top: 50px; /* Even more compact */
	}

	.legend-panel,
	.search-panel {
		top: 50px;
		height: calc(100vh - 50px);
	}

	#legendToggle {
		top: 60px;
	}

	#searchToggle {
		top: 110px;
	}
}

/* ============================================================
   ENSURE TOUCH TARGETS ARE MINIMUM 44px
   ============================================================ */

@media (max-width: 768px) {
	button,
	a,
	input[type="submit"],
	input[type="button"] {
		min-height: 44px;
		min-width: 44px;
		padding: 10px 12px;
	}

	.search-result-item {
		padding: 12px;
		min-height: 44px;
		display: flex;
		align-items: center;
	}
}


/* Coordinates Display Panel */
.coordinates-panel {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: #500000;
	color: #ffffff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	z-index: 50;
	min-width: 130px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	font-family: 'Courier New', monospace;
	line-height: 1.4;
}

#coordinatesDisplay {
	display: block;
	white-space: nowrap;
}

	#coordinatesDisplay div {
		margin: 2px 0;
	}

/* Mobile responsive */
@media (max-width: 480px) {
	.coordinates-panel {
		font-size: 11px;
		padding: 6px 10px;
		bottom: 5px;
		left: 5px;
		min-width: 120px;
	}
}