/*
Theme Name: Marbella Estate Layout
Description: A Hello Elementor child theme with the Marbella Estate navigation, footer and property tiles for Elementor Free.
Template: hello-elementor
Version: 1.0.13
Requires PHP: 8.0
Text Domain: marbella-estate-hello
*/

.me-site-header {
	--me-header-height: 100px;
	--me-admin-offset: 0px;
	--me-focus: #f0d69c;
	font-family: Blinker, sans-serif;
}

body.admin-bar .me-site-header {
	--me-admin-offset: 32px;
}

.me-site-header__bar {
	position: fixed;
	inset: var(--me-admin-offset) 0 auto;
	z-index: 900;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	min-height: var(--me-header-height);
	padding: 10px 15px;
	background: linear-gradient(to bottom, rgb(0 0 0 / .72) 0%, rgb(0 0 0 / .58) 10%, transparent 100%);
}

/* These listing heroes previously compensated for the space above the page. */
.elementor-2664 > .elementor-element.elementor-element-cdc3d60,
.elementor-2666 > .elementor-element.elementor-element-d067fb1 {
	--margin-top: 0px;
	margin-block-start: 0;
}

.me-site-header ul, .me-site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-site-header__primary ul, .me-site-header__secondary ul {
	display: flex;
	align-items: center;
}

.me-site-header__secondary ul {
	justify-content: flex-end;
}

.me-site-header__bar nav a {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 7px;
	color: #fafafa;
	font-size: 11px;
	letter-spacing: .16em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.me-site-header__bar .me-site-header__primary a {
	padding-inline: 4px;
	font-size: 10px;
	letter-spacing: .06em;
}

.me-site-header__bar .me-site-header__secondary a {
	padding-inline: 12px;
}

.me-site-header__bar nav a:hover {
	color: var(--me-focus);
}

.me-site-header__logo img,
.me-mobile-menu__top img {
	display: block;
	width: 200px;
	height: 80px;
	object-fit: contain;
}

.me-menu-button, .me-menu-close {
	display: inline-grid;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.me-menu-button {
	display: none;
	color: #f4f1ea;
}

.me-menu-button:hover, .me-menu-button:focus {
	background: transparent;
	color: var(--me-focus);
}

.me-menu-close:hover, .me-menu-close:focus {
	background: transparent;
	color: inherit;
}

.me-site-header :is(a, button):focus-visible,
.me-site-footer a:focus-visible,
.me-property-tile:focus-visible {
	outline: 3px solid #f0d69c;
	outline-offset: 3px;
}

.me-property-tile:focus-visible {
	outline-offset: -5px;
}

.me-mobile-menu {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(400px, 100%);
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0 20px 24px;
	border: 0;
	background: #fdfbf7;
	color: #3e3423;
}

.me-mobile-menu::backdrop {
	background: rgb(0 0 0 / .52);
}

.me-mobile-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 85px;
}

.me-mobile-menu__top img {
	width: 180px;
	height: auto;
}

.me-mobile-menu nav a {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 8px 12px;
	border-bottom: 1px solid #ded6c7;
	color: inherit;
	font-size: 16px;
	text-decoration: none;
}

.me-mobile-menu nav a:hover {
	background: #f2ebdf;
}

.me-mobile-menu :is(a, button):focus-visible {
	outline-color: #79591e;
}

body:has(.me-mobile-menu[open]) {
	overflow: hidden;
}

.me-site-footer {
	--me-footer-main: #2c2c2c;
	--me-footer-bottom: #272727;
	--me-footer-text: #bbb;
	--me-footer-gold: #c7a669;
	background: var(--me-footer-main);
	color: var(--me-footer-text);
	font: 300 14px/1.6 Roboto, sans-serif;
}

.me-site-footer__grid, .me-site-footer__legal {
	width: min(100% - 20px, 1110px);
	margin-inline: auto;
}

.me-site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
	gap: 35px;
	padding-block: 70px;
}

.me-site-footer h2 {
	margin: 0 0 20px;
	color: #fff;
	font: 500 16px/1.2 Roboto, sans-serif;
}

.me-site-footer p {
	margin: 0 0 14px;
}

.me-site-footer address {
	margin: 0 0 14px;
	font-style: normal;
}

.me-site-footer li + li {
	margin-top: 10px;
}

.me-site-footer a {
	color: inherit;
	text-decoration: none;
}

.me-site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.me-site-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	overflow-wrap: anywhere;
}

.me-site-footer__contact svg {
	flex: none;
	color: var(--me-footer-gold);
}

.me-site-footer a.me-site-footer__whatsapp {
	display: inline-grid;
	width: 44px;
	height: 44px;
	margin-top: 28px;
	place-items: center;
	border-radius: 50%;
	background: #313131;
	color: var(--me-footer-gold);
}

.me-site-footer__bottom {
	border-top: 1px solid #353535;
	background: var(--me-footer-bottom);
}

.me-site-footer__legal {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px 30px;
	min-height: 76px;
	padding-block: 18px;
}

.me-site-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 30px;
}

.me-site-footer__legal li {
	margin: 0;
	color: var(--me-footer-gold);
}

/* Keep Elementor's global button typography out of the property enquiry card. */
.cvr-detail .cvr-contact-card {
	padding: clamp(1.25rem, 2vw, 2rem);
}

.cvr-detail .cvr-contact-card .cvr-lead-form {
	grid-template-columns: minmax(0, 1fr);
}

