/* Megamenu
-------------------------------------------------------------*/
.megamenu {
	display: flex;
	flex-direction: row;
	max-height: 0;
	width: 100%;
	max-width: var(--large-width);
	margin: 0 auto;
	align-items: center;
	justify-content: center;
	z-index: 2;
	overflow: hidden;
	position: relative;
	transform-origin: top center;
	opacity: 0;
	transform: translateY(-5%);
	clip-path: inset(0 0 120% 0);
	pointer-events: none;
	transition:
		clip-path 0.4s, transform 0.8s var(--zoom-curve), max-height 0.8s var(--zoom-curve), height 0.8s var(--zoom-curve), opacity 0.3s ease;
}
.megamenu {
	-webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
	mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}
header.scrolled {
	height: auto;
	max-height: 900px;
}
.megamenu.active {
	opacity: 1;
	transform: translateY(0);
	clip-path: inset(0 0 0 0);
	max-height: 1000px;
	pointer-events: auto;
}
.mm-category {
	flex-direction: row;
	width: 100%;
	display: none;
	align-items: stretch;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
}
.mm-category.active {
	display: flex;
	opacity: 1;
	pointer-events: auto;
}
.mm-category section {
	width: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	padding: 0 var(--l50p);
	text-align: start;
	padding-bottom: var(--l50p);
	padding-top: var(--lp);
	height: auto;
	min-width: 295px;
	transition: padding 0.2s;
}
/* Stylings for occasions tab */
#MMoccasions.mm-category section {
	flex-direction: row;
	gap: 30px;
}
#MMoccasions.mm-category a:hover::after {
	opacity: 0;
}
/* Stylings for Destinations tab */
#MMdestinations section {
	max-width: 120px;
	min-width: 0;
	width: fit-content;
	box-sizing: unset;
	padding-left: var(--lp);
	padding-right: var(--lp);
	/*padding-bottom: var(--lp);*/
}
#MMdestinations section:nth-child(4), #MMdestinations section:nth-child(2) {
	padding-top: 15px;
	margin-top: 50px;
}
#MMdestinations section.divider {
	padding-top: 65px;
	padding-right: 40px;
	margin-top: 0;
}
#MMdestinations section:nth-child(3), #MMdestinations section:nth-child(6) {
	padding-left: 50px;
}
#MMdestinations section:last-child a::after {
	display: none;
}
#MMdestinations section.divider, #MMdestinations section:last-child {
	padding-top: 45px;
	margin-top: 20px;
}
#MMdestinations a.top-heading {
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--copperwood);
	margin-bottom: 10px;
	text-wrap: nowrap;
}
/* end of Destinations tab */
.mm-category section:last-child {
	min-width: 340px;
}
.mm-category section.divider {
	margin: var(--l50p) 0;
	margin-top: 20px;
	padding-top: 70px;
	border-right: 1px solid var(--champagne-mist);
}
.mm-category a:not(.btn) {
	color: var(--coffee-bean);
	text-decoration: none;
	margin: 2px 0;
	line-height: normal;
	text-wrap: wrap;
	transition: 0.2s;
	font-size: 15px;
	width: fit-content;
	position: relative;
}
.mm-category .top-heading {
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--copperwood);
	margin-bottom: 10px;
	text-wrap: nowrap;
}
.mm-category section .mid-heading {
	font-weight: 500;
	font-size: 16px;
	color: var(--copperwood);
	margin-top: 20px;
	margin-bottom: 5px;
	text-decoration: none;
}
.mm-category section .mid-heading:first-child {
	margin-top: 0;
}
.mm-category a:not(.btn):hover {
	color: var(--copperwood);
}
/*.mm-category section:last-child a:not(.btn)::after{
    position: absolute;
    content: "";

    width: 12px;
    height: 12px;

    background-image: url("../icons/button-arrow.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    right: -10px;
    opacity: 0;
    transition: 0.2s;

    top: 50%;
    transform: translateY(-50%);
}

.mm-category section:last-child a:not(.btn):hover::after{
    right: -20px;
    opacity: 1;
}*/
.mm-category section:last-child a:not(.btn).mid-heading:hover::after, .mm-category section:last-child .call a:not(.btn):hover::after {
	opacity: 0;
}
.mm-category a:focus-visible {
	outline: 1px solid var(--copperwood);
	outline-offset: 4px;
}
.mm-category a.btn:focus-visible {
	color: white;
	outline: none;
	border: 1px solid var(--stormy-teal);
}
.mm-category a.btn {
	width: fit-content;
	font-size: 16px;
	border-color: var(--copperwood);
	color: var(--copperwood);
	font-weight: 400;
	height: fit-content;
	line-height: normal;
	align-items: center;
	justify-content: center;
	margin-top: 30px;
	min-height: 35px;
	box-sizing: border-box;
	padding-top: 5px;
	padding-bottom: 5px;
}
@media (max-width: 1500px) {
	.mm-category > section:first-child {
		padding-left: 0;
	}
	.mm-category > section:last-child {
		padding-right: 0;
	}
	.mm-category section.divider {
		padding-right: var(--l40p);
	}
	.mm-category section:last-child {
		min-width: 0;
	}
	.mm-category section {
		padding: 0 calc(var(--l40p) / 2);
		padding-top: var(--lp);
		padding-bottom: var(--l50p);
		min-width: 0;
	}
	.mm-category a:not(.btn) {
		min-width: 0;
	}
}
@media (max-width: 1300px) {
	.mm-category .call {
		flex-direction: column;
	}
	.megamenu {
		transform: translateY(-5%) scale(0.9);
	}
	.megamenu.active {
		transform: translateY(0) scale(0.9);
	}
}
@media (max-width: 1099px) {
	.megamenu {
		display: none;
	}
}