/**
 * Site header — top bar, sticky nav, mega menu, mobile panel.
 *
 * EVERY RULE IS SCOPED UNDER .ct-hd, AND THAT IS NOT TIDINESS.
 * The reference design styles bare `.wrap`, `.nav`, `.logo`, `.header`. This
 * site already has a `.wrap` on the tour page and Elementor ships its own
 * `.logo` and `.nav`; unscoped, the header's padding would land on the tour
 * itinerary and its font on Elementor widgets. The prefix is what keeps a
 * site-wide component from leaking into every page it sits above.
 *
 * The design's own custom properties are kept, renamed with a --ct-hd- prefix
 * for the same reason: --blue is a name any other stylesheet might also define.
 *
 * @package CustomTours
 */

.ct-hd {
	--ct-hd-blue: #1689CF;
	--ct-hd-blue-dark: #0E6FAE;
	--ct-hd-orange: #F68B2D;
	--ct-hd-dark: #0F1F2F;
	--ct-hd-muted: #5B6270;
	--ct-hd-border: #EDEFF2;
	--ct-hd-gray: #F6F8FA;
	--ct-hd-maxw: 1280px;

	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.ct-hd *,
.ct-hd *::before,
.ct-hd *::after {
	box-sizing: border-box;
}

.ct-hd__wrap {
	max-width: var(--ct-hd-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* ===========================================================================
 * Top bar
 * ======================================================================== */

.ct-hd__top {
	background: var(--ct-hd-blue);
	color: #fff;
}

.ct-hd__top .ct-hd__wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 24px;
	flex-wrap: wrap;
	gap: 8px;
}

.ct-hd__social {
	display: flex;
	gap: 10px;
}

.ct-hd__social a {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	transition: background .15s ease;
	text-decoration: none;
	color: #fff;
}

.ct-hd__social a:hover {
	background: rgba(255, 255, 255, .32);
	color: #fff;
}

.ct-hd__topright {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.ct-hd__contact {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 13px;
	font-weight: 500;
}

.ct-hd__contact span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ct-hd__contact a {
	color: #fff;
	text-decoration: none;
	transition: opacity .15s;
}

.ct-hd__contact a:hover {
	opacity: .8;
	color: #fff;
}

.ct-hd__account {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ct-hd__btn {
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s ease;
	border: 1px solid rgba(255, 255, 255, .2);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.ct-hd__btn--login {
	background: rgba(255, 255, 255, .1);
}

.ct-hd__btn--login:hover {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.ct-hd__btn--signup {
	background: var(--ct-hd-orange);
	border-color: var(--ct-hd-orange);
	color: #0B2A44;
}

.ct-hd__btn--signup:hover {
	background: #ffa04a;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(246, 139, 45, .3);
	color: #0B2A44;
}

@media (max-width: 700px) {

	.ct-hd__contact,
	.ct-hd__account {
		display: none;
	}

	/* With the right-hand half hidden, space-between has one child and parks
	   it against the left edge of an otherwise empty bar. */
	.ct-hd__top .ct-hd__wrap {
		justify-content: center;
	}

	/* Seven circles at 28px need 256px; wrapping keeps the narrowest phone honest. */
	.ct-hd__social {
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* ===========================================================================
 * Main bar
 * ======================================================================== */

.ct-hd__bar {
	background: #fff;
	border-bottom: 1px solid var(--ct-hd-border);
	position: sticky;
	top: 0;
	z-index: 300;
}

.ct-hd__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	gap: 20px;
}

.ct-hd__logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.ct-hd__logo img {
	display: block;
	max-height: 52px;
	width: auto;
	height: auto;
}

/* ===========================================================================
 * Navigation
 * ======================================================================== */

.ct-hd__nav {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-hd__nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-hd__item {
	position: relative;
}

.ct-hd__link {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ct-hd-dark);
	white-space: nowrap;
	cursor: pointer;
	border-radius: 8px;
	transition: all .2s ease;
	text-decoration: none;
	position: relative;
	background: none;
	border: 0;
	font-family: inherit;
}

.ct-hd__item:hover > .ct-hd__link,
.ct-hd__item:focus-within > .ct-hd__link,
.ct-hd__link.is-current {
	color: var(--ct-hd-blue);
	background: rgba(22, 137, 207, .06);
}

.ct-hd__caret {
	font-size: 9px;
	color: var(--ct-hd-muted);
	transition: transform .3s ease;
	margin-left: 2px;
}

.ct-hd__item:hover > .ct-hd__link .ct-hd__caret,
.ct-hd__item:focus-within > .ct-hd__link .ct-hd__caret {
	transform: rotate(180deg);
	color: var(--ct-hd-blue);
}

/* ===========================================================================
 * Dropdown
 * ======================================================================== */

.ct-hd__drop {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid var(--ct-hd-border);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(20, 36, 58, .18);
	min-width: 220px;
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(.98);
	transition: all .25s cubic-bezier(.4, 0, .2, 1);
	z-index: 50;
	list-style: none;
	margin: 0;
}

.ct-hd__item:hover > .ct-hd__drop,
.ct-hd__item:focus-within > .ct-hd__drop {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.ct-hd__drop a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ct-hd-dark);
	text-decoration: none;
	transition: all .2s ease;
}

.ct-hd__drop a:hover {
	background: var(--ct-hd-gray);
	color: var(--ct-hd-blue);
	transform: translateX(4px);
}

/* ===========================================================================
 * Account dropdown
 * ======================================================================== */

.ct-hd__drop--account {
	min-width: 210px;
	right: 0;
	left: auto;
}

.ct-hd__divider {
	height: 1px;
	background: var(--ct-hd-border);
	margin: 6px 10px;
}

.ct-hd__user {
	padding: 10px 14px 6px;
	font-size: 13px;
}

.ct-hd__user .ct-hd__name {
	font-weight: 700;
	color: var(--ct-hd-dark);
	word-break: break-word;
	margin-bottom: 5px;
}

.ct-hd__user .ct-hd__email {
	font-size: 12px;
	color: var(--ct-hd-muted);
	word-break: break-all;
}

.ct-hd__signout {
	color: #e74c3c !important;
}

/* ===========================================================================
 * Mega menu
 *
 * Centred on the trigger rather than left-aligned to it: five columns are wider
 * than the item they hang from, and left-aligning pushes the right-hand columns
 * off the screen on anything narrower than a desktop.
 * ======================================================================== */

.ct-hd__drop--mega {
	left: 50%;
	transform: translateX(-50%) translateY(12px) scale(.98);
	right: auto;
	min-width: 820px;
	padding: 28px 32px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	border-radius: 18px;
	border: 1px solid rgba(22, 137, 207, .06);
	box-shadow: 0 30px 60px rgba(20, 36, 58, .15);
}

.ct-hd__item:hover > .ct-hd__drop--mega,
.ct-hd__item:focus-within > .ct-hd__drop--mega {
	transform: translateX(-50%) translateY(0) scale(1);
}

/* Fewer columns when the grid no longer fits, so it never overflows the page. */
@media (max-width: 1240px) {

	.ct-hd__drop--mega {
		min-width: 680px;
		grid-template-columns: repeat(4, 1fr);
		padding: 24px 26px;
	}
}

@media (max-width: 1080px) {

	.ct-hd__drop--mega {
		min-width: 460px;
		grid-template-columns: repeat(2, 1fr);
		padding: 20px;
		gap: 16px;
	}
}

.ct-hd__col {
	position: relative;
	padding-top: 12px;
	list-style: none;
	margin: 0;
}

.ct-hd__col::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ct-hd-blue), var(--ct-hd-orange));
	border-radius: 4px;
	opacity: 0;
	transition: opacity .3s ease;
}

.ct-hd__col:hover::before {
	opacity: 1;
}

.ct-hd__col > .ct-hd__coltitle {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--ct-hd-blue);
	margin: 20px 0 14px;
	padding: 0 0 10px;
	border-bottom: 2px solid rgba(22, 137, 207, .08);
	letter-spacing: .3px;
	display: block;
	text-decoration: none;
	transition: color .3s ease;
	background: none;
}

.ct-hd__col:hover > .ct-hd__coltitle {
	color: var(--ct-hd-orange);
	background: none;
	transform: none;
}

.ct-hd__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-hd__col ul a {
	display: block;
	padding: 7px 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: #4a5568;
	border-radius: 8px;
	text-decoration: none;
	transition: all .25s ease;
	border-left: 2px solid transparent;
}

.ct-hd__col ul a:hover {
	color: var(--ct-hd-blue);
	background: rgba(22, 137, 207, .05);
	padding-left: 18px;
	border-left-color: var(--ct-hd-orange);
	transform: none;
}

/* A menu item given the CSS class `view-all` in Appearance > Menus. */
.ct-hd__col ul a.view-all {
	margin-top: 10px;
	font-weight: 700;
	color: var(--ct-hd-orange);
	background: rgba(246, 139, 45, .05);
	text-align: center;
	padding: 10px 14px;
	border: 2px solid rgba(246, 139, 45, .15);
	border-left-width: 2px;
	border-radius: 30px;
	transition: all .3s ease;
}

.ct-hd__col ul a.view-all:hover {
	background: var(--ct-hd-orange);
	color: #fff;
	padding-left: 14px;
	border-color: var(--ct-hd-orange);
	transform: scale(1.02);
}

/* ===========================================================================
 * The call to action, and the mobile toggle
 * ======================================================================== */

.ct-hd__cta {
	background: var(--ct-hd-blue);
	color: #fff;
	font-family: 'Poppins', system-ui, sans-serif;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 26px;
	border-radius: 30px;
	white-space: nowrap;
	text-decoration: none;
	transition: all .25s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
}

.ct-hd__cta:hover {
	background: var(--ct-hd-blue-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(22, 137, 207, .3);
}

.ct-hd__toggle {
	display: none;
	font-size: 24px;
	color: var(--ct-hd-dark);
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.ct-hd__toggle:hover {
	background: var(--ct-hd-gray);
}

@media (max-width: 960px) {

	.ct-hd__nav {
		display: none;
	}

	.ct-hd__toggle {
		display: flex;
	}

	.ct-hd__inner .ct-hd__cta {
		padding: 10px 16px;
		font-size: 12.5px;
	}
}

@media (max-width: 420px) {

	.ct-hd__inner .ct-hd__cta {
		padding: 9px 12px;
		font-size: 11.5px;
	}

	.ct-hd__logo img {
		max-height: 40px;
	}
}

/* ===========================================================================
 * Mobile panel
 * ======================================================================== */

.ct-hd__overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 36, 58, .45);
	z-index: 400;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
}

.ct-hd__overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.ct-hd__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 86%;
	max-width: 340px;
	background: #fff;
	z-index: 401;
	box-shadow: -10px 0 40px rgba(0, 0, 0, .2);
	transform: translateX(100%);
	transition: transform .28s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.ct-hd__panel.is-open {
	transform: translateX(0);
}

.ct-hd__panelhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--ct-hd-border);
}

