/**
 * OpsMind header menu styles 4 (Centered Emblem) & 5 (Floating Capsule).
 */

:root {
	--opsmind-navy: #0b1f3a;
	--opsmind-gold: #c9a24d;
	--opsmind-gold-soft: #d4b56a;
	--om-header-blue: #2d5be3;
}

/* ---------- Style 4: Centered Emblem ---------- */
#header.header-style-opsmind-4 {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: linear-gradient(180deg, rgba(8, 18, 36, 0.72) 0%, rgba(8, 18, 36, 0.28) 70%, transparent 100%);
	padding: 12px 0 28px;
	border: 0;
	box-shadow: none;
}

body:not(.home):not(.ops-menu-transparent) #header.header-style-opsmind-4,
body.opsmind-header-style-4:not(.ops-menu-transparent):not(.home) #header.header-style-opsmind-4 {
	position: relative;
	background: var(--opsmind-navy);
	padding-bottom: 12px;
}

.opsmind-header-4-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: auto 1fr auto 1fr;
	grid-template-areas: "tools navstart logo navend";
	align-items: center;
	gap: 16px;
	min-height: 88px;
	position: relative;
}

html[dir="rtl"] .opsmind-header-4-inner,
body.rtl .opsmind-header-4-inner {
	grid-template-areas: "navend logo navstart tools";
	grid-template-columns: 1fr auto 1fr auto;
}

.opsmind-header-4-tools {
	grid-area: tools;
	justify-self: start;
}

html[dir="rtl"] .opsmind-header-4-tools,
body.rtl .opsmind-header-4-tools {
	justify-self: end;
}

.opsmind-header-4-nav--start {
	grid-area: navstart;
	justify-self: end;
}

.opsmind-header-4-nav--end {
	grid-area: navend;
	justify-self: start;
}

html[dir="rtl"] .opsmind-header-4-nav--start,
body.rtl .opsmind-header-4-nav--start {
	justify-self: start;
}

html[dir="rtl"] .opsmind-header-4-nav--end,
body.rtl .opsmind-header-4-nav--end {
	justify-self: end;
}

.opsmind-header-4-logo {
	grid-area: logo;
	justify-self: center;
	z-index: 2;
}

.opsmind-header-4-logo .custom-logo-link img,
.opsmind-header-4-logo .logo img {
	max-height: 78px;
	width: auto;
	background: #fff;
	border-radius: 14px;
	padding: 6px 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

#header.header-style-opsmind-4 .main-menu {
	display: flex;
	align-items: center;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#header.header-style-opsmind-4 .main-menu > li > a {
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	padding: 8px 4px;
	background: transparent !important;
}

#header.header-style-opsmind-4 .main-menu > li.current-menu-item > a,
#header.header-style-opsmind-4 .main-menu > li:hover > a {
	color: var(--opsmind-gold-soft) !important;
}

#header.header-style-opsmind-4 .opsmind-header-tools > li,
#header.header-style-opsmind-4 .opsmind-header-tools a,
#header.header-style-opsmind-4 .opsmind-header-tools .dropdown-toggle {
	color: #fff !important;
}

/* Header tools — cart / account / currency (dark + light headers) */
.opsmind-header-tools,
.header__right .items,
.header .header__right ul {
	gap: 10px;
}

.opsmind-header-tools > li,
.header__right .items > li {
	list-style: none;
	margin: 0;
}

/* Hide Bootstrap caret on icon-only header toggles (user / cart) */
.header__right .dropdown-user-dashboard .dropdown-toggle::after,
.header__right .dropdown-minicart .dropdown-toggle::after,
.header__right .mini-cart.dropdown-toggle::after,
.opsmind-header-tools .dropdown-user-dashboard .dropdown-toggle::after,
.opsmind-header-tools .dropdown-minicart .dropdown-toggle::after,
.opsmind-header-tools .mini-cart.dropdown-toggle::after {
	display: none !important;
	content: none !important;
	margin: 0 !important;
	border: 0 !important;
}

