.project-map-section { background: #fff; }
.project-map-section .section-heading { margin-bottom: 28px; }
.map-tools { display: flex; align-items: end; gap: 16px; margin-bottom: 18px; }
.map-tools label { flex: 1; max-width: 500px; }
.map-tools select { display: block; width: 100%; min-height: 48px; margin-top: 7px; padding: 10px 34px 10px 12px; border: 1px solid #c8ccd2; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.map-reset { min-height: 48px; padding: 10px 18px; border: 1px solid #c8ccd2; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.map-tools :disabled { opacity: .55; cursor: wait; }
.map-frame { position: relative; isolation: isolate; border: 1px solid #d8dadd; border-radius: 8px; overflow: hidden; }
.project-map-canvas { height: 540px; width: 100%; background: #eef0ec; font-family: Arial, Helvetica, sans-serif; }
.map-status { position: absolute; z-index: 1000; left: 14px; right: 14px; bottom: 30px; width: fit-content; max-width: calc(100% - 28px); margin: 0 auto; padding: 10px 16px; border-radius: 4px; background: #fff; color: #41464d; font-size: 14px; box-shadow: 0 2px 12px #0002; }
.map-help { color: var(--muted); font-size: 14px; margin: 12px 0 20px; }
.map-addresses { border-top: 1px solid #e2e4e8; border-bottom: 1px solid #e2e4e8; padding: 16px 0; }
.map-addresses summary { width: fit-content; cursor: pointer; font-weight: 700; }
.map-addresses ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; padding: 0; margin: 22px 0 4px; list-style: none; }
.map-addresses a { display: block; color: var(--ink); text-decoration: none; border-left: 3px solid var(--accent); padding: 4px 14px; }
.map-addresses a:hover strong { text-decoration: underline; }
.map-addresses strong, .map-addresses span { display: block; }
.map-addresses span { color: var(--muted); font-size: 14px; }
.map-addresses .map-photo-link { color: var(--accent); margin-top: 3px; font-weight: 700; }
.roof-marker { display: flex; align-items: center; justify-content: center; border: 3px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 2px 7px #0005; font-size: 13px; font-weight: 800; }
.roof-marker-group { background: var(--ink); font-size: 16px; }
.roof-marker:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.map-popup { color: var(--ink); min-width: 160px; }
.map-popup h3 { font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.map-popup p { margin: 0 0 12px; font-size: 14px; }
.map-popup img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 3px; margin: 0 0 12px; }
.map-popup a { color: var(--accent); font-size: 14px; font-weight: 700; }
.map-popup ul { padding: 0; margin: 12px 0; list-style: none; }
.map-popup li + li { border-top: 1px solid #e2e4e8; padding-top: 10px; margin-top: 10px; }
.map-popup li strong { display: block; font-size: 14px; line-height: 1.35; margin-bottom: 4px; }
.map-popup li p { font-size: 13px; margin-bottom: 5px; }
.map-popup button { width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 3px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.project-map-section :is(button, select, a, summary):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.project-map-canvas .leaflet-control-attribution { font-size: 11px; }


@media (max-width: 600px) {
  .map-tools { align-items: stretch; flex-direction: column; gap: 12px; }
  .map-tools label { max-width: none; }
  .project-map-canvas { height: 420px; }
  .map-addresses ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.project-map-section{border-top:1px solid var(--line)}
.project-map-section .leaflet-popup-close-button:focus-visible{outline-offset:-3px}
