/* 날씨 위젯 · 상세 */
.tr-wx {
	box-sizing: border-box;
	margin: 10px 0 12px;
	padding: 10px 12px 8px;
	background: var(--bg-primary, #fff);
	border: 1px solid var(--border-color, #e5e7ea);
	border-radius: 6px;
}
.tr-wx *,
.tr-wx *::before,
.tr-wx *::after { box-sizing: border-box; }

.tr-wx__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0 0 6px;
}
.tr-wx__title {
	margin: 0;
	font-size: 1em;
	font-weight: 700;
}
.tr-wx__region {
	font-size: 0.82em;
	color: var(--text-secondary, #6c757d);
}
.tr-wx__more {
	margin-left: auto;
	font-size: 0.82em;
	font-weight: 700;
	color: var(--color-accent, #b91c1c);
	text-decoration: none;
}
.tr-wx__more:hover { text-decoration: underline; }

.tr-wx__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	align-content: start;
}
@media (min-width: 420px) {
	.tr-wx:not(.tr-wx--compact) .tr-wx__body {
		grid-template-columns: 1.1fr 1fr;
		align-items: start;
	}
}

.tr-wx__now {
	display: flex;
	gap: 10px;
	align-items: center;
}
.tr-wx__icon { font-size: 2rem; line-height: 1; }
.tr-wx__now-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tr-wx__temp {
	font-size: 1.6rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.tr-wx__sky { font-size: 0.9em; font-weight: 600; }
.tr-wx__range {
	font-size: 0.82em;
	color: var(--text-secondary, #6c757d);
}
.tr-wx__air {
	font-size: 0.78em;
	color: #2563eb;
	font-weight: 600;
}

.tr-wx__hourly {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tr-wx__hourly li {
	flex: 1;
	text-align: center;
	font-size: 0.72em;
	color: var(--text-secondary, #6c757d);
}
.tr-wx__h-ico { display: block; font-size: 1.1rem; margin: 2px 0; }
.tr-wx__h-temp {
	display: block;
	font-weight: 700;
	color: var(--text-primary, #18191a);
}

.tr-wx__meta,
.tr-wx__empty {
	margin: 8px 0 0;
	font-size: 0.75em;
	color: var(--text-secondary, #6c757d);
}

/* 상세 페이지 */
.tr-wx-page {
	max-width: 800px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}
.tr-wx-page__section-title {
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--press-rule, #b91c1c);
	font-size: 1.15rem;
	font-weight: 800;
}
.tr-wx-page__section-lead {
	margin: 0 0 12px;
	font-size: 0.88em;
	color: var(--text-secondary, #666);
}
.tr-wx-page__source {
	margin: 24px 0 0;
	font-size: 0.78em;
	color: var(--text-secondary, #6c757d);
	line-height: 1.45;
}

/* 전국 요약 지도 */
.tr-wx-map {
	margin: 28px 0 8px;
}
.tr-wx-map__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
}
.tr-wx-map__tool {
	min-width: 2rem;
	padding: 5px 10px;
	border: 1px solid var(--border-color, #e5e7ea);
	border-radius: 6px;
	background: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--text-primary, #18191a);
	cursor: pointer;
	line-height: 1.2;
}
.tr-wx-map__tool:hover,
.tr-wx-map__tool:focus {
	border-color: var(--press-rule, #b91c1c);
	color: var(--press-rule, #b91c1c);
}
.tr-wx-map__tool.is-primary {
	border-color: var(--press-rule, #b91c1c);
	color: var(--press-rule, #b91c1c);
}
.tr-wx-map__tool-sep {
	width: 1px;
	height: 1.1rem;
	margin: 0 2px;
	background: var(--border-color, #e5e7ea);
}
.tr-wx-map__stage {
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: 0 auto 16px;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	background: #eef4fa;
	border: 1px solid var(--border-color, #e5e7ea);
	overflow: hidden;
	touch-action: none;
	cursor: grab;
	user-select: none;
}
.tr-wx-map__stage.is-dragging {
	cursor: grabbing;
}
.tr-wx-map__canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	aspect-ratio: 900 / 1398;
	height: auto;
	transform-origin: 0 0;
	will-change: transform;
}
.tr-wx-map__land-img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}
/* 칩은 지도 transform 밖에 두어 확대해도 선명하게 유지 */
.tr-wx-map__pins {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}
.tr-wx-map__pin {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, -90%);
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 3px;
	min-width: 0;
	padding: 3px 7px 3px 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: var(--text-primary, #18191a);
	line-height: 1.1;
	z-index: 1;
	white-space: nowrap;
	pointer-events: auto;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tr-wx-map__pin:hover,
.tr-wx-map__pin:focus {
	border-color: var(--press-rule, #b91c1c);
	box-shadow: 0 2px 8px rgba(185, 28, 28, 0.18);
	z-index: 5;
}
.tr-wx-map__pin.is-active {
	border-color: var(--press-rule, #b91c1c);
	background: #fff;
	box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.25);
	z-index: 4;
}
.tr-wx-map__pin-ico {
	font-size: 0.85rem;
	line-height: 1;
}
.tr-wx-map__pin-temp {
	font-size: 0.75rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.tr-wx-map__pin-name {
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--text-secondary, #6c757d);
}
/* 한반도 전체(축소)에서는 이름 숨겨 겹침 완화 */
.tr-wx-map[data-zoom="full"] .tr-wx-map__pin-name {
	display: none;
}
.tr-wx-map[data-zoom="full"] .tr-wx-map__pin {
	padding: 2px 6px;
}
.tr-wx-map__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 8px;
}
@media (min-width: 640px) {
	.tr-wx-map__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.tr-wx-map__list-item a {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border: 1px solid var(--border-color, #e5e7ea);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	background: var(--bg-primary, #fff);
	font-size: 0.82em;
}
.tr-wx-map__list-item a:hover {
	border-color: var(--press-rule, #b91c1c);
}
.tr-wx-map__list-item.is-active a {
	border-color: var(--press-rule, #b91c1c);
	box-shadow: inset 0 0 0 1px var(--press-rule, #b91c1c);
}
.tr-wx-map__list-name {
	font-weight: 700;
}
.tr-wx-map__list-sky {
	color: var(--text-secondary, #6c757d);
	font-size: 0.92em;
}
.tr-wx-map__list-temp {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.tr-wx-page__hero h1 {
	margin: 0 0 8px;
	font-size: 1.55rem;
	font-weight: 800;
}
.tr-wx-page__lead {
	margin: 0 0 16px;
	color: var(--text-secondary, #6c757d);
	font-size: 0.92em;
	line-height: 1.45;
}
.tr-wx-page__panel {
	margin: 0 0 20px;
}
.tr-wx-page__note {
	margin: 16px 0 0;
	font-size: 0.82em;
	color: var(--text-secondary, #6c757d);
	line-height: 1.45;
}
.tr-wx-page__select {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0 0 14px;
}
.tr-wx-page__select label {
	font-size: 0.88em;
	font-weight: 700;
}
.tr-wx-page__select select {
	min-width: min(100%, 280px);
	padding: 6px 10px;
	border: 1px solid var(--border-color, #e5e7ea);
	border-radius: 6px;
	background: #fff;
	font-size: 0.92em;
}

.tr-wx-page__locate {
	margin: 12px 0 20px;
}
.tr-wx-page__locate button {
	padding: 8px 14px;
	border: 1px solid var(--color-accent, #b91c1c);
	border-radius: 6px;
	background: #fff;
	color: var(--color-accent, #b91c1c);
	font-weight: 700;
	cursor: pointer;
}
.tr-wx-page__locate button:hover {
	background: var(--color-accent, #b91c1c);
	color: #fff;
}
.tr-wx-page__locate-msg {
	margin: 8px 0 0;
	font-size: 0.85em;
	color: var(--text-secondary, #6c757d);
}
