/* IDX Broker wrapper, frame mode only.
   Applies when the wrapper page is opened inside the community page map embed (URL has boffomap=1 and the page is framed).
   The inline flag in wp_head puts .boffo-frame on <html>; community-map-frame.js adds .boffo-frame-map once the IDX map exists.
   Nothing here changes the normal wrapper pages. */
html.boffo-frame,
html.boffo-frame body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #f4f1ea !important;
}
html.boffo-frame .boffo-header,
html.boffo-frame .boffo-footer,
html.boffo-frame .boffo-copyright,
html.boffo-frame .boffo-consent,
html.boffo-frame .mmp-ssk-sticky,
html.boffo-frame .boffo-mbar,
html.boffo-frame .boffo-pill,
html.boffo-frame [class*="boffo-chat"],
html.boffo-frame [id*="boffo-chat"] {
  display: none !important;
}
html.boffo-frame .boffo-idx-wrapper {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Map-only view. Needs the IDX map to exist: if IDX serves its list-only view (it does for automated browsers), the list stays visible. */
html.boffo-frame.boffo-frame-map #prime-map-search-page {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f4f1ea !important;
}
html.boffo-frame.boffo-frame-map #prime-map-search--filter-bar,
html.boffo-frame.boffo-frame-map #prime-map-search--results {
  display: none !important;
}
html.boffo-frame.boffo-frame-map #prime-map-search--main-content-container {
  display: block !important;
  width: 100% !important;
  height: 100vh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.boffo-frame.boffo-frame-map #prime-map-search--map {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex: none !important;
}
/* The IDX map is a Leaflet container (#IDX-map) whose height IDX sets inline from the window height minus its own filter bar
   allowance. With the filter bar hidden that left the map shorter than the frame (about 60 to 75 percent), with an empty strip below.
   Make the container, and the map inside it, fill the frame. The controls (zoom, layers, shapes) live inside the Leaflet container,
   so they stay on the map. */
html.boffo-frame.boffo-frame-map #IDX-map,
html.boffo-frame.boffo-frame-map #prime-map-search--map > div {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
}
html.boffo-frame.boffo-frame-map #prime-map-search--map {
  overflow: hidden !important;
}

/* BEGIN boffo-cream-sweep (William, 7:24 PM ET: no cream box with a tan or gold border, sitewide. Backgrounds and box borders only.) */
html.boffo-frame,
html.boffo-frame body,
html.boffo-frame.boffo-frame-map #prime-map-search-page {
	background: #f9fafb !important;
}
/* END boffo-cream-sweep */
