/**
 * Site header (desktop + mobile bar) + fullscreen mobile overlay.
 */

#apartment,
#features,
#amenities,
#nearby,
.m306-feat,
.m306-map,
.miami-sec {
	scroll-margin-top: 120px;
}

.m306-mm-bar,
.m306-mm {
	--m306-mm-ink: #ffffff;
	--m306-mm-cream: #fefcf8;
	--m306-mm-ink-inv: #111111;
	--m306-mm-font: 'Fahkwang', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--m306-mm-overlay-bg: #1a1f1e;
	box-sizing: border-box;
	font-family: var(--m306-mm-font);
	color: var(--m306-mm-ink);
}

.m306-mm-bar *,
.m306-mm-bar *::before,
.m306-mm-bar *::after,
.m306-mm *,
.m306-mm *::before,
.m306-mm *::after {
	box-sizing: border-box;
}

/* ========== Transparent site header — full width ========== */
.m306-mm-bar {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 18px clamp(16px, 3.5vw, 64px);
	background: transparent;
	color: var(--m306-mm-ink);
	border-radius: 0 !important;
}

.elementor-widget-shortcode > .elementor-widget-container,
.elementor-shortcode {
	max-width: none !important;
	width: 100% !important;
}

.m306-mm-bar__brand {
	display: inline-flex;
	flex-shrink: 0;
	text-decoration: none;
	line-height: 0;
	color: inherit;
}

.m306-mm-bar__logo,
.elementor .m306-mm-bar__logo,
.elementor img.m306-mm-bar__logo {
	display: block !important;
	width: auto !important;
	height: 44px !important;
	max-width: 110px !important;
	max-height: 44px !important;
	object-fit: contain !important;
	mix-blend-mode: screen;
	filter: none;
	border-radius: 0 !important;
}

.m306-mm-bar__end {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 32px;
	margin-left: auto;
	min-width: 0;
}

.m306-mm-bar__nav {
	display: none;
	min-width: 0;
}

.m306-mm-bar__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 96px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.m306-mm-bar__item {
	flex: 0 0 auto;
	text-align: right;
}

.m306-mm-bar__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: calc(18px * 1.2 + 32px); /* same box as CTA: font + 16px*2 */
	padding: 16px 48px;
	font-family: var(--m306-mm-font);
	font-size: 20px;
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	color: #ffffff !important;
	white-space: nowrap;
	background: transparent;
	border: 0;
	border-radius: 0 !important;
	box-sizing: border-box;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm-bar__link:hover,
.m306-mm-bar__link:focus,
.m306-mm-bar__link:focus-visible,
.elementor a.m306-mm-bar__link:hover,
.elementor a.m306-mm-bar__link:focus {
	background: #a7d9cf !important;
	color: #182220 !important;
	opacity: 1;
	outline: none;
	box-shadow: none;
}

.m306-mm-bar__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	flex-shrink: 0;
}

.m306-mm-bar__util,
.m306-mm-bar__menu {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: calc(18px * 1.2 + 32px);
	padding: 16px 24px;
	border: 0;
	border-radius: 0 !important;
	background: transparent !important;
	color: #ffffff !important;
	text-decoration: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	box-sizing: border-box;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm-bar__util--disabled {
	opacity: 0.55;
	cursor: default;
}

.m306-mm-bar__util:hover,
.m306-mm-bar__util:focus,
.m306-mm-bar__menu:hover,
.m306-mm-bar__menu:focus,
.elementor a.m306-mm-bar__util:hover,
.elementor a.m306-mm-bar__util:focus {
	background: #a7d9cf !important;
	color: #182220 !important;
	opacity: 1;
	outline: none;
}

.m306-mm-bar__util-icon {
	display: inline-flex;
	line-height: 0;
	color: inherit;
}

.m306-mm-bar__util-label {
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.04em;
	line-height: 1;
	color: inherit;
}

.m306-mm-bar__cta {
	display: none;
	margin: 0;
	padding: 16px 48px !important;
	border: 1px solid rgba(254, 252, 248, 0.95) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fefcf8 !important;
	font-family: var(--m306-mm-font) !important;
	font-size: 18px !important;
	font-weight: 300 !important;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.m306-mm-bar__cta:hover,
.m306-mm-bar__cta:focus,
.m306-mm-bar__cta:focus-visible,
.elementor .m306-mm-bar__cta:hover,
.elementor .m306-mm-bar__cta:focus,
.elementor button.m306-mm-bar__cta:hover {
	background: #ffffff !important;
	color: #182220 !important;
	border-color: #ffffff !important;
	opacity: 1;
	outline: none;
	box-shadow: none;
}

.m306-mm-bar__burger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 22px;
	height: 14px;
}

.m306-mm-bar__burger span {
	display: block;
	height: 1.5px;
	width: 100%;
	background: currentColor;
}

@media (min-width: 901px) {
	.m306-mm-bar {
		padding-top: 22px;
		padding-bottom: 22px;
	}

	/* Fluid spacing: ~small at 901px → Figma values at 1920px */
	.m306-mm-bar {
		gap: clamp(12px, calc(1.96vw - 6px), 32px);
	}

	.m306-mm-bar__end {
		gap: clamp(12px, calc(1.96vw - 6px), 32px);
		min-width: 0;
	}

	.m306-mm-bar__nav {
		display: block;
		min-width: 0;
	}

	.m306-mm-bar__list {
		gap: clamp(8px, calc(8.64vw - 70px), 96px);
	}

	.m306-mm-bar__link {
		padding: 16px clamp(8px, calc(3.93vw - 27px), 48px);
		font-size: clamp(15px, calc(0.49vw + 10.6px), 20px);
	}

	.m306-mm-bar__cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 16px clamp(16px, calc(3.14vw - 12px), 48px) !important;
		font-size: clamp(14px, calc(0.39vw + 10.5px), 18px) !important;
		flex-shrink: 0;
	}

	.m306-mm-bar__menu {
		display: none;
	}

	.m306-mm-bar__logo,
	.elementor img.m306-mm-bar__logo {
		height: 52px !important;
		max-height: 52px !important;
		max-width: 128px !important;
	}
}

