/* =========================================================
   Mega Menu — Retail Mall
   ========================================================= */

.header-nav-menu .menu-list-container li.has-mega-menu {
	position: static !important;
}

.header-nav-menu .mega-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	z-index: 999;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 28px 12% 36px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.header-nav-menu li.has-mega-menu:hover .mega-menu,
.header-nav-menu li.has-mega-menu .mega-menu:hover {
	opacity: 1;
	visibility: visible;
}

.mega-menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 28px;
	max-width: 1200px;
	margin: 0 auto;
}

.mega-col {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #395A7F;
	transition: transform 0.3s ease;
}

.mega-col:hover {
	transform: translateY(-4px);
	color: #6e9fc1;
	text-decoration: none;
}

.mega-col-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 12px;
	background: #f5f5f5;
}

.mega-col-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.mega-col:hover .mega-col-image img {
	transform: scale(1.06);
}

.mega-col-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 6px;
	text-align: left;
	line-height: 1.3;
}

.mega-col-desc {
	font-size: 0.85rem;
	font-weight: 400;
	margin: 0;
	text-align: left;
	line-height: 1.5;
	color: #6b7c91;
}

.mega-menu-facilities {
	max-width: 1200px;
	margin: 20px auto 0;
	padding-top: 16px;
	border-top: 1px solid #e8e8e8;
	text-align: left;
}

.mega-menu-facilities a {
	font-weight: 700;
	color: #395A7F;
	text-decoration: none;
}

.mega-menu-facilities a:hover {
	color: #6e9fc1;
}

/* ----- Retail Mall — cùng khung submenu header (không card/panel riêng) ----- */
.header-nav-menu ul .submenu.retail-dropdown {
	left: 0;
	right: auto;
	transform: none;
	width: max-content;
	min-width: 0;
	max-width: min(320px, 92vw);
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
	text-align: left;
}

.header-nav-menu ul .submenu.retail-dropdown > li {
	display: block !important;
	width: 100%;
	max-width: 100%;
	padding-top: 10px;
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
	white-space: normal;
	text-align: left !important;
	line-height: 1.4;
	transform: none;
	font-size: 1rem;
	font-weight: normal;
}

.header-nav-menu ul .submenu.retail-dropdown > li > a {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	font-size: inherit;
	font-weight: 600;
	color: inherit;
	text-align: left;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.2s ease;
	cursor: pointer;
}

.header-nav-menu ul .submenu.retail-dropdown > li > .retail-menu-nested__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	font-size: inherit;
	font-weight: 600;
	color: inherit;
	text-align: left;
	line-height: 1.4;
	transition: color 0.2s ease;
	cursor: default;
}

.header-nav-menu ul .submenu.retail-dropdown > li > a:hover {
	color: #6e9fc1;
	background: transparent;
}

.header-nav-menu .retail-menu-nested__trigger:hover {
	color: #6e9fc1;
	background: transparent;
}

.header-nav-menu .retail-menu-nested {
	position: relative;
	display: block;
	width: 100%;
}

.header-nav-menu ul .submenu.retail-dropdown > li.retail-menu-nested {
	width: 100%;
}

.header-nav-menu .retail-menu-nested__chev {
	flex-shrink: 0;
	font-size: 0.6rem;
	opacity: 0.55;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-nav-menu .retail-menu-nested:hover .retail-menu-nested__chev {
	transform: rotate(180deg);
	opacity: 0.85;
}

.header-nav-menu .retail-menu-nested__trigger {
	text-align: left;
}

/* Danh mục: nằm trong cùng khung, chỉ thụt trái */
.header-nav-menu .retail-cat-list {
	position: static !important;
	left: auto !important;
	top: auto !important;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: none !important;
	display: block;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	max-height: 0;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
	border: none;
	transition: max-height 0.35s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.header-nav-menu .retail-menu-nested:hover > .retail-cat-list {
	opacity: 1;
	visibility: visible;
	max-height: min(55vh, 380px);
	overflow-y: auto;
	pointer-events: auto;
	padding-bottom: 0;
}

.header-nav-menu ul .submenu.retail-dropdown > li.retail-menu-nested:not(:hover) > .retail-cat-list {
	opacity: 0 !important;
	visibility: hidden !important;
	max-height: 0 !important;
	pointer-events: none !important;
}

/* Cấp 2 (Leasing / Tenant Categories): rõ khi dropdown Retail mở, không mờ theo fade cấp 1 */
.header-nav-menu ul.menu-list-container > li:hover > .submenu.retail-dropdown > li > a,
.header-nav-menu ul.menu-list-container > li:hover > .submenu.retail-dropdown .retail-menu-nested__trigger {
	opacity: 1;
}

/* Cấp 3 (danh mục tenant): chỉ khi hover Tenant Categories; luôn opacity 1 */
.header-nav-menu .retail-menu-nested:hover > .retail-cat-list {
	opacity: 1 !important;
	visibility: visible !important;
}

.header-nav-menu .retail-menu-nested:hover > .retail-cat-list li,
.header-nav-menu .retail-menu-nested:hover > .retail-cat-list li a {
	opacity: 1 !important;
	visibility: visible;
}

.header-nav-menu .retail-cat-list li {
	display: block !important;
	width: 100%;
	max-width: 100%;
	padding-top: 10px;
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
	margin: 0;
	text-align: left !important;
	transform: none !important;
	font-size: 1rem;
	font-weight: normal;
}

.header-nav-menu .retail-cat-list li:hover {
	transform: none !important;
	font-weight: inherit;
	color: inherit;
}

.header-nav-menu .retail-cat-list li a {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0 0 0 1.125rem;
	font-size: inherit;
	font-weight: 600;
	color: inherit;
	line-height: 1.4;
	text-align: left !important;
	text-decoration: none;
	white-space: normal;
	word-wrap: break-word;
	border: none;
	transition: color 0.2s ease;
}

.header-nav-menu .retail-cat-list li a:hover {
	color: #6e9fc1;
	background: transparent;
	font-weight: 600;
}

.header-nav-menu .retail-mobile-nested .menu-link-sub--nested {
	padding-left: 1.25rem;
	font-size: 0.9rem;
}

body.home #header-nav-menu ul .submenu.retail-dropdown > li > a:hover,
body.home #header-nav-menu .retail-menu-nested__trigger:hover,
body.home #header-nav-menu .retail-cat-list li a:hover {
	color: inherit !important;
	font-weight: inherit;
}
