/* ==========================================================================
   TripTradition header v2 — design layer over tt-header.css.
   Same markup and menu content; refreshed look for desktop, tablet, mobile.
   Core style: DM Sans, #ff5e00 orange, #1a365d navy. Calm motion only
   (fades and colour changes, no bounce or zoom).
   Remove this file's enqueue in inc/enqueue.php to fall back to v1.
   ========================================================================== */

.tt-hd,
.tt-hd-drawer {
	--hd-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hd-ink: #12294a;
	--hd-body: #2b3f5c;
	--hd-muted: #6b7a8d;
	--hd-line: #e7ecf2;
	--hd-tint: #f4f7fb;
	--hd-wash: #fff4ec;
	--hd-navy: var(--tt-color-deep-navy, #1a365d);
	--hd-orange: var(--tt-color-brand-orange, #ff5e00);
	--hd-orange-deep: #e65400;
}

/* ---------- Bar ----------
   Not sticky on purpose: tour, trek and stay pages have their own sticky
   tab bars and sidebars that a sticky header would cover. */

.tt-hd {
	background: #fff;
	border-bottom: 1px solid var(--hd-line);
	box-shadow: 0 4px 18px rgb(18 41 74 / .05);
}

.tt-hd__inner {
	width: min(1240px, 100% - 40px);
	gap: 28px;
}

.tt-hd__logo { width: 200px; height: 46px; }

/* ---------- Top-level links ---------- */

.tt-hd__list { gap: 4px; }

.tt-hd__link {
	position: relative;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--hd-ink);
	font: 600 15px/1.2 var(--hd-font);
	letter-spacing: -.005em;
}

.tt-hd__caret { color: #8a9bb0; }

.tt-hd__item:hover > .tt-hd__link,
.tt-hd__item.is-open > .tt-hd__link {
	background: var(--hd-wash);
	color: var(--hd-orange);
}
.tt-hd__item:has(:focus-visible) > .tt-hd__link {
	background: var(--hd-wash);
	color: var(--hd-orange);
}

/* Current section: small orange dot under the label. */
.tt-hd__item.current-menu-item > .tt-hd__link,
.tt-hd__item.current-menu-ancestor > .tt-hd__link {
	background: transparent;
	color: var(--hd-orange);
}
.tt-hd__item.current-menu-item > .tt-hd__link::after,
.tt-hd__item.current-menu-ancestor > .tt-hd__link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 3px;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--hd-orange);
}

.tt-hd a:focus-visible,
.tt-hd button:focus-visible,
.tt-hd-drawer a:focus-visible,
.tt-hd-drawer button:focus-visible,
.tt-hd-drawer summary:focus-visible {
	outline: 2px solid var(--hd-orange);
	outline-offset: 2px;
}

/* ---------- Search pill ---------- */

