.mwm-widget {
	--mwm-primary: #0b3d91;
	--mwm-accent: #ff6a00;
	--mwm-height: 620px;
	--mwm-bg: #ffffff;
	--mwm-border: #e2e6ea;
	--mwm-text: #1d2530;
	--mwm-muted: #6b7684;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--mwm-text);
	background: var(--mwm-bg);
	border: 1px solid var(--mwm-border);
	border-radius: 10px;
	overflow: hidden;
	max-width: 100%;
}

.mwm-widget *,
.mwm-widget *::before,
.mwm-widget *::after {
	box-sizing: border-box;
}

.mwm-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	background: var(--mwm-primary);
	color: #fff;
}

.mwm-logo {
	max-height: 44px;
	max-width: 120px;
	object-fit: contain;
}

.mwm-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 700;
}

.mwm-subtitle {
	margin: 2px 0 0;
	font-size: 0.85rem;
	opacity: 0.9;
}

.mwm-bare-title {
	padding: 12px 16px 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--mwm-primary);
	border-bottom: 2px solid var(--mwm-primary);
	margin: 0 16px;
	padding-bottom: 8px;
}

.mwm-day-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	padding: 10px 0;
	background: #fff;
	border-bottom: 1px solid var(--mwm-border);
	font-size: 0.82rem;
}

.mwm-day-tab {
	border: none;
	background: transparent;
	color: var(--mwm-text);
	padding: 4px 12px;
	font-size: 0.82rem;
	border-radius: 0;
	cursor: pointer;
	position: relative;
	transition: color 0.15s ease;
}

.mwm-day-tab + .mwm-day-tab {
	border-left: 1px solid var(--mwm-border);
}

.mwm-day-tab:hover {
	color: var(--mwm-primary);
}

.mwm-day-tab.is-active {
	background: transparent;
	border-color: var(--mwm-border);
	color: var(--mwm-primary);
	font-weight: 700;
}

.mwm-day-tab.is-active::after {
	content: '';
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: -11px;
	height: 3px;
	background: var(--mwm-primary);
}

.mwm-body {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.mwm-map-wrap {
	position: relative;
	flex: 1 1 60%;
	min-width: 280px;
	height: var(--mwm-height);
	padding: 10px;
	overflow: hidden;
}

.mwm-zoom-controls {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mwm-zoom-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--mwm-border);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.95);
	color: #1d2530;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
	-webkit-tap-highlight-color: transparent;
}

.mwm-zoom-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin: 0;
	pointer-events: none;
}

.mwm-zoom-btn:hover:not(:disabled) {
	background: #fff;
	border-color: var(--mwm-primary);
	color: var(--mwm-primary);
}

.mwm-zoom-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.mwm-map {
	width: 100%;
	height: 100%;
	display: block;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}

.mwm-map.is-panning,
.mwm-map-wrap.is-panning {
	cursor: grabbing;
}

.mwm-district {
	stroke: #ffffff;
	stroke-width: 1.1;
	fill: #CFD6DD;
	cursor: grab;
	transition: filter 0.12s ease, stroke-width 0.12s ease, fill 0.15s ease;
	vector-effect: non-scaling-stroke;
}

.mwm-district.mwm-alert-red {
	fill: #FF0000;
}

.mwm-district.mwm-alert-orange {
	fill: #FFA500;
}

.mwm-district.mwm-alert-yellow {
	fill: #FFFF00;
}

.mwm-district.mwm-alert-green {
	fill: #7CFC00;
}

.mwm-district.mwm-alert-nodata {
	fill: #CFD6DD;
}

.mwm-district:hover,
.mwm-district.is-active {
	filter: brightness(0.9);
	stroke: #1d2530;
	stroke-width: 1.8;
}

.mwm-district-label {
	pointer-events: none;
	font-size: 8px;
	fill: rgba(20, 25, 32, 0.75);
	text-anchor: middle;
	font-weight: 700;
	paint-order: stroke;
	stroke: rgba(255, 255, 255, 0.7);
	stroke-width: 2px;
}

