/*
 * Tusk Travel Blog shell compatibility CSS
 * Add this file as:
 * /blog/wp-content/themes/astra-child/tusk-blog-shell.css
 *
 * This file intentionally affects only the shared Tusk header/footer.
 * Astra continues to control the article/blog content.
 */

/* =========================================================
   HEADER: Astra compatibility
   ========================================================= */

.tt-header,
.tt-header *,
.tt-header__drawer,
.tt-header__drawer *,
.tt-header__backdrop {
	box-sizing: border-box;
}

.tt-header {
	width: 100%;
	z-index: 9990;
}

.tt-header__bar {
	background: #fff;
}

.tt-header__container {
	width: min(calc(100% - 48px), 1540px);
	margin-inline: auto;
	padding-inline: 0;
}

.tt-header a {
	text-decoration: none;
}

.tt-header button {
	font-family: inherit;
	text-transform: none;
	box-shadow: none;
}

/* Keep the logo consistent and prevent Astra image rules from stretching it. */
.tt-header__brand img {
	display: block;
	width: 190px;
	max-width: 100%;
	height: auto;
}

/* Main menu */
.tt-header__desktop-nav {
	margin: 0 0 0 auto;
}

.tt-header__nav-link {
	background: transparent !important;
	color: #172033 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

/* Cleaner open/hover state inside WordPress. */
.tt-header__nav-link:hover,
.tt-header__nav-link:focus-visible,
.tt-header__nav-item.is-open > .tt-header__nav-trigger {
	background: transparent !important;
	color: #c9003b !important;
	box-shadow: none !important;
}

/* Do not show the dark pill state inherited from other theme/button styles. */
.tt-header__nav-item.is-open > .tt-header__nav-trigger {
	border-radius: 0 !important;
	background: transparent !important;
}

/* Mega menu stays centered below the header and above the blog. */
.tt-header__mega {
	z-index: 10020;
}

.tt-header__mega a {
	text-decoration: none !important;
}

.tt-header__menu-column h2,
.tt-header__mega-intro h2,
.tt-header__about-menu strong {
	margin-top: 0;
}

/* Header actions */
.tt-header__actions {
	flex: 0 0 auto;
}

.tt-header__plan {
	border: 0 !important;
	text-transform: none !important;
}

/* Astra can add default button padding/background. Keep mobile icon clean. */
.tt-header__menu-trigger,
.tt-header__drawer-close,
.tt-header__mobile-screen-head button {
	box-shadow: none !important;
}

/* Logged-in WordPress admin bar: prevent sticky header overlap. */
@media (min-width: 783px) {
	body.admin-bar .tt-header {
		top: 32px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .tt-header {
		top: 46px;
	}
}

@media (min-width: 1200px) {
	.tt-header__desktop-nav {
		display: flex !important;
	}

	.tt-header__menu-trigger {
		display: none !important;
	}
}

@media (max-width: 1199px) {
	.tt-header__container {
		width: calc(100% - 30px);
	}

	.tt-header__desktop-nav {
		display: none !important;
	}

	.tt-header__menu-trigger {
		display: flex !important;
	}

	.tt-header__brand img {
		width: 168px;
	}

	.tt-header__plan {
		display: none !important;
	}
}


/* =========================================================
   FOOTER: Astra compatibility
   ========================================================= */

.ttx-footer,
.ttx-footer *,
.ttx-mobile-cta,
.ttx-mobile-cta * {
	box-sizing: border-box;
}

.ttx-footer {
	width: 100%;
	clear: both;
	position: relative;
	z-index: 10;
}

.ttx-footer .container {
	width: min(calc(100% - 48px), 1540px) !important;
	max-width: 1540px !important;
	margin-inline: auto !important;
	padding-inline: 0 !important;
}

/* Stop Astra from applying article link decoration to footer links. */
.ttx-footer a {
	text-decoration: none !important;
}

/* Stop Astra button styles changing footer tabs and CTAs. */
.ttx-footer button,
.ttx-mobile-cta button {
	font-family: inherit;
	text-transform: none !important;
	box-shadow: none;
}

/* Directory tabs */
.ttx-tab-list {
	flex-wrap: wrap;
}

.ttx-tab-button {
	width: auto;
}

/* Footer panels must use their own full width, not Astra article widths. */
.ttx-panel-shell,
.ttx-tab-panel,
.ttx-link-columns,
.ttx-trust-row,
.ttx-legal-grid,
.ttx-contact-grid {
	width: 100%;
}

/* Keep footer headings compact. */
.ttx-footer h2,
.ttx-footer h3,
.ttx-footer p {
	margin-top: 0;
}

/* Trust row: prevent the logo/review/accreditations from touching page edges. */
.ttx-trust-row {
	gap: 28px;
}

/* Main footer logo should not be cropped by Astra image rules. */
.ttx-brand img {
	display: block;
	max-width: 220px;
	width: 100%;
	height: auto;
}

/* Accreditation images remain contained. */
.ttx-logo-list img,
.ttx-payment img {
	max-width: 100%;
	height: auto;
}

/* Keep legal row readable even on narrower desktop screens. */
.ttx-legal-grid {
	gap: 20px;
}

/* Floating site CTA can overlap footer accreditation area on desktop.
   Give footer a little breathing space without changing the design. */
@media (min-width: 1200px) {
	.ttx-footer .ttx-main {
		padding-right: 18px;
		padding-left: 18px;
	}
}

@media (max-width: 991px) {
	.ttx-footer .container {
		width: calc(100% - 30px) !important;
	}

	.ttx-contact-grid,
	.ttx-trust-row,
	.ttx-legal-grid {
		min-width: 0;
	}
}

@media (max-width: 767px) {
	.ttx-footer .container {
		width: calc(100% - 24px) !important;
	}

	.ttx-tab-list {
		gap: 8px;
	}

	.ttx-tab-button {
		flex: 1 1 calc(50% - 8px);
		justify-content: center;
	}

	.ttx-mobile-cta {
		z-index: 10010;
	}
}


/* =========================================================
   BLOG CONTENT BOUNDARY
   ========================================================= */

/* The shared header/footer remain full width.
   Astra keeps control of the actual blog content container. */
#content.site-content {
	position: relative;
	z-index: 1;
}

/* Plan My Trip modal compatibility inside WordPress */
body.ttfm_modal_open {
	overflow: hidden !important;
}

#ttfm_tusktravelformmodal {
	z-index: 100000 !important;
}

