.wind-map-back { display: inline-block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.wind-map { padding-top: clamp(18px, 3.2vw, 42px); }
.wind-map .explore-heading { margin-bottom: 20px; }
.wind-map-controls { margin: 0 0 8px; }
.wind-search-box { position: relative; min-width: 0; }
.wind-search-field { display: flex; position: relative; margin-top: 4px; }
.wind-map-controls .wind-search-field input { width: 100%; min-width: 0; padding-right: 46px; }
.wind-search-field input::-webkit-search-cancel-button { appearance: none; }
.wind-search-field button { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 42px; font-size: 23px; }
.wind-search-results {
  position: absolute;
  z-index: 3;
  inset: 100% 0 auto;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  border: 1px solid #b2bfbd;
  border-radius: 6px;
  background: white;
  box-shadow: 0 6px 18px #243c3626;
}
.wind-search-results li + li { border-top: 1px solid var(--line); }
.wind-search-results button, .wind-search-results .wind-no-match { display: block; width: 100%; padding: 7px 9px; text-align: left; }
.wind-search-results button, .wind-search-field button, .wind-map-status-line .wind-text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.wind-search-results button { line-height: 1.2; font-weight: 650; overflow-wrap: anywhere; min-height: 44px; }
.wind-search-results button span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.wind-search-results button:hover, .wind-search-results button:focus-visible, .wind-search-field button:hover { background: #eaf3ed; }
.wind-map-status-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.wind-text-button { text-decoration: underline; padding: 0; min-height: 28px; font-size: 13px; font-weight: 650; }
.wind-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  align-items: start;
  gap: clamp(15px, 2.4vw, 36px);
  margin: 12px 0 26px;
}
.wind-map-panel, .wind-map-sidebar { min-width: 0; }
.wind-map-panel { border: 1px solid #c3cfcd; }
.wind-map-viewport { height: clamp(385px, 62svh, 665px); position: relative; background: #deedf0; }
.wind-map-viewport canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.wind-map-viewport canvas.is-over-marker { cursor: pointer; }
.wind-map-viewport canvas.is-dragging { cursor: grabbing; }
.wind-map-buttons { position: absolute; top: 8px; right: 8px; display: flex; justify-content: end; gap: 5px; }
.wind-map-buttons button, .wind-map-results > button, .wind-map-card button {
  border: 1px solid #b2bebb;
  border-radius: 5px;
  background: white;
  min-height: 40px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.wind-map-buttons button:not(:last-child) { width: 42px; font-size: 21px; line-height: 1; }
.wind-map-buttons button:disabled { cursor: default; color: #697675; background: #f3f8f8; }
.wind-map-card {
  position: absolute;
  inset: auto 8px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #aebfba;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 7px;
  background: #fff;
  box-shadow: 0 3px 12px #243c3626;
}
.wind-map-card-copy { flex: 1; min-width: 0; display: grid; gap: 2px; padding-inline-start: 2px; }
.wind-map-card-copy strong { font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.wind-map-card-copy span { color: var(--muted); font-size: 12px; }
.wind-map-card #wind-map-card-action { background: #1b4947; color: white; border-color: #1b4947; white-space: nowrap; }
.wind-map-card #wind-map-card-action:hover { background: #28635d; }
.wind-map-card #wind-map-card-close { width: 40px; flex: none; font-size: 22px; line-height: 1; }
.wind-map-hover {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: min(280px, calc(100% - 16px));
  pointer-events: none;
  border: 1px solid #aebfba;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 12px #243c3626;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.wind-map-hover ul { margin: 4px 0 0; padding-left: 16px; }
.wind-map-hover ul:empty { margin: 0; }
.wind-map-hover li + li { margin-top: 4px; }
.wind-map-hover small { display: block; margin-top: 4px; color: var(--muted); }
.wind-map-hover small:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .wind-map-card { animation: wind-map-card-in 180ms ease-out; }
  @keyframes wind-map-card-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.wind-map-unavailable { position: absolute; inset: 45% 10px auto; text-align: center; }
.wind-map-panel figcaption { padding: 9px 12px; background: #f5f8f7; color: #495a57; font-size: 12px; }
.wind-map-credit { display: block; margin-top: 4px; font-size: 11px; }
.wind-map-register { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wind-legend { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-bottom: 4px; }
.wind-legend span { display: inline-flex; align-items: center; gap: 5px; }
.wind-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--marker); flex: none; }
.wind-legend [data-stage="operational"] { --marker: #08796b; }
.wind-legend [data-stage="construction"] { --marker: #bc4b1f; }
.wind-legend [data-stage="consented"] { --marker: #4466ac; }
.wind-legend [data-stage="planning"] { --marker: #73517a; }
.wind-legend [data-stage="mixed"] { --marker: #32494a; }
.wind-map-detail, .wind-map-results { border-top: 2px solid var(--ink); padding: 12px 0 0; }
.wind-map-detail { background: #f4f6f3; padding: 12px 15px 14px; margin-bottom: 16px; }
.wind-map h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.wind-map-detail p { color: var(--muted); margin-top: 5px; font-size: 14px; }
.wind-map-detail dl { margin: 12px 0; display: grid; gap: 8px; }
.wind-map-detail dl div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; border-top: 1px solid #d7dfd7; padding-top: 6px; font-size: 14px; }
.wind-map-detail dt { color: var(--muted); }
.wind-map-detail dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.wind-map-detail a { font-size: 14px; font-weight: 650; }
.wind-map-results ul { max-height: 325px; overflow: auto; padding: 0 3px; list-style: none; margin: 6px 0; }
.wind-map-results li + li { border-top: 1px solid var(--line); }
.wind-map-results li button {
  display: block;
  background: white;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 7px 9px;
  cursor: pointer;
}
.wind-map-results li button:hover, .wind-map-results li button[aria-pressed="true"] { background: #eaf3ed; }
.wind-map-results li button:focus-visible { outline-offset: -3px; }
.wind-map-results li button span { display: block; color: var(--muted); font-size: 12px; }
.wind-map-results > button + button { margin-top: 4px; }
.wind-map-results > button:hover, .wind-map-buttons button:not(:disabled):hover { background: #eaf3ed; }
@media (max-width: 800px) {
  .wind-map-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .wind-map-viewport { height: clamp(335px, 51svh, 530px); }
  .wind-map-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wind-search-box, .wind-period-control { grid-column: 1 / -1; }
  .wind-map-buttons button, .wind-map-card button { min-height: 44px; }
  .wind-map-buttons button:not(:last-child), .wind-map-card #wind-map-card-close { width: 44px; }
  .wind-map-results ul { max-height: 300px; }
}
