/*
 * Homepage Enhancements — BOWP1 Theme
 * Scoped to body.home (WordPress adds this class on the front page).
 * Booking, payment, and member pages are NOT affected.
 */

/* =============================================
   HERO SECTION
   ============================================= */

.home .hp-hero {
    position: relative;
    min-height: 480px;
    background: url('../images/bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.home .hp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,25,80,0.82) 0%, rgba(20,60,140,0.70) 60%, rgba(10,25,80,0.55) 100%);
    z-index: 1;
}

.home .hp-hero__container {
    position: relative;
    z-index: 2;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.home .hp-hero__content {
    width: 100%;
}

.home .hp-hero__tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 500;
}
.home .hp-hero__tagline-line {
    flex: 0 0 30px;
    height: 1px;
    background: rgba(255,255,255,0.5);
    display: block;
}

.home .hp-hero__title {
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.home .hp-hero__subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    margin: 0 0 28px;
}

/* =============================================
   SEARCH CARD
   ============================================= */

.home .hp-search-card {
    background: rgba(255,255,255,0.97);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 24px 24px 20px;
    max-width: 1000px;
}

.home .hp-search-card .tab-bus {
    background: transparent !important;
    padding: 0 !important;
}

.home .hp-trip-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.home .hp-trip-toggle input[type="radio"] {
    display: none;
}

.home .hp-trip-toggle input[type="radio"] + label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid #d0d7f0;
    color: #555;
    background: #f7f8fd;
    transition: all 0.2s ease;
    height: auto;
    line-height: normal;
    width: auto;
    text-align: left;
}

.home .hp-trip-toggle input[type="radio"]:checked + label,
.home .hp-trip-toggle input[type="radio"][checked] + label {
    background: var(--theme, #1e3a8e);
    color: #fff !important;
    border-color: var(--theme, #1e3a8e);
}

.home .hp-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.home .hp-field-group {
    flex: 1 1 160px;
    min-width: 140px;
}

.home .hp-field-group--lg {
    flex: 2 1 200px;
}

.home .hp-field-group--date {
    flex: 1.2 1 160px;
}

.home .hp-field-group--btn {
    flex: 0 0 auto;
    min-width: 110px;
}

.home .hp-field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888 !important;
    margin-bottom: 6px;
}

.home .hp-field-label--hidden {
    visibility: hidden;
}

.home .hp-field-icon {
    color: var(--theme, #1e3a8e);
    font-size: 11px;
}

.home .hp-field-icon--dest {
    color: #e53935;
}

.home .hp-input-group .hp-input {
    height: 44px !important;
    border: 1.5px solid #dde3f5 !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    font-size: 14px !important;
    color: #2d2d2d !important;
    background: #fafbff !important;
    padding-left: 12px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home .hp-input-group .hp-input:focus {
    border-color: var(--theme, #1e3a8e) !important;
    box-shadow: 0 0 0 3px rgba(30,58,142,0.1) !important;
    outline: none !important;
    background: #fff !important;
}

.home .hp-input-group .hp-input::placeholder {
    color: #bbb;
    font-size: 13px;
}

.home .hp-input-addon {
    background: #f0f3ff !important;
    border: 1.5px solid #dde3f5 !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    color: var(--theme, #1e3a8e) !important;
    height: 44px;
    line-height: 44px;
    padding: 0 12px;
}

.home .hp-swap-icon {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-bottom: 10px;
    color: #bbb;
    font-size: 16px;
}

.home .hp-search-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100% !important;
    height: 44px !important;
    background: #FA2B31 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 14px rgba(250,43,49,0.35);
}

.home .hp-search-btn:hover {
    background: #d9232a !important;
    transform: translateY(-1px);
}

/* =============================================
   TRUST BADGES
   ============================================= */

.home .hp-trust {
    background: #fff;
    border-bottom: 1px solid #eef0f8;
    margin: 0 !important;
    padding: 0 !important;
}

.home .hp-trust .container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home .hp-trust__grid {
    display: flex;
    flex-wrap: wrap;
    border-left: 1px solid #eef0f8;
}

.home .hp-trust__item {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-right: 1px solid #eef0f8;
    border-bottom: 1px solid #eef0f8;
}

.home .hp-trust__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home .hp-trust__icon i {
    font-size: 18px;
    color: var(--theme, #1e3a8e);
}

.home .hp-trust__text strong {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.home .hp-trust__text span {
    font-size: 12px;
    color: #888;
}

/* =============================================
   HOW IT WORKS
   ============================================= */

.home .hp-steps {
    background: #f5f7ff;
    margin: 0 !important;
    padding: 0 !important;
}

.home .hp-steps .container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.home .hp-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.home .hp-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--theme, #1e3a8e);
    margin: 0 0 6px;
}

.home .hp-section-sub {
    color: #888;
    font-size: 15px;
    margin: 0;
}

.home .hp-steps__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.home .hp-steps__item {
    flex: 1 1 200px;
    max-width: 260px;
    text-align: center;
    padding: 20px 16px;
    position: relative;
}

.home .hp-steps__num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(30,58,142,0.07);
    line-height: 1;
    pointer-events: none;
}

.home .hp-steps__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--theme, #1e3a8e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 20px rgba(30,58,142,0.25);
}

.home .hp-steps__icon i {
    font-size: 24px;
    color: #fff;
}

.home .hp-steps__item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.home .hp-steps__item p {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

.home .hp-steps__connector {
    width: 50px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--theme,#1e3a8e) 0, var(--theme,#1e3a8e) 6px, transparent 6px, transparent 12px);
    flex-shrink: 0;
    margin-bottom: 20px;
}

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

@media (max-width: 767px) {
    .home .hp-hero { min-height: 100vh; }
    .home .hp-hero__title { font-size: 26px; }
    .home .hp-hero__subtitle { font-size: 14px; }
    .home .hp-search-card { padding: 18px 14px 14px; border-radius: 10px; }
    .home .hp-fields-row { flex-direction: column; gap: 10px; }
    .home .hp-field-group,
    .home .hp-field-group--lg,
    .home .hp-field-group--date,
    .home .hp-field-group--btn { flex: 1 1 100%; min-width: 0; }
    .home .hp-field-label--hidden { display: none; }
    .home .hp-trust__grid { flex-direction: column; }
    .home .hp-steps__connector { display: none; }
}


/* ==============================================
   SINGLE-ROW HEADER (site-wide)
   ============================================== */

/* Override old stacked layout */
#header .header-wrap {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nh-bar {
    width: 100%;
    background: #ffffff;
}

.nh-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 68px;
    gap: 0;
}

/* Logo */
.nh-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nh-logo .logo {
    max-height: 52px !important;
    width: auto;
    display: block !important;
    padding: 4px 0 !important;
}

/* Centre nav */
.nh-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nh-nav #nav {
    display: flex;
    align-items: center;
}