.tt-hd__search {
	flex-basis: 220px;
	width: 220px;
	height: 44px;
	padding: 0 16px;
	gap: 10px;
	background: var(--hd-tint);
	border: 1px solid var(--hd-line);
	border-radius: 999px;
}
.tt-hd__search:hover { border-color: #d5dde7; }
.tt-hd__search:focus-within {
	background: #fff;
	border-color: var(--hd-orange);
	box-shadow: 0 0 0 4px rgb(255 94 0 / .12);
}
.tt-hd__search svg { stroke: var(--hd-orange); stroke-width: 2; }
.tt-hd__search input { font: 500 14px/1.2 var(--hd-font); color: var(--hd-ink); }
.tt-hd__search input::placeholder { color: #8391a3; }

/* ---------- Burger ---------- */

.tt-hd__toggle {
	border: 0;
	border-radius: 12px;
	background: var(--hd-wash);
}
.tt-hd__toggle span {
	left: 12px;
	right: 12px;
	height: 2px;
	background: var(--hd-ink);
	transition: transform .2s ease, opacity .2s ease, right .2s ease;
}
.tt-hd__toggle span:nth-child(2) { right: 18px; background: var(--hd-orange); }
.tt-hd__toggle:hover span:nth-child(2) { right: 12px; }

/* ==========================================================================
   Mega panel
   ========================================================================== */

.tt-hd-panel {
	padding-top: 12px;
	transform: translateX(calc(-50% + var(--tt-shift, 0px))) translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.tt-hd__item:hover > .tt-hd-panel,
.tt-hd__item.is-open > .tt-hd-panel {
	transform: translateX(calc(-50% + var(--tt-shift, 0px))) translateY(0);
}
.tt-hd__item:has(:focus-visible) > .tt-hd-panel {
	transform: translateX(calc(-50% + var(--tt-shift, 0px))) translateY(0);
}

/* Small notch pointing at the menu item. */
.tt-hd-panel::before {
	content: "";
	position: absolute;
	top: 6px;
	left: calc(50% - var(--tt-shift, 0px));
	width: 14px;
	height: 14px;
	margin-left: -7px;
	background: #fff;
	border-top: 1px solid var(--hd-line);
	border-left: 1px solid var(--hd-line);
	border-radius: 3px 0 0 0;
	transform: rotate(45deg);
	z-index: 1;
}

.tt-hd-panel__grid {
	position: relative;
	padding: 26px;
	border: 1px solid var(--hd-line);
	border-radius: 22px;
	box-shadow: 0 2px 6px rgb(18 41 74 / .04), 0 28px 60px rgb(18 41 74 / .16);
}

.tt-hd-panel__col {
	min-width: 210px;
	padding: 0 24px;
	border-left: 1px dashed var(--hd-line);
}

.tt-hd-panel__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--hd-line);
	color: var(--hd-orange);
	font: 700 11.5px/1.2 var(--hd-font);
	letter-spacing: .1em;
}
.tt-hd-panel__heading::before {
	content: "";
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--hd-orange);
}

.tt-hd-panel__links { gap: 2px; }

.tt-hd-panel__link {
	gap: 16px;
	min-height: 38px;
	margin: 0 -10px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--hd-body);
	font: 500 14.5px/1.3 var(--hd-font);
}

/* Right-angle arrow that fades in on hover. */
.tt-hd-panel__link::after {
	content: "";
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-left: auto;
	opacity: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: opacity .15s ease;
}

.tt-hd-panel__link:hover,
.tt-hd-panel__link:focus-visible {
	background: var(--hd-wash);
	color: var(--hd-orange);
}
.tt-hd-panel__link:hover::after,
.tt-hd-panel__link:focus-visible::after { opacity: 1; }

.tt-hd-panel__link[aria-current="page"] { color: var(--hd-orange); font-weight: 600; }

/* ---------- Feature card ---------- */

.tt-hd-promo {
	flex-basis: 268px;
	width: 268px;
	min-height: 270px;
	margin-left: 24px;
	padding: 22px;
	overflow: hidden;
	isolation: isolate;
	border-radius: 18px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgb(255 94 0 / .28) 0%, rgb(255 94 0 / 0) 55%),
		linear-gradient(160deg, #1d3d68 0%, #12294a 100%);
}
/* Faint ridge line along the bottom of the card. */
.tt-hd-promo::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	z-index: -1;
	opacity: .14;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V60l40-28 30 18 45-40 38 30 32-22 50 36 30-14 35 20v30Z' fill='white'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.tt-mega-yatra .tt-hd-promo {
	background:
		radial-gradient(120% 80% at 100% 0%, rgb(255 94 0 / .22) 0%, rgb(255 94 0 / 0) 55%),
		linear-gradient(160deg, #1f4a39 0%, #12302a 100%);
}

/* Photo cards: image under a dark wash so every line of text stays readable.
   The wash is darkest where the copy sits (top text block and bottom price/CTA). */