#ttfm_tusktravelformmodal .ttfm_modal_content {
	font-family: inherit;
}

#ttfm_tusktravelformmodal button,
#ttfm_tusktravelformmodal input,
#ttfm_tusktravelformmodal select,
#ttfm_tusktravelformmodal textarea {
	font-family: inherit;
	text-transform: none;
}

#ttfm_tusktravelformmodal .ttfm_close {
	box-shadow: none !important;
}

#ttfm_tusktravelformmodal .ttfm_submit_btn {
	color: #fff !important;
}

@media (min-width: 783px) {
	body.admin-bar #ttfm_tusktravelformmodal {
		padding-top: 60px;
	}
}

@media (max-width: 782px) {
	body.admin-bar #ttfm_tusktravelformmodal {
		padding-top: 56px;
	}
}
/*
 * Tusk Travel single-post hero
 * Add this to tusk-blog-shell.css, or enqueue as its own stylesheet.
 */

/* Hide only Astra's ORIGINAL header/featured image for the main single post.
 * The custom Tusk hero already renders the image, title and meta above the content.
 * Scope this to the direct main article so Related Posts remain visible. */
.single-post #primary .site-main > article.ast-article-single .entry-header,
.single-post #primary .site-main > article.ast-article-single .post-thumb,
.single-post #primary .site-main > article.ast-article-single .ast-single-post-featured-section {
	display: none !important;
}

/* Remove extra top gap that remains after hiding Astra's post header. */
.single-post #primary {
	margin-top: 0;
}

.single-post .site-content > .ast-container {
	padding-top: 0;
}

/* =========================================================
   Single post hero
   ========================================================= */

.tt-blog-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 520px;
	width: 100%;
	overflow: hidden;
	background-color: #152033;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	isolation: isolate;
}

.tt-blog-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			180deg,
			rgba(6, 15, 28, .42) 0%,
			rgba(6, 15, 28, .62) 72%,
			rgba(6, 15, 28, .68) 100%
		);
}

