html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#map {
  position: fixed;
  inset: 0;
}

#map .maplibregl-map,
#map .maplibregl-canvas-container,
#map .maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
}

#status {
  position: fixed;
  left: 120px;
  bottom: 12px;
  z-index: 10;
  display: none;
  max-width: min(760px, calc(100vw - 140px));
  padding: 6px 8px;
  border-radius: 6px;
  color: #fff;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
#status.status-info {
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
}
#status.status-error {
  background: rgba(127, 29, 29, 0.92);
}

.maplibregl-ctrl-bottom-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  right: 14px;
  bottom: 14px;
}

.maplibregl-ctrl-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  right: 14px;
  top: 53px;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl,
.maplibregl-ctrl-top-left .maplibregl-ctrl,
.maplibregl-ctrl-top-right .maplibregl-ctrl {
  float: none;
  margin: 0;
}

.map-view-controls {
  order: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.112);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.08);
}

.maplibregl-ctrl-bottom-right > .maplibregl-ctrl-attrib.maplibregl-compact {
  order: 2;
  z-index: 30;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.112);
  -webkit-backdrop-filter: blur(15px) saturate(1.2);
  backdrop-filter: blur(15px) saturate(1.2);
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.08);
}

.maplibregl-ctrl-bottom-right > .maplibregl-ctrl-attrib.maplibregl-compact-show {
  z-index: 100;
  padding: 0;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib-button {
  z-index: 2;
  width: 34px;
  height: 34px;
  background-color: transparent;
  background-position: center;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  width: max-content;
  max-width: min(620px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 8px 40px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.24);
  color: #111827;
  line-height: 1.35;
  white-space: normal;
}

.map-view-control-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.sst-legend {
  position: fixed;
  left: 0;
  bottom: 12px;
  z-index: 9;
  pointer-events: none;
}

.sst-legend > img {
  margin-left: -26px;
}

.sst-legend-date {
  position: absolute;
  right: auto;
  bottom: 2px;
  left: 52px;
  max-width: calc(100vw - 60px);
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #000;
  font: 600 10px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
}

.wmo-control-group,
.map-data-control-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: max-content;
  background: transparent !important;
  box-shadow: none !important;
}

.maplibregl-ctrl-top-right .map-data-control-group {
  margin-top: 5px !important;
}

.wmo-details-toggle-label {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.solar-details-toggle-label {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.map-data-toggle {
  --map-data-toggle-active: #2563eb;
  --map-data-toggle-active-bg: rgba(37, 99, 235, 0.256);
  --map-data-toggle-active-fg: #0f3d93;
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(51, 65, 85, 0.24) !important;
  border-radius: 9px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.86)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(16px) saturate(1.24);
  backdrop-filter: blur(16px) saturate(1.24);
  color: #475569;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.map-data-toggle-climate,
.map-data-toggle-context-wmo,
.wmo-details-toggle,
.solar-details-toggle {
  --map-data-toggle-active: #f59e0b;
  --map-data-toggle-active-bg: rgba(245, 158, 11, 0.272);
  --map-data-toggle-active-fg: #6b3f00;
}

.map-data-toggle:hover {
  background:
    linear-gradient(135deg, #fff, rgba(241, 245, 249, 0.96)),
    #fff;
  border-color: rgba(51, 65, 85, 0.38) !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.map-data-toggle:active {
  transform: scale(0.96);
}

.map-data-toggle.is-active,
.map-data-toggle.is-active:hover {
  border-color: var(--map-data-toggle-active) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08)),
    var(--map-data-toggle-active-bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 6px 18px rgba(15, 23, 42, 0.2), inset 0 0 0 1px var(--map-data-toggle-active);
  color: var(--map-data-toggle-active-fg);
  transform: translateY(-1px);
}

.map-data-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.map-data-toggle.is-loading {
  cursor: progress;
}

.map-data-toggle.is-loading .map-data-toggle-icon {
  visibility: hidden;
}

.map-data-toggle.is-loading::after {
  grid-area: 1 / 1;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: map-data-toggle-spin 700ms linear infinite;
}

@keyframes map-data-toggle-spin {
  to {
    transform: rotate(360deg);
  }
}

.map-data-toggle-icon {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-weight: 700;
  line-height: 1;
}

.map-data-toggle:not(.is-active) .map-data-toggle-icon {
  opacity: 0.76;
}

.map-data-toggle.is-active .map-data-toggle-icon {
  opacity: 1;
}

.map-data-toggle.is-tool-active {
  outline: 3px solid rgba(15, 23, 42, 0.82);
  outline-offset: 2px;
}

.map-data-toggle.is-tool-active:not(.is-loading)::after {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.72);
  content: "";
}

.results-workspace {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 13;
  display: none;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  backdrop-filter: blur(16px) saturate(1.18);
  color: #111827;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.results-workspace.is-open {
  display: flex;
  flex-direction: column;
}

.results-workspace-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px;
  font-size: 13px;
}

.results-workspace-close {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  background: #334155;
  color: #fff;
  cursor: pointer;
  font: 700 11px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.results-workspace-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  overflow-x: auto;
  padding: 0 8px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  scrollbar-width: thin;
}

.results-workspace-tab {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(51, 65, 85, 0.16);
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.56);
  color: #475569;
  cursor: pointer;
  font: 700 11px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
}