.mwm-map-status {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
	color: var(--mwm-muted);
	z-index: 2;
	pointer-events: none;
}

.mwm-map-status:empty {
	display: none;
}

.mwm-tooltip {
	position: absolute;
	pointer-events: none;
	background: #1d2530;
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.78rem;
	line-height: 1.4;
	max-width: 220px;
	z-index: 5;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	transform: translate(-50%, -110%);
}

.mwm-tooltip strong {
	display: block;
	font-size: 0.85rem;
	margin-bottom: 2px;
}

.mwm-popup {
	position: absolute;
	z-index: 6;
	width: 280px;
	max-width: calc(100% - 16px);
	max-height: min(420px, calc(100% - 16px));
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	border: 1px solid var(--mwm-border);
	padding: 14px 16px 10px;
	animation: mwm-pop-in 0.14s ease-out;
	scrollbar-width: thin;
	scrollbar-color: #9aa3af #f1f3f5;
}

.mwm-popup::-webkit-scrollbar {
	width: 8px;
}

.mwm-popup::-webkit-scrollbar-track {
	background: #f1f3f5;
	border-radius: 4px;
}

.mwm-popup::-webkit-scrollbar-thumb {
	background: #9aa3af;
	border-radius: 4px;
}

.mwm-popup::-webkit-scrollbar-thumb:hover {
	background: #7b8794;
}

@keyframes mwm-pop-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.mwm-popup-close {
	position: absolute;
	top: 6px;
	right: 8px;
	border: none;
	background: transparent;
	font-size: 1.1rem;
	line-height: 1;
	color: var(--mwm-muted);
	cursor: pointer;
	padding: 4px;
}

.mwm-popup-close:hover {
	color: var(--mwm-text);
}

.mwm-popup-name {
	margin: 0 20px 8px 0;
	font-size: 1rem;
	color: var(--mwm-primary);
}

.mwm-day-row {
	display: grid;
	grid-template-columns: 74px 10px 1fr;
	align-items: center;
	gap: 8px;
	font-size: 0.76rem;
	padding: 4px 0;
	color: var(--mwm-text);
}

.mwm-day-row + .mwm-day-row {
	border-top: 1px solid #f0f2f4;
}

.mwm-day-row.is-current {
	font-weight: 700;
}

.mwm-day-row-date {
	color: var(--mwm-muted);
	white-space: nowrap;
}

.mwm-day-row-color {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.mwm-day-row-text {
	line-height: 1.3;
}

.mwm-legend-hint {
	font-size: 0.76rem;
	color: var(--mwm-muted);
	margin: 0 0 10px;
}

.mwm-legend {
	flex: 0 0 260px;
	max-width: 100%;
	padding: 18px 20px;
	border-left: 1px solid var(--mwm-border);
	background: #fafbfc;
}

.mwm-legend h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
}

.mwm-legend ul {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.mwm-legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	margin-bottom: 8px;
	color: var(--mwm-text);
}

.mwm-swatch {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	flex: 0 0 14px;
	display: inline-block;
}

.mwm-swatch--nodata {
	background: #CFD6DD;
	border: 1px solid #b0b8c0;
}

.mwm-district-detail {
	border-top: 1px dashed var(--mwm-border);
	padding-top: 12px;
}

.mwm-dd-name {
	margin: 0 0 4px;
	font-size: 1rem;
	color: var(--mwm-primary);
}

.mwm-dd-days .mwm-day-row {
	font-size: 0.8rem;
}

.mwm-popup-councils,
.mwm-dd-councils {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--mwm-border);
}

.mwm-popup-councils-title,
.mwm-dd-councils-title {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--mwm-primary);
}

.mwm-popup-councils-list,
.mwm-dd-councils-list {
	margin: 0;
	padding: 0 0 0 16px;
	font-size: 0.75rem;
	line-height: 1.45;
	color: #334;
}

.mwm-popup-councils-list li,
.mwm-dd-councils-list li {
	margin-bottom: 4px;
}

