/* public/aerial-measure.css */
.aerial-measure {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  color: #203632;
  font: 16px/1.5 system-ui, sans-serif;
}
.aerial-measure * {
  box-sizing: border-box;
}
.aerial-measure h1 {
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.15;
  margin: 4px 0 16px;
}
.aerial-measure p {
  margin: 10px 0;
}
.am-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.am-kicker {
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 750;
  color: #47655e;
}
.aerial-measure button,
.aerial-measure input,
.aerial-measure textarea,
.aerial-measure select {
  font: inherit;
  border: 1px solid #a8bbb5;
  border-radius: 8px;
  background: #fff;
  color: #163b33;
  padding: 10px 12px;
  max-width: 100%;
}
.aerial-measure button {
  cursor: pointer;
  min-height: 44px;
}
.aerial-measure button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.aerial-measure input:not([type=checkbox]),
.aerial-measure textarea,
.aerial-measure select {
  width: 100%;
  margin-top: 6px;
}
.aerial-measure label {
  display: block;
  font-weight: 650;
}
.aerial-measure label input[type=checkbox] {
  accent-color: #087b69;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 7px 0 0;
  flex: none;
}
.am-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.am-consent,
.am-source,
.am-location {
  padding: 16px;
  margin: 16px 0;
  background: #edf6f2;
  border: 1px solid #d3e6de;
  border-radius: 12px;
}
.am-consent p,
.am-source p,
.am-help {
  font-size: 14px;
}
.am-location summary {
  cursor: pointer;
  font-weight: 750;
}
.am-service {
  font-size: 14px;
  color: #536b63;
}
.am-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.am-primary,
.aerial-measure button[aria-pressed=true] {
  background: #087b69;
  color: #fff;
  border-color: #087b69;
}
.am-map-wrap {
  width: 100%;
  max-width: 900px;
  background: #e3ebe6;
  border: 1px solid #869a91;
  overflow: hidden;
}
.am-map-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  cursor: crosshair;
  touch-action: manipulation;
}
.am-map-wrap svg:focus {
  outline: 4px solid #f0af3c;
  outline-offset: -4px;
}
.am-empty {
  padding: 50px 22px;
  text-align: center;
  color: #526c62;
}
.am-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #c6d8d0;
  border-radius: 10px;
  background: #f8fcfa;
}
.am-metrics strong {
  font-size: 21px;
}
.am-metrics span {
  display: block;
}
.am-error {
  color: #9d2626;
  background: #fff2ee;
  padding: 12px;
  border: 1px solid #e5b7a7;
  border-radius: 8px;
}
.am-confirm {
  padding: 12px;
  background: #fff6dc;
  border-radius: 8px;
}
.aerial-measure [data-am-matches] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aerial-measure [data-am-pins] {
  padding-left: 22px;
  overflow-wrap: anywhere;
}
.aerial-measure [data-am-pins] li {
  margin: 10px 0;
}
.aerial-measure :focus-visible {
  outline: 3px solid #be7c00;
  outline-offset: 3px;
}
.aerial-measure[aria-busy=true] {
  cursor: progress;
}
@media (max-width: 600px) {
  .aerial-measure {
    padding: 16px 10px;
  }
  .am-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .am-fields,
  .am-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .am-actions button {
    flex: 1 1 145px;
  }
  .am-consent,
  .am-source,
  .am-location {
    padding: 12px;
  }
  .aerial-measure button {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
