:root {
	--eco-header-green: #1f6b4a;
	--eco-header-green-dark: #164e37;
	--eco-header-green-soft: #e8f2ec;
	--eco-header-ink: #20261d;
	--eco-header-muted: #5f675a;
	--eco-header-line: rgba(31, 107, 74, 0.12);
	--eco-header-shadow: 0 16px 40px -28px rgba(26, 31, 22, 0.28);
}

/* Hide WordPress admin bar on the public site */
#wpadminbar {
	display: none !important;
}

html {
	margin-top: 0 !important;
}

body.admin-bar,
html.admin-bar {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Top utility bar */
.ecorahi-topbar {
	background: linear-gradient(90deg, #173628 0%, #1f6b4a 55%, #2b7a78 100%);
	color: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.28s ease, opacity 0.28s ease;
}

.ecorahi-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 42px;
	padding-top: 8px;
	padding-bottom: 8px;
	overflow: hidden;
}

.ecorahi-topbar-tagline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	max-width: 100%;
	text-align: center;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 500;
}

.ecorahi-topbar-tagline svg {
	width: 15px;
	height: 15px;
	flex: none;
}

.ecorahi-header-hide-topbar .ecorahi-topbar {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}

/* Main header shell */
body.ecorahi-header-ui #site-header.site-header {
	position: sticky;
	top: 0;
	z-index: 10050;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--eco-header-line);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
	transition: box-shadow 0.25s ease, background 0.25s ease;
}

body.ecorahi-header-ui #site-header.ecorahi-header-scrolled {
	background: rgba(255, 255, 255, 0.96);
	box-shadow: var(--eco-header-shadow);
}

body.ecorahi-header-ui .ecorahi-topbar .container,
body.ecorahi-header-ui .main-header > .container {
	padding-left: clamp(20px, 3.5vw, 36px);
	padding-right: clamp(20px, 3.5vw, 36px);
}

body.ecorahi-header-ui .main-header {
	background: transparent;
	padding-top: 14px;
	padding-bottom: 14px;
}

body.ecorahi-header-ui .main-header-inner {
	min-height: 72px;
	gap: 20px;
	padding-top: 0;
	padding-bottom: 0;
	align-items: center;
}

body.ecorahi-header-ui .main-header-inner .site-branding {
	min-width: 140px;
	max-width: 196px;
	flex: 0 0 auto;
	padding: 0;
}

/* Compact header logo — icon + wordmark only. */
body.ecorahi-header-ui .main-header a img {
	width: auto;
	height: auto;
	max-height: 56px;
	max-width: 100%;
	padding: 0;
	object-fit: contain;
}

body.ecorahi-header-ui .main-header-inner .header-icon-area {
	gap: 10px;
	align-items: center;
}