.mwm-popup-councils-list em,
.mwm-dd-councils-list em {
	font-style: normal;
	color: #6b7684;
}

.mwm-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 20px;
	font-size: 0.72rem;
	color: var(--mwm-muted);
	border-top: 1px solid var(--mwm-border);
	background: #fafbfc;
}

/* Current Weather across Major Cities (Maharashtra) */
.mwm-cities {
	background: #fff;
	color: #1d2530;
	padding: 18px 20px 22px;
	border-top: 1px solid #dee2e6;
}

.mwm-cities-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 14px;
}

.mwm-cities-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a237e;
}

.mwm-cities-search-wrap {
	flex: 1 1 220px;
	max-width: 360px;
	margin-left: auto;
}

.mwm-cities-search {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cfd6dd;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 0.9rem;
	line-height: 1.3;
	color: #1d2530;
	background: #fff;
}

.mwm-cities-search:focus {
	outline: none;
	border-color: var(--mwm-primary);
	box-shadow: 0 0 0 2px rgba(11, 61, 145, 0.12);
}

.mwm-cities .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.mwm-cities-empty {
	text-align: center;
	color: #6b7684;
	padding: 18px 12px !important;
}

.mwm-cities-count {
	font-weight: 600;
	color: #1a237e;
	margin-left: 4px;
}

.mwm-cities-count[hidden] {
	display: none;
}

.mwm-cities-status {
	font-size: 0.85rem;
	color: #6b7684;
	margin-bottom: 10px;
}

.mwm-cities-status:empty,
.mwm-cities-status[hidden] {
	display: none;
}

.mwm-cities-table-wrap {
	max-height: 320px;
	overflow-x: auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	border: 1px solid #dee2e6;
	border-radius: 0;
	background: #fff;
	scrollbar-width: thin;
	scrollbar-color: #9aa3af #f1f3f5;
}

.mwm-cities-table-wrap::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.mwm-cities-table-wrap::-webkit-scrollbar-track {
	background: #f1f3f5;
}

.mwm-cities-table-wrap::-webkit-scrollbar-thumb {
	background: #9aa3af;
	border-radius: 4px;
}

.mwm-cities-table-wrap::-webkit-scrollbar-thumb:hover {
	background: #6b7684;
}

.mwm-cities-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	min-width: 1040px;
	color: #212529;
	background: #fff;
}

.mwm-cities-table th,
.mwm-cities-table td {
	padding: 12px 14px;
	text-align: left;
	border: 1px solid #dee2e6;
	vertical-align: middle;
	white-space: nowrap;
}

.mwm-cities-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #1a237e;
	color: #fff;
	font-weight: 700;
	font-size: 0.82rem;
	text-transform: none;
	letter-spacing: 0;
	opacity: 1;
	box-shadow: none;
	border-color: rgba(255, 255, 255, 0.35);
}

.mwm-cities-table tbody tr:nth-child(odd) {
	background: #f8f9fa;
}

.mwm-cities-table tbody tr:nth-child(even) {
	background: #ffffff;
}

.mwm-cities-table tbody tr:hover {
	background: #eef1f6;
}

.mwm-city-name {
	font-weight: 700;
	color: #1d2530;
}

.mwm-city-location {
	font-weight: 600;
	color: #3d4a5c;
}

.mwm-city-temp {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1d2530;
}

.mwm-city-humidity {
	color: #1565c0;
	font-weight: 600;
}

.mwm-humidity-icon {
	width: 0.65em;
	height: 0.9em;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: #1976d2;
	display: inline-block;
	margin-right: 6px;
	vertical-align: middle;
}

.mwm-city-alert {
	white-space: nowrap;
	min-width: 100px;
}

.mwm-alert-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 6px;
	flex-shrink: 0;
}

.mwm-alert-label {
	font-size: 0.82rem;
	vertical-align: middle;
}

.mwm-city-council {
	font-weight: 600;
	min-width: 160px;
}

.mwm-city-division {
	white-space: nowrap;
}

.mwm-city-condition {
	white-space: normal;
	min-width: 140px;
}

