.header__inner {
	border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.header__content {
	@extend .clearfix;
}

#header {
	z-index: 9990;
}

.header--background {
	background-color: #212122;
	position: relative;

	.header__inner {
		border-bottom-width: 0;
	}
}

.header--transparent {
	background-color: transparent;
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
}

.header-desktop {

	.header__content { 
		overflow: visible;

		.wiloke-menu-list,
		.wil-menu-list {
			display: block;
		}

		&.wiloke-menu-responsive {
			.wiloke-menu-list,
			.wil-menu-list {
				display: none;
			}
		}
	}

}

.header-responsive {
	
	.header__content { 
		overflow: visible;

		.header__toggle {
			display: block;
		}
	}
}

.wiloke-menu-responsive {

	.header__actions {
		padding-right: 45px;
	}
}

.header__content {
	position: relative;
	height: 70px;
	overflow: hidden;
	@extend %clearfix;

	@media (min-width: 768px) {
		height: 90px;
	}

	.header__logo {
		float: left;
		height: inherit;
		display: table;

		a {
			display: table-cell;
			vertical-align: middle;
		}

		img {
			max-height: 60px;

			@media (max-width: 767px) {
				max-height: 40px;
				max-width: 94px;
			}
		}
	}

	.header__actions, 
	.wil-menu-list {
		float: right;
	}

	.wil-menu-list {
		margin: 0;
		padding: 0;
		display: none;

		li {
			display: block;
			position: relative;
			list-style: none;

			> a {
				display: block;
				@extend %font-title;
				@extend %color-white;
			}

			&:hover {

				> a {
					@extend %color-primary-important;
				}

				> .sub-menu {
					opacity: 1;
					visibility: visible;
				    transform: scaleY(1) translateZ(0);
				}
			}
		}

		> li { 
			float: left;

			&.current-menu-item,
			&.current-menu-parent,
			&.current-menu-ancestor {

				> a {
					@extend %color-primary-important;
					@extend %border-bottom-primary;
				}
			}

			> a {
				padding: 0 20px;
				font-size: 14px;
				line-height: 68px;
				border-bottom: 1px solid transparent;

				@media (min-width: 768px) {
					line-height: 89px;
				}
			}

			&.menu-item-has-children > a:after {
				content: '\f107';
				font-family: 'FontAwesome';
				margin-left: 3px;
			}
		}

		.sub-menu {
			padding: 0;
			margin: 0;
			width: 190px;
			opacity: 0;
			top: 100%;
			visibility: hidden;
			position: absolute;
			background-color: #212122;
			transform: scaleY(0) translateZ(0);
			transition: all 0.2s ease;
			transform-origin: 50% 0;

			li {

				> a {
					color: #b3b3b5;
					font-size: 13px;
					padding: 5px 15px;
				}

				&:first-child {
					padding-top: 10px;
				}

				&:last-child {
					padding-bottom: 10px;
				}

				> .sub-menu {
					top: 0;
					left: 100%;
				}

				&:last-child > a {
					border-bottom-width: 0;
				}

				&.menu-item-has-children > a {

					&:after {
						float: right;
						content: '\f0da';
						font-family: 'FontAwesome';
					}
				}

				&:hover,
				&.current-menu-item,
				&.current-menu-parent,
				&.current-menu-ancestor {

					> a {
						@extend %color-primary-important;
					}
				}

				&:hover > .sub-menu {
					opacity: 1;
					visibility: visible;
				}
			}
		}
	}

	// Mega Menu
	.wiloke-menu {
		float: right;

		&:not(.wiloke-menu-responsive) {

			.wiloke-menu-list {

				.wiloke-menu-item {

					> a {
						display: block;
						@extend %font-title;
					}

					&:hover, 
					&.current-menu-item, 
					&.current-menu-parent {
						> a {
							@extend %color-primary-important;
						}
					}
				}

				> .wiloke-menu-item {
					float: left;

					> a {
						padding: 0 20px;
						font-size: 14px;
						line-height: 70px;
						display: block;
						@extend %font-title;
						color: #fff;

						&:after {
							margin-left: 3px;
						}

						@media (min-width: 768px) {
							line-height: 90px;
						}
					}

					&.current-menu-item {

						> a {
							position: relative;

							&:before {
								content: '';
								left: 0;
								right: 0;
								bottom: 0;
								position: absolute;
								display: block;
								border-top: 1px solid;
							}
						}
					}
				}

				.wiloke-menu-sub {
					background-color: #212122;

					> .wiloke-menu-item {

						> a {
							font-size: 13px;
							padding: 6px 20px;
							display: block;
							color: #b3b3b5;

							&:after {
								float: right;
							}
						}

						&:first-child {
							padding-top: 15px;
						}

						&:last-child {
							padding-bottom: 15px;

							> a {
								border-bottom-width: 0;
							}
						}
					}
				}

				.wiloke-menu-sub-mega {
				    padding: 20px;
				}
			}
		}

		&.wiloke-menu-responsive {
			
			.wiloke-menu-list {
				position: absolute;
				left: 0;
				right: 0;
				top: 100%;
				margin-left: -15px;
				margin-right: -15px;
				background-color: #212121;
				border-top: 1px solid rgba(#fff, 0.1);
				z-index: 9999;
				@media (min-width: 768px) {
					margin-left: -60px;
					margin-right: -60px;
				}

				.wiloke-menu-item {

					> a {
						display: block;
						padding: 10px 20px;
						border-bottom: 1px solid rgba(#fff, 0.1);
						@extend %font-title;
						color: #fff;

						&:after {
							float: right;
						}
					}
				}

				.wiloke-menu-sub-dropdown {

					> .wiloke-menu-item > a {
						padding-left: 20px;
					}
				}

				.wiloke-menu-sub-mega {
			    	padding: 20px 15px;
					border-bottom: 1px solid rgba(#fff, 0.1);
				}
			}
		}
	}

	.wiloke-menu-bar {
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);

		.wiloke-menu-bar__line > span {
			transition: all 0.3s ease;
		}

		&:hover  {
			.wiloke-menu-bar__line > span {
				@extend %bg-primary;
			}
		}
	}
}


/*Border bottom of Menu item*/
.wiloke-menu-responsive {
	
	.wiloke-menu-item-active {
		.wiloke-menu-sub-dropdown {
			overflow-x: visible !important;
		}
	}

	.wiloke-menu-sub-dropdown {
		
		> .wiloke-menu-item > a {
			border-bottom: none !important;
			position: relative;
			&:before {
				content: "";
				display: block;
				height: 1px;
				width: 500%;
				background: rgba(255,255,255,0.1);
				position: absolute;
				left: -50%;
				bottom: 0;
			}
		}
	}
}

@media(max-height: 320px) {
    #listgo-mobile-search-only {
        display: none !important;
    }
}

.header__actions {
	height: 100%;
	float: left;
	position: relative;

	> div {

		padding: 0 10px;
		float: left;
		height: 100%;
		position: relative;
		z-index: 999;

		.tb, .tb__cell {
			height: 100%;
		}

		&:last-child {
			padding-right: 0;
		}

		.tb {
			position: relative;

			&:before {
				content: '';
				border: 7px solid transparent;
				border-bottom-color: #fff;
				bottom: 0;
				visibility: hidden;
				opacity: 0;
				@extend %centered-hoziontal;
			}
		}

		&.active {

			.tb:before {
				opacity: 1;
				visibility: visible;
			}

			.notifications, .user__menu {
				opacity: 1;
				visibility: visible;
			}
		}
	}
}

.header__add-listing {
	
	a {
		display: block;
		border: 1px solid;
		border-radius: 50px;
		font-size: 20px;
		padding: 0;
		width: 30px;
		text-align: center;
		height: 30px;
		pointer-events: relative;
		@extend %color-white;

		&:before, &:after {
			content: '';
			width: 13px;
			height: 1px;
			position: absolute;
			margin: auto;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			background-color: #fff;
		}

		&:before {
			transform: rotate(90deg);
		}

		span {
			display: none;
		}

		&:hover {
			@extend %color-primary;
		}
	}

	@media (max-width: 767px) {
		&.add-listing-disable-on-mobile {
			display: none;
		}
	}

	@media (min-width: 768px) {
		display: block;

		a {
			font-size: 14px;
			line-height: 34px;
			padding: 0 20px;
			height: auto;
			width: auto;

			span {
				display: inline;
			}

			&:before, &:after {
				content: none;
			}
		}
	}

}

.notifications__icon {
	position: relative;
	display: inline-block;
	cursor: pointer;
	user-select: none;
	@extend %color-white;

	i {
		font-size: 24px;
		position: relative;
		top: 3px;
	}

	.count {
		position: absolute;
		top: -10px;
		right: -10px;
		border-radius: 10px;
		font-size: 12px;
		font-weight: 500;
		line-height: 17px;
		min-width: 17px;
		text-align: center;
		padding: 0 5px;
		@extend %font-title;
		@extend %bg-subprimary;
	}
}

.header__notifications {

	.notifications {
		position: absolute;
		box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.2);
		right: -10px;
		width: 360px;
		@extend %hidden-opacity;
	}

	.notifications__list {
		max-height: 430px;
		position: relative;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.notifications__label {
		font-size: 14px;
	}

}

.user__icon {
	position: relative;
	display: inline-block;
	cursor: pointer;

	img {
		position: relative;
		top: -2px;
	}
}

.user__avatar {
	width: 30px;
	height: 30px;
	overflow: hidden;
	border-radius: 100%;
	cursor: pointer;
	user-select: none;
	position: relative;

	img {
		width: 100%;
	}

	.widget_author__avatar-placeholder {
		font-size: 16px;
	}
}

.user__menu {
	right: -20px;
	width: 200px;
	position: absolute;
	box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.2);
	transform-origin: 50% 0;
	@extend %bg-white;
	@extend %hidden-opacity;

	ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	li {
		
		border-bottom: 1px solid #eeeeee;
	}
}