/* Navigation */
body.ecorahi-header-ui .main-header .main-navigation-area {
	min-height: 0;
	flex: 1 1 auto;
	justify-content: center;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation {
	width: 100%;
	display: flex;
	justify-content: center;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation nav {
	width: auto;
	max-width: 100%;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul.menu {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	padding: 6px;
	border-radius: 999px;
	background: linear-gradient(180deg, #f8fbf9 0%, #f1f6f2 100%);
	border: 1px solid var(--eco-header-line);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
	text-align: center;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul li {
	display: block;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	color: var(--eco-header-ink);
	font-family: Nunito, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul li a .ecorahi-nav-ico {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--eco-header-green);
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul li a .ecorahi-nav-ico svg {
	width: 17px;
	height: 17px;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul li a .ecorahi-nav-label {
	white-space: nowrap;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul.menu > li > a:hover {
	color: var(--eco-header-green-dark);
	background: rgba(31, 107, 74, 0.1);
	transform: translateY(-1px);
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul.menu > li.current-menu-item > a,
body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul.menu > li.current_page_item > a {
	background: linear-gradient(135deg, var(--eco-header-green) 0%, #2b7a78 100%);
	color: #fff !important;
	box-shadow: 0 12px 24px -14px rgba(31, 107, 74, 0.85);
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul.menu > li.current-menu-item > a .ecorahi-nav-ico,
body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul.menu > li.current_page_item > a .ecorahi-nav-ico {
	color: #fff;
}

body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul.menu > li.current-menu-item a:after,
body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul.menu > li.current_page_item a:after {
	display: none;
}

/* Header actions */
body.ecorahi-header-ui .header-icon-area {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 4px;
	border-radius: 999px;
	background: linear-gradient(180deg, #f8fbf9 0%, #f1f6f2 100%);
	border: 1px solid var(--eco-header-line);
}

body.ecorahi-header-ui .header-icon-area .header-map-icon {
	display: none;
}

body.ecorahi-header-ui .header-icon-area .header-login-icon {
	width: 40px;
	height: 40px;
	margin-right: 0;
	border: 1px solid var(--eco-header-line);
	border-radius: 50%;
	background: #fff;
	color: var(--eco-header-green);
	box-shadow: none;
	display: inline-grid;
	place-items: center;
	text-decoration: none !important;
}

body.ecorahi-header-ui .header-icon-area .header-login-icon svg {
	width: 18px;
	height: 18px;
}

body.ecorahi-header-ui .header-icon-area .header-login-icon:hover {
	background: var(--eco-header-green-soft);
	border-color: rgba(31, 107, 74, 0.22);
	color: var(--eco-header-green-dark);
}

body.ecorahi-header-ui .header-icon-area .header-invites-icon {
	width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--eco-header-line);
	border-radius: 50%;
	background: #fff;
	color: var(--eco-header-green);
	text-decoration: none !important;
}

body.ecorahi-header-ui .header-icon-area .header-invites-icon svg {
	width: 18px;
	height: 18px;
}

body.ecorahi-header-ui .header-icon-area .header-invites-icon:hover {
	background: var(--eco-header-green-soft);
	border-color: rgba(31, 107, 74, 0.22);
	color: var(--eco-header-green-dark);
}

body.ecorahi-header-ui .header-icon-area .header-btn-area .header-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px 0 8px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--eco-header-green) 0%, #2b7a78 100%);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 14px 28px -16px rgba(31, 107, 74, 0.95);
}

body.ecorahi-header-ui .header-icon-area .header-btn-area .header-btn .ecorahi-btn-ico {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

body.ecorahi-header-ui .header-icon-area .header-btn-area .header-btn .ecorahi-btn-ico svg {
	width: 14px;
	height: 14px;
	stroke: #fff;
}

body.ecorahi-header-ui .header-icon-area .header-btn-area .header-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.03);
	background: linear-gradient(135deg, var(--eco-header-green-dark) 0%, var(--eco-header-green) 100%);
}

body.ecorahi-header-ui .header-icon-area .header-btn-area .header-btn:hover i {
	transform: none;
	background: transparent;
}

/* Mobile header */
@media (max-width: 991.98px) {
	body.ecorahi-header-ui #site-header.site-header {
		position: relative;
		top: auto;
		z-index: 1;
		background: transparent;
		border: 0;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	body.ecorahi-header-ui .ecorahi-topbar {
		display: none;
	}

	body.ecorahi-header-ui .rt-mobile-menu {
		position: sticky;
		top: 0;
		z-index: 10050;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		box-sizing: border-box;
		width: 100%;
		min-height: 80px;
		padding: 12px 16px;
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-bottom: 1px solid var(--eco-header-line);
		transition: box-shadow 0.25s ease, background 0.25s ease;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar.ecorahi-mobile-bar-scrolled {
		box-shadow: var(--eco-header-shadow);
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar,
	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar * {
		box-sizing: border-box;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .mobile-logo-area {
		flex: 1 1 auto;
		min-width: 0;
		max-width: calc(100% - 152px);
		padding: 0;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .mobile-logo-area .custom-logo,
	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .mobile-logo-area .site-main-logo {
		display: inline-flex;
		align-items: center;
		height: 44px;
		max-width: 168px;
		padding: 0;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .mobile-logo-area .custom-logo img,
	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .mobile-logo-area .site-main-logo img {
		display: block;
		width: auto;
		height: 100%;
		max-width: 100%;
		padding: 0;
		object-fit: contain;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons {
		position: static;
		top: auto;
		right: auto;
		transform: none;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		flex: 0 0 auto;
		margin: 0;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-btn {
		display: inline-grid;
		place-items: center;
		width: 38px;
		height: 38px;
		min-height: 38px;
		padding: 0;
		margin: 0;
		border-radius: 50%;
		background: linear-gradient(135deg, var(--eco-header-green) 0%, #2b7a78 100%);
		color: #fff !important;
		border: 0;
		box-shadow: 0 8px 18px -12px rgba(31, 107, 74, 0.95);
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-btn .ecorahi-btn-ico {
		display: inline-grid;
		place-items: center;
		width: auto;
		height: auto;
		background: transparent;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-btn .ecorahi-btn-ico svg {
		width: 16px;
		height: 16px;
		stroke: #fff;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-btn > span:not(.ecorahi-btn-ico) {
		display: none !important;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-login-icon {
		width: 38px;
		height: 38px;
		min-width: 38px;
		display: inline-grid;
		place-items: center;
		border-radius: 50%;
		border: 1px solid var(--eco-header-line);
		background: #fff;
		color: var(--eco-header-green);
		margin: 0;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-login-icon svg {
		width: 17px;
		height: 17px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-map-icon {
		width: 38px;
		height: 38px;
		min-width: 38px;
		display: inline-grid;
		place-items: center;
		border-radius: 50%;
		border: 1px solid var(--eco-header-line);
		background: #fff;
		color: var(--eco-header-green);
		margin: 0;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-map-icon svg {
		width: 17px;
		height: 17px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-invites-icon {
		width: 40px;
		height: 40px;
		display: grid;
		place-items: center;
		border-radius: 50%;
		border: 1px solid var(--eco-header-line);
		background: #fff;
		color: var(--eco-header-green);
		margin: 0;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .header-mobile-icons a.header-invites-icon svg {
		width: 17px;
		height: 17px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar span.sidebarBtn {
		position: relative;
		top: auto;
		right: auto;
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		padding: 0;
		margin: 0;
		display: grid;
		place-items: center;
		border-radius: 10px;
		border: 1px solid var(--eco-header-line);
		background: #fff;
		text-indent: 0;
		font-size: 0;
		line-height: 1;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar span.sidebarBtn span {
		display: block;
		width: 18px;
		height: 2px;
		margin: 0;
		background-color: var(--eco-header-green);
		border-radius: 999px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar span.sidebarBtn span::before,
	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar span.sidebarBtn span::after {
		left: 0;
		width: 18px;
		height: 2px;
		background: var(--eco-header-green);
		border-radius: 999px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar span.sidebarBtn span::before {
		top: -6px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar span.sidebarBtn span::after {
		top: 6px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .rt-slide-nav {
		background: #fff;
		border-top: 1px solid var(--eco-header-line);
		box-shadow: 0 18px 40px -24px rgba(26, 31, 22, 0.28);
	}

	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu {
		padding: 8px 0 12px;
		margin: 0;
	}

	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu > li {
		border-top: 0;
	}

	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu > li > a {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 14px 18px;
		font-family: Nunito, sans-serif;
		font-size: 15px;
		font-weight: 700;
		color: var(--eco-header-ink);
		border-bottom: 1px solid rgba(31, 107, 74, 0.08);
	}

	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu > li > a .ecorahi-nav-ico {
		display: inline-grid;
		place-items: center;
		width: 34px;
		height: 34px;
		border-radius: 10px;
		background: var(--eco-header-green-soft);
		color: var(--eco-header-green);
		flex: none;
	}

	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu > li > a .ecorahi-nav-ico svg {
		width: 17px;
		height: 17px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu > li.current-menu-item > a .ecorahi-nav-ico,
	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu > li.current_page_item > a .ecorahi-nav-ico {
		background: rgba(255, 255, 255, 0.18);
		color: #fff;
	}

	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu > li.current-menu-item > a,
	body.ecorahi-header-ui .rt-mobile-menu .offscreen-navigation .menu > li.current_page_item > a {
		color: var(--eco-header-green);
		background: var(--eco-header-green-soft);
	}
}

@media (max-width: 640px) {
	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar {
		padding: 12px 14px;
	}

	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .mobile-logo-area .custom-logo,
	body.ecorahi-header-ui .rt-mobile-menu .mobile-menu-bar .mobile-logo-area .site-main-logo {
		max-width: 168px;
		height: 44px;
	}
}

@media (max-width: 991.98px) {
	body.admin-bar.ecorahi-header-ui .rt-mobile-menu {
		top: 46px;
	}
}

@media (min-width: 992px) {
	body.admin-bar.ecorahi-header-ui #site-header.site-header {
		top: 32px;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	body.ecorahi-header-ui .main-header .main-navigation-area .main-navigation ul li a {
		padding-left: 14px;
		padding-right: 14px;
	}

	body.ecorahi-header-ui .header-icon-area .header-btn-area .header-btn {
		padding-right: 14px;
	}
}

/* Hide search banner on login, map, about, blog, contact, etc. */
body.ecorahi-no-banner-search .banner-search {
	display: none !important;
}

body.ecorahi-no-hero-search .ecorahi-hero-search,
body.ecorahi-listing-submitted .ecorahi-hero-search,
body.ecorahi-invite-active .ecorahi-hero-search,
body.ecorahi-listing-invites-page .ecorahi-hero-search {
	display: none !important;
}

body.ecorahi-listing-submitted .ecorahi-hero-copy,
body.ecorahi-listing-submitted .ecorahi-social-proof,
body.ecorahi-listing-submitted .ecorahi-trust-explainer {
	display: none !important;
}

body.ecorahi-no-banner-search.ecorahi-map-page .site-content,
body.ecorahi-no-banner-search.ecorahi-about-page .site-content {
	padding-top: 0;
}
