/*
Theme Name: Houzez Child
Theme URI: http://www.favethemes.com/
Author: Favethemes
Author URI: http://www.favethemes.com/
Description: Houzez is a premium WordPress theme for real estate agents where modern aesthetics are combined with tasteful simplicity, and where the ease of use is achieved without compromise in your ability to customise the design. Whether you are a real estate agent looking to build a website for your company or a web developer seeking a perfect WordPress theme for your next project, you are certain to appreciate the numerous features and benefits that our theme provides.
Version: 1.0
Tags: white, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, post-formats, theme-options, translation-ready
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: houzez
Template: houzez
*/

@import url("../houzez/style.css");

/*
 * Footer widget headings must all render at one size.
 *
 * The theme's `.widget-title` (18px/24px) only covers classic widgets. The
 * "Newsletter" footer widget is a Gutenberg block, so its heading renders as
 * h2.wp-block-heading and falls back to the global h2 size
 * (calc(1.325rem + .9vw) = 32px on desktop) - twice as large as "About Us"
 * and "Information" next to it.
 *
 * Covering every heading level inside a footer block widget keeps that true
 * when the block's heading level changes, and matching the widget title also
 * pulls the newsletter copy up to the same baseline as the About Us column,
 * because the heading box shrinks from 38.4px to 24px.
 */
.footer-wrap .widget_block :is(h1, h2, h3, h4, h5, h6).wp-block-heading {
	font-size: 18px;
	line-height: 24px;
}

/*
 * Footer top: three real columns, spread evenly.
 *
 * `footer_cols` is set to `four_cols` and `footer-sidebar-3` holds no widgets,
 * so the theme renders four equal slots with the third one empty
 * (template-parts/footer/footer.php). The three real columns therefore land on
 * 25% / 50% / 75% of the row, leaving a 25%-wide hole between Newsletter and
 * Information - the Newsletter block sits left of centre and Information is
 * pushed to the far edge.
 *
 * Dropping the empty slot and giving each real column a third of the row puts
 * About Us, Newsletter and Information on an even rhythm from the lg breakpoint
 * up, which is where the theme's col-lg-3 applies its 25%.
 *
 * The empty slot is hidden at every width because it carries no content: below
 * lg the theme's own col-md-6 (two up) still governs the widths, and hiding it
 * just pulls Information up beside Newsletter instead of leaving it in the
 * right half of a second row.
 *
 * Scoped to the direct children of this one row so a `.row > .col-lg-3` inside
 * any footer widget keeps its own grid.
 */
.footer-top-wrap > .container > .row > .col-lg-3:empty {
	display: none;
}

@media (min-width: 992px) {
	/*
	 * Column widths: 25% (About Us) / 50% (Newsletter) / 25% (Information).
	 * The third slot in the markup is the empty one hidden above, so the three
	 * real blocks are children 1, 2 and 4 — hence :first/:nth-child(2)/:last.
	 */
	.footer-top-wrap > .container > .row > .col-lg-3:nth-child(1) {
		flex: 0 0 25%;
		width: 25%;
		max-width: 25%;
	}

	.footer-top-wrap > .container > .row > .col-lg-3:nth-child(2) {
		flex: 0 0 50%;
		width: 50%;
		max-width: 50%;
	}

	.footer-top-wrap > .container > .row > .col-lg-3:last-child {
		flex: 0 0 25%;
		width: 25%;
		max-width: 25%;
	}

	/*
	 * Block placement: About Us reads from the left edge, the Newsletter is
	 * centred in its half, and Information keeps its place at the right edge
	 * but reads left to right, so its heading and menu items share a left edge
	 * instead of being ragged-left by a right alignment.
	 */
	.footer-top-wrap > .container > .row > .col-lg-3:nth-child(2) {
		text-align: center;
	}

	.footer-top-wrap > .container > .row > .col-lg-3:last-child {
		text-align: left;
	}

	/*
	 * The Newsletter half is wide, so its content is capped and centred: the
	 * heading, the sentence and the subscribe form then sit centred with equal
	 * space either side. margin-left needs !important because the theme ships an
	 * inline `.footer-top-wrap .widget-wrap{margin-left:10px!important}` rule.
	 */
	.footer-top-wrap > .container > .row > .col-lg-3:nth-child(2) .footer-widget {
		margin-left: auto !important;
		margin-right: auto;
		max-width: 460px;
	}

	/*
	 * The right column is pushed over with margin-left:auto and shrunk to its
	 * widest line (width:max-content), so the block hugs the right edge while
	 * its text stays left-aligned.
	 */
	.footer-top-wrap > .container > .row > .col-lg-3:last-child .footer-widget {
		margin-left: auto !important;
		margin-right: 10px;
		width: max-content;
		max-width: 100%;
	}
}

/*
 * Footer newsletter: the email field and the Subscribe button must be exactly
 * the same width when Mailster stacks them.
 *
 * Mailster's own stylesheet carries `@media (max-width:400px)
 * .mailster-block-form... .mailster-wrapper{min-width:100%}`, which turns the
 * 60%/40% side-by-side row into two full-width stacked fields. Its inline
 * stylesheet still puts `margin-right:5px` on the email `.input` - that margin
 * is the gap that separates the field from the button in the side-by-side row -
 * so once the fields are stacked the input is 5px narrower than the button and
 * the right edges no longer line up.
 *
 * Below the same 400px breakpoint that margin has nothing left to separate, so
 * it is dropped and both controls measure the full width of the form.
 * !important is required: Mailster's declaration sits in an inline <style> block
 * emitted after this stylesheet, with a selector of equal-or-higher weight.
 */
@media only screen and (max-width: 400px) {
	.footer-wrap .mailster-block-form .mailster-wrapper-type-email .input {
		margin-right: 0 !important;
	}
}

/*
 * The map's Prev/Next property pager is hidden on every map surface.
 *
 * It duplicates the result list next to the map, and on /search/ it lands in
 * the top-left corner of the map, where `assets/ere-ai-search.js`
 * (`arrangeMapControls()`) gathers the theme's three control clusters into one
 * row. The cluster stays in the DOM on purpose: that same function returns
 * early when `.map-next-prev-actions` is missing, and the whole row would then
 * fall back to the theme's own corners - putting Fullscreen bottom-right,
 * underneath Eva's panel (z-index 30).
 *
 * !important is required: `assets/ere-ai-search.css` is served after this sheet
 * and re-declares `display:inline-flex` on this cluster inside
 * `.ere-ai-map-controls` - a two-class selector of the same weight, so plain
 * order decides and the later sheet would win.
 */
.map-wrap .map-next-prev-actions {
	display: none !important;
}

/* Your CSS code goes here
-------------------------------------- */