/* Map description styling - matches disaster map style */
.map-description {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-left: 4px solid #2a5298;
	padding: 1.25rem 1.5rem;
	margin: 0 0 1.5rem 0;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.map-description h3 {
	color: #2a5298;
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 0.75rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.map-description h3::before {
	content: "";
	width: 4px;
	height: 20px;
	background: linear-gradient(180deg, #2a5298 0%, #1e3c72 100%);
	border-radius: 2px;
	flex-shrink: 0;
}

.map-description p {
	color: #495057;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 0.5rem 0;
}

.map-description p:last-child {
	margin-bottom: 0;
}

.map-description strong {
	color: #2a5298;
	font-weight: 600;
}

.filters {
	background: white;
	padding: 1.5rem;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	margin-bottom: 2rem;
}

.filter-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.filter-item {
	display: flex;
	flex-direction: column;
}

.filter-item label {
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #555;
}

.filter-item select,
.filter-item input[type="number"] {
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.95rem;
}

/* CPI Tooltip Styling */
.cpi-label-container {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	color: #555;
	margin-bottom: 0.5rem;
}

.info-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: help;
}

.info-tooltip .info-icon {
	width: 16px;
	height: 16px;
	color: #2a5298;
	transition: color 0.2s;
}

.info-tooltip:hover .info-icon {
	color: #1e3c72;
}

.info-tooltip .tooltip-text {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: 280px;
	background: #1e3c72;
	color: white;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 1000;
	transition: opacity 0.2s, visibility 0.2s;
}

.info-tooltip .tooltip-text::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #1e3c72;
}

.info-tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}

/* Toggle Switch Styling */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 120px;
	height: 40px;
	cursor: pointer;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 40px;
	transition: 0.3s;
	display: flex;
	align-items: center;
	padding: 0 8px;
}

.toggle-slider::before {
	content: "";
	position: absolute;
	height: 32px;
	width: 32px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	border-radius: 50%;
	transition: 0.3s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
	background-color: #2a5298;
}

.toggle-switch input:checked + .toggle-slider::before {
	transform: translateX(80px);
}

.toggle-text {
	display: none;
}

.btn {
	padding: 0.6rem 1.5rem;
	background: #2a5298;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 500;
	margin-right: 0.5rem;
}

.btn:hover {
	background: #1e3c72;
}

.btn-secondary {
	background: #6c757d;
}

.btn-secondary:hover {
	background: #5a6268;
}

.chart-container {
	background: white;
	padding: 1.5rem;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	margin-bottom: 2rem;
}

.chart-container h3 {
	margin-bottom: 1rem;
	color: #2a5298;
}

#climatologyChart, #probabilityChart {
	max-height: 400px;
	height: 400px;
}

.disaster-type-toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.disaster-type-toggle label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: #f5f5f5;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
}

.disaster-type-toggle input[type="checkbox"] {
	margin: 0;
}

.disaster-type-toggle input[type="checkbox"]:checked + span {
	font-weight: 600;
}

.disaster-type-toggle label.selected {
	background: #e6f2fd;
	border-color: #2a5298;
}

.disaster-color-marker {
	width: 16px;
	height: 16px;
	border-radius: 3px;
	display: inline-block;
	margin-right: 0.25rem;
	border: 1px solid rgba(0,0,0,0.1);
}