.user__menu__header {
	padding:11px 15px;
	@extend .clearfix;
}

.user__header__avatar {
	float: left;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	margin-right: 10px;
	overflow: hidden;
	position: relative;

	.widget_author__avatar-placeholder {
		font-size: 16px;
	}
}

.header__toggle {
	display: none;
}

.user__header__info {

	h6 {
		margin: 0;
		font-size: 14px;
		font-weight: 400;
		text-transform: capitalize;
		@extend %ellipsis;
		@extend %font-base;
	}

	span {
		font-size: 12px;
		text-transform: capitalize;
		@extend %color-primary;
	}
}

.user__header__avatar {
	float: left;
}

.user__menu__item {
	@extend %transition-all-03s-ease;
	padding: 0;
	@extend %font-title;

	a {
		position: relative;
		display: block;
		padding: 10px 15px;
	}

	&:hover {
		background-color: $color-gray-2;

		.count {
			@extend %color-white;
			@extend %bg-subprimary;
		}
	}

	i {
		margin-right: 2px;
	}

	.count {
		position: absolute;
		top: 13px;
		right: 15px;
		font-size: 12px;
		font-weight: 600;
		background-color: #eeeeee;
		border-radius: 20px;
		line-height: 17px;
		padding: 0 7px;
		transition: background-color 0.3s ease;
	}
}

