.dashboard-hero {
	background: linear-gradient(135deg, #4a5c6d 0%, #6c7a89 100%);
	color: white;
	padding: 3rem 2rem;
	text-align: center;
}

.dashboard-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.dashboard-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

.dashboard-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

.location-section {
	display: none; /* Hidden - using filters panel instead */
	background: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	margin-bottom: 2rem;
	border-top: 4px solid #6c7a89;
	text-align: center;
}

.location-form {
	display: flex;
	gap: 1rem;
	max-width: 400px;
	margin: 1rem auto 0;
}

.location-form input {
	flex: 1;
	padding: 1rem;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 1.1rem;
}

.location-form button {
	padding: 1rem 2rem;
	background: #6c7a89;
	color: white;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 1rem;
}

.location-form button:hover { background: #5a6c7d; }

/* Risk Summary Card */
.risk-summary {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	padding: 2rem;
	margin-bottom: 2rem;
	text-align: center;
}

.risk-level-display {
	display: inline-block;
	padding: 1rem 3rem;
	border-radius: 50px;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 1rem 0;
}

.risk-high { background: #ffebee; color: #c62828; }
.risk-moderate { background: #fff3e0; color: #ef6c00; }
.risk-low { background: #e8f5e9; color: #2e7d32; }
.risk-very-low { background: #e3f2fd; color: #1565c0; }

/* Quick Facts */
.quick-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.fact-card {
	background: white;
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	text-align: center;
}

.fact-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.fact-value { font-size: 1.75rem; font-weight: 700; color: #2c3e50; }
.fact-label { font-size: 0.85rem; color: #666; margin-top: 0.25rem; }

/* Section Cards */
.section-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.section-header {
	background: #f8f9fa;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.section-header h3 {
	margin: 0;
	color: #2c3e50;
	font-size: 1.1rem;
}

.section-content { padding: 1.5rem; }

/* Disaster History */
.disaster-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.disaster-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.disaster-item:last-child { border-bottom: none; }

.disaster-info h4 { margin: 0 0 0.25rem 0; color: #2c3e50; font-size: 1rem; }
.disaster-info p { margin: 0; color: #666; font-size: 0.85rem; }
.disaster-cost { font-weight: 600; color: #8b7355; }

/* Recommendations */
.recommendations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.recommendation-card {
	background: #f8f9fa;
	padding: 1.25rem;
	border-radius: 8px;
	border-left: 4px solid #6c7a89;
}

.recommendation-card.insurance { border-left-color: #7d6b8b; }
.recommendation-card.home { border-left-color: #6b8b7d; }
.recommendation-card.preparedness { border-left-color: #9b8b7d; }

.recommendation-card h4 {
	margin: 0 0 0.5rem 0;
	color: #2c3e50;
	font-size: 0.95rem;
}

.recommendation-card p {
	margin: 0;
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
}

.priority-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.priority-high { background: #ffebee; color: #c62828; }
.priority-medium { background: #fff3e0; color: #ef6c00; }

/* Chart */
.chart-container {
	height: 300px;
	position: relative;
}

/* Insurance Planning */
.insurance-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.insurance-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.insurance-checklist li:last-child { border-bottom: none; }

.check-icon {
	width: 24px;
	height: 24px;
	background: #e8f5e9;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #27ae60;
	flex-shrink: 0;
}

.loading { text-align: center; padding: 3rem; display: none; }
.loading.show { display: block; }
.results-section { display: none; }
.results-section.show { display: block; }

/* Filters Panel Styles */
.filters-toggle {
	position: fixed;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	background: #6c7a89;
	color: white;
	border: none;
	padding: 1rem 0.5rem;
	cursor: pointer;
	z-index: 999;
	border-radius: 0 8px 8px 0;
	box-shadow: 2px 0 10px rgba(0,0,0,0.1);
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.3s ease;
}

.filters-toggle:hover {
	background: #5a6c7d;
	padding-right: 0.75rem;
}

.filters-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.filters-overlay.open {
	opacity: 1;
	visibility: visible;
}

.filters-panel {
	position: fixed;
	left: -380px;
	top: 0;
	width: 380px;
	max-width: 380px;
	height: 100vh;
	background: white;
	box-shadow: 4px 0 20px rgba(0,0,0,0.15);
	z-index: 1001;
	display: flex;
	flex-direction: column;
	transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-panel.open {
	left: 0;
}

.filters-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid #e0e0e0;
	background: linear-gradient(135deg, #4a5c6d 0%, #6c7a89 100%);
	color: white;
}

.filters-header h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
}

.filters-close {
	background: none;
	border: none;
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s;
}

.filters-close:hover {
	background: rgba(255,255,255,0.1);
}

.filters-content {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
}

.current-location-display {
	padding: 0 0.5rem 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #e0e0e0;
}

.location-badge {
	background: #e8f5e9;
	color: #2e7d32;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	display: inline-block;
	line-height: 1.4;
}

.filter-section {
	margin-bottom: 0.75rem;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.filter-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.875rem 1rem;
	background: #f8f9fa;
	cursor: pointer;
	user-select: none;
	transition: background 0.2s;
}

.filter-section-header:hover {
	background: #e9ecef;
}

.filter-section-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #333;
}

.filter-section-icon {
	color: #666;
	font-size: 0.75rem;
	transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-section-icon {
	transform: rotate(-90deg);
}

.filter-section.collapsed .filter-group {
	display: none;
}

.filter-group {
	padding: 1rem;
}

.filter-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #555;
	font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
	width: 100%;
	padding: 0.625rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.9rem;
	transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
	outline: none;
	border-color: #6c7a89;
}

.filter-actions {
	padding: 1rem;
	border-top: 1px solid #e0e0e0;
	display: flex;
	gap: 0.5rem;
	background: #fafafa;
}

.filter-btn {
	flex: 1;
	padding: 0.75rem;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.85rem;
}

.filter-btn-apply {
	background: #6c7a89;
	color: white;
}

.filter-btn-apply:hover {
	background: #5a6c7d;
}

.filter-btn-reset {
	background: #f5f5f5;
	color: #666;
	border: 1px solid #ddd;
}

.filter-btn-reset:hover {
	background: #e9e9e9;
}

@media (max-width: 768px) {
	.location-form { flex-direction: column; }
	
	.filters-panel {
		width: 100%;
		left: -100%;
	}
	
	.filters-panel.open {
		left: 0;
	}
}

@media (max-width: 1200px) {
.dashboard-content { max-width: 100%; padding: 1.5rem; }
}

@media (max-width: 1000px) {
.dashboard-hero { padding: 2rem 1rem; }
.dashboard-hero h1 { font-size: 1.8rem; }
.dashboard-hero p { font-size: 1rem; }

.dashboard-content { padding: 1rem; }

/* 2-column grid for stat cards on tablet */
.quick-facts, .stats-grid, .metrics-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}

.fact-card, .stat-card, .metric-card {
padding: 1rem;
}

.fact-card .fact-value, .stat-card .value, .metric-card .metric-value {
font-size: 1.3rem;
}

.fact-card .fact-label, .stat-card h4, .metric-card .metric-label {
font-size: 0.7rem;
}

.fact-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }

/* Full width for larger cards */
.cards-grid, .insights-grid {
grid-template-columns: 1fr;
gap: 1rem;
}

.card, .insight-card {
width: 100%;
padding: 1.25rem;
}

.risk-grid, .recommendations-grid {
grid-template-columns: 1fr;
gap: 1rem;
}

.risk-card, .recommendation-card {
width: 100%;
}

/* Full width charts */
.chart-container, .chart-section {
width: 100%;
padding: 1rem;
margin-bottom: 1rem;
}

.chart-wrapper {
height: 280px;
}

/* Full width tables */
.data-table, table {
display: block;
overflow-x: auto;
width: 100%;
-webkit-overflow-scrolling: touch;
}

/* Calculator adjustments */
.calculator-grid, .calculator-section { grid-template-columns: 1fr; }
.calculator-inputs, .calculator-results {
width: 100%;
}

/* Form adjustments */
.location-form { flex-direction: column; }
.filter-row { flex-direction: column; }
.filter-group { min-width: 100%; }

/* Export section */
.export-buttons {
flex-direction: column;
gap: 0.5rem;
}

.export-btn {
width: 100%;
}

/* Navigation tabs scrollable */
.nav-container {
padding: 0 0.5rem;
}

.nav-tab {
padding: 0.75rem 1rem;
font-size: 0.9rem;
}

/* Section headers */
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}

.section-header h2 {
font-size: 1.25rem;
}

.filters-panel {
width: 85%;
max-width: 320px;
left: -100%;
}

.filters-panel.open {
left: 0;
}

/* Mobile filters toggle */
.filters-toggle { 
position: fixed;
top: auto;
bottom: 100px;
left: 0;
transform: none;
writing-mode: vertical-rl;
padding: 0.5rem 0.35rem;
font-size: 0.7rem;
letter-spacing: 0.5px;
border-radius: 0 6px 6px 0;
z-index: 999;
}
}

@media (max-width: 768px) {
.dashboard-hero { padding: 1.5rem 1rem; }
.dashboard-hero h1 { font-size: 1.5rem; line-height: 1.3; }
.dashboard-hero p { font-size: 0.9rem; }

.dashboard-content { padding: 0.75rem; }

/* Stack stat cards on mobile */
.quick-facts, .stats-grid, .metrics-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
}

.fact-card, .stat-card, .metric-card {
padding: 0.875rem;
}

.fact-card .fact-value, .stat-card .value, .metric-card .metric-value {
font-size: 1.1rem;
}

.fact-card .fact-label, .stat-card h4, .metric-card .metric-label {
font-size: 0.65rem;
}

/* Section cards */
.section-card {
margin-bottom: 1rem;
border-radius: 8px;
}

.section-header {
padding: 0.875rem 1rem;
}

.section-header h3 {
font-size: 1rem;
}

.section-content {
padding: 1rem;
}

/* Risk summary */
.risk-summary {
padding: 1.25rem;
}

.risk-level-display {
padding: 0.75rem 1.5rem;
font-size: 1.1rem;
}

/* Chart adjustments */
.chart-wrapper {
height: 220px;
}

/* Disaster list items */
.disaster-item {
padding: 0.75rem 0;
flex-wrap: wrap;
}

.disaster-info h4 {
font-size: 0.9rem;
}

.disaster-info p {
font-size: 0.75rem;
}

.disaster-cost {
font-size: 0.9rem;
}

/* Recommendation cards */
.recommendation-card {
padding: 1rem;
}

.recommendation-card h4 {
font-size: 0.95rem;
}

.recommendation-card p {
font-size: 0.8rem;
}

/* Insurance checklist */
.checklist-item {
padding: 0.625rem 0;
font-size: 0.85rem;
}

/* Recent events */
.event-item {
padding: 0.75rem;
}

/* Hero actions */
.hero-actions {
flex-direction: column;
gap: 0.5rem;
}

.hero-btn {
width: 100%;
justify-content: center;
padding: 0.875rem 1rem;
}
}

@media (max-width: 480px) {
.dashboard-hero { padding: 1.25rem 0.75rem; }
.dashboard-hero h1 { font-size: 1.3rem; }
.dashboard-hero p { font-size: 0.85rem; }

.dashboard-content { padding: 0.5rem; }

/* Single column stat cards on small phones */
.quick-facts, .stats-grid, .metrics-grid {
grid-template-columns: 1fr 1fr;
gap: 0.375rem;
}

.fact-card, .stat-card, .metric-card {
padding: 0.75rem 0.5rem;
}

.fact-card .fact-value, .stat-card .value, .metric-card .metric-value {
font-size: 1rem;
}

.fact-card .fact-label, .stat-card h4, .metric-card .metric-label {
font-size: 0.6rem;
line-height: 1.2;
}

.fact-icon { font-size: 1.25rem; }

/* Chart even smaller */
.chart-wrapper {
height: 180px;
}

/* Section content tighter */
.section-content {
padding: 0.75rem;
}

/* Risk level display */
.risk-level-display {
padding: 0.5rem 1rem;
font-size: 1rem;
border-radius: 30px;
}

/* Filters panel full width */
.filters-panel {
width: 100%;
max-width: 100%;
left: -100%;
}

/* Filter content */
.filters-content {
padding: 0.75rem;
}

.filter-section {
margin-bottom: 0.75rem;
}

.filter-group label {
font-size: 0.8rem;
}

.filter-group input,
.filter-group select {
font-size: 0.9rem;
padding: 0.625rem;
}
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
.hero-btn,
.filters-toggle,
.filter-btn-apply,
.filter-btn-reset,
.scope-toggle-btn {
min-height: 44px;
min-width: 44px;
}

.checklist-item,
.disaster-item,
.recommendation-card {
padding: 1rem;
}

/* Larger tap targets */
.filters-close {
width: 44px;
height: 44px;
font-size: 1.5rem;
}
}
