.planning-shell .map-panel,
.planning-shell.map-focused .map-panel { display: flex!important; flex-direction: column; }
.planning-shell .map-panel .map-stage {
  position: relative;
  inset: auto;
  flex: 1 1 0;
  width: 100%;
  height: auto;
  min-height: 0;
}
.planning-shell .map-exploration-tools {
  position: relative;
  z-index: 16;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  padding: 5px 9px;
  background: #f7f1df;
  border-bottom: 1px solid #d4c7a6;
  color: #294a40;
  flex: none;
}
.planning-shell .basemap-switch,
.planning-shell .study-area-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}
.planning-shell .basemap-switch {
  padding: 3px;
  border: 1px solid #b8bca8;
  border-radius: 10px;
  background: #e9e7d8;
}
.planning-shell .map-exploration-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #28493d;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.planning-shell .basemap-switch button.active {
  color: #fff9e8;
  background: #225a48;
  box-shadow: 0 2px 3px #193c3524;
}
.planning-shell .study-area-tools button {
  background: #fffaf0;
  border-color: #c8bc9b;
}
.planning-shell .study-area-tools button[aria-pressed="true"] {
  background: #f6d36f;
  border-color: #a7822d;
  color: #3c3011;
}
.planning-shell .map-exploration-tools button:hover:not(:disabled) {
  box-shadow: inset 0 0 0 2px #9b864b;
}
.planning-shell .map-exploration-tools button:focus-visible {
  outline: 3px solid #2478ad;
  outline-offset: 2px;
}
.planning-shell .map-exploration-tools button:disabled {
  opacity: .48;
  cursor: default;
}
.planning-shell .map-exploration-tools .icon { width: 15px; height: 15px; }
.planning-shell #study-area-status,
.planning-shell #satellite-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5b4e;
}
.planning-shell #satellite-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.planning-shell .basemap-loading-status {
  position: absolute;
  z-index: 8;
  right: 10px;
  bottom: 66px;
  max-width: min(280px, 50%);
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #b4c4ad;
  border-radius: 8px;
  background: #fffaeced;
  color: #244b3e;
  box-shadow: 0 2px 8px #173e3320;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}
.planning-shell .basemap-loading-status[hidden] { display: none; }
.planning-shell .comparison-map { display: none; pointer-events: auto; }
.planning-shell .map-stage.is-comparing .city-map { left: 50%; width: 50%; right: auto; }
.planning-shell .map-stage.is-comparing .comparison-map { left: 0; width: 50%; right: auto; clip-path: none; }
.planning-shell .map-stage.is-comparing .compare-labels {
  inset: 12px 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  z-index: 4;
}
.planning-shell .map-stage.is-comparing .compare-labels span {
  padding: 8px 12px;
  border: 1px solid #d8cba4;
  border-radius: 8px;
  background: #fff9eaf2;
  color: #183f36;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px #12272330;
}
.planning-shell .map-stage.is-comparing .compare-labels span:last-child {
  background: #225a48f5;
  border-color: #9cd5b7;
  color: #fff9e8;
}
.planning-shell .map-stage.is-comparing .compare-divider {
  width: 4px;
  left: calc(50% - 2px);
  background: #f6e6b9;
  box-shadow: 0 0 6px #071f2566;
  pointer-events: none;
}
.planning-shell .map-stage.is-comparing .map-badge,
.planning-shell .map-stage.is-comparing .map-legend,
.planning-shell .map-stage.is-comparing .map-provider { display: none; }
.planning-shell .map-stage.is-comparing .placement-banner { top: 58px; max-width: 92%; white-space: normal; }
.planning-shell[data-basemap="satellite"] .map-legend {
  padding: 5px 8px;
  background: #fff9eaeb;
  border-radius: 6px;
  text-shadow: none;
}
@media (max-width: 700px) {
  .planning-shell .map-exploration-tools { gap: 7px; padding: 8px; }
  .planning-shell .map-exploration-tools button { min-height: 38px; padding: 7px 9px; font-size: 11px; }
  .planning-shell #study-area-status { width: 100%; }
  .planning-shell .map-stage.is-comparing .compare-labels span { font-size: 11px; padding: 6px; }
}
