#mobile-menu,
.mobile-nav-items {
	display: none;

}

/* Mobiilivalikko */
@media (max-width: 1024px) {
	.mobile-nav-items {
		display: block;
	}

	.mobile-nav {
		display: none;
		position: relative;
		z-index: 990;
		background: transparent;
	}

	.mobile-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 1rem 1.5rem;
		background: transparent;
		position: relative;
		z-index: 991;
	}

	.mobile-lang,
	.mobile-location,
	.mobile-book {
		font-size: 0.85rem;
		color: #fff;
		text-decoration: none;
		margin-right: 1rem;
	}

	.mobile-book {
		position: absolute;
		right: 1.5rem;
		top: 1rem;
		font-weight: bold;
		text-transform: uppercase;
	}	

	#mobile-menu-toggle {
		background: none;
		border: none;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	#mobile-menu-toggle span {
		width: 25px;
		height: 2px;
		background: #fff;
		display: block;
	}

	.mobile-menu {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: #fff;
		z-index: 900;
		display: none;
		-webkit-overflow-scrolling: touch;
		overflow: hidden;
		padding: 0;
	}

	.mobile-menu-list {
		list-style: none;
		padding: 0;
		margin: 0;
		margin-top: 50px;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}

	.mobile-menu-list li a {
		text-decoration: none;
		color: #192232;
		font-size: 1rem;
		font-weight: 500;
	}

	.menu-heading {
		font-size: 0.85rem;
		font-weight: 700;
		text-transform: uppercase;
		color: #999;
		margin-top: 1.5rem;
		margin-bottom: 0.3rem;
		pointer-events: none;
	}
	
	.mobile-logo {
		position: fixed;
		top: 24px;
		left: 50%;
		transform: translateX(-50%);
		max-width: 60px;
		height: auto;
		z-index: 901;
		/*opacity: 0;*/
		transition: opacity 0.4s ease;
	}
	
	/* Näkyvä tila, kun valikko on avattu */
	body.mobile-menu-animating .mobile-logo {
		opacity: 1;
		transform: translateX(-50%);
	}
	
	.mobile-lang-switch {
		position: fixed;
		top: 28px;
		left: 31px;
		font-weight: 400;
		font-size: 16px;
		z-index: 901;
		transition: opacity 0.4s ease;
	}

	.mobile-location-icon {
		position: fixed;
		top: 28px;
		left: 75px;
		font-weight: 400;
		font-size: 16px;
		z-index: 901;
		transition: opacity 0.4s ease;
	}
	
	body.page-header-on:not(.mobile-menu-animating) .mobile-lang-switch,
	body.page-header-on:not(.mobile-menu-animating) .mobile-location-icon {
		color: #fff;
	}

	body.scrolled-down.mobile-menu-animating .mobile-logo,
	body.scrolled-down.mobile-menu-animating .mobile-lang-switch,
	body.scrolled-down.mobile-menu-animating .mobile-location-icon {
		opacity: 1 !important;
		pointer-events: auto;
	}
		
	.mobile-menu-scroll {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		overflow: hidden; /* piilottaa yli menevän sisällön */
	}
	
	.scroll-fade-top {
		position: absolute;
		top: 60px;
		left: 0;
		width: 100%;
		height: 40px;
		background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0));
		pointer-events: none;
		z-index: 3;
	}	

	/* Varsinainen scrollaava alue logon alla */
	.mobile-menu-scroll-inner {
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		bottom: 0;
		overflow-y: auto;
		padding: 0 2rem 2rem; /* sivuttaispadding + alareunaan tilaa */
	}	
	
	
	
}

.custom-hamburger {
	display: none;
	width: 30px;
	height: 28px;
	cursor: pointer;
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 999;
}

.custom-hamburger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease, background-color 0.6s ease;
}

.custom-hamburger span:first-child {
	top: 6px;
}

.custom-hamburger span:last-child {
	top: 16px;
	width: 70%;
}

/* X-muodon animaatio */
.custom-hamburger.open span:first-child {
	transform: rotate(45deg);
	top: 11px; /* keskikohta */
}

.custom-hamburger.open span:last-child {
	transform: rotate(-45deg);
	top: 11px;
	width: 100%;
}

/* Tumma versio, valkoinen tausta */
.custom-hamburger.hamburger-dark span {
	background: #000;
	height: 2px; /* ohuempi viiva X-tilassa */
}

.custom-hamburger:hover {
	opacity: 0.6;
}

@media (max-width: 1024px) {
	#tt-header {
		display: none;
	}

	.custom-hamburger {
		display: block;
	}
}

@media (max-width: 1024px) {
	.megamenu {
		display: none;
	}

	.custom-hamburger {
		display: block;
	}
	
	body:not(.tt-ph-visible) .custom-hamburger span {
			background: #000 !important;
		}
	}
}

.tt-header-inner {
	position: relative;
}

body.mobile-menu-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
	touch-action: none;
}

body.mobile-menu-open #body-inner {
	overflow: visible !important;
	height: auto !important;
}

/* Accordion-tyylinen alasvetovalikko mobiilivalikkoon */
.mobile-accordion-toggle {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 600;
	color: #192232;
	padding: 0.75rem 0;
	cursor: pointer;
	position: relative;
	transition: color 0.3s ease;
	text-transform: uppercase;
}

.mobile-accordion-toggle::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1rem;
	transition: transform 0.3s ease;

}

.mobile-accordion-toggle.active::after {
	content: '–';
	transform: translateY(-50%) rotate(0deg);
}

.mobile-submenu {
	list-style: none;
	display: none;
	padding-left: 1rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

.mobile-submenu li a {
  font-size: 0.95rem;
  padding: 0.3rem 0;
  display: inline-block;
  position: relative;
  transition: opacity 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.mobile-submenu li a:hover,
.mobile-submenu li a:focus {
  opacity: 1;
}

.mobile-submenu li a:active {
  opacity: 1;
  transform: translateY(2px); /* siirtyy hieman alas → painalluksen tunne */
}

.mobile-submenu li {
	list-style: none;
	position: relative;
	padding-left: 2em;
	margin-bottom: 0.5em;
}

.mobile-submenu li::before {
	content: "\f178";
	font-family: "Font Awesome 6 Pro";
	font-weight: 300;
	position: absolute;
	left: 0;
	top: 11px;
	color: #c69660;
	font-size: 0.75em;
	line-height: 1.2;
}


#mobile-menu h5 {
	font-size: 14px;
}

@media (min-width: 1025px) {
	body:not(.mobile-menu-open) .mobile-logo {
		display: none !important;
	}
}


/* / Mobiilivalikko */
