/*
 * Optima Express (iHomefinder) search results: map beside the listings.
 *
 * iHomefinder sizes the map to the viewport and makes it sticky so it follows
 * the listings down the page. The theme sets `overflow: hidden` on html and
 * body, which breaks sticky, so the map stays at the top while the listings run
 * on far below it. Instead the listings get the map's height and scroll on
 * their own.
 *
 * The map heights mirror iHomefinder's own rules for each container size it
 * sets on <ihf-search> (xs/sm/md/lg/xl, by the widget's width, not the
 * viewport's). From md up the 45px "Sort / Showing" bar sits above the
 * listings, so they start that much lower than the map. On xs the map is behind
 * a List/Map toggle, so the listings keep their natural length there.
 */
.ihf-sticky-height.ihf-container-sm .ihf-search .ihf-listings-container,
.ihf-sticky-height.ihf-container-md .ihf-search .ihf-listings-container,
.ihf-sticky-height.ihf-container-lg .ihf-search .ihf-listings-container,
.ihf-sticky-height.ihf-container-xl .ihf-search .ihf-listings-container {
	overflow-x: hidden;
	overflow-y: auto;
}

/* Map: 100vh - 101px, level with the listings. */
.ihf-sticky-height.ihf-container-sm .ihf-search .ihf-listings-container {
	height: calc(100vh - 101px);
}

/* Map: 100vh - 101px, listings start 45px lower. */
.ihf-sticky-height.ihf-container-md .ihf-search .ihf-listings-container {
	height: calc(100vh - 146px);
}

/* Map: 100vh - 56px, listings start 45px lower. */
.ihf-sticky-height.ihf-container-lg .ihf-search .ihf-listings-container,
.ihf-sticky-height.ihf-container-xl .ihf-search .ihf-listings-container {
	height: calc(100vh - 101px);
}
