/* rsmc/station-map — observation map block */

.rsmc-station-map-wrap {
	margin: 1em 0;
}

.rsmc-station-map-title {
	margin: 0 0 .5em;
}

/* The metric picker reuses the forecast `.rsmc-floating-controls` / `.rsmc-display-btn`
 * styles from frontend-map.css — no tab styles needed here. */

.rsmc-station-map {
	width: 100%;
	min-height: 240px;
	border-radius: 8px;
	overflow: hidden;
	background: #e9eef2;
	position: relative;
}

.rsmc-station-map-loading,
.rsmc-station-map-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rsmc-muted, #646970);
	font-size: .9rem;
	text-align: center;
	padding: 1em;
}

/* Markers — the temp badge, wind/rain pictos and the transparent `.rsmc-marker`
 * box are produced by WeatherUtils + frontend-map.css (shared with the forecast
 * map). Only the value chip used for humidity/pressure is defined here. */
.rsmc-map-chip {
	display: inline-block;
	min-width: 2.4em;
	text-align: center;
	padding: .15em .5em;
	border-radius: 999px;
	background: var(--rsmc-primary, #2271b1);
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.rsmc-map-chip.is-empty,
.rsmc-map-chip.is-stale {
	background: var(--rsmc-muted, #8a8f94);
	opacity: .85;
}

/* Known sensor fault (invalidation) — visually distinct from stale: amber, not grey. */
.rsmc-map-chip.is-invalid {
	background: #b26a00;
	opacity: .95;
}

/* Invalidated value in a popup row: amber, struck-through, never reads as a real measurement. */
.rsmc-obs-v--invalid {
	color: #b26a00;
	font-style: italic;
	text-decoration: line-through;
}

/* Popup — sits inside the shared `.rsmc-popup` / `.rsmc-popup-content` chrome. */
.rsmc-obs-popup .rsmc-map-popup-dept {
	color: var(--rsmc-muted, #646970);
	font-weight: 400;
}

/* Observation card: temp-badge header + a single-column key→value list. Full-width rows + wrapping
 * values fix the overflow of the old 2-column grid (long wind/feels values were clipped). */
.rsmc-obs-card {
	margin: .2em 0 .1em;
}

.rsmc-obs-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	margin-bottom: .7em;
}

.rsmc-obs-time {
	font-size: .8rem;
	color: var(--rsmc-muted, #646970);
}

.rsmc-obs-empty {
	text-align: center;
	color: var(--rsmc-muted, #646970);
	padding: .6em 0;
}

.rsmc-obs-rows {
	display: flex;
	flex-direction: column;
	gap: .35em;
}

.rsmc-obs-row {
	display: flex;
	align-items: center;
	gap: .5em;
	font-size: .82rem;
	line-height: 1.3;
	padding: .3em .5em;
	background: #f6f8fb;
	border-radius: 5px;
}

.rsmc-obs-picto {
	width: 1.25em;
	height: 1.25em;
	object-fit: contain;
	flex: 0 0 auto;
}

.rsmc-obs-row .rsmc-obs-k {
	color: var(--rsmc-muted, #646970);
	font-weight: 600;
	text-transform: uppercase;
	font-size: .72rem;
	letter-spacing: .02em;
	flex: 0 0 auto;
}

.rsmc-obs-row .rsmc-obs-v {
	margin-left: auto;
	text-align: right;
	color: #222;
	font-weight: 600;
	/* Wrap long values (e.g. "12 km/h SSO · Gusts 34") instead of clipping. */
	white-space: normal;
	overflow-wrap: anywhere;
}

.rsmc-popup-stale {
	margin: .2em 0 .6em;
	padding: .35em .6em;
	border-radius: 6px;
	background: #fcf3e6;
	border: 1px solid #f0d9b5;
	color: #8a5a00;
	font-size: .76rem;
	text-align: center;
}

.rsmc-map-popup-meta {
	margin-top: .4em;
	font-size: .72rem;
	color: var(--rsmc-muted, #646970);
	text-align: center;
}