.ct-hd__panelhead img {
	max-height: 34px;
	width: auto;
	display: block;
}

.ct-hd__close {
	font-size: 22px;
	color: var(--ct-hd-dark);
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: none;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
}

.ct-hd__close:hover {
	background: var(--ct-hd-gray);
}

.ct-hd__mcontact {
	padding: 14px 18px;
	border-bottom: 1px solid var(--ct-hd-border);
	background: var(--ct-hd-gray);
}

.ct-hd__mcontact a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--ct-hd-dark);
	text-decoration: none;
	transition: .2s;
	word-break: break-all;
}

.ct-hd__mcontact a:hover {
	color: var(--ct-hd-blue);
}

.ct-hd__mcontact a i {
	width: 20px;
	color: var(--ct-hd-blue);
	flex-shrink: 0;
}

.ct-hd__mrow {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}

.ct-hd__mrow a {
	flex: 1;
	justify-content: center;
	word-break: normal;
}

.ct-hd__mlogin {
	background: rgba(22, 137, 207, .08);
	border-radius: 30px;
	padding: 10px 14px !important;
	border: 1px solid rgba(22, 137, 207, .15);
	font-weight: 600 !important;
}

.ct-hd__mlogin:hover {
	background: rgba(22, 137, 207, .15);
}