/* User account dropdown — always readable */
.header__right .dropdown-user-dashboard .dropdown-menu,
.opsmind-header-tools .dropdown-user-dashboard .dropdown-menu {
	z-index: 1200 !important;
	min-width: 220px;
	padding: 8px 0;
	border-radius: 12px !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 12px 32px rgba(11, 31, 58, 0.18) !important;
	background: #fff !important;
	overflow: visible !important;
}

.header__right .dropdown-user-dashboard .dropdown-menu li a,
.opsmind-header-tools .dropdown-user-dashboard .dropdown-menu li a,
.header__right .dropdown-user-dashboard .dropdown-menu .user-name,
.opsmind-header-tools .dropdown-user-dashboard .dropdown-menu .user-name {
	color: #0b1f3a !important;
	font-weight: 600;
}

.header__right .dropdown-user-dashboard,
.header__right .dropdown-minicart,
.opsmind-header-tools .dropdown-user-dashboard,
.opsmind-header-tools .dropdown-minicart {
	overflow: visible !important;
}

header.header,
header.header-sticky-menu,
.sticky-wrapper {
	overflow: visible !important;
}

/* Shared circular action buttons */
.opsmind-header-tools .dropdown-minicart .dropdown-toggle,
.opsmind-header-tools .dropdown-user-dashboard .dropdown-toggle,
.opsmind-header-tools .mini-cart.dropdown-toggle,
.header__right .items .dropdown.dropdown-minicart .dropdown-toggle,
.header__right .items .dropdown.dropdown-user-dashboard .dropdown-toggle,
.header__right .dropdown-minicart .mini-cart.dropdown-toggle,
.header__right .dropdown-user-dashboard .dropdown-toggle,
.header__right .mini-cart.dropdown-toggle {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	max-width: 42px !important;
	padding: 0 !important;
	border-radius: 999px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	background: rgba(255, 255, 255, 0.14) !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	box-shadow: none !important;
	color: #fff !important;
	overflow: visible !important;
	flex-shrink: 0 !important;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.opsmind-header-tools .dropdown-minicart .dropdown-toggle:hover,
.opsmind-header-tools .dropdown-user-dashboard .dropdown-toggle:hover,
.opsmind-header-tools .mini-cart.dropdown-toggle:hover,
.header__right .items .dropdown.dropdown-minicart .dropdown-toggle:hover,
.header__right .items .dropdown.dropdown-user-dashboard .dropdown-toggle:hover,
.header__right .dropdown-minicart .mini-cart.dropdown-toggle:hover,
.header__right .dropdown-user-dashboard .dropdown-toggle:hover,
.header__right .mini-cart.dropdown-toggle:hover {
	background: rgba(255, 255, 255, 0.24) !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	transform: translateY(-1px);
}

/* Icons must stay visible (never white-on-white) */
.opsmind-header-tools .dropdown-toggle .ops-icon,
.opsmind-header-tools .mini-cart .ops-icon,
.header__right .dropdown-toggle .ops-icon,
.header__right .mini-cart .ops-icon {
	color: #fff !important;
	font-size: 18px !important;
	line-height: 1 !important;
	font-family: "ops-icon" !important;
	speak: never;
	font-style: normal;
	font-weight: normal;
	display: inline-block;
}

.opsmind-header-tools .dropdown-toggle svg,
.opsmind-header-tools .mini-cart svg,
.header__right .dropdown-toggle svg,
.header__right .mini-cart svg {
	width: 20px;
	height: 20px;
	display: block;
	stroke: #fff !important;
	fill: none !important;
	color: #fff !important;
}

.opsmind-header-tools .dropdown-toggle svg path,
.opsmind-header-tools .mini-cart svg path,
.header__right .dropdown-toggle svg path,
.header__right .mini-cart svg path,
.opsmind-header-tools .dropdown-toggle svg g,
.header__right .dropdown-toggle svg g {
	stroke: #fff !important;
}

/* Cart badge */
.opsmind-header-tools .cart-caret,
.header__right .cart-caret {
	position: absolute !important;
	top: -4px !important;
	inset-inline-end: -4px !important;
	left: auto !important;
	margin: 0 !important;
	min-width: 18px !important;
	min-height: 18px !important;
	padding: 0 5px !important;
	border-radius: 999px !important;
	background: var(--om-header-blue) !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 18px !important;
	box-shadow: 0 2px 6px rgba(45, 91, 227, 0.45);
}

/* Currency — readable on dark headers */
.opsmind-header-tools .dropdown-currency .dropdown-toggle,
.header__right .dropdown-currency .dropdown-toggle,
#header.header-style-opsmind-4 .opsmind-header-tools .dropdown-currency .dropdown-toggle {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	padding: 6px 10px !important;
	border-radius: 999px !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	letter-spacing: 0.04em;
	gap: 4px;
}

