/*
 Theme Name:   One Nation Travel Monster
 Theme URI:    https://www.onenationtravel.com
 Description:  Child theme of Travel Monster for One Nation Travel - includes custom page templates, SEO, hotel library, and dynamic homepage.
 Author:       One Nation Travel
 Author URI:   https://www.onenationtravel.com
 Template:     travel-monster
 Version:      1.0.4
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  onenation-travel-monster
*/

/* ═══════════════════════════════════════════════════════════
   HIDE TM PAGE-HEADER-TOP
   TM shows .page-header-top (breadcrumb + title + description)
   on archives/taxonomy pages — hide on our custom template pages
   ═══════════════════════════════════════════════════════════ */

body.page:not(.page-template-template-destination):not(.page-template-template-activities) .page-header-top,
body.single-trip .page-header-top {
    display: none !important;
}

/* Taxonomy breadcrumb — using TM defaults */

/* Also hide old TM selectors — only on homepage */
body.home .page-header,
body.home .entry-header {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL TRAVEL MONSTER CONTAINER OVERRIDES
   Only remove TM container on homepage + single trip pages.
   Custom template pages use the breakout technique for
   full-width heroes, so they work fine with TM container.
   ═══════════════════════════════════════════════════════════ */

body.home .site-content > .container,
body.single-trip .site-content > .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body.home .main-content-wrapper,
body.single-trip .main-content-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Prevent horizontal scroll from breakout technique */
body.page {
    overflow-x: hidden !important;
}

/* WTE DESTINATION TEMPLATE PAGE — REMOVED (using TM+WTE defaults) */

/* Remove top gap between header and content */
body.page .site-content,
body.home .site-content,
body.single-trip .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTIONS - Full-width breakout
   ═══════════════════════════════════════════════════════════ */

.onat-hero,
.onat-section,
.onat-cta,
.sp-about-hero,
.sp-contact-hero,
.sp-faq-hero,
.plan-hero,
.tst-hero,
.sp-why-hero,
.sp-terms-hero,
.sp-terms-nav-wrap,
.sp-tursab-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}

/* Full-width content containers */
.sp-contact-main,
.sp-about-hero + *,
.tst-grid,
.sp-why-main,
.sp-why-cta,
.sp-problem-block {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE TRIP PAGE FIXES
   ═══════════════════════════════════════════════════════════ */

body.single-trip .site-content > .container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.single-trip .post-data,
body.single-trip .wpte-lp-main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Single trip custom breadcrumb styling */
.sp-trip-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    font-size: 13px;
}

.sp-trip-breadcrumb .sp-bc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #6b7280;
}

.sp-trip-breadcrumb a {
    color: #f97316;
    text-decoration: none;
}

.sp-trip-breadcrumb a:hover {
    text-decoration: underline;
}

.sp-trip-breadcrumb .sp-bc-current {
    color: #374151;
    font-weight: 500;
}

.navigation-wrap {
    display: flex !important;
    align-items: center !important;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE LOGO SIZE FIX
   ═══════════════════════════════════════════════════════════ */

.mobile-header .custom-logo {
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
}

.mobile-header .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-header .custom-logo {
    max-height: 60px !important;
    width: auto !important;
}

/* TOUR CARD STYLING — REMOVED (using WTE defaults) */

/* ═══════════════════════════════════════════════════════════
   ITINERARY MEAL & HOTEL TAGS — REMOVED
   WTE Advanced Itinerary Builder now handles these natively.
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   CUSTOM FOOTER STYLES
   ═══════════════════════════════════════════════════════════ */

/* Hide TM default footer wrapper completely — we use footer.php custom footer */
.site-footer#colophon {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
}

/* ============================================================================
   FOOTER STYLES — Used on EVERY page via footer.php
   ============================================================================
   Structure: .onat-footer > .onat-footer-main (4-col grid)
              .onat-footer-bottom (copyright bar)

   ⚠️ WARNING: These styles affect ALL pages. Test globally after changes.
   ⚠️ NOTE: style.css is cached by Cloudflare CDN (up to 1 year).
            For instant changes, use inline CSS in functions.php instead.
   Logo styles are in functions.php inline (id="onat-footer-logo-style").
   ============================================================================ */
.onat-footer {
    background: #1a1a2e;
    color: #cbd5e1;
}

.onat-footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.onat-footer-logo img {
    max-height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.onat-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #94a3b8;
}