.tt-blog-hero__inner {
	width: min(calc(100% - 48px), 1180px);
	margin-inline: auto;
	padding: 72px 24px 64px;
	text-align: center;
	color: #fff;
}

.tt-blog-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	padding: 7px 13px;
	color: #fff !important;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: uppercase;
	backdrop-filter: blur(5px);
}

.tt-blog-hero__title {
	max-width: 1120px;
	margin: 0 auto;
	color: #fff !important;
	font-size: clamp(38px, 4.1vw, 64px);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.08;
	text-shadow: 0 3px 22px rgba(0, 0, 0, .35);
	text-wrap: balance;
}

.tt-blog-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 22px;
	margin-top: 24px;
	color: rgba(255, 255, 255, .92);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

.tt-blog-hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.tt-blog-hero__meta i {
	font-size: 14px;
	color: #fff;
}

/* Fallback when a post has no featured image. */
.tt-blog-hero.no-image {
	min-height: 360px;
	background:
		radial-gradient(circle at top left, rgba(255, 111, 60, .28), transparent 34%),
		linear-gradient(135deg, #111b2b 0%, #1c3047 100%);
}

/* =========================================================
   Breadcrumb strip
   ========================================================= */

.tt-blog-breadcrumb {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #eceff3;
	box-shadow: 0 1px 0 rgba(20, 32, 52, .02);
}

.tt-blog-breadcrumb__inner {
	width: min(calc(100% - 48px), 1540px);
	margin-inline: auto;
	padding: 19px 0;
	color: #647084;
	font-size: 14px;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tt-blog-breadcrumb__inner a {
	color: #c9003b;
	text-decoration: none;
}

.tt-blog-breadcrumb__inner a:hover {
	text-decoration: underline;
}

.tt-blog-breadcrumb__sep {
	margin: 0 9px;
	color: #a8b0bc;
}

.tt-blog-breadcrumb__current {
	color: #596274;
}

/* Give the article content a clean start below the breadcrumb. */
.single-post #content.site-content > .ast-container {
	padding-top: 42px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {
	.tt-blog-hero {
		min-height: 420px;
	}

	.tt-blog-hero__inner {
		width: min(calc(100% - 32px), 900px);
		padding: 58px 16px 52px;
	}

	.tt-blog-hero__title {
		font-size: clamp(34px, 6vw, 50px);
	}

	.tt-blog-breadcrumb__inner {
		width: calc(100% - 32px);
	}
}

@media (max-width: 575px) {
	.tt-blog-hero {
		min-height: 340px;
		background-position: center center;
	}

	.tt-blog-hero__inner {
		width: calc(100% - 24px);
		padding: 44px 8px 38px;
	}

	.tt-blog-hero__eyebrow {
		margin-bottom: 13px;
		padding: 6px 10px;
		font-size: 11px;
	}

	.tt-blog-hero__title {
		font-size: clamp(30px, 9vw, 40px);
		line-height: 1.1;
	}

	.tt-blog-hero__meta {
		gap: 8px 14px;
		margin-top: 18px;
		font-size: 13px;
	}

	.tt-blog-breadcrumb__inner {
		width: calc(100% - 24px);
		padding: 15px 0;
		font-size: 13px;
	}

	.single-post #content.site-content > .ast-container {
		padding-top: 28px;
	}
}
/* =========================================================
   SINGLE POST TOC - CLEAN MINIMAL DESIGN
   ========================================================= */

.single-post #ez-toc-container,
.single-post .ez-toc-container {
    width: 100% !important;
    max-width: 780px;
    margin: 32px 0 40px !important;
    padding: 20px 24px 22px !important;

    background: #f8f7f5 !important;
    border: 1px solid #e9e5e1 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Header row */
.single-post .ez-toc-title-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;

    margin: 0 0 15px !important;
    padding: 0 0 13px !important;

    border-bottom: 1px solid #e5e1dc !important;
}

/* Title */
.single-post .ez-toc-title {
    margin: 0 !important;
    padding: 0 !important;

    color: #152033 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.single-post .ez-toc-title::before {
    content: "ON THIS PAGE";
    display: block;

    margin-bottom: 4px;

    color: #c9003b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .10em;
    line-height: 1.2;
}

/* =========================================================
   TOGGLE BUTTON
   ========================================================= */

/* Remove plugin wrapper decoration */
.single-post .ez-toc-toggle {
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Actual button */
.single-post .ez-toc-toggle button,
.single-post .ez-toc-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #6b7280 !important;
    background: #fff !important;

    border: 1px solid #ddd9d5 !important;
    border-radius: 7px !important;

    box-shadow: none !important;
    outline: none !important;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease !important;
}

/* Neutral hover */
.single-post .ez-toc-toggle button:hover,
.single-post .ez-toc-btn:hover {
    color: #394150 !important;
    background: #f4f3f1 !important;
    border-color: #d2cdc8 !important;

    box-shadow: none !important;
    outline: none !important;
}

/* Neutral focus */
.single-post .ez-toc-toggle button:focus,
.single-post .ez-toc-toggle button:focus-visible,
.single-post .ez-toc-toggle button:active,
.single-post .ez-toc-btn:focus,
.single-post .ez-toc-btn:focus-visible,
.single-post .ez-toc-btn:active {
    color: #394150 !important;
    background: #f4f3f1 !important;
    border-color: #d2cdc8 !important;

    box-shadow: none !important;
    outline: none !important;
}

/* Remove Bootstrap/Astra/plugin red focus ring */
.single-post .ez-toc-toggle button::before,
.single-post .ez-toc-toggle button::after,
.single-post .ez-toc-btn::before,
.single-post .ez-toc-btn::after {
    box-shadow: none !important;
    outline: none !important;
}

/* =========================================================
   LIST
   ========================================================= */

.single-post .ez-toc-list,
.single-post .ez-toc-list ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Top level */
.single-post .ez-toc-list > li {
    margin: 0 !important;
    padding: 5px 0 !important;
}

/* Nested list */
.single-post .ez-toc-list ul {
    margin: 5px 0 6px 14px !important;
    padding-left: 14px !important;

    border-left: 1px solid #ddd9d5 !important;
}

/* Nested items */
.single-post .ez-toc-list ul li {
    margin: 0 !important;
    padding: 3px 0 !important;
}

/* Links */
.single-post .ez-toc-list a {
    display: inline-block;

    color: #344054 !important;
    text-decoration: none !important;

    border: 0 !important;
    box-shadow: none !important;

    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

/* Stronger main links */
.single-post .ez-toc-list > li > a {
    color: #172033 !important;
    font-weight: 600 !important;
}

/* Child links */
.single-post .ez-toc-list ul a {
    color: #667085 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Simple hover */
.single-post .ez-toc-list a:hover {
    color: #c9003b !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .single-post #ez-toc-container,
    .single-post .ez-toc-container {
        max-width: none;
        margin: 26px 0 32px !important;
        padding: 17px 16px 19px !important;

        border-radius: 10px !important;
    }

    .single-post .ez-toc-title {
        font-size: 17px !important;
    }

    .single-post .ez-toc-list a {
        font-size: 14px !important;
    }

    .single-post .ez-toc-list ul {
        margin-left: 8px !important;
        padding-left: 11px !important;
    }

    .single-post .ez-toc-toggle button,
    .single-post .ez-toc-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }
}

/* =========================================================
   BLOG SIDEBAR
   ========================================================= */

.single-post .widget-area {
    position: sticky;
    top: 120px;
}

.single-post .widget {
    margin-bottom: 24px;
}

.tt-sidebar-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #ece7e2;
    border-radius: 12px;
}

.tt-sidebar-card h3 {
    margin: 0 0 10px;
    color: #152033;
    font-size: 20px;
    line-height: 1.35;
}

.tt-sidebar-kicker {
    display: block;
    margin-bottom: 7px;

    color: #c9003b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tt-sidebar-cta {
    background: #f8f7f5;
}

.tt-sidebar-cta p {
    margin: 0 0 18px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.tt-sidebar-cta .planTripBtn {
    width: 100%;
    padding: 12px 16px;

    color: #fff;
    background: linear-gradient(135deg, #c9003b, #ff6043);

    border: 0;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.tt-sidebar-cta .planTripBtn:hover {
    opacity: .94;
}