.opsmind-header-tools .dropdown-currency .dropdown-toggle:hover,
.header__right .dropdown-currency .dropdown-toggle:hover {
	background: rgba(255, 255, 255, 0.12) !important;
}

.opsmind-header-tools .dropdown-currency .fa,
.header__right .dropdown-currency .fa,
.opsmind-header-tools .dropdown-currency .fa:before,
.header__right .dropdown-currency .fa:before {
	color: #fff !important;
	border-color: #fff !important;
	opacity: 0.9;
}

/* Style 5 (light capsule) — navy tools */
#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-minicart .dropdown-toggle,
#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-user-dashboard .dropdown-toggle,
#header.header-style-opsmind-5 .opsmind-header-tools .mini-cart.dropdown-toggle {
	background: #f1f5f9 !important;
	border: 1px solid #e2e8f0 !important;
	color: var(--opsmind-navy) !important;
}

#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-toggle .ops-icon,
#header.header-style-opsmind-5 .opsmind-header-tools .mini-cart .ops-icon {
	color: var(--opsmind-navy) !important;
}

#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-toggle svg,
#header.header-style-opsmind-5 .opsmind-header-tools .mini-cart svg,
#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-toggle svg path,
#header.header-style-opsmind-5 .opsmind-header-tools .mini-cart svg path {
	stroke: var(--opsmind-navy) !important;
	color: var(--opsmind-navy) !important;
}

#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-currency .dropdown-toggle,
#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-currency .fa,
#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-currency .fa:before {
	color: var(--opsmind-navy) !important;
}

#header.header-style-opsmind-5 .opsmind-header-tools a,
#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-toggle {
	color: var(--opsmind-navy) !important;
}

/* Light solid headers (non-transparent): navy icons on soft chips */
body:not(.ops-menu-transparent):not(.home) #header:not(.header-style-opsmind-4):not(.header-style-opsmind-5) .header__right .dropdown-minicart .dropdown-toggle,
body:not(.ops-menu-transparent):not(.home) #header:not(.header-style-opsmind-4):not(.header-style-opsmind-5) .header__right .dropdown-user-dashboard .dropdown-toggle {
	background: #f1f5f9 !important;
	border: 1px solid #e2e8f0 !important;
}

body:not(.ops-menu-transparent):not(.home) #header:not(.header-style-opsmind-4):not(.header-style-opsmind-5) .header__right .dropdown-toggle .ops-icon {
	color: #0b1f3a !important;
}

body:not(.ops-menu-transparent):not(.home) #header:not(.header-style-opsmind-4):not(.header-style-opsmind-5) .header__right .dropdown-currency .dropdown-toggle {
	color: #0b1f3a !important;
}

body:not(.ops-menu-transparent):not(.home) #header:not(.header-style-opsmind-4):not(.header-style-opsmind-5) .header__right .dropdown-currency .fa,
body:not(.ops-menu-transparent):not(.home) #header:not(.header-style-opsmind-4):not(.header-style-opsmind-5) .header__right .dropdown-currency .fa:before {
	color: #0b1f3a !important;
}

#header.header-style-opsmind-4 .toggle-menu {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	inset-inline-start: 16px;
	z-index: 5;
}

/* Full menu used as mobile drawer; hidden on desktop */
#header.header-style-opsmind-4 .opsmind-header-4-mobile-nav {
	display: none;
}

#header.header-style-opsmind-4 .back-menu {
	display: none;
}

/* ---------- Style 5: Floating Capsule ---------- */
#header.header-style-opsmind-5 {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent !important;
	border: 0;
	box-shadow: none;
	padding: 18px 0 0;
}

