/*
Theme Name: Simpleweb Real Estate — Client Draft
Author: Simpleweb.in
Description: Production-capable client-draft theme for the Simpleweb Real Estate website.
Version: 0.7.4
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: simpleweb-real-estate
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--swre-color-black: #0b0b0d;
	--swre-color-charcoal: #26262b;
	--swre-color-orange: #ee1c00;
	--swre-color-gold: #d4af37;
	--swre-color-gold-bright: #ffd700;
	--swre-color-gold-tint: #f3e9ce;
	--swre-color-ivory: #fbf7ef;
	--swre-color-hairline: #e4dcc9;
	--swre-color-white: #ffffff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--swre-color-ivory);
	color: var(--swre-color-charcoal);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.6;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

a {
	color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--swre-color-orange);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--swre-color-white);
	clip: auto !important;
	clip-path: none;
	color: var(--swre-color-black);
	display: block;
	font-size: 1rem;
	font-weight: 700;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 0.875rem 1.25rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.site-main {
	margin-inline: auto;
	max-width: 1200px;
	padding-inline: 1.25rem;
}

.site-main {
	min-height: 50vh;
	padding-block: 3rem;
}

/* Elementor owns the canvas width and spacing for Elementor-rendered pages. */
.swre-elementor-content {
	min-height: 50vh;
	width: 100%;
}

.front-page-content:empty {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

.swre-button {
	align-items: center;
	background: var(--swre-color-orange);
	border: 2px solid var(--swre-color-orange);
	box-shadow: 0 6px 0 var(--swre-color-black);
	color: var(--swre-color-white);
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 44px;
	padding: 0.75rem 1.35rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.swre-button:hover,
.swre-button:focus-visible {
	background: var(--swre-color-gold-tint);
	border-color: var(--swre-color-gold);
	box-shadow: 0 3px 0 var(--swre-color-black);
	color: var(--swre-color-black);
	transform: translateY(3px);
}

.swre-button:active {
	box-shadow: none;
	transform: translateY(6px);
}

@media (max-width: 767px) {
	/* PropertyHive renders its default search form as a single table row. */
	form.property-search-form {
		display: grid;
		gap: 0.75rem;
		grid-template-columns: minmax(0, 1fr);
		max-width: 100%;
		width: 100%;
	}

	form.property-search-form > .control {
		min-width: 0;
		width: 100%;
	}

	form.property-search-form select,
	form.property-search-form input[type="submit"] {
		max-width: 100%;
		width: 100%;
	}
}