@media (max-width: 900px) {
	.m306-mm-bar {
		padding-left: 6vw;
		padding-right: 6vw;
	}

	.m306-mm-bar__end {
		gap: 0;
	}

	.m306-mm-bar__nav {
		display: none;
	}

	.m306-mm-bar__cta {
		display: none;
	}
}

/* ========== Fullscreen mobile overlay ========== */
.m306-mm {
	position: fixed;
	inset: 0;
	z-index: 100040;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	background: var(--m306-mm-overlay-bg);
	color: var(--m306-mm-ink);
}

.m306-mm[hidden] {
	display: none !important;
}

.m306-mm__panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	height: 100%;
	padding: max(18px, env(safe-area-inset-top)) 6vw max(36px, env(safe-area-inset-bottom));
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.m306-mm__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	flex: 0 0 auto;
}

.m306-mm__brand {
	display: inline-flex;
	text-decoration: none;
	color: inherit;
	line-height: 0;
}

.m306-mm__logo,
.elementor img.m306-mm__logo {
	display: block !important;
	width: auto !important;
	height: 52px !important;
	max-width: 128px !important;
	max-height: 52px !important;
	object-fit: contain !important;
	filter: none;
	border-radius: 0 !important;
}

.m306-mm__close,
.m306-mm button.m306-mm__close,
.elementor .m306-mm__close,
.elementor button.m306-mm__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -6px -8px 0 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #ffffff !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none !important;
	outline: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm__close:hover,
.m306-mm__close:focus,
.m306-mm__close:focus-visible,
.m306-mm__close:active,
.m306-mm button.m306-mm__close:hover,
.elementor .m306-mm__close:hover,
.elementor .m306-mm__close:focus,
.elementor button.m306-mm__close:hover {
	background: #a7d9cf !important;
	background-color: #a7d9cf !important;
	color: #182220 !important;
	box-shadow: none !important;
	outline: none !important;
	border-color: transparent !important;
}

.m306-mm__rule {
	height: 1px;
	width: 100%;
	background: rgba(255, 255, 255, 0.35);
	margin-bottom: clamp(36px, 8vh, 56px);
	flex: 0 0 auto;
}

.m306-mm__nav {
	flex: 0 0 auto;
}

.m306-mm__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.m306-mm__link {
	display: inline-block;
	/* Hover box reaches the screen edge: offset equals the panel gutter */
	padding: 16px 48px 16px 6vw;
	margin-left: -6vw;
	font-family: var(--m306-mm-font);
	font-size: 20px;
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none !important;
	color: #ffffff !important;
	text-transform: none;
	border-radius: 0 !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm__link:hover,
.m306-mm__link:focus,
.elementor a.m306-mm__link:hover {
	background: #a7d9cf !important;
	color: #182220 !important;
	opacity: 1;
	outline: none;
}

.m306-mm__cta,
.m306-mm button.m306-mm__cta,
.elementor .m306-mm__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100%;
	align-self: stretch;
	margin: clamp(36px, 7vh, 52px) 0 0;
	box-sizing: border-box;
	padding: 16px 48px !important;
	border: 1px solid rgba(254, 252, 248, 0.95) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fefcf8 !important;
	font-family: var(--m306-mm-font) !important;
	font-size: 18px !important;
	font-weight: 300 !important;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.m306-mm__cta:hover,
.m306-mm__cta:focus,
.elementor .m306-mm__cta:hover {
	background: #ffffff !important;
	color: #182220 !important;
	border-color: #ffffff !important;
	opacity: 1;
	outline: none;
	box-shadow: none;
}

.m306-mm__footer {
	margin-top: auto;
	padding-top: clamp(40px, 10vh, 72px);
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 0 0 auto;
}

.m306-mm__util {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: #ffffff !important;
	text-decoration: none !important;
	border-radius: 0 !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm__util--disabled {
	opacity: 0.55;
}

.m306-mm__util:hover,
.m306-mm__util:focus {
	background: transparent !important;
	color: #182220 !important;
}

.m306-mm__util-icon {
	display: inline-flex;
	line-height: 0;
	color: inherit;
}

.m306-mm__util-label {
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.06em;
	line-height: 1;
	color: inherit;
}

body.m306-mm-open {
	overflow: hidden;
}

.elementor .m306-mm-bar {
	color: #fff;
	width: 100%;
}