body:not(.home) #header.header-style-opsmind-5 {
	position: relative;
	background: #f3f6fa !important;
	padding-bottom: 12px;
}

.opsmind-header-5-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.opsmind-header-5-capsule {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #ffffff;
	border-radius: 999px;
	padding: 10px 18px 10px 22px;
	box-shadow: 0 12px 40px rgba(11, 31, 58, 0.12);
	min-height: 72px;
	position: relative;
}

html[dir="rtl"] .opsmind-header-5-capsule,
body.rtl .opsmind-header-5-capsule {
	padding: 10px 22px 10px 18px;
}

.opsmind-header-5-logo .custom-logo-link img,
.opsmind-header-5-logo .logo img {
	max-height: 56px;
	width: auto;
}

.opsmind-header-5-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

#header.header-style-opsmind-5 .main-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#header.header-style-opsmind-5 .main-menu > li > a {
	color: var(--opsmind-navy) !important;
	font-weight: 600;
	font-size: 15px;
	padding: 8px 2px;
	background: transparent !important;
}

#header.header-style-opsmind-5 .main-menu > li.current-menu-item > a,
#header.header-style-opsmind-5 .main-menu > li:hover > a {
	color: var(--opsmind-gold) !important;
}

.opsmind-header-5-tools {
	margin-inline-start: auto;
}

#header.header-style-opsmind-5 .opsmind-header-tools a,
#header.header-style-opsmind-5 .opsmind-header-tools .dropdown-toggle {
	color: var(--opsmind-navy) !important;
}

#header.header-style-opsmind-5 .toggle-menu {
	display: none;
}

#header.header-style-opsmind-5 .back-menu {
	display: none;
}

/* Sticky / scrolled polish */
#header.header-style-opsmind-4.ops_menu_sticky_up,
#header.header-style-opsmind-4.is-sticky {
	background: rgba(11, 31, 58, 0.94);
	backdrop-filter: blur(8px);
}

