/* Public heat map page */
.hm-page { max-width: 1120px; margin: 0 auto; padding: 24px 20px 72px; }
.hm-page h1 { font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; color: #111; }
.hm-lead { max-width: 760px; color: #4b5563; font-size: 16px; line-height: 1.55; margin: 0 0 20px; }

.hm-controls { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 16px; }
.hm-seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hm-seg legend { float: left; padding: 0 8px 0 0; font: 600 13px "Poppins", sans-serif; color: #4b5563; }
.hm-seg label { position: relative; cursor: pointer; }
.hm-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hm-seg span { display: inline-block; padding: 8px 16px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; font: 500 14px "Roboto", sans-serif; color: #111; }
.hm-seg input:checked + span { background: var(--asuk-brand-blue-ink, #1F2B4B); border-color: var(--asuk-brand-blue-ink, #1F2B4B); color: #fff; }
.hm-seg input:focus-visible + span { outline: 3px solid var(--asuk-marigold, #FFA740); outline-offset: 2px; }

.hm-map-wrap { position: relative; }
#hm-map { height: min(68vh, 640px); min-height: 360px; border-radius: 16px; border: 1px solid #e5e7eb; background: #eef1f6; z-index: 0; }
.hm-legend { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: #4b5563; }
.hm-legend__bar { flex: 0 1 220px; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #B8CAE6, #FFA740, #DD7878, #B25C5A); }

.hm-summary { margin-top: 28px; padding: 20px 22px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; max-width: 760px; }
.hm-summary h2 { font-family: "Raleway", sans-serif; font-size: 20px; margin: 0 0 8px; }
.hm-summary p { margin: 0 0 8px; color: #111; }
.hm-summary .hm-note { color: #6b7280; font-size: 14px; margin: 0; }

.hm-back { margin: 0 0 6px; font-size: 14px; }
.hm-back a { color: #DD7878; text-decoration: none; font-weight: 500; }
.hm-back a:hover { text-decoration: underline; }
