.header-actions { display: flex; gap: 16px; align-items: center; }
.report-link { background: var(--green); color: #fff; padding: 9px 13px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.success { margin-top: 14px; padding: 12px; background: #dff3e7; color: #0d633b; border-radius: 9px; }
.form-page { padding: 24px; max-width: 720px; margin: auto; }
.report-card { padding: 24px; }
.report-card label { margin: 12px 0; }
.report-card textarea { display: block; width: 100%; min-height: 90px; margin-top: 5px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
.quality-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quality-summary b { padding: 14px; background: var(--paper); border-radius: 10px; }
/* Attribution is rendered in the permanent footer; never conceal a provider control if enabled. */
.leaflet-control-attribution { display: block !important; }
.link-button { background: none; color: var(--green); padding: 0; text-decoration: underline; }
.request-card { max-width: 760px; padding: 8px 0 20px; }
.modal { position: fixed; inset: 0; z-index: 2000; background: #10221caa; display: grid; place-items: center; padding: 20px; }
.modal.hidden { display: none; }
.modal-card { width: min(760px, 100%); padding: 20px; }
#geo-map { height: 430px; margin: 12px 0; border-radius: 12px; }
.coord-row { display: flex; gap: 10px; margin-top: 10px; }
.geo-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.geo-head select { width:auto; min-width:220px; }
.geo-summary { display:flex; flex-wrap:wrap; gap:7px; margin:8px 0 14px; }
.geo-summary > * { padding:6px 9px; background:var(--paper); border-radius:8px; font-size:12px; }

/* Public map UX */
.controls { width: 380px; overflow: visible; }
.search-wrap { position: relative; }
.search-wrap > input { margin-top: 5px; min-height: 44px; }
.search-results { position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 5px); max-height: 330px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 38px #10221c33; padding: 5px; }
.search-results button { display: block; width: 100%; min-height: 48px; padding: 8px 10px; background: #fff; color: var(--ink); text-align: left; font-weight: 500; }
.search-results button:hover,.search-results button.active { background: #e8f2ec; }
.search-results button b,.search-results button small { display: block; }
.search-results button small,.no-results { color: var(--muted); font-size: 11px; }
.no-results { padding: 13px; }
.filter-toggle { display: none; }
.filter-panel { display: block; }
.filters label select { margin-top: 4px; }
.reset-button { background: #edf4ef; color: var(--green); min-height: 42px; }
.stats { grid-template-columns: repeat(5,1fr); }
.stat small span { display: block; opacity: .72; font-size: 9px; }
.building-marker-host { background: transparent; border: 0; }
.mk-hit { width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.mk-ring { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--ring); }
.mk-dot { width: 11px; height: 11px; display: block; border-radius: 50%; background: var(--status); border: 2px solid #fff; box-shadow: 0 1px 4px #10221c88; }
.mk-hit.selected .mk-ring { width: 26px; height: 26px; border-color: #173fca; border-width: 4px; background: #fff9; box-shadow: 0 0 0 3px #fff,0 2px 10px #10221c77; }
.mk-hit.selected .mk-dot { width: 13px; height: 13px; }
.card-close { position: absolute; right: 10px; top: 8px; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #edf4ef; color: var(--ink); font-size: 27px; line-height: 1; z-index: 2; }

@media (max-width: 760px) {
  .public-layout { height: calc(100vh - 137px); min-height: 510px; }
  .controls { left: 8px; right: 8px; top: 8px; width: auto; max-height: none; padding: 10px; overflow: visible; }
  .search-wrap > label { display: none; }
  .search-wrap > input { margin: 0; min-height: 46px; padding-right: 12px; }
  .filter-toggle { display: block; position: absolute; top: 58px; left: 10px; width: auto; min-width: 112px; min-height: 44px; padding: 8px 13px; }
  .filter-panel { display: none; margin-top: 54px; max-height: 48vh; overflow-y: auto; }
  .filter-panel.open { display: block; }
  .filters { grid-template-columns: 1fr; }
  .filters label,.filters .check,.reset-button { grid-column: 1; }
  .legend { display: none; }
  .stats { grid-template-columns: repeat(5,1fr); gap: 3px; margin: 8px 0 0 124px; min-height: 44px; }
  .stat { padding: 5px 2px; border-radius: 8px; }
  .stat b { font-size: 15px; }
  .stat small { font-size: 8px; line-height: 1.1; }
  .stat small span { display: none; }
  .search-results { max-height: 280px; }
  .building-card { position: fixed; left: 8px; right: 8px; bottom: 62px; top: auto; width: auto; max-height: 42vh; overflow-y: auto; border-radius: 18px 18px 12px 12px; padding: 18px; z-index: 1500; }
  .building-card h2 { padding-right: 36px; }
  .building-card dl { grid-template-columns: minmax(0,1fr) minmax(105px,auto); }
  .mk-hit { width: 36px; height: 36px; }
}
@media (max-width: 760px) {
  .report-link { padding: 7px; font-size: 12px; }
  .header-actions { gap: 7px; }
  .quality-summary { grid-template-columns: 1fr 1fr; }
}
