/* GenWeather Home — interactive weather map shell */

.gwh-map {
	margin: 0.75rem 0 1.75rem;
}

.gwh-map__shell {
	position: relative;
	border: 1px solid var(--gwh-border);
	border-radius: var(--gwh-radius);
	overflow: hidden;
	background: rgba(10, 16, 30, 0.92);
	box-shadow: var(--gwh-shadow-soft);
}

.gwh-map__canvas {
	width: 100%;
	height: min(68vh, 36rem);
	min-height: 22rem;
	background: #0a1222;
}

.gwh-map__canvas:focus {
	outline: 2px solid var(--gwh-cyan);
	outline-offset: -2px;
}

.gwh-map__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.85rem;
	padding: 0.75rem 0.9rem;
	border-bottom: 1px solid var(--gwh-border);
	background: rgba(7, 11, 22, 0.88);
}

.gwh-map__layers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.gwh-map__layer {
	appearance: none;
	border: 1px solid var(--gwh-border);
	border-radius: 999px;
	padding: 0.4rem 0.75rem;
	background: rgba(18, 28, 51, 0.75);
	color: var(--gwh-muted);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gwh-map__layer:hover,
.gwh-map__layer:focus-visible {
	color: var(--gwh-heading);
	border-color: rgba(59, 158, 255, 0.45);
}

.gwh-map__layer.is-active {
	color: #041018;
	background: linear-gradient(135deg, #5eb1ff, #22d3ee);
	border-color: transparent;
}

.gwh-map__layer:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.gwh-map__locate {
	appearance: none;
	margin-left: auto;
	border: 1px solid var(--gwh-border);
	border-radius: 10px;
	padding: 0.45rem 0.85rem;
	background: rgba(59, 158, 255, 0.12);
	color: var(--gwh-text);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 650;
	cursor: pointer;
}

.gwh-map__locate:hover,
.gwh-map__locate:focus-visible {
	border-color: rgba(59, 158, 255, 0.5);
	box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.14);
}

.gwh-map__status {
	margin: 0;
	padding: 0.55rem 0.9rem 0.7rem;
	color: var(--gwh-muted);
	font-size: 0.86rem;
	min-height: 1.4em;
}

.gwh-map__status.is-error {
	color: #fecaca;
}

.gwh-map__hint {
	margin: 0.35rem 0 0;
	color: var(--gwh-faint);
	font-size: 0.86rem;
}

.gwh-map-popup {
	min-width: 10rem;
	font-family: var(--gwh-font);
}

.gwh-map-popup__title {
	margin: 0 0 0.2rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #0a1222;
}

.gwh-map-popup__meta {
	margin: 0 0 0.55rem;
	font-size: 0.8rem;
	color: #4b5d78;
}

.gwh-map-popup__link {
	font-size: 0.84rem;
	font-weight: 650;
	color: #1d7ae5 !important;
}

.gwh-map .leaflet-control-zoom a {
	background: rgba(10, 16, 30, 0.92) !important;
	color: #eef3fb !important;
	border-color: rgba(238, 243, 251, 0.12) !important;
}

.gwh-map .leaflet-control-attribution {
	background: rgba(7, 11, 22, 0.75) !important;
	color: #93a4bf !important;
	font-size: 0.68rem !important;
}

.gwh-map .leaflet-control-attribution a {
	color: #5eb1ff !important;
}

.gwh-map-marker--you .gwh-map-marker__pin {
	background: #22d3ee;
	box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.25);
}

.gwh-map-marker__pin {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #3b9eff;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.gwh-map-marker--city .gwh-map-marker__pin {
	width: 10px;
	height: 10px;
	background: #93a4bf;
}

@media (max-width: 768px) {
	.gwh-map__canvas {
		height: min(62vh, 28rem);
		min-height: 18rem;
	}

	.gwh-map__toolbar {
		padding: 0.65rem 0.7rem;
	}

	.gwh-map__locate {
		margin-left: 0;
		width: 100%;
	}

	.gwh-map__layers {
		width: 100%;
	}
}

/* Light theme — map chrome surfaces */
body.gwh-document[data-gw-theme="light"] .gwh-map__shell,
body.gwh-document.gwh-theme-light .gwh-map__shell {
	background: #ffffff;
	border-color: var(--gwh-border);
}

body.gwh-document[data-gw-theme="light"] .gwh-map__toolbar,
body.gwh-document.gwh-theme-light .gwh-map__toolbar {
	background: #f8fafc;
	border-bottom-color: var(--gwh-border);
}

body.gwh-document[data-gw-theme="light"] .gwh-map__layer,
body.gwh-document[data-gw-theme="light"] .gwh-map__locate,
body.gwh-document.gwh-theme-light .gwh-map__layer,
body.gwh-document.gwh-theme-light .gwh-map__locate {
	background: #ffffff;
	border-color: var(--gwh-border);
	color: var(--gwh-heading);
}

body.gwh-document[data-gw-theme="light"] .gwh-map__layer:hover,
body.gwh-document[data-gw-theme="light"] .gwh-map__layer:focus-visible,
body.gwh-document.gwh-theme-light .gwh-map__layer:hover,
body.gwh-document.gwh-theme-light .gwh-map__layer:focus-visible {
	color: var(--gwh-heading);
}