#header.header-style-opsmind-5.is-sticky .opsmind-header-5-capsule,
#header.header-style-opsmind-5.ops_menu_sticky_up .opsmind-header-5-capsule {
	box-shadow: 0 10px 30px rgba(11, 31, 58, 0.16);
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
	.opsmind-header-4-inner {
		grid-template-columns: 1fr auto;
		grid-template-areas: "logo tools";
		min-height: 70px;
	}

	html[dir="rtl"] .opsmind-header-4-inner,
	body.rtl .opsmind-header-4-inner {
		grid-template-areas: "tools logo";
	}

	.opsmind-header-4-nav {
		display: none !important;
	}

	#header.header-style-opsmind-4 .opsmind-header-4-mobile-nav {
		display: block;
	}

	#header.header-style-opsmind-4 .toggle-menu,
	#header.header-style-opsmind-5 .toggle-menu {
		display: inline-flex;
	}

	#header.header-style-opsmind-4 .opsmind-header-4-logo .custom-logo-link img,
	#header.header-style-opsmind-4 .opsmind-header-4-logo .logo img {
		max-height: 58px;
	}

	.opsmind-header-5-capsule {
		border-radius: 22px;
		padding: 10px 14px;
		gap: 10px;
	}

	.opsmind-header-5-nav {
		display: none;
	}

	.opsmind-header-5-logo .custom-logo-link img,
	.opsmind-header-5-logo .logo img {
		max-height: 48px;
	}

	/*
	 * Elementor style 9 / default header: mobile is a light bar (white/gray),
	 * while transparent white-icon styles only apply from 992px up.
	 * Force navy chips so cart/user stay visible (fixes “floating blue 1”).
	 */
	header.header {
		background: #fff !important;
		border-bottom: 1px solid #e8edf3;
	}

	header.header.is-sticky,
	.sticky-wrapper.is-sticky header.header,
	header.header-sticky-menu.is-sticky {
		background: #f3f5f8 !important;
		box-shadow: 0 6px 18px rgba(11, 31, 58, 0.08);
	}

	.header__left .logo img {
		max-height: 44px !important;
		width: auto !important;
		object-fit: contain !important;
		background: transparent;
	}

	.header__left .menu-toggle {
		width: 42px !important;
		height: 42px !important;
		margin: 0 !important;
		border-radius: 999px;
		background-color: #f1f5f9 !important;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 22 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.4375 1.5C0.4375 1.05127 0.801269 0.6875 1.25 0.6875H20.75C21.1987 0.6875 21.5625 1.05127 21.5625 1.5C21.5625 1.94873 21.1987 2.3125 20.75 2.3125H1.25C0.801269 2.3125 0.4375 1.94873 0.4375 1.5Z' fill='%230b1f3a'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.4375 8C0.4375 7.55127 0.801269 7.1875 1.25 7.1875H20.75C21.1987 7.1875 21.5625 7.55127 21.5625 8C21.5625 8.44873 21.1987 8.8125 20.75 8.8125H1.25C0.801269 8.8125 0.4375 8.44873 0.4375 8Z' fill='%230b1f3a'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.4375 14.5C0.4375 14.0513 0.801269 13.6875 1.25 13.6875H20.75C21.1987 13.6875 21.5625 14.0513 21.5625 14.5C21.5625 14.9487 21.1987 15.3125 20.75 15.3125H1.25C0.801269 15.3125 0.4375 14.9487 0.4375 14.5Z' fill='%230b1f3a'/%3E%3C/svg%3E") !important;
		background-repeat: no-repeat !important;
		background-position: center !important;
		background-size: 20px 14px !important;
		border: 1px solid #e2e8f0;
		flex-shrink: 0;
	}

	.header__right .items .dropdown.dropdown-minicart .dropdown-toggle,
	.header__right .items .dropdown.dropdown-user-dashboard .dropdown-toggle,
	.header__right .dropdown-minicart .mini-cart.dropdown-toggle,
	.header__right .dropdown-user-dashboard .dropdown-toggle,
	.header__right .mini-cart.dropdown-toggle {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
		max-width: 42px !important;
		padding: 0 !important;
		border-radius: 999px !important;
		background: #f1f5f9 !important;
		border: 1px solid #e2e8f0 !important;
		color: var(--opsmind-navy) !important;
		box-shadow: none !important;
	}

	.header__right .dropdown-toggle .ops-icon,
	.header__right .mini-cart .ops-icon,
	.header__right .dropdown-minicart .mini-cart.dropdown-toggle .ops-icon {
		color: var(--opsmind-navy) !important;
		font-size: 18px !important;
	}

	.header__right .dropdown-toggle svg,
	.header__right .mini-cart svg,
	.header__right .dropdown-toggle svg path,
	.header__right .mini-cart svg path {
		stroke: var(--opsmind-navy) !important;
		color: var(--opsmind-navy) !important;
	}

	.header__right .dropdown-currency .dropdown-toggle,
	.header__right .dropdown-currency .fa,
	.header__right .dropdown-currency .fa:before {
		color: var(--opsmind-navy) !important;
	}

	.header__right .items .dropdown.dropdown-minicart .dropdown-toggle .cart-caret,
	.header__right .cart-caret {
		top: -4px !important;
		inset-inline-end: -4px !important;
		left: auto !important;
		margin: 0 !important;
		background: var(--om-header-blue) !important;
		color: #fff !important;
	}

	.header__right .items {
		gap: 8px !important;
		align-items: center !important;
	}

	.header__left {
		gap: 8px;
	}

	header.header {
		display: flex !important;
		align-items: center !important;
	}
}

/* Listing / search-result pages: keep header tools circular & aligned (desktop + mobile) */
body.opsmind-listings-ui #header .header,
body.search-result-page #header .header,
body.opsmind-hotel-ui.search-result-page #header .header {
	overflow: visible !important;
}

body.opsmind-listings-ui #header .header__right .items,
body.search-result-page #header .header__right .items {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	flex-wrap: nowrap !important;
}

body.opsmind-listings-ui #header .header__right .dropdown-toggle,
body.opsmind-listings-ui #header .header__right .mini-cart.dropdown-toggle,
body.search-result-page #header .header__right .dropdown-toggle,
body.search-result-page #header .header__right .mini-cart.dropdown-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	border-radius: 999px !important;
	overflow: visible !important;
}
