/* Frames for <milner-map> blocks on theme pages (MIR-8381 one map engine, 2026-12-02). The element draws the map, its key
   (legend) and its cards; these rules only size the frame and style the host text around it. */

/* The theme gives every button a 44px tap box; keep the MapLibre credit icon single inside it (one icon, centred). */
milner-map .maplibregl-ctrl-attrib-button { background-repeat:no-repeat; background-position:center; }

/* Gulf access block: template-parts/gen6-gulf-map.php (inside .ct-route on the Gulf pages and /cape-coral/ #ct-route). */
.g6-gulf-col { min-width: 0; }
.ct-route__map-wrap.g6-gulf-map { aspect-ratio: 16 / 11; min-height: 360px; }
milner-map.ct-route__map { position: absolute; inset: 0; display: block; min-height: 0; border-radius: 0; }
milner-map.ct-route__map:not(.mm-ready) > p { margin: 0; padding: 20px; font: 400 15px/1.55 Manrope, system-ui, sans-serif; color: #51647a; }
.g6-gulf-routes { margin: 14px 0 0; padding-left: 20px; font: 400 15px/1.55 Manrope, system-ui, sans-serif; color: #2c3e50; }
.g6-gulf-routes li { margin: 0 0 6px; }
.g6-gulf-routes b { color: #0d2f52; font-weight: 700; }
@media (max-width: 760px) {
  .ct-route__map-wrap.g6-gulf-map { aspect-ratio: auto; height: 420px; min-height: 0; }
}

/* Flood block: #flood-map on /cape-coral-flood-zones/ (inc/gen6-v10.php render filter). */
.g6-fm { margin: 32px 0; padding: 24px 0; border-top: 1px solid #dbe8f2; border-bottom: 1px solid #dbe8f2; scroll-margin-top: 110px; }
.g6-fm h2 { margin: 0 0 8px; }
.g6-fm > p { margin: 0 0 14px; }
.g6-fm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; border: 1px solid #dbe8f2; border-radius: 14px; overflow: hidden; background: #fafbfc; }
.g6-fm milner-map { display: block; height: 520px; min-height: 0; border-radius: 0; }
.g6-fm milner-map:not(.mm-ready) > p { margin: 0; padding: 20px; color: #51647a; }
.g6-fm-side { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.g6-fm-form label { display: block; font-weight: 700; color: #0d2f52; margin: 0 0 6px; }
.g6-fm-row { display: flex; flex-direction: column; gap: 8px; }
.g6-fm-row input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 12px; font-size: 16px; border: 1px solid #b9c6d6; border-radius: 10px; background: #fff; }
.g6-fm-row button { min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: #1d5a87; color: #fff; font-weight: 700; cursor: pointer; }
.g6-fm-matches { display: flex; flex-direction: column; margin-top: 6px; border: 1px solid #dbe8f2; border-radius: 10px; overflow: hidden; background: #fff; }
.g6-fm-matches[hidden] { display: none; }
.g6-fm-matches button { min-height: 44px; padding: 8px 12px; text-align: left; background: #fff; border: 0; border-top: 1px solid #eef3f7; font-size: 15px; cursor: pointer; }
.g6-fm-matches button:first-child { border-top: 0; }
.g6-fm-matches button[aria-selected="true"], .g6-fm-matches button:hover { background: #eaf4fc; }
.g6-fm-status { margin: 0; font-size: 14px; color: #51647a; min-height: 1.4em; }
.g6-fm-result[hidden] { display: none; }
.g6-fm-result h3 { margin: 0 0 6px; font-size: 22px; text-transform: capitalize; }
.g6-fm-result p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.g6-fm-chip { display: inline-block; padding: 2px 9px; margin-right: 4px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.g6-fm-confirm { color: #51647a; font-size: 14px !important; }
.g6-fm-note { margin: 10px 0 0; font-size: 14px; color: #51647a; }
@media (max-width: 860px) {
  .g6-fm-layout { grid-template-columns: 1fr; }
  .g6-fm milner-map { height: 440px; }
}