.header__toggle-icon {
	font-size: 24px;
	cursor: pointer;
	display: block;
	@extend %transition-all-03s-ease;
	@extend %color-white;

	&:hover {
		@extend %color-primary;
	}
}

// Header Mobile
#wrap-page {
	left: 0;
	transition: left 0.3s ease;
}

.menu-mobile__open {

	#wrap-page {
		left: -260px;
		box-shadow: 2px 0 7px rgba(#000, 1);
	}

	.header-mobile {
		visibility: visible;
		transform: translateX(0);
		
	}

	@media (min-width: 480px) {
		#wrap-page {
			left: -320px;
		}
	}
}

.header-mobile {
	position: fixed;
	right: 0;
	width: 260px;
	z-index: 999;
	top: 0;
	bottom: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	background-color: #212122;
	visibility: hidden;
	transform: translateX(100%);
	transition: all 0.3s ease;

	.wil-menu-list {
		clear: both;
		padding: 0;
		margin: 0;
		padding: 0 20px 50px 20px;

		li {
			list-style: none;
		    font-size: 14px;
			@extend %color-white;
			@extend %font-title;

			a {
				padding: 10px 0;
				display: block;
				border-bottom: 1px solid rgba(#fff, 0.1);
			}

			&.current-menu-item, 
			&.current-menu-parent {

				> a {
					@extend %color-primary;
				}
			}
		}
	}

	.sub-menu {
		padding-left: 20px;
		margin: 0;
	}

	@media (min-width: 480px) {
		width: 320px;
	}
}

@media (max-width: 480px) {

	.header__actions {

		.header__notifications {
			position: static;
		}

		.notifications {
			right: 0;
			width: 300px;
		}

		.notifications__list {
			max-height: calc(100vh - 200px);
		}
	}
}

@media (max-width: 320px) { 
	
	.header__actions {

		.notifications {
			width: 290px;
		}

		> div {
			padding: 0 10px;
		}
	}
}

// Mega Menu
.wiloke-menu-sub-mega {

	.vc_row {
		padding-top: 0;
		padding-bottom: 0;
	}

	// Custom Heading
	.vc_custom_heading {
		margin-top: 0;
		margin-bottom: 10px;
		@extend %color-white;
	}

	// Post
	.wiloke-menu-posts {
		text-align: center;

		.wiloke-menu-post__thumbnail {
			margin-bottom: 15px;
		}

		.wiloke-menu-post {

			.wiloke-menu-post__title {
				margin-bottom: 0;
				font-weight: normal;
				@extend %color-white;

				+ .wiloke-menu--post__meta {
					margin-top: 5px;
				}
			}

			.wiloke-menu-post__meta {
				@extend %color-white;
			}
		}
	}

	.wiloke-menu-simple {

		.wiloke-menu-post {
			margin-bottom: 0;
			text-align: left;

			.wiloke-menu-post__thumbnail {
				display: none;
			}

			.wiloke-menu-post__title {
				padding: 10px 0;
				font-weight: normal;
				font-size: 13px;
				color: #b3b3b5 !important;
			}
		}
	}

	// Widget custom menu
	.widgettitle {
		font-size: 14px;
		margin-top: 0;
		margin-bottom: 10px;
		@extend %color-white;
	}

	.vc_wp_custommenu {
		margin-bottom: 0;
	}

	.widget_nav_menu {

		.widgettitle {
			border-bottom: 1px solid rgba(#fff, 0.1);
		    font-size: 14px;
		    padding-bottom: 10px;
		    color: #f5af02;
		    font-weight: 500;
			@extend %color-primary;
		}

		ul li {
			color: #b3b3b5;

			a {
				padding: 5px 0;
				font-size: 13px;
				border-bottom-width: 0;
				@extend %font-title;
			}

			&.current_page_item > a {
				@extend %color-primary;
			}
		}
	}

	// Term
	.wiloke-menu-term {
		
		.wiloke-menu-term__title {
			@extend %color-white;

			&:hover {
				@extend %color-primary;
			}
		}

		.wiloke-menu-term__thumbnail + .wiloke-menu-term__title {
			text-align: center;
		}
	}

	// List
	.wiloke-shortcode-list {

		a {
		    padding: 13px 0;
    		border-bottom: 1px solid rgba(255,255,255,0.05);
			@extend %color-white;

			&:hover {
				@extend %color-primary;
			}
		}
	}
}

// Term
.wiloke-menu-term__thumbnail {
	margin-bottom: 12px;
	padding-top: 100%;
	@extend .bg-scroll;

	img {
		width: 100%;
		display: none !important;
	}
}

.wiloke-menu-term__title {
	font-size: 16px;
	margin: 0;
	font-weight: normal;
	transition: all 0.3s ease;
}

@media (max-width: 767px) {
	.wiloke-menu-list {
		display: none;
	}
}

// Mega menu mobile
.header__content .wiloke-menu.wiloke-menu-responsive .wiloke-menu-list {
	max-height: calc(100vh - 70px);
	overflow-x: hidden;
	overflow-y: auto;
}
.wiloke-menu--hide {
	display: none !important;
}
.wiloke-menu-sub-mega:empty {
	display: none !important;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
   .header-page-form__inner {
   		margin-top: 10%;
   }
}