/* City weather pages (dotonmap-weather-pages.php). Theme tokens: --va-accent navy, --va-hover red. */

.dotm-wxp-head .breadcrumbs { margin-bottom: 10px; }
.dotm-wxp-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 14px; }
.dotm-wxp-head .dotm-wxp-sub { margin: 0; font-size: 15px; color: #6b6f80; }
.dotm-wxp-head .dotm-wxp-back { font-size: 14px; font-weight: 500; color: var(--va-accent); text-decoration: none; background: var(--va-white); border: 1px solid #dfe3ec; border-radius: 999px; padding: 7px 14px; }
.dotm-wxp-head .dotm-wxp-back:hover { border-color: var(--va-accent); }

/* The theme's .va-publications__wrapper is a wrapping flex row: take the full width. */
.dotm-wxp, .dotm-wxp-seo { flex: 1 1 100%; width: 100%; box-sizing: border-box; }
.dotm-wxp { display: flex; flex-direction: column; gap: 20px; margin: 8px 0 28px; color: #4a4f63; }
.dotm-wxp-card { background: var(--va-white); border-radius: 20px; box-shadow: 0 10px 30px rgba(33, 41, 74, .08); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dotm-wxp-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.dotm-wxp .dotm-wxp-card__head h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--va-accent); }
.dotm-wxp .dotm-wxp-hint { font-size: 13px; color: #6b6f80; }
.dotm-wxp .dotm-wxp-nodata { margin: 0; font-size: 16px; }

.dotm-wxp-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; }
.dotm-wxp-now__top { display: flex; align-items: center; gap: 14px; }
.dotm-wxp-now__top .dotm-wx-ico { flex: none; }
.dotm-wxp-now__t { font-size: 56px; font-weight: 300; line-height: 1; color: var(--va-accent); }
.dotm-wxp-now__c { margin-top: 4px; font-size: 16px; }
.dotm-wxp-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.dotm-wxp-kv div { min-width: 0; }
.dotm-wxp-kv dt { font-size: 12px; color: #6b6f80; }
.dotm-wxp-kv dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--va-accent); }

.dotm-wxp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dotm-wxp-fact { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--va-back); min-width: 0; }
.dotm-wxp-fact__ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e9ecf4; }
.dotm-wxp-fact--ok .dotm-wxp-fact__ic { background: #dcfce7; }
.dotm-wxp-fact--rain .dotm-wxp-fact__ic { background: #e4f0fd; }
.dotm-wxp-fact--warm .dotm-wxp-fact__ic { background: #fef3c7; }
.dotm-wxp-fact b { display: block; font-size: 15px; color: var(--va-accent); }
.dotm-wxp-fact span { font-size: 13px; color: #6b6f80; }

.dotm-wxp-days { display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: 8px; }
.dotm-wxp-tile { border: 1.5px solid transparent; background: var(--va-back); border-radius: 14px; padding: 10px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; min-width: 0; font-family: inherit; color: inherit; }
.dotm-wxp-tile:hover { border-color: #d5dae6; }
.dotm-wxp-tile[aria-pressed="true"] { background: var(--va-white); border-color: var(--va-accent); box-shadow: 0 6px 18px rgba(33, 41, 74, .12); }
.dotm-wxp-tile__d { font-size: 14px; font-weight: 700; color: var(--va-accent); }
.dotm-wxp-tile__date { font-size: 12px; color: #6b6f80; margin-top: -3px; white-space: nowrap; }
.dotm-wxp-tile__t { font-size: 15px; color: var(--va-accent); white-space: nowrap; }
.dotm-wxp-tile__t span { color: #6b6f80; margin-left: 4px; }
.dotm-wxp-tile__r { font-size: 12px; color: #6b6f80; white-space: nowrap; }
.dotm-wxp-tile__r.is-wet, .dotm-wxp-row__p.is-wet { color: #2a76d2; font-weight: 500; }

.dotm-wxp-list { display: none; flex-direction: column; }
.dotm-wxp-row { display: grid; grid-template-columns: 62px 28px 52px 32px minmax(0, 1fr) 32px; align-items: center; gap: 6px; padding: 9px 6px; border: 0; border-top: 1px solid #ececf4; background: none; cursor: pointer; text-align: left; border-radius: 10px; font-family: inherit; color: inherit; }
.dotm-wxp-row:first-child { border-top: 0; }
.dotm-wxp-row[aria-pressed="true"] { background: var(--va-back); }
.dotm-wxp-row__d { font-size: 14px; font-weight: 700; color: var(--va-accent); white-space: nowrap; }
.dotm-wxp-row__p { font-size: 12px; color: #6b6f80; white-space: nowrap; }
.dotm-wxp-row__lo { font-size: 14px; color: #6b6f80; text-align: right; }
.dotm-wxp-row__hi { font-size: 14px; font-weight: 700; color: var(--va-accent); }
.dotm-wxp-bar { position: relative; height: 6px; border-radius: 3px; background: #edf0f6; }
.dotm-wxp-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #5b8def, #f2b544 70%, #e8743b); }

/* Chart: temperature by hour + rain (server-side SVG). */
.dotm-wxp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #6b6f80; }
.dotm-wxp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dotm-wxp-lg { display: inline-block; }
.dotm-wxp-lg--line { width: 18px; height: 3px; border-radius: 2px; background: #be0000; }
.dotm-wxp-lg--dash { width: 18px; border-top: 2px dashed #9aa3b8; }
.dotm-wxp-lg--bar { width: 8px; height: 12px; border-radius: 2px; background: #2a76d2; }
.dotm-wxp-lg--pop { width: 18px; height: 2px; background: #7b8db5; }
.dotm-wxp-lg--night { width: 14px; height: 12px; border-radius: 3px; background: rgba(33, 41, 74, .12); }
.dotm-wxp-chart { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.dotm-wxp-chart svg { display: block; width: 100%; height: auto; font-family: inherit; }
.dotm-wxp-chart text { font-size: 11px; fill: #6b6f80; }
.dotm-wxp-chart .dotm-wxp-chart__ax--pop { fill: #7b8db5; }
.dotm-wxp-chart .dotm-wxp-chart__ax--typ { font-weight: 700; }
.dotm-wxp-chart .dotm-wxp-chart__max { font-size: 12px; font-weight: 700; fill: var(--va-accent); }
.dotm-wxp-chart .dotm-wxp-chart__day { font-size: 12px; fill: #4a4f63; }
.dotm-wxp-chart .dotm-wxp-chart__mm { font-weight: 700; fill: #9aa3b8; }
.dotm-wxp-chart .dotm-wxp-chart__mm.is-wet { fill: #2a76d2; }
.dotm-wxp-chart .dotm-wxp-chart__now { font-weight: 700; fill: #be0000; }
.dotm-wxp-chart__band { fill: transparent; }
.dotm-wxp-chart__band.is-on { fill: rgba(33, 41, 74, .06); }
.dotm-wxp-chart__hit { fill: transparent; cursor: pointer; }
.dotm-wxp-chart__hit:hover { fill: rgba(33, 41, 74, .03); }

.dotm-wxp-dayc { scroll-margin-top: 80px; }
.dotm-wxp-day { display: flex; flex-direction: column; gap: 12px; }
.dotm-wxp-day[hidden] { display: none; }
.dotm-wxp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 13px; font-weight: 500; }
.dotm-wxp-chip.is-wet { background: #e4f0fd; color: #2a76d2; }
.dotm-wxp .dotm-wxp-dsum { margin: 0; font-size: 15px; color: #4a4f63; }
.dotm-wxp-slots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.dotm-wxp-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--va-back); min-width: 0; }
.dotm-wxp-slot__t { font-size: 12px; color: #6b6f80; }
.dotm-wxp-slot b { font-size: 17px; color: var(--va-accent); }
.dotm-wxp-slot__mm { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: #2a76d2; white-space: nowrap; }
.dotm-wxp-slot__mm i { display: block; width: 22px; height: 26px; border-radius: 5px; background: #e4f0fd; position: relative; overflow: hidden; }
.dotm-wxp-slot__mm i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: #2a76d2; }
.dotm-wxp-slot__mm.is-dry { color: #6b6f80; }
.dotm-wxp-slot__w { font-size: 12px; color: #6b6f80; white-space: nowrap; }

.dotm-wxp-climate .dotm-wx__months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dotm-wxp-climate .dotm-wx__month.is-now { box-shadow: inset 0 0 0 1.5px var(--va-accent); }
.dotm-wxp .dotm-wxp-note, .dotm-wxp .dotm-wxp-credit { margin: 0; font-size: 12px; color: #8a8fa0; }
.dotm-wxp .dotm-wxp-credit a { color: inherit; font-size: inherit; }
.dotm-wxp-seo { margin-bottom: 32px; }

/* Map: values as blurred colour fields (pane dotmWxBlob) under icon pins; the tiles are muted so the fields read. */
.dotm-wxp-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--va-back); }
.dotm-wxp-seg button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 500; color: #6b6f80; cursor: pointer; }
.dotm-wxp-seg button[aria-pressed="true"] { background: var(--va-white); color: var(--va-accent); box-shadow: 0 2px 8px rgba(33, 41, 74, .12); }
.dotm-wxp-map { position: relative; height: 440px; border-radius: 14px; overflow: hidden; background: var(--va-back); isolation: isolate; }
.dotm-wxp-map__canvas { position: absolute; inset: 0; font: inherit; background: var(--va-back); }
.dotm-wxp-map .leaflet-tile-pane { filter: saturate(.3) brightness(1.05); }
.dotm-wxp-map .leaflet-dotmWxBlob-pane { z-index: 350; pointer-events: none; opacity: .5; filter: blur(var(--blur, 14px)); }
.dotm-wxp-map [data-layer="clouds"] .leaflet-dotmWxBlob-pane { opacity: .7; }
.dotm-wxp-map [data-layer="temp"] .leaflet-dotmWxBlob-pane { opacity: .6; }
.dotm-wxp-map .leaflet-dotmWxBlob-pane svg { max-width: none !important; max-height: none !important; } /* as Leaflet does for its overlay pane */
.dotm-wxp-map__tag { position: absolute; top: 12px; left: 12px; z-index: 800; padding: 6px 12px; border-radius: 999px; background: var(--va-white); box-shadow: 0 4px 14px rgba(33, 41, 74, .15); font-size: 14px; font-weight: 700; color: var(--va-accent); pointer-events: none; }
.dotm-wxp-map__legend { position: absolute; left: 12px; bottom: 12px; z-index: 800; display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(33, 41, 74, .12); font-size: 12px; color: #4b5068; min-width: 170px; }
.dotm-wxp-mapc[hidden], .dotm-wxp-map__legend[hidden] { display: none; }
.dotm-wxp-map__legend b { font-weight: 700; color: var(--va-accent); }
.dotm-wxm-bar { display: block; height: 8px; border-radius: 4px; }
.dotm-wxm-ends { display: flex; justify-content: space-between; gap: 8px; }
.dotm-wxm-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; text-align: center; }
.dotm-wxm-steps i { display: block; height: 8px; border-radius: 2px; }
.dotm-wxm-steps em, .dotm-wxm-ends em { font-style: normal; }
.dotm-wxm { width: 0 !important; height: 0 !important; }
.dotm-wxm.is-hidden { visibility: hidden; }
.dotm-wxm__pin { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; border-radius: 999px; background: var(--va-white); box-shadow: 0 3px 10px rgba(33, 41, 74, .2); white-space: nowrap; font-size: 13px; font-weight: 700; line-height: 20px; color: var(--va-accent); cursor: pointer; }
.dotm-wxm__pin .dotm-wx-ico { flex: none; }
.dotm-wxm__pin em { font-style: normal; font-weight: 500; }
.dotm-wxm__pin.is-self { padding: 4px 12px 4px 6px; background: var(--va-accent); color: var(--va-white); font-size: 15px; }
.dotm-wxm:focus-visible .dotm-wxm__pin, .dotm-wxm__pin:hover { box-shadow: 0 0 0 2px var(--va-accent), 0 3px 10px rgba(33, 41, 74, .2); }
.dotm-wxm-pop { display: flex; flex-direction: column; gap: 4px; min-width: 170px; font-size: 13px; color: #4b5068; }
.dotm-wxm-pop b { font-size: 15px; color: var(--va-accent); }
.dotm-wxm-pop__row { display: flex; align-items: center; gap: 6px; }
.dotm-wxm-pop__row strong { margin-left: auto; color: var(--va-accent); white-space: nowrap; }
.dotm-wxm-pop a { font-weight: 700; color: var(--va-accent); }
/* Rainy-day ideas: chips with the place and its type. */
.dotm-wxp .dotm-wxp-ideas__lead { margin: 0; font-size: 15px; line-height: 1.5; color: #4b5068; }
.dotm-wxp-ideas__list { display: flex; flex-wrap: wrap; gap: 8px; }
.dotm-wxp .dotm-wxp-idea { display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 14px; border-radius: 14px; background: var(--va-back); border: 1.5px solid transparent; text-decoration: none; min-width: 0; max-width: 100%; }
.dotm-wxp .dotm-wxp-idea:hover { border-color: var(--va-accent); background: var(--va-white); }
.dotm-wxp-idea b { font-size: 15px; font-weight: 700; color: var(--va-accent); overflow-wrap: anywhere; }
.dotm-wxp-idea span { font-size: 12px; color: #6b6f80; }
.dotm-wxp-timeline { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.dotm-wxp-timeline button { flex: 1 0 auto; border: 1.5px solid transparent; background: var(--va-back); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--va-accent); white-space: nowrap; cursor: pointer; }
.dotm-wxp-timeline button[aria-pressed="true"] { background: var(--va-white); border-color: var(--va-accent); font-weight: 700; }
.dotm-wxp-timeline .dotm-wxp-play { flex: none; background: var(--va-accent); color: var(--va-white); font-weight: 700; }

@media (max-width: 1100px) {
	.dotm-wxp-days { grid-template-columns: repeat(var(--n, 10), 88px); overflow-x: auto; padding-bottom: 4px; }
}
@media (max-width: 900px) {
	.dotm-wxp-grid2 { grid-template-columns: minmax(0, 1fr); }
	.dotm-wxp-slots { grid-template-columns: repeat(8, 78px); overflow-x: auto; padding-bottom: 4px; }
	.dotm-wxp-climate .dotm-wx__months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.dotm-wxp-card { padding: 16px; border-radius: 16px; }
	.dotm-wxp-days { display: none; }
	.dotm-wxp-list { display: flex; }
	.dotm-wxp-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dotm-wxp-facts { grid-template-columns: minmax(0, 1fr); }
	.dotm-wxp-now__t { font-size: 46px; }
	.dotm-wxp .dotm-wxp-card__head h2 { font-size: 18px; }
	.dotm-wxp-climate .dotm-wx__months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* The chart keeps a readable scale on phones and scrolls sideways. */
	.dotm-wxp-chart svg { width: 760px; max-width: none; }
	.dotm-wxp-map { height: 340px; margin: 0 -6px; }
	.dotm-wxp-seg { width: 100%; }
	.dotm-wxp-seg button { flex: 1 1 0; padding: 6px 8px; }
	.dotm-wxp-map__legend { min-width: 0; max-width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: no-preference) {
	.dotm-wxp-tile, .dotm-wxp-row { transition: background-color .15s, border-color .15s, box-shadow .15s; }
}