.ct-hd__msignup {
	background: var(--ct-hd-orange);
	border-radius: 30px;
	padding: 10px 14px !important;
	color: #0B2A44 !important;
	font-weight: 600 !important;
}

.ct-hd__msignup:hover {
	background: #ffa04a;
	color: #0B2A44 !important;
}

.ct-hd__mlist {
	padding: 8px 0;
	list-style: none;
	margin: 0;
}

.ct-hd__mlist li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-hd__mitem {
	border-bottom: 1px solid var(--ct-hd-border);
}

.ct-hd__mlink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ct-hd-dark);
	cursor: pointer;
	text-decoration: none;
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	font-family: inherit;
}

.ct-hd__mchev {
	font-size: 11px;
	color: var(--ct-hd-muted);
	transition: transform .2s ease;
	flex-shrink: 0;
}

.ct-hd__mitem.is-open > .ct-hd__mlink .ct-hd__mchev {
	transform: rotate(180deg);
}

.ct-hd__msub {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
	background: var(--ct-hd-gray);
}

.ct-hd__mitem.is-open > .ct-hd__msub {
	max-height: 2000px;
}

.ct-hd__msubinner {
	padding: 6px 18px 14px 30px;
	list-style: none;
	margin: 0;
}

.ct-hd__msubinner li {
	list-style: none;
}

.ct-hd__mgroup {
	/* Above the 16px between two links, so a heading still reads as the start
	   of a group rather than as another item in the one above it. */
	margin-top: 15px;
}

.ct-hd__mgroup > .ct-hd__mgrouptitle {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ct-hd-blue);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 8px;
	display: block;
	text-decoration: none;
	padding: 0;
}

.ct-hd__msub a {
	display: block;
	padding: 8px 0;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ct-hd-dark);
	text-decoration: none;
}

.ct-hd__msub a:hover {
	color: var(--ct-hd-blue);
}

.ct-hd__mcta {
	padding: 18px;
}

.ct-hd__mcta .ct-hd__cta {
	display: flex;
	justify-content: center;
	width: 100%;
}

/* The panel is never useful above the breakpoint that hides the desktop nav. */
@media (min-width: 961px) {

	.ct-hd__overlay,
	.ct-hd__panel {
		display: none;
	}
}
