/* Home page on phones (index.php only, loaded after style.css).
 *
 * style.css pins the hero text (.caption) absolutely over a fixed 450px photo, so on a phone the heading,
 * subtitle and two search fields (about 480px) ran past the photo and the search box covered the
 * "Own a rental home?" strip below it. Here the text is back in the normal flow and the photo fills
 * whatever height the text needs, so nothing can overlap at any width or text size. Desktop is untouched.
 */
@media (max-width: 767px) {
	.banner { height: auto; min-height: 0; }
	.banner #myCarousel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
	.banner .carousel-inner,
	.banner .carousel-inner > .item { height: 100%; min-height: 0; max-height: none; }
	.banner .carousel-inner > .item { background-position: center center; }
	/* White text over a busy photo: darker shade than the desktop 15%. */
	.banner .item:before { background-color: rgba(0, 0, 0, .45); }
	/* The photos do not change on their own on phones (see index.php), and the arrows sat on the heading. */
	.banner .carousel-control,
	.banner .carousel-indicators { display: none; }

	/* The mobile header (logo + menu) floats over the top of the photo: start the text below it. */
	.banner .caption { position: relative; top: auto; z-index: 2; padding: 64px 0 24px; }
	.banner .caption h1 { font-size: 28px; line-height: 1.2; margin: 0 0 10px; padding: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
	.banner .main_slider_subtitle { font-size: 17px; line-height: 1.4; margin: 0 0 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

	/* City picker and search box: full width, stacked, 50px tall (easy to tap; the same as the search button). */
	.banner .slider_form_div form { display: flex; flex-direction: column; gap: 10px; }
	.banner .caption .select_box,
	.banner .caption .input_box { float: none; width: 100%; margin: 0; padding: 0; }
	.banner .select_box .home-select .btn.dropdown-toggle,
	.banner .select_box .home-select.form-control { height: 50px; }
	/* 16px or more, or iPhones zoom the whole page when the box is tapped. */
	.banner .input_box input.form-control.home-select-input { height: 50px; margin: 0; padding-left: 42px; font-size: 16px; }
	/* Pin and search button sit inside the 50px box (style.css placed them for a box 15px lower). */
	.banner .caption .input_box img { left: 12px; top: 12px; width: 18px; height: auto; }
	.banner .caption .input_box .view_property { top: 0; right: 0; }
}

@media (max-width: 374px) {
	.banner .caption h1 { font-size: 25px; }
	.banner .main_slider_subtitle { font-size: 16px; }
}