.tt-hd-promo {
	--hd-promo-wash: 18 41 74;
	background-color: #12294a;
}
.tt-mega-yatra .tt-hd-promo { --hd-promo-wash: 16 46 36; background-color: #12302a; }

.tt-hd-promo[class] {
	background-image:
		linear-gradient(180deg,
			rgb(var(--hd-promo-wash) / .80) 0%,
			rgb(var(--hd-promo-wash) / .68) 40%,
			rgb(var(--hd-promo-wash) / .86) 70%,
			rgb(var(--hd-promo-wash) / .96) 100%),
		var(--hd-promo-img, linear-gradient(160deg, #1d3d68 0%, #12294a 100%));
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat;
}
/* The ridge line is not needed over a photo. */
.tt-hd-promo::before { display: none; }

.tt-hd-promo__title,
.tt-hd-promo__text,
.tt-hd-promo__price { text-shadow: 0 1px 10px rgb(0 0 0 / .35); }
.tt-hd-promo__text { color: rgb(255 255 255 / .86); }
.tt-hd-promo__badge {
	background: rgb(0 0 0 / .28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.tt-hd-promo__badge {
	padding: 5px 10px;
	border-radius: 999px;
	background: rgb(255 255 255 / .12);
	border: 1px solid rgb(255 255 255 / .18);
	color: #ffc49b;
	font: 700 10.5px/1.2 var(--hd-font);
	letter-spacing: .09em;
}

.tt-hd-promo__title {
	margin: 16px 0 0;
	font: 700 22px/1.2 var(--hd-font);
	letter-spacing: -.015em;
}

.tt-hd-promo__text {
	margin: 10px 0 18px;
	color: rgb(255 255 255 / .75);
	font: 400 13px/1.6 var(--hd-font);
}

.tt-hd-promo__foot {
	padding-top: 16px;
	border-top: 1px solid rgb(255 255 255 / .14);
}

.tt-hd-promo__price-label { color: rgb(255 255 255 / .6); font: 500 11px/1.2 var(--hd-font); text-transform: uppercase; letter-spacing: .06em; }
.tt-hd-promo__price-row strong { font: 700 20px/1.2 var(--hd-font); }
.tt-hd-promo__unit { color: rgb(255 255 255 / .6); }

.tt-hd-promo__cta {
	padding: 10px 16px;
	border-radius: 999px;
	font: 700 13px/1.2 var(--hd-font);
}
.tt-hd-promo__cta::after { border-radius: 18px; }

/* Price on its own line, full-width button below, so they never overlap. */
.tt-hd-promo__foot {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}
.tt-hd-promo__price-row { white-space: nowrap; }
.tt-hd-promo .tt-hd-promo__cta,
.tt-hd-promo .tt-hd-promo__cta:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	text-align: center;
	color: #fff;
	background: var(--hd-orange);
}
.tt-hd-promo .tt-hd-promo__cta:hover,
.tt-hd-promo .tt-hd-promo__cta:focus-visible {
	color: #fff;
	background: var(--hd-orange-deep);
}

.tt-hd-promo--link .tt-hd-promo__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--hd-orange);
	text-decoration: none;
	font-size: 13px;
}
.tt-hd-promo--link .tt-hd-promo__cta:hover,
.tt-hd-promo--link .tt-hd-promo__cta:focus-visible {
	background: var(--hd-orange-deep);
	color: #fff;
}

/* ==========================================================================
   Tightened desktop
   ========================================================================== */

@media (max-width: 1279px) and (min-width: 1180px) {
	.tt-hd__inner { gap: 18px; }
	.tt-hd__link { padding: 0 11px; font-size: 14.5px; }
	.tt-hd__search { flex-basis: 190px; width: 190px; }
	.tt-hd__logo { width: 180px; }
}

/* ==========================================================================
   Tablet + mobile bar
   ========================================================================== */

@media (max-width: 1179px) {
	.tt-hd__inner { width: calc(100% - 32px); gap: 12px; }
	.tt-hd__search { flex-basis: 260px; width: 260px; }
}

@media (max-width: 600px) {
	.tt-hd__inner { width: calc(100% - 20px); }
	.tt-hd__logo { width: 146px; height: 38px; }
}

/* ==========================================================================
   Drawer
   ========================================================================== */

.tt-hd-drawer__scrim {
	background: rgb(12 30 56 / .5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.tt-hd-drawer__panel {
	width: min(420px, 100%);
	background: #fff;
	box-shadow: -24px 0 60px rgb(18 41 74 / .22);
	transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
@media (min-width: 601px) {
	.tt-hd-drawer__panel { border-radius: 24px 0 0 24px; }
}

.tt-hd-drawer__head {
	padding: 0 16px 0 20px;
	border-bottom: 1px solid var(--hd-line);
}

.tt-hd-drawer__close {
	border: 0;
	border-radius: 12px;
	background: var(--hd-wash);
}
.tt-hd-drawer__close::before,
.tt-hd-drawer__close::after { background: var(--hd-orange); }

.tt-hd-drawer__body {
	padding: 18px 16px 24px;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.tt-hd-drawer__search {
	height: 48px;
	margin: 0 0 14px;
	padding: 0 16px;
	background: var(--hd-tint);
	border: 1px solid var(--hd-line);
	border-radius: 999px;
}
.tt-hd-drawer__search:focus-within { background: #fff; border-color: var(--hd-orange); box-shadow: 0 0 0 4px rgb(255 94 0 / .12); }
.tt-hd-drawer__search svg { stroke: var(--hd-orange); stroke-width: 2; }
.tt-hd-drawer__search input { font: 500 15px/1.2 var(--hd-font); color: var(--hd-ink); }

/* Each top-level item is a soft card. */
.tt-hd-drawer__nav { display: flex; flex-direction: column; gap: 8px; }

.tt-hd-drawer__item {
	border: 1px solid var(--hd-line);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.tt-hd-drawer__item[open] {
	border-color: rgb(255 94 0 / .35);
	box-shadow: 0 8px 22px rgb(18 41 74 / .07);
}

.tt-hd-drawer__top,
.tt-hd-drawer__summary {
	min-height: 54px;
	padding: 14px 16px;
	color: var(--hd-ink);
	font: 600 16px/1.3 var(--hd-font);
}

.tt-hd-drawer__top {
	border: 1px solid var(--hd-line);
	border-radius: 16px;
	background: #fff;
}

.tt-hd-drawer__chev {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	padding: 8px;
	border-radius: 50%;
	background: var(--hd-tint);
	color: var(--hd-ink);
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.tt-hd-drawer__item[open] > .tt-hd-drawer__summary { color: var(--hd-orange); }
.tt-hd-drawer__item[open] > .tt-hd-drawer__summary .tt-hd-drawer__chev {
	background: var(--hd-orange);
	color: #fff;
}

.tt-hd-drawer__sub {
	padding: 0 16px 14px;
	border-top: 1px dashed var(--hd-line);
}

.tt-hd-drawer__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 0 6px;
	color: var(--hd-orange);
	font: 700 11px/1.2 var(--hd-font);
	letter-spacing: .1em;
}
.tt-hd-drawer__heading::before {
	content: "";
	width: 12px;
	height: 2px;
	border-radius: 2px;
	background: var(--hd-orange);
}

.tt-hd-drawer__link {
	padding: 11px 12px;
	margin: 0 -12px;
	border-radius: 10px;
	color: var(--hd-body);
	font: 500 15px/1.35 var(--hd-font);
}
.tt-hd-drawer__link:hover,
.tt-hd-drawer__link:focus-visible {
	background: var(--hd-wash);
	color: var(--hd-orange);
}

/* Quick contact at the bottom of the drawer. */
.tt-hd-drawer__foot {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--hd-line);
	background: #fff;
}
.tt-hd-drawer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border-radius: 999px;
	font: 700 15px/1.2 var(--hd-font);
	color: #fff;
	background: var(--hd-orange);
	transition: background-color .2s ease;
}
.tt-hd-drawer__cta:hover { background: var(--hd-orange-deep); color: #fff; }
.tt-hd-drawer__cta--wa { background: #25d366; }
.tt-hd-drawer__cta--wa:hover { background: #1fb457; }
.tt-hd-drawer__cta svg { width: 18px; height: 18px; flex: none; }

@media (prefers-reduced-motion: reduce) {
	.tt-hd-panel { transition: none !important; }
}