/* Override Bootstrap collapse so nav shows inline on desktop */
@media (min-width: 768px) {
    .nh-nav .navbar-collapse {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .nh-nav .nh-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    .nh-nav .nh-menu > li {
        float: none !important;
    }

    .nh-nav .nh-menu > li > a {
        padding: 8px 14px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #333 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 6px !important;
        line-height: 1.4 !important;
        transition: color 0.2s, background 0.2s;
    }

    .nh-nav .nh-menu > li > a:hover,
    .nh-nav .nh-menu > li.current-menu-item > a {
        color: var(--theme, #1e3a8e) !important;
        background: #f0f4ff !important;
    }
}

/* Right section */
.nh-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Utility links */
.nh-utils {
    display: flex;
    align-items: center;
}

.nh-utils ul {
    display: flex !important;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nh-utils li {
    display: flex !important;
    align-items: center;
}

.nh-utils a {
    color: #444 !important;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px !important;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    background: transparent !important;
}

.nh-utils a:hover {
    color: var(--theme, #1e3a8e) !important;
    background: #f0f4ff !important;
}

/* Currency selector */
.nh-currency {
    background: transparent !important;
    border: 1.5px solid #dde3f5 !important;
    border-radius: 6px !important;
    color: #444 !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
    outline: none !important;
    cursor: pointer;
}

/* Login button — slightly styled */
.nh-login-btn {
    border: 1.5px solid #dde3f5 !important;
    border-radius: 6px !important;
}

/* CTA Button */
.nh-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: var(--theme, #1e3a8e);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    margin-left: 8px;
    box-shadow: 0 3px 10px rgba(30,58,142,0.25);
}

.nh-cta-btn:hover {
    background: #162d74 !important;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Hamburger */
.nh-hamburger {
    display: none;
    margin: 0 !important;
    border: none !important;
}

.nh-hamburger .navbar-toggle {
    background: var(--theme, #1e3a8e) !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0;
}

.nh-hamburger .navbar-toggle i {
    color: #fff !important;
}

/* Mobile collapse menu */
@media (max-width: 767px) {
    .nh-container {
        flex-wrap: wrap;
        padding-left: 12px !important;
        padding-right: 12px !important;
        min-height: 56px;
    }

    .nh-logo { flex: 1 1 auto; }
    .nh-logo .logo { max-height: 40px !important; }

    .nh-nav {
        flex: 0 0 100%;
        order: 3;
        justify-content: flex-start;
    }

    .nh-nav .navbar-collapse {
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #eef0f8;
        padding: 8px 0;
    }

    .nh-nav .nh-menu {
        flex-direction: column !important;
        width: 100%;
    }

    .nh-nav .nh-menu > li > a {
        padding: 10px 16px !important;
        font-size: 15px !important;
        color: #333 !important;
        display: block;
        border-radius: 0 !important;
    }

    .nh-right {
        flex: 0 0 auto;
        gap: 6px;
    }

    .nh-utils { display: none; }

    .nh-cta-btn {
        padding: 7px 14px;
        font-size: 13px;
    }

    .nh-hamburger {
        display: flex !important;
        align-items: center;
    }
}

/* Hide old stacked layout elements that are now baked into nh-bar */
#divTopHeader {
    display: none !important;
}
