
.mf-page { box-sizing: border-box; max-width: max(1200px, var(--fg-page-read, 1200px)); margin: 0 auto; }

main[data-mf-page="buildings"] .mf-page { max-width: 1120px; padding: 0 clamp(1rem, 3vw, 2rem) 2rem; }
.mf { margin: 8px 0 28px; }
.mf-numbers { margin: 0 0 14px; color: #3d3d3d; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.mf-numbers strong { color: #1f1f1f; font-weight: 700; }
.mf-map { position: relative; height: 480px; overflow: hidden; border: 1px solid #e8e8e8; border-radius: 16px; background: #f6f4ef; }
.mf-map .fg-map-canvas { position: absolute; inset: 0; }
.mf-map.fgm.fgm { border-radius: 16px; }

.mf-open {
  position: absolute; z-index: 6; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: #fff; color: #1f1f1f;
  font: 600 14px/1 var(--gw-font, Figtree, system-ui, sans-serif); text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 16%), 0 2px 8px rgb(0 0 0 / 12%);
}
.mf-open:hover { background: #f6f6f4; }
.mf-open:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 2px; }
.mf-map.fgm.fgm .fg-map-layers { right: 190px; }

.mf-map.fgm.fgm .mf-chips { pointer-events: auto; }
.mf-map.fgm.fgm .mf-chips .fg-map-chip { pointer-events: auto; flex: none; }
.mf-source { margin: 10px 0 0; color: #6b6b6b; font-size: 14px; line-height: 1.5; }

html.ds3 main .mf .mf-source { padding: 0; background: none; }
.mf-source a { color: inherit; }


.mf-list { margin: 8px 0 32px; }
.mf-list h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.25; }
.mf-list h2 span, .mf-group h3 span, .mf-fold summary span { color: #6b6b6b; font-weight: 500; }
.mf-group h3 { margin: 20px 0 6px; font-size: 16px; }
.mf-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.mf-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid #e8e8e8; cursor: pointer; }
.mf-row[hidden] { display: none; }
.mf-row:is(.on, .is-selected) b { text-decoration: underline; text-underline-offset: 3px; }
.mf-row b { display: block; font-size: 16px; line-height: 1.35; }
.mf-row b a { color: inherit; }
.mf-row small { display: block; margin-top: 2px; color: #6b6b6b; font-size: 14px; line-height: 1.4; }
.mf-marker {
  display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 999px;
  background: #fff; color: #1f1f1f; box-shadow: 0 0 0 1px #dcdcdc; font: 700 12px/1 var(--gw-font, Figtree, system-ui, sans-serif); white-space: nowrap;
}
.mf-marker.is-dot { min-width: 0; width: 12px; height: 12px; margin: 5px 9px 0; padding: 0; background: #5b5b5b; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dcdcdc; font-size: 0; }
.mf-search { display: block; max-width: 520px; margin: 0 0 12px; }
.mf-search input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid #dcdcdc; border-radius: 999px; font: 400 16px/1.2 var(--gw-font, Figtree, system-ui, sans-serif); }
.mf-search input:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 2px; }
.mf-empty { color: #6b6b6b; }
.mf-note { color: #6b6b6b; font-size: 14px; line-height: 1.5; max-width: 72ch; }
.mf-fold { border-top: 1px solid #e8e8e8; }
.mf-fold:last-child { border-bottom: 1px solid #e8e8e8; }
.mf-fold summary { display: flex; gap: 8px; align-items: center; min-height: 48px; font-weight: 600; cursor: pointer; }
.mf-fold .mf-rows { padding-bottom: 8px; }

@media (max-width: 760px) {
  .mf-map { height: 56vh; min-height: 320px; }
  .mf-numbers { font-size: 16px; }
  
  .mf-open { top: auto; right: auto; bottom: 12px; left: 12px; min-height: 44px; }
  .mf-map.fgm.fgm .fg-map-layers { right: 12px; }
  
  .mf-map:has(.fg-map-sheet[data-state="card"]) .mf-open { display: none; }
  .mf-rows { grid-template-columns: 1fr; }
}