.results-workspace-tab.is-active {
  border-color: #2563eb;
  background: rgba(219, 234, 254, 0.9);
  color: #1e3a8a;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.results-workspace-tab:focus-visible,
.results-workspace-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.results-workspace-count {
  min-width: 17px;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 3px 5px;
  background: rgba(15, 23, 42, 0.1);
  color: currentColor;
  font-size: 9px;
  text-align: center;
}

.results-workspace-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.results-workspace .results-workspace-pane {
  position: static;
  inset: auto;
  z-index: auto;
  flex: 1 1 auto;
  width: 100%;
  max-height: none;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.results-workspace .results-workspace-pane:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.results-workspace-pane > .wmo-panel-header,
.results-workspace-pane > .sst-panel-header,
.results-workspace-pane > .solar-panel-header,
.results-workspace-pane > .geo-panel-header {
  display: none;
}

.results-workspace-pane > .wmo-panel-content,
.results-workspace-pane > .sst-panel-content,
.results-workspace-pane > .solar-panel-content,
.results-workspace-pane > .geo-panel-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.maplibregl-canvas.wmo-pick-mode,
.maplibregl-canvas.sst-pick-mode,
.maplibregl-canvas.solar-pick-mode {
  cursor: cell !important;
}

.map-data-toggle-icon-climate {
  font-size: 21px;
}

.map-data-toggle-icon-water {
  font-size: 24px;
  transform: translateY(-1px);
}

.wmo-location-loading-marker {
  display: block;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-top-color: #f59e0b;
  border-right-color: #f59e0b;
  border-radius: 50%;
  filter: drop-shadow(0 1px 3px rgba(17, 24, 39, 0.5));
  pointer-events: none;
  animation: map-data-toggle-spin 700ms linear infinite;
}

.app-header {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.account-control {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 11;
  pointer-events: auto;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.account-login,
.account-user-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid rgba(51, 65, 85, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: #173f34;
  cursor: pointer;
  font: 750 12px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.account-login::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2f755e;
  content: "";
}

.account-login:hover,
.account-user-button:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.17);
}

.account-user-button::after {
  margin-left: 7px;
  color: #64748b;
  content: "⌄";
  font-size: 11px;
}

.account-popover {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 120;
  display: grid;
  width: min(250px, calc(100vw - 28px));
  box-sizing: border-box;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(51, 65, 85, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.account-popover[hidden] {
  display: none;
}

.account-popover-label {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px 8px 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.1);
}

.account-popover-label strong,
.account-popover-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover-label strong {
  color: #0f172a;
  font-size: 13px;
}

.account-popover-label span {
  color: #64748b;
  font-size: 10px;
}

.account-profile-link,
.account-logout {
  display: flex;
  align-items: center;
  min-height: 34px;
  box-sizing: border-box;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1e293b;
  cursor: pointer;
  font: 650 12px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  text-decoration: none;
}

.account-profile-link:hover,
.account-logout:hover {
  background: rgba(47, 117, 94, 0.1);
}

.account-logout {
  color: #991b1b;
}

.account-control.needs-attention .account-login {
  animation: account-attention 540ms ease-in-out 2;
}

@keyframes account-attention {
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 4px rgba(47, 117, 94, 0.18), 0 7px 22px rgba(15, 23, 42, 0.2);
  }
}

.app-brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #111827;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.9),
    1px -1px 0 rgba(255, 255, 255, 0.9),
    -1px 1px 0 rgba(255, 255, 255, 0.9),
    1px 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(255, 255, 255, 0.85);
  user-select: none;
}

.app-brand-earth {
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.app-brand-atlas {
  color: rgba(17, 24, 39, 0.66);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.attribution-info-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.144);
  -webkit-backdrop-filter: blur(15px) saturate(1.2);
  backdrop-filter: blur(15px) saturate(1.2);
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.08);
  color: #111827;
  cursor: pointer;
  font: 800 15px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.attribution-info-button:hover {
  background: rgba(255, 255, 255, 0.216);
}

.attribution-info-control {
  margin: 0 !important;
}

.attribution-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 24px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(242, 242, 247, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  color: #111827;
  overflow: hidden;
}

.attribution-dialog::backdrop {
  background: rgba(17, 24, 39, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.attribution-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.272);
}

.attribution-dialog-heading {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.attribution-dialog-header h2 {
  margin: 0;
  font: 700 16px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.attribution-dialog-header p {
  margin: 3px 0 0;
  color: rgba(17, 24, 39, 0.66);
  font: 11px/1.3 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.attribution-dialog-close,
.attribution-dialog-back {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(118, 118, 128, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #1f6a54;
  font: 600 24px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.attribution-dialog-back {
  font-size: 32px;
  font-weight: 400;
  padding: 0 2px 3px 0;
}

.attribution-dialog-back[hidden] {
  visibility: hidden;
  display: grid;
}

.attribution-dialog-content {
  max-height: calc(100vh - 104px);
  padding: 16px;
  overflow: auto;
  font: 12px/1.45 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.attribution-dialog-content section + section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.attribution-dialog-content h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.attribution-dialog-content p {
  margin: 0;
}

.attribution-dialog-content p + p {
  margin-top: 6px;
}

.attribution-dialog-content a {
  color: #1d4ed8;
}

.attribution-version {
  margin-top: 16px !important;
  color: rgba(17, 24, 39, 0.58);
  font-size: 10px;
}

.info-view[hidden],
.consent-banner[hidden],
.terms-gate-error[hidden],
[data-legal-language][hidden] {
  display: none !important;
}

.ios-settings-group {
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ios-settings-group + .ios-settings-group {
  margin-top: 18px;
}

.ios-settings-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 12px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  gap: 10px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  text-align: left;
  font: 500 14px/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ios-settings-row + .ios-settings-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 54px;
  height: 1px;
  background: rgba(60, 60, 67, 0.16);
  content: "";
}

.ios-settings-row:hover {
  background: rgba(118, 118, 128, 0.08);
}

.ios-settings-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}

.ios-settings-icon-cookie { background: #d79019; }
.ios-settings-icon-privacy { background: #397ec5; }
.ios-settings-icon-terms { background: #2f8f65; }
.ios-settings-icon-notice { background: #77778a; }
.ios-settings-icon-sources { background: #7957a8; }

.ios-settings-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-settings-value {
  max-width: 120px;
  overflow: hidden;
  color: #777783;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-settings-chevron {
  color: #a7a7ad;
  font-size: 23px;
  font-weight: 300;
}

.info-menu-footnote {
  margin: 10px 6px 0;
  color: #686873;
  font-size: 11px;
}

.legal-intro,
.legal-view > [data-legal-language] {
  color: #25252b;
}

.legal-intro {
  margin-bottom: 14px;
}

.legal-updated {
  margin-bottom: 14px !important;
  color: #6b7280;
  font-size: 11px;
}

.legal-view code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(60, 60, 67, 0.09);
  font-size: 0.92em;
}

.consent-category-list {
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
}

.consent-category-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 10px 14px;
  cursor: pointer;
}

.consent-category-row + .consent-category-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 14px;
  height: 1px;
  background: rgba(60, 60, 67, 0.15);
  content: "";
}

.consent-category-row span {
  display: grid;
  gap: 3px;
}

.consent-category-row small {
  color: #6b7280;
  font-size: 11px;
}

.consent-category-row input[type="checkbox"] {
  width: 42px;
  height: 24px;
  flex: none;
  accent-color: #2f755e;
}

.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  box-sizing: border-box;
  gap: 20px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  color: #111827;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-banner h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.consent-banner p {
  max-width: 500px;
  margin: 0;
  color: #5f6672;
  font-size: 12px;
  line-height: 1.4;
}

.consent-actions,
.terms-gate-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.consent-actions-stacked {
  margin-top: 16px;
}

.consent-actions button,
.terms-gate-actions button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(47, 117, 94, 0.22);
  border-radius: 9px;
  background: rgba(47, 117, 94, 0.08);
  color: #245e4b;
  cursor: pointer;
  font: 650 12px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-actions .primary-action,
.terms-gate-actions .primary-action {
  border-color: #2f755e;
  background: #2f755e;
  color: #fff;
}

.terms-gate-dialog {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
  color: #111827;
  overflow: auto;
}

.terms-gate-dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.terms-gate-content {
  padding: 22px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.terms-gate-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(47, 117, 94, 0.12);
  color: #2f755e;
  font-size: 22px;
  font-weight: 800;
}

.terms-gate-content h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.terms-gate-content > p {
  margin: 0 0 16px;
  color: #606875;
  font-size: 12px;
  line-height: 1.5;
}

.terms-gate-benefits {
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(47, 117, 94, 0.16);
  border-radius: 11px;
  background: rgba(47, 117, 94, 0.06);
}

.terms-gate-benefits h3 {
  margin: 0 0 9px;
  color: #245e4b;
  font-size: 13px;
}

.terms-gate-benefits ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-gate-benefits li {
  position: relative;
  padding-left: 22px;
  color: #3f4a47;
  font-size: 12px;
  line-height: 1.4;
}

.terms-gate-benefits li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "✓";
  color: #2f755e;
  font-weight: 800;
}

.account-gate-options {
  display: grid;
  gap: 10px;
}

.account-gate-option {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 12px;
  background: #f7f7f9;
}

.account-gate-option h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.account-gate-option p {
  margin: 0;
  color: #606875;
  font-size: 12px;
  line-height: 1.4;
}

.account-gate-option > button {
  min-height: 40px;
  border: 1px solid rgba(47, 117, 94, 0.28);
  border-radius: 10px;
  background: #fff;
  color: #245e4b;
  cursor: pointer;
  font: 700 12px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.account-gate-option > .primary-action {
  border-color: #2f755e;
  background: #2f755e;
  color: #fff;
}

.account-gate-registration {
  border-color: rgba(47, 117, 94, 0.2);
  background: rgba(47, 117, 94, 0.045);
}

.terms-gate-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 11px;
  background: #f7f7f9;
  font-size: 12px;
  line-height: 1.45;
}

.terms-gate-acceptance input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0;
  accent-color: #2f755e;
}

.terms-gate-acceptance button {
  padding: 0;
  border: 0;
  background: none;
  color: #1d5f9e;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.terms-gate-content .terms-gate-error {
  margin: -3px 2px 0;
  color: #b42318;
  font-weight: 650;
}

.terms-gate-actions {
  margin-top: 12px;
}

.flavor-select {
  height: 34px;
  min-width: 104px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  padding: 0 26px 0 9px;
  background: rgba(255, 255, 255, 0.144);
  -webkit-backdrop-filter: blur(15px) saturate(1.2);
  backdrop-filter: blur(15px) saturate(1.2);
  color: #111827;
  font: 600 11px/34px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.08);
  outline: none;
  cursor: pointer;
}

.language-control {
  position: relative;
}

.language-select {
  height: 34px;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  padding: 0 24px 0 8px;
  background: rgba(255, 255, 255, 0.144);
  -webkit-backdrop-filter: blur(15px) saturate(1.2);
  backdrop-filter: blur(15px) saturate(1.2);
  color: transparent;
  font: 600 11px/34px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.08);
  outline: none;
  cursor: pointer;
}

.language-select option {
  color: #111827;
}

.language-short-label {
  position: absolute;
  inset: 0 auto 0 8px;
  display: flex;
  align-items: center;
  color: #111827;
  font: 600 11px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

[dir="rtl"] .language-select,
[dir="rtl"] .flavor-select {
  padding-right: 8px;
  padding-left: 24px;
}

[dir="rtl"] .language-short-label {
  right: 8px;
  left: auto;
}

.wmo-details-panel {
  position: fixed;
  top: 12px;
  left: 12px;
  width: min(507px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  z-index: 11;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.544);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  backdrop-filter: blur(12px) saturate(1.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.wmo-details-panel.is-open {
  display: flex;
  flex-direction: column;
}

.wmo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.224);
  color: #111827;
  font: 13px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wmo-panel-close {
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.464);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font: 12px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wmo-panel-content {
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 4px;
  align-content: start;
  grid-auto-rows: max-content;
}

.wmo-chart-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.592);
  border: 1px solid rgba(17, 24, 39, 0.1);
  padding: 6px;
}

.wmo-chart-remove {
  background: rgba(17, 24, 39, 0.464) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.wmo-chart-title {
  margin: 0 0 8px 0;
  color: #111827;
  font: 13px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wmo-chart-body {
  color: #111827;
  font: 12px/1.4 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wmo-chart-guide {
  margin: 4px 4px -2px;
  color: rgba(17, 24, 39, 0.62);
  font: 9px/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wmo-climate-block .apexcharts-legend {
  padding: 0 4px !important;
}

.wmo-climate-block .apexcharts-legend-text {
  color: rgba(17, 24, 39, 0.78) !important;
  font-weight: 650 !important;
}

.wmo-climate-block .apexcharts-tooltip {
  border-color: rgba(17, 24, 39, 0.12) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.14) !important;
}

.wmo-climate-block .apexcharts-tooltip-title {
  background: rgba(17, 24, 39, 0.05) !important;
  border-bottom-color: rgba(17, 24, 39, 0.08) !important;
}

.wmo-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px 2px 0;
}

.wmo-chart-meta > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.192);
}

.wmo-chart-meta dt,
.wmo-chart-meta dd {
  margin: 0;
}

.wmo-chart-meta dt {
  color: rgba(17, 24, 39, 0.62);
  font-size: 9px;
  font-weight: 650;
}

.wmo-chart-meta dd {
  color: #111827;
  font-size: 10px;
  font-weight: 650;
}

.wmo-chart-loading {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  color: rgba(17, 24, 39, 0.72);
}

.wmo-chart-loading > span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 2px solid rgba(245, 158, 11, 0.34);
  border-top-color: #b86f00;
  border-radius: 50%;
  animation: map-data-toggle-spin 700ms linear infinite;
}

.wmo-chart-loading-inline {
  margin: -2px 4px 4px;
  font-size: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .map-data-toggle.is-loading::after,
  .wmo-location-loading-marker,
  .wmo-chart-loading > span {
    animation: none;
  }
}

.wmo-chart-sources {
  margin-top: 4px;
  padding: 5px 4px 2px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  color: rgba(17, 24, 39, 0.72);
  font: 10px/1.35 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wmo-chart-sources strong {
  margin-right: 3px;
  color: #111827;
  font-weight: 700;
}

.wmo-chart-sources a {
  color: inherit;
}

.sst-details-toggle,
.map-data-toggle-context-sst {
  --map-data-toggle-active: #0284c7;
  --map-data-toggle-active-bg: rgba(2, 132, 199, 0.24);
  --map-data-toggle-active-fg: #075985;
}

.sst-details-toggle-label {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.sst-climate-panel {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 12;
  display: none;
  width: min(507px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 10px;
  background: rgba(240, 249, 255, 0.74);
  box-shadow: 0 10px 30px rgba(3, 105, 161, 0.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

.sst-climate-panel.is-open {
  display: flex;
  flex-direction: column;
}

.sst-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(3, 105, 161, 0.14);
  color: #0c4a6e;
  font: 13px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sst-panel-header > div {
  display: grid;
  gap: 2px;
}

.sst-panel-header span {
  color: rgba(12, 74, 110, 0.7);
  font-size: 9px;
}

.sst-panel-close,
.sst-card-remove {
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  background: rgba(7, 89, 133, 0.78);
  color: #fff;
  font: 12px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sst-panel-content {
  display: grid;
  flex: 0 1 auto;
  gap: 6px;
  min-height: 0;
  padding: 10px;
  overflow: auto;
}

.sst-climate-card {
  padding: 8px;
  border: 1px solid rgba(3, 105, 161, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sst-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(3, 105, 161, 0.08);
}

.sst-card-header h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #0c4a6e;
  font: 700 12px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sst-location-number,
.sst-location-marker {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  box-shadow: 0 1px 5px rgba(12, 74, 110, 0.45);
  color: #fff;
  font: 750 10px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sst-climate-body {
  position: relative;
  color: #0f172a;
  font: 11px/1.35 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sst-climate-loading {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  color: rgba(12, 74, 110, 0.76);
}

.sst-climate-loading > span {
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 2px solid rgba(14, 165, 233, 0.28);
  border-top-color: #0369a1;
  border-radius: 50%;
  animation: map-data-toggle-spin 700ms linear infinite;
}

.sst-climate-chart {
  min-height: 230px;
}

.sst-current-temperature {
  min-width: 44px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sst-current-temperature.is-unavailable {
  color: rgba(12, 74, 110, 0.52);
  background: rgba(148, 163, 184, 0.12);
}

.sst-card-coordinates {
  white-space: nowrap;
}

.sst-chart-source {
  margin: 0 5px 1px;
  padding-top: 5px;
  border-top: 1px solid rgba(3, 105, 161, 0.08);
  color: rgba(12, 74, 110, 0.62);
  text-align: right;
  font-size: 8px;
  line-height: 1.25;
}

.sst-chart-source a {
  color: inherit;
}

.sst-clickable-month {
  cursor: pointer;
}

.sst-month-popup {
  position: absolute;
  top: 38px;
  right: 8px;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 7px 9px;
  border: 1px solid rgba(3, 105, 161, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 16px rgba(3, 105, 161, 0.2);
  color: #0c4a6e;
  font-size: 9px;
  line-height: 1.35;
  pointer-events: none;
}

.sst-month-popup[hidden] {
  display: none;
}

.sst-month-popup strong {
  font-size: 10px;
}

.sst-climate-chart-fallback {
  min-height: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.78rem;
  line-height: 1.4;
}

.sst-climate-error {
  margin: 7px 3px 2px;
  color: rgba(12, 74, 110, 0.72);
  font-size: 9px;
}

.map-data-toggle-solar {
  --map-data-toggle-active: #f59e0b;
}

.solar-details-toggle {
  --map-data-toggle-active: #7c3aed;
  --map-data-toggle-active-bg: rgba(124, 58, 237, 0.24);
  --map-data-toggle-active-fg: #4c1d95;
}

.map-data-toggle-icon-solar {
  color: #7c3aed;
  font-size: 22px;
  transform: rotate(-28deg);
}

.map-data-toggle-solar.is-active .map-data-toggle-icon-solar {
  color: #fff;
}

.maplibregl-canvas.solar-pick-mode {
  cursor: cell !important;
}

.solar-location-marker {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0 50%, #7c3aed 50% 100%);
  box-shadow: 0 1px 5px rgba(17, 24, 39, 0.55);
  color: #fff;
  font: 800 10px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.solar-times-panel {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 12;
  display: none;
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.576);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  backdrop-filter: blur(12px) saturate(1.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  color: #111827;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.solar-times-panel.is-open {
  display: flex;
  flex-direction: column;
}

.solar-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.224);
  font-size: 13px;
}

.solar-panel-header div {
  display: grid;
  gap: 2px;
}

.solar-panel-header span {
  color: rgba(17, 24, 39, 0.66);
  font-size: 10px;
}

.solar-panel-close,
.solar-card-remove {
  flex: none;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.496);
  color: #fff;
  font: 12px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.solar-panel-empty {
  margin: 10px;
  padding: 18px 12px;
  border: 1px dashed rgba(17, 24, 39, 0.2);
  border-radius: 8px;
  color: rgba(17, 24, 39, 0.68);
  text-align: center;
  font-size: 12px;
}

.solar-panel-content {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 5px;
  padding: 8px;
}

.solar-times-card {
  padding: 6px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.608);
}

.solar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.solar-card-header h3 {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}

.solar-location-number {
  order: 1;
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0 50%, #7c3aed 50% 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.solar-location-name {
  order: 2;
}

.solar-location-meta {
  order: 3;
  color: rgba(17, 24, 39, 0.62);
  font-size: 9px;
  font-weight: 500;
}

.solar-year-select {
  flex: 0 0 auto;
  height: 28px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.64);
  color: #111827;
  font: 11px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.solar-chart {
  position: relative;
  min-height: 180px;
}

.solar-chart-canvas {
  min-height: 180px;
}

.solar-month-axis {
  position: absolute;
  right: 18px;
  bottom: 3px;
  left: 44px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  pointer-events: none;
  color: rgba(17, 24, 39, 0.72);
  font: 9px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.solar-chart-loading {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: rgba(17, 24, 39, 0.66);
  font-size: 11px;
}

.geo-details-toggle-label {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.geo-details-toggle {
  --map-data-toggle-active: #db2777;
  --map-data-toggle-active-bg: rgba(219, 39, 119, 0.22);
  --map-data-toggle-active-fg: #831843;
}

.geo-search-control {
  position: relative;
  overflow: visible !important;
}

.map-data-toggle-geo {
  --map-data-toggle-active: #db2777;
  --map-data-toggle-active-bg: rgba(219, 39, 119, 0.26);
  --map-data-toggle-active-fg: #831843;
}

.map-data-toggle-icon-geo {
  color: #be185d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.map-data-toggle-geo.is-active .map-data-toggle-icon-geo {
  color: #fff;
}

.geo-search-config {
  position: absolute;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 20;
  width: 258px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.2);
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #111827;
  font: 11px/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-search-config.is-positioning {
  width: 190px;
  padding: 8px;
}

.geo-search-config.is-collapsed {
  width: 178px;
  padding: 7px;
}

.geo-search-config[hidden] {
  display: none;
}

.geo-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.geo-config-title {
  display: block;
  font-size: 12px;
}

.geo-config-collapse {
  flex: none;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: #1d5f9e;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.geo-search-config.is-collapsed .geo-config-header {
  display: none;
}

.geo-config-positioning {
  display: grid;
  margin-top: 7px;
}

.geo-position-hint {
  margin: 0;
  padding: 7px 8px;
  border-left: 3px solid #db2777;
  border-radius: 5px;
  background: rgba(219, 39, 119, 0.08);
  color: rgba(17, 24, 39, 0.76);
  font-size: 10px;
  line-height: 1.4;
}

.geo-config-quick-start {
  min-height: 32px;
  border: 1px solid #be185d;
  border-radius: 7px;
  background: #be185d;
  color: #fff;
  cursor: pointer;
  font: 750 10px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-config-editor {
  display: grid;
}

.geo-config-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.geo-collapsed-summary {
  white-space: nowrap;
  color: #831843;
  font-size: 10px;
  font-weight: 800;
}

.geo-config-quick-start {
  flex: none;
  min-height: 28px;
  padding: 0 9px;
}

.geo-config-expand {
  display: grid;
  flex: none;
  width: 29px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(131, 24, 67, 0.24);
  border-radius: 7px;
  background: rgba(219, 39, 119, 0.08);
  color: #831843;
  cursor: pointer;
}

.geo-settings-icon {
  display: block;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, transparent 0 2.2px, currentColor 2.5px);
  clip-path: polygon(
    41% 0, 59% 0, 63% 17%, 75% 23%, 91% 14%, 100% 29%,
    86% 41%, 88% 56%, 100% 69%, 90% 84%, 74% 76%, 62% 83%,
    58% 100%, 42% 100%, 38% 83%, 25% 76%, 10% 84%, 0 69%,
    14% 56%, 12% 41%, 0 29%, 10% 14%, 26% 23%, 37% 17%
  );
}

.geo-config-positioning[hidden],
.geo-config-editor[hidden],
.geo-config-collapsed[hidden] {
  display: none;
}

.geo-location-settings,
.geo-radius-settings,
.geo-date-settings {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.geo-config-step {
  color: #111827;
  font-size: 10px;
  font-weight: 800;
}

.geo-location-hint {
  margin: 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(219, 39, 119, 0.1);
  color: #831843;
  font-size: 10px;
}

.geo-location-hint.is-selected {
  background: rgba(5, 150, 105, 0.1);
  color: #065f46;
}

.geo-change-location {
  min-height: 28px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: #4b5563;
  cursor: pointer;
  font: 700 10px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-date-mode-option,
.geo-radius-option,
.geo-config-start {
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  color: #111827;
  font: 700 10px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-date-mode-option,
.geo-radius-option {
  min-height: 30px;
  padding: 5px 8px;
}

.geo-date-mode-option.is-selected,
.geo-radius-option.is-selected {
  border-color: rgba(219, 39, 119, 0.44);
  background: rgba(219, 39, 119, 0.14);
  color: #831843;
}

.geo-radius-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.geo-radius-option {
  min-width: 0;
  padding-inline: 3px;
}

.geo-radius-limit {
  color: rgba(17, 24, 39, 0.58);
  font-size: 9px;
}

.geo-date-heading {
  color: rgba(17, 24, 39, 0.66);
  font-size: 10px;
  font-weight: 700;
}

.geo-date-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.geo-date-range input {
  height: 28px;
  box-sizing: border-box;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
  color: #111827;
  font: 10px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.geo-date-range input {
  min-width: 0;
  width: 100%;
  padding: 2px 3px;
}

.geo-date-range.is-inactive {
  opacity: 0.58;
}

.geo-config-start {
  width: 100%;
  min-height: 31px;
  margin-top: 9px;
  border-color: #be185d;
  background: #be185d;
  color: #fff;
}

.geo-date-mode-option:disabled,
.geo-radius-option:disabled,
.geo-date-range input:disabled,
.geo-config-start:disabled {
  cursor: default;
  opacity: 0.45;
}

.geo-results-panel {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 13;
  display: none;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.69);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.2);
  color: #111827;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-results-panel.is-open {
  display: flex;
  flex-direction: column;
}

.geo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.geo-panel-header > div {
  display: grid;
  gap: 2px;
}

.geo-panel-header span {
  color: rgba(17, 24, 39, 0.64);
  font-size: 10px;
}

.geo-panel-close,
.geo-query-remove {
  flex: none;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.5);
  color: #fff;
  font: 12px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-results-refine {
  display: grid;
  flex: none;
  gap: 6px;
  margin: 8px 8px 0;
  padding: 8px;
  border: 1px solid rgba(219, 39, 119, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.geo-results-refine[hidden] {
  display: none;
}

.geo-refine-heading {
  color: #831843;
  font-size: 11px;
}

.geo-refine-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.geo-refine-label {
  color: rgba(17, 24, 39, 0.68);
  font-size: 9px;
  font-weight: 750;
}

.geo-refine-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.geo-refine-date-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.geo-refine-option {
  min-width: 0;
  min-height: 27px;
  padding: 4px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: #374151;
  cursor: pointer;
  font: 700 9px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-refine-option.is-selected {
  border-color: rgba(219, 39, 119, 0.42);
  background: rgba(219, 39, 119, 0.13);
  color: #831843;
}

.geo-refine-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding-left: 68px;
}

.geo-refine-date-range[hidden] {
  display: none;
}

.geo-refine-date-range input {
  min-width: 0;
  width: 100%;
  height: 28px;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
  color: #111827;
  font: 10px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-refine-start {
  min-height: 30px;
  border: 1px solid #be185d;
  border-radius: 7px;
  background: #be185d;
  color: #fff;
  cursor: pointer;
  font: 750 10px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.geo-panel-empty {
  margin: 10px;
  padding: 18px 12px;
  border: 1px dashed rgba(17, 24, 39, 0.2);
  border-radius: 8px;
  color: rgba(17, 24, 39, 0.68);
  text-align: center;
  font-size: 12px;
}

.geo-panel-content {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.geo-query-card {
  padding: 7px;
  border: 1px solid rgba(219, 39, 119, 0.22);
  border-left: 4px solid var(--geo-query-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.geo-query-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.geo-query-header h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
}

.geo-query-number,
.geo-query-marker {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--geo-query-color);
  box-shadow: 0 1px 5px rgba(17, 24, 39, 0.4);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}

.geo-query-meta {
  margin: 4px 0 7px 28px;
  color: rgba(17, 24, 39, 0.62);
  font-size: 9px;
}

.geo-query-loading {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: rgba(17, 24, 39, 0.7);
  font-size: 11px;
}

.geo-query-loading > span {
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 2px solid rgba(219, 39, 119, 0.28);
  border-top-color: #be185d;
  border-radius: 50%;
  animation: map-data-toggle-spin 700ms linear infinite;
}

.geo-coverage {
  margin: 3px 1px 7px;
  color: rgba(17, 24, 39, 0.6);
  font-size: 9px;
}

.geo-result-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.geo-result-item {
  padding: 7px;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.56);
}

.geo-result-heading {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.geo-result-rank {
  flex: none;
  color: var(--geo-query-color);
  font-size: 10px;
  font-weight: 850;
}

.geo-result-link {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-result-link:hover {
  text-decoration: underline;
}

.geo-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px 0;
}

.geo-result-meta span {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.07);
  color: rgba(17, 24, 39, 0.68);
  font-size: 8px;
  font-weight: 700;
}

.geo-result-meta .is-direct {
  background: rgba(5, 150, 105, 0.13);
  color: #065f46;
}

.geo-result-meta .is-inferred {
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
}

.geo-result-score {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.06);
}

.geo-result-score > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: rgba(219, 39, 119, 0.2);
}

.geo-result-score small {
  position: relative;
  z-index: 1;
  display: block;
  padding: 2px 5px;
  color: rgba(17, 24, 39, 0.72);
  font-size: 8px;
  line-height: 10px;
}

.geo-result-evidence {
  margin-top: 5px;
  color: rgba(17, 24, 39, 0.66);
  font-size: 9px;
}

.geo-result-evidence summary {
  cursor: pointer;
}

.geo-result-evidence ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.geo-result-empty,
.geo-result-error {
  margin: 4px 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.05);
  color: rgba(17, 24, 39, 0.68);
  font-size: 11px;
}

.geo-result-error {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

@media (max-width: 900px) {
  #status {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: none;
  }

  .maplibregl-ctrl-bottom-right {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .maplibregl-ctrl-top-left {
    left: 10px;
    top: calc(10px + env(safe-area-inset-top));
  }

  .maplibregl-ctrl-top-right {
    right: 12px;
    top: calc(50px + env(safe-area-inset-top));
  }

  .wmo-panel-close,
  .sst-panel-close,
  .solar-panel-close,
  .geo-panel-close,
  .attribution-dialog-close {
    min-height: 36px;
    font-size: 14px;
  }

  .flavor-select,
  .language-select,
  .attribution-info-button {
    height: 36px;
  }

  .flavor-select,
  .language-select {
    font-size: 12px;
  }

  .language-short-label {
    font-size: 12px;
  }

  .attribution-info-button {
    width: 36px;
  }

  .attribution-info-control {
    margin: 0 !important;
  }

  .app-header {
    top: calc(10px + env(safe-area-inset-top));
    left: 10px;
  }

  .account-control {
    top: calc(10px + env(safe-area-inset-top));
    right: 12px;
  }

  .sst-legend {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  #status {
    font-size: 11px;
  }

  .app-header {
    align-items: flex-start;
  }

  .account-login,
  .account-user-button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .maplibregl-ctrl-bottom-right {
    gap: 4px;
  }

  .flavor-select {
    width: 78px;
    min-width: 78px;
    padding-left: 8px;
  }

  .language-select {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    padding-left: 7px;
    font-size: 10px;
  }


  .language-short-label {
    left: 7px;
    font-size: 10px;
  }

  .results-workspace {
    top: calc(8px + env(safe-area-inset-top));
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 10px;
  }

  .results-workspace-header {
    padding: 8px 10px 6px;
  }

  .results-workspace-close {
    min-height: 36px;
    font-size: 13px;
  }

  .results-workspace-tabs {
    padding: 0 6px 6px;
  }

  .results-workspace-tab {
    min-height: 38px;
    font-size: 11px;
  }

  .wmo-details-panel {
    top: calc(8px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    width: auto;
    border-radius: 8px;
  }

  .sst-climate-panel {
    top: calc(8px + env(safe-area-inset-top));
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 8px;
  }

  .solar-times-panel {
    top: calc(8px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 8px;
  }

  .geo-results-panel {
    top: calc(8px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 8px;
  }

  .geo-search-config {
    position: absolute;
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 12px;
    width: min(300px, calc(100vw - 24px));
    max-height: min(48vh, 390px);
  }

  .geo-search-config.is-positioning {
    width: min(190px, calc(100vw - 24px));
  }

  .geo-search-config.is-collapsed {
    width: min(178px, calc(100vw - 24px));
  }

  .wmo-panel-header {
    padding: 8px 10px;
    font-size: 12px;
  }

  .wmo-panel-content {
    padding: 8px;
    gap: 4px;
  }

  .wmo-chart-title {
    font-size: 12px;
  }

  .wmo-chart-body {
    font-size: 11px;
  }

  .attribution-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .attribution-dialog-header {
    padding: 10px;
  }

  .attribution-dialog-content {
    max-height: calc(100vh - 92px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 12px;
  }

  .ios-settings-row {
    min-height: 54px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .ios-settings-value {
    max-width: 92px;
  }

  .consent-banner {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .consent-actions button {
    min-height: 42px;
    padding: 5px 7px;
    font-size: 11px;
  }

  .consent-actions-stacked {
    grid-template-columns: 1fr;
  }

  .terms-gate-content {
    padding: 18px;
  }

  .terms-gate-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .terms-gate-actions button {
    min-height: 42px;
  }
}

/* Shared list entry uses the same compact styling as the map tools. */
.results-workspace-launcher-label {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.results-workspace-launcher[hidden],
.results-workspace-launcher .results-workspace-count[hidden] { display: none; }

/* A single marked position owns every result and one shared map marker. */
.location-pick-mode { cursor: crosshair; -webkit-touch-callout: none; }
.geo-unverified { margin: 12px 0; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 8px; }
.geo-unverified summary { font-size: 12px; font-weight: 600; cursor: pointer; }
.location-hold-indicator { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; box-sizing: border-box; border: 3px solid #ffffff; border-radius: 50%; background: #0f766e33; box-shadow: 0 0 0 2px #0f766e; pointer-events: none; }
.location-hold-indicator::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0f766e; opacity: .65; transform: scale(0); animation: location-hold-fill var(--hold-duration) linear forwards; }
.location-hold-indicator.is-ready { background: #0f766e; }
@keyframes location-hold-fill { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .location-hold-indicator::after { animation: none; } }
.location-results-panel { padding: 10px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y pinch-zoom; }
.location-climate-pending { min-height: 292px; box-sizing: border-box; }
.location-layer-body .wmo-chart-loading { min-height: 258px; }
.location-layer-body .wmo-chart-loading-inline { min-height: 0; }
.location-layer-body .wmo-climate-block { min-height: 258px; }
.location-layer-body .sst-climate-loading { min-height: 240px; }
.solar-chart-canvas { min-height: 180px; }
.location-instructions { margin: 0 0 10px; color: #475569; font-size: 12px; line-height: 1.5; }
.location-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.location-filter { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #cbd5e1; border-radius: 20px; padding: 6px 10px; background: white; color: #334155; cursor: pointer; font: inherit; font-size: 12px; }
.location-filter-icon { font-size: 14px; line-height: 1; }
.location-filter.is-active { background: #0f172a; border-color: #0f172a; color: white; }
.location-overlays { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; font-size: 11px; color: #475569; }
.location-overlays label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.location-result-card { margin-bottom: 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; overflow: hidden; }
.location-result-header { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; padding: 12px; background: #f1f5f9; }
.location-result-header h3 { margin: 0; font-size: 14px; }
.result-map-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: inherit; max-width: 100%; padding: 2px 0; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.result-map-link:hover { color: #0f766e; text-decoration: underline; text-underline-offset: 3px; }
.result-map-link:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
.location-focus-marker { width: 18px; height: 18px; box-sizing: border-box; border: 2px solid #0f766e; border-radius: 50%; background: #0f766e26; box-shadow: 0 0 0 4px #ffffffa6; pointer-events: none; }
.location-coordinates { color: #64748b; font-size: 11px; }
.location-remove, .geo-query-refine { border: 1px solid #cbd5e1; background: white; border-radius: 6px; padding: 5px 8px; font-size: 11px; cursor: pointer; }
.location-remove { margin-inline-start: auto; }
.location-layer-section { padding: 10px; border-top: 1px solid #e2e8f0; }
.location-layer-section[hidden] { display: none; }
.location-layer-section > h4 { font-size: 12px; margin: 0 0 8px; color: #334155; }
.location-layer-section .wmo-chart-card, .location-layer-section .sst-climate-card, .location-layer-section .solar-times-card, .location-layer-section .geo-query-card { margin: 0; box-shadow: none; border: 0; padding: 0; }
.location-source-note { margin: 0 0 8px; padding: 7px 9px; border-radius: 6px; background: #eff6ff; color: #1e40af; font-size: 11px; line-height: 1.5; }
.location-context-marker { display: block; width: 18px; height: 22px; color: #0f766e; cursor: pointer; }
.location-context-pin { display: block; overflow: visible; filter: drop-shadow(0 1px 2px #0f172a55); }
.location-context-marker:hover { color: #115e59; }
.location-context-marker:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; border-radius: 12px; }
.location-context-controls { display: flex; flex-direction: column; gap: 5px; }
.location-context-controls .map-data-toggle { font-size: 22px; }
.location-context-controls .map-data-toggle-context-all { background: #0f172a; color: white; }

.geo-events-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: min(82dvh, 850px);
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #1e293b;
  box-shadow: 0 16px 60px #0f172a40;
}
.geo-events-dialog::backdrop { background: #0f172a45; }
.geo-events-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid #e2e8f0; }
.geo-events-dialog > header button, .geo-events-open, .geo-event-show-map {
  padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; color: #1e293b; font: inherit; cursor: pointer;
}
.geo-events-open { margin-top: 8px; font-weight: 650; }
.geo-events-dialog-content { padding: 14px; }
.geo-event-show-map { margin-top: 8px; font-size: 12px; }
.geo-events-dialog .geo-result-item:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
.geo-event-map-point {
  width: 12px; height: 12px; min-width: 12px; padding: 0;
  border: 2px solid white; border-radius: 50%;
  background: var(--geo-event-color, #be185d);
  box-shadow: 0 0 0 1px #33415588, 0 1px 5px #0f172a50;
  cursor: pointer;
}
.geo-event-map-point::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.geo-event-map-point:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

.geo-event-map-point { width: 24px; height: 24px; min-width: 24px; display: grid; place-items: center; background: white; color: var(--geo-event-color, #be185d); border: 1px solid var(--geo-event-color, #be185d); font-size: 16px; line-height: 1; }
.geo-event-category { font-size: 19px; flex: 0 0 auto; }
.geo-event-time, .geo-event-price { font-weight: 650; }
.location-place-name { color: #475569; font-size: 12px; font-weight: 600; }

.geo-event-source { display: block; margin-top: 8px; color: #1d4ed8; font-size: 12px; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }

.geo-event-preview { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.geo-event-preview[hidden], .geo-event-preview-image[hidden], .geo-event-description[hidden] { display: none; }
.geo-event-preview-image { width: 104px; height: 78px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; background: #e2e8f0; }
.geo-event-description { flex: 1 1 180px; margin: 0; color: #475569; font-size: 12px; line-height: 1.5; }

.geo-events-open { display: block; width: fit-content; max-width: 100%; margin: 16px 0 12px; font-size: 13px; line-height: 1.35; }

.landmark-popup { max-height: min(320px, 55dvh); overflow-y: auto; color: #294c51; padding: 4px; }
.landmark-popup img { display: block; margin: 0 auto 6px; width: 96px; height: 96px; }
.landmark-popup h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.landmark-popup p { margin: 6px 0; line-height: 1.4; }
.landmark-popup-category { color: #64746a; font-size: 12px; }
.landmark-popup a { display: inline-block; margin-top: 6px; color: #345d67; }

.map-feature-popup { z-index: 6; }
.map-feature-popup .maplibregl-popup-content { padding: 12px 14px; border-radius: 10px; font: 13px/1.45 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.map-feature-popup .maplibregl-popup-close-button { top: 4px; right: 4px; display: grid; place-items: center; box-sizing: border-box; width: 34px; height: 34px; padding: 0; border-radius: 6px; color: #294c51; font: 500 26px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.map-feature-popup .maplibregl-popup-close-button:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.map-feature-popup .animal-popup h3 { padding-right: 28px; font-size: 17px; }

.map-feature-panels { position: absolute; top: 42px; left: 14px; z-index: 5; display: grid; justify-items: start; gap: 8px; width: min(280px, calc(100% - 92px)); max-height: calc(100dvh - 112px - env(safe-area-inset-bottom)); overflow-y: auto; pointer-events: none; overscroll-behavior: contain; }
.map-feature-panel { --map-feature-control-height: 34px; position: relative; pointer-events: auto; box-sizing: border-box; width: 100%; max-height: min(70dvh, 500px); overflow-y: auto; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 9px; background: rgba(255, 255, 255, 0.112); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); color: #294c51; box-shadow: 0 3px 12px rgba(17, 24, 39, 0.08); font: 12px/1.4 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; touch-action: pan-y; overscroll-behavior: contain; }
.map-feature-panel[hidden] { display: none; }
.map-feature-panel:not([open]) { width: max-content; max-width: 100%; }
.map-feature-panel summary { box-sizing: border-box; height: calc(var(--map-feature-control-height) - 2px); padding: 0 11px; cursor: pointer; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: calc(var(--map-feature-control-height) - 2px); }
.map-feature-panel summary:hover { background: rgba(255, 255, 255, 0.144); }
.map-feature-panel summary:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; border-radius: 8px; }
.map-feature-panel-body { display: grid; gap: 9px; padding: 0 12px 12px; }
.map-feature-panel label { display: grid; gap: 3px; font-weight: 600; }
.map-feature-panel select, .map-feature-panel input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 36px; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 6px; padding: 6px; background: rgba(255, 255, 255, 0.144); color: #294c51; font: inherit; }
.map-feature-panel select option { background: #fff; color: #294c51; }
.landmark-type-group { min-width: 0; margin: 0; padding: 0 0 0 8px; border: 0; border-left: 2px solid rgba(113, 135, 123, .22); }
.landmark-type-group legend { padding: 0; }
.landmark-panel .landmark-type-option { display: flex; align-items: center; gap: 8px; min-height: 30px; cursor: pointer; font-weight: 500; }
.landmark-panel .landmark-type-group-label, .landmark-panel .landmark-types-all { font-weight: 750; }
.landmark-panel input[type="checkbox"] { flex: 0 0 16px; box-sizing: border-box; width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: #345d67; }
.landmark-panel input[type="checkbox"]:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.landmark-overview-legend::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 1px; border-radius: 50%; background: #657e72; box-shadow: 0 0 0 2px rgba(113, 135, 123, .18); }
.map-feature-panel:not([open]), .map-view-controls, .maplibregl-ctrl-bottom-right > .maplibregl-ctrl-attrib.maplibregl-compact {
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .025));
  border-color: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 3px 12px rgba(17, 24, 39, .06);
}
.map-view-controls .flavor-select, .map-view-controls .language-select, .map-view-controls .attribution-info-button {
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 2px 7px rgba(17, 24, 39, .04);
}
.map-view-controls .attribution-info-button:hover { background: rgba(255, 255, 255, .18); }
.landmark-controls .map-data-toggle, .animal-controls .map-data-toggle {
  --map-data-toggle-active-bg: rgba(37, 99, 235, .16);
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 3px 10px rgba(15, 23, 42, .08);
}
.landmark-controls .map-data-toggle:hover, .animal-controls .map-data-toggle:hover { background: rgba(255, 255, 255, .3); }
.landmark-controls .map-data-toggle.is-active, .animal-controls .map-data-toggle.is-active {
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .025)), var(--map-data-toggle-active-bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .45), 0 4px 12px rgba(15, 23, 42, .12), inset 0 0 0 1px var(--map-data-toggle-active);
}
.animal-evidence-note, .animal-panel-status, .map-feature-panel-status, .animal-credit { margin: 0; font-size: 11px; color: #627768; line-height: 1.45; }
.animal-popup { max-height: min(430px, 57dvh); overflow-y: auto; color: #294c51; }
.animal-popup h3 { margin: 0 0 8px; font-size: 16px; }
.animal-popup-list { margin: 8px 0; }
.animal-popup-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #dce4d8; }
.animal-popup-row img { flex: 0 0 54px; object-fit: contain; }
.animal-popup-row > div { min-width: 0; }
.animal-popup-row em, .animal-popup-row span, .animal-source-link { display: block; font-size: 11px; line-height: 1.5; }
.animal-species-link { border: 0; padding: 0; background: transparent; color: #294c51; font: inherit; font-weight: 700; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.animal-source-link { margin-top: 3px; color: #3d6b60; }
@media (max-width: 900px) { .map-feature-panels { top: calc(42px + env(safe-area-inset-top)); left: 10px; max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); } .map-feature-panel { --map-feature-control-height: 36px; } }
@media (max-width: 640px) { .animal-panel input { font-size: 16px; } }
.animal-popup-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; background: #fffef7; }
.animal-popup-pages button { min-height: 34px; border: 1px solid #b8c7b9; border-radius: 6px; padding: 5px 9px; background: white; color: #294c51; cursor: pointer; }
.animal-popup-pages button:disabled { opacity: .45; cursor: default; }
.animal-group-symbol { color: #71846e; font-size: 10px !important; }

/* Cards fit the actual visible map, including mobile browser chrome/safe areas. */
.animal-popup-viewport { position: fixed; inset: 0; visibility: hidden; pointer-events: none; padding: calc(56px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.animal-map-popup { z-index: 12; width: min(330px, var(--animal-popup-width, calc(100vw - 24px))); }
.animal-map-popup .maplibregl-popup-content { box-sizing: border-box; display: flex; min-height: 0; max-height: calc(var(--animal-popup-height, 80dvh) - 10px); }
.animal-map-popup .animal-popup { flex: 1 1 auto; min-width: 0; min-height: 0; max-height: none; overflow-y: auto; overflow-wrap: anywhere; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.animal-map-popup.is-viewport-shifted .maplibregl-popup-tip { visibility: hidden; }
.animal-popup-row.is-focused { background: #edf2e9; border-radius: 6px; }
.animal-map-evidence-label { position: absolute; z-index: 4; left: max(12px, env(safe-area-inset-left)); bottom: calc(64px + env(safe-area-inset-bottom)); box-sizing: border-box; max-width: calc(100% - 24px); margin: 0; padding: 4px 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; background: rgba(255,253,244,.86); color: #46655b; font: 11px/1.4 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; pointer-events: none; }
.animal-map-evidence-label[hidden] { display: none; }
.landmark-controls .map-data-toggle.is-locked::after, .animal-controls .map-data-toggle.is-locked::after { content: '🔒'; position: absolute; right: -2px; bottom: -2px; font: 10px/1 sans-serif; }