.mwm-city-condition span {
	vertical-align: middle;
}

.mwm-wx-icon {
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-right: 6px;
	vertical-align: middle;
	border-radius: 50%;
	position: relative;
	background: #e3e8ef;
}

.mwm-wx-sun {
	background: radial-gradient(circle at center, #ffb300 0 45%, transparent 46%),
		conic-gradient(from 0deg, #ffb300 0 8%, transparent 8% 25%, #ffb300 25% 33%, transparent 33% 50%, #ffb300 50% 58%, transparent 58% 75%, #ffb300 75% 83%, transparent 83% 100%);
	background-size: 100% 100%, 70% 70%;
	background-position: center, center;
	background-repeat: no-repeat;
}

.mwm-wx-cloud,
.mwm-wx-partly {
	background: #cfd8e3;
	border-radius: 10px;
	box-shadow: 6px 2px 0 #aeb9c6;
}

.mwm-wx-partly::after {
	content: '';
	position: absolute;
	right: -2px;
	top: -2px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ffb300;
}

.mwm-wx-rain {
	background: linear-gradient(#7a9bb8, #4f7394);
	box-shadow: inset 0 -6px 0 rgba(80, 140, 220, 0.45);
}

.mwm-wx-haze {
	background: repeating-linear-gradient(
		180deg,
		#9aa3af 0 2px,
		transparent 2px 5px
	);
	border-radius: 2px;
}

.mwm-forecast-link {
	color: #1a237e;
	font-weight: 700;
	text-decoration: underline;
}

.mwm-forecast-link:hover {
	color: #0d47a1;
}

/* List of Municipal Councils (Division + Council Name) */
.mwm-councils {
	background: #fff;
	color: #1d2530;
	padding: 18px 20px 22px;
	border-top: 1px solid #dee2e6;
}

.mwm-councils-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a237e;
}

.mwm-councils-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 10px;
	font-size: 0.85rem;
	color: #6b7684;
}

.mwm-councils-count {
	font-weight: 600;
	color: #1d2530;
}

.mwm-councils-status {
	font-size: 0.85rem;
	color: #6b7684;
	margin-bottom: 10px;
}

.mwm-councils-status:empty,
.mwm-councils-status[hidden] {
	display: none;
}

.mwm-councils-table-wrap {
	max-height: 360px;
	overflow-x: auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	border: 1px solid #dee2e6;
	background: #fff;
	scrollbar-width: thin;
	scrollbar-color: #9aa3af #f1f3f5;
}

.mwm-councils-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	min-width: 520px;
	color: #212529;
	background: #fff;
}

.mwm-councils-table th,
.mwm-councils-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid #e9ecef;
	vertical-align: top;
}

.mwm-councils-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #0b3d91;
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

.mwm-councils-table tbody tr:nth-child(even) {
	background: #f8f9fa;
}

.mwm-councils-table tbody tr:hover {
	background: #eef3fb;
}

.mwm-council-name {
	font-weight: 600;
}

@media (max-width: 720px) {
	.mwm-body {
		flex-direction: column;
	}
	.mwm-map-wrap {
		height: 420px;
		flex: 1 1 auto;
	}
	.mwm-legend {
		border-left: none;
		border-top: 1px solid var(--mwm-border);
		flex: 1 1 auto;
	}
	.mwm-header {
		padding: 12px 14px;
	}
	.mwm-title {
		font-size: 1.05rem;
	}
	.mwm-popup {
		left: 8px !important;
		right: 8px;
		bottom: 8px;
		top: auto !important;
		width: auto;
		max-width: none;
	}
	.mwm-cities {
		padding: 14px 12px 16px;
	}
	.mwm-cities-search-wrap {
		flex: 1 1 100%;
		max-width: none;
		margin-left: 0;
	}
	.mwm-cities-table-wrap {
		max-height: 260px;
	}
	.mwm-councils {
		padding: 14px 12px 16px;
	}
	.mwm-councils-table-wrap {
		max-height: 260px;
	}
}