.cvr-detail .cvr-contact-card .cvr-lead-form > *,
.cvr-detail .cvr-contact-card .cvr-form-row,
.cvr-detail .cvr-contact-card .cvr-field {
	min-width: 0;
	max-width: 100%;
}

.cvr-detail .cvr-contact-card .cvr-field > label {
	font-size: .75rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.cvr-detail .cvr-contact-card .cvr-lead-form :is(input:not([type="checkbox"]):not([type="hidden"]), textarea) {
	min-width: 0;
	font-size: 16px;
	line-height: 1.4;
}

.cvr-detail .cvr-contact-card button,
.cvr-detail .cvr-contact-card .cvr-property-tools__button {
	min-width: 0;
	max-width: 100%;
	font: 600 .875rem/1.4 Blinker, sans-serif;
	letter-spacing: .04em;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cvr-detail .cvr-contact-card .cvr-property-tools__button:is(:hover, :focus-visible, [aria-expanded="true"]) {
	background: var(--cvr-navy, #153a55);
	border-color: var(--cvr-navy, #153a55);
	color: #fff;
}

.cvr-detail .cvr-contact-card .cvr-lead-form .cvr-button {
	gap: .5rem;
	min-height: 46px;
	width: 100%;
}

.cvr-detail .cvr-contact-card .cvr-lead-form .cvr-button > span,
.cvr-detail .cvr-contact-card .cvr-consent > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.cvr-detail .cvr-contact-card .cvr-lead-form .cvr-button > svg {
	flex: 0 0 18px;
}

.me-property-tile {
	position: relative;
	isolation: isolate;
	display: grid;
	min-width: 0;
	height: 280px;
	overflow: hidden;
	place-items: center;
	padding: 0 35px;
	background: #34322f;
	color: #fff;
	font-family: Blinker, sans-serif;
	text-decoration: none;
}

.me-property-tile img,
.me-property-tile::before {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.me-property-tile img {
	z-index: -2;
	object-fit: cover;
	transition: transform .25s ease;
}

.me-property-tile::before {
	z-index: -1;
	background: radial-gradient(ellipse at center, rgb(0 0 0 / .48), transparent 75%);
	content: "";
}

.me-property-tile__title {
	color: #fff;
	font-size: 35px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .2px;
	text-align: center;
	text-shadow: 2px 2px rgb(0 0 0 / .5);
	text-transform: uppercase;
}

.me-property-tile__ribbon {
	position: absolute;
	top: 27px;
	right: -46px;
	width: 185px;
	transform: rotate(45deg);
	background: #a8a8a8;
	color: #392c16;
	font-size: 13px;
	font-weight: 800;
	line-height: 26px;
	letter-spacing: .2px;
	text-align: center;
	text-transform: uppercase;
}

@media (hover: hover) {
	.me-property-tile:hover img {
		transform: scale(1.05);
	}
}

@media (max-width: 1199px) {
	.me-site-header__bar {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.me-site-header__primary, .me-site-header__secondary {
		display: none;
	}

	.me-site-header__logo {
		justify-self: center;
	}

	.me-menu-button {
		display: inline-grid;
	}
}

@media (max-width: 782px) {
	body.admin-bar .me-site-header {
		--me-admin-offset: 46px;
	}
}

@media (max-width: 767px) {
	.me-site-header {
		--me-header-height: 75px;
	}

	.me-site-header__bar {
		padding-inline: clamp(16px, 10vw, 43px) 12px;
	}

	.me-site-header__logo {
		justify-self: start;
	}

	.me-site-header__logo img {
		width: 151px;
		height: 55px;
	}

	.me-site-footer__grid {
		grid-template-columns: 1fr;
	}

	.me-site-footer__legal {
		flex-direction: column;
		min-height: 118px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .me-site-header.me-site-header--scrolled {
		--me-admin-offset: 0px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.me-property-tile img {
		transition: none;
	}
}

/* Keep the contact form inside its card despite Elementor's global typography. */
.cvr-contact-form .cvr-lead-form {
	grid-template-columns: minmax(0, 1fr);
}

.cvr-contact-form .cvr-lead-form > *,
.cvr-contact-form .cvr-lead-form .cvr-field {
	min-width: 0;
	max-width: 100%;
}

.cvr-contact-form .cvr-field > label {
	font-size: .75rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.cvr-contact-form .cvr-lead-form :is(input:not([type="checkbox"]):not([type="hidden"]), textarea) {
	min-width: 0;
	max-width: 100%;
	font-size: 16px;
	line-height: 1.4;
}

.cvr-contact-form .cvr-lead-form .cvr-button {
	gap: .5rem;
	min-width: 0;
	min-height: 48px;
	max-width: 100%;
	width: 100%;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .04em;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cvr-contact-form .cvr-button > span,
.cvr-contact-form .cvr-consent > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.cvr-contact-form .cvr-button > svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}

@media (max-width: 600px) {
	.cvr-contact-form .cvr-lead-form .cvr-form-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Reusable visibility class for Elementor containers and widgets. */
.hidden {
	display: none !important;
}

/* Keep the footer legal links aligned in one row. */
.me-site-footer__legal nav ul {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	column-gap: clamp(0.75rem, 3vw, 1.875rem);
}

.me-site-footer__legal nav li + li {
	margin-top: 0;
}

.me-site-footer__legal nav a {
	white-space: nowrap;
}