.onat-footer-trust {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.onat-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
}

.onat-footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    position: relative;
}

.onat-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #f97316;
}

.onat-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onat-footer-links li {
    margin-bottom: 10px;
}

.onat-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.onat-footer-links a:hover {
    color: #f97316;
}

.onat-footer-contact-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.onat-footer-contact-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.onat-footer-contact-row a {
    color: #94a3b8;
    text-decoration: none;
}

.onat-footer-contact-row a:hover {
    color: #f97316;
}

.onat-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.onat-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
    transition: all 0.3s ease;
}

.onat-footer-social a:hover {
    background: #f97316;
    color: #fff;
}

.onat-footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.onat-footer-bottom {
    background: #141428;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.onat-footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.onat-footer-copy {
    font-size: 13px;
    color: #64748b;
}

.onat-footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.onat-pay-icon {
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    body {
        overflow-x: hidden !important;
    }

    .onat-hero,
    .sp-about-hero,
    .sp-contact-hero,
    .sp-faq-hero,
    .plan-hero,
    .tst-hero,
    .sp-why-hero {
        min-height: auto !important;
    }

    .onat-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile hero fixes */
    .onat-hero {
        min-height: 55vh !important;
    }

    .sp-about-hero,
    .sp-contact-hero,
    .sp-faq-hero,
    .plan-hero,
    .tst-hero,
    .sp-why-hero {
        padding: 40px 16px !important;
        min-height: auto !important;
    }

    /* Mobile content containers */
    .onat-container,
    .sp-contact-main,
    .sp-why-main {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Mobile grids: single column */
    .onat-tours-grid,
    .onat-features-grid,
    .onat-testimonials-grid,
    .onat-blog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .onat-about-wrap {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Mobile search form */
    .onat-hero-search {
        padding: 16px !important;
    }
    .onat-hero-search form {
        flex-direction: column !important;
    }
    .onat-hero-search select,
    .onat-hero-search input[type="text"],
    .onat-hero-search button {
        width: 100% !important;
        min-width: unset !important;
    }

    /* Mobile CTA buttons */
    .onat-cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Mobile section padding */
    .onat-section {
        padding: 40px 0 !important;
    }

    /* Mobile stats */
    .onat-about-stats {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
    }

    /* Fix Travel Monster header mobile */
    .site-header .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Single trip mobile */
    body.single-trip .post-data,
    body.single-trip .wpte-lp-main-wrap {
        padding: 0 12px !important;
    }

    /* Contact form mobile */
    .sp-contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer mobile */
    .onat-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 16px 30px;
    }

    .onat-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        padding: 0 16px;
    }

}

@media (max-width: 480px) {
    .onat-hero h1 {
        font-size: 1.6rem !important;
    }
    .onat-hero p {
        font-size: 0.95rem !important;
    }
    .onat-section-header h2 {
        font-size: 1.4rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   TRAVEL MONSTER THEME CLEANUP
   ═══════════════════════════════════════════════════════════ */

/* Hide TGMPA plugin recommendation notice */
.tgmpa .notice,
.notice.tgmpa-notice,
.notice[data-dismissible="tgmpa"] {
    display: none !important;
}

/* Hide TM breadcrumb on custom pages + single trip (has own breadcrumb) */
body.page .travel-monster-breadcrumb-main-wrap,
body.single-trip .travel-monster-breadcrumb-main-wrap,
body.page .tm-breadcrumb-wrapper,
body.single-trip .tm-breadcrumb-wrapper {
    display: none !important;
}

/* Ensure WhatsApp button doesn't overlap on mobile */
@media (max-width: 768px) {
    .onat-whatsapp-btn,
    [class*="whatsapp"] {
        bottom: 16px !important;
        right: 16px !important;
        z-index: 9999 !important;
    }
}

/* WTE ARCHIVE / LIST VIEW / FILTER SIDEBAR — REMOVED (using WTE defaults) */


/* Fix: Show breadcrumb on single trip pages (overrides hide rule above) */
body.single-trip .travel-monster-breadcrumb-main-wrap,
body.single-trip .tm-breadcrumb-wrapper {
    display: block !important;
}


/* Fix: Show breadcrumb on single trip pages (overrides hide rule above) */
body.single-trip .travel-monster-breadcrumb-main-wrap,
body.single-trip .tm-breadcrumb-wrapper {
    display: block !important;
}