/* Dedicated B2C bus landing page. Rules are scoped to keep other services unchanged. */
.bus-landing-page {
    --bus-ink: #11294c;
    --bus-text: #354b69;
    --bus-muted: #70819a;
    --bus-line: #dce5ef;
    --bus-soft: #f6f8fb;
    --bus-blue: var(--brand-blue);
    --bus-blue-dark: var(--brand-blue-dark);
    --bus-warm: #f97316;
    color: var(--bus-text);
    background: #fff;
}

.bus-landing-page,
.bus-landing-page *,
.bus-landing-page *::before,
.bus-landing-page *::after { box-sizing: border-box; }

.bus-landing-container {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.bus-confidence-strip {
    padding: 22px 0;
    border-bottom: 1px solid #e5ebf3;
    background: #fff;
}

.bus-confidence-strip .bus-landing-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bus-confidence-strip article {
    display: flex;
    min-width: 0;
    min-height: 68px;
    padding: 8px 22px;
    align-items: center;
    gap: 12px;
    border-right: 1px solid #e2e9f2;
}

.bus-confidence-strip article:first-child { padding-left: 0; }
.bus-confidence-strip article:last-child { padding-right: 0; border-right: 0; }

.bus-confidence-strip article > i {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--bus-blue);
    border-radius: 13px;
    background: #edf4ff;
    font-size: 1.05rem;
}

.bus-confidence-strip article > span { display: flex; min-width: 0; flex-direction: column; }
.bus-confidence-strip strong { color: var(--bus-ink); font-size: .79rem; font-weight: 750; }
.bus-confidence-strip small { margin-top: 3px; color: var(--bus-muted); font-size: .63rem; line-height: 1.4; }

.bus-landing-section { width: 100%; padding: 68px 0; }
.bus-landing-section-muted { background: var(--bus-soft); }

.bus-section-heading {
    display: flex;
    margin-bottom: 26px;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.bus-section-heading > div > span,
.bus-faq-intro > span {
    display: block;
    margin-bottom: 7px;
    color: var(--bus-blue);
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bus-section-heading h2,
.bus-faq-intro h2,
.bus-search-cta h2 {
    margin: 0;
    color: var(--bus-ink);
    font-size: clamp(1.65rem, 2.3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.12;
}

.bus-section-heading > p {
    width: min(510px, 100%);
    margin: 0;
    color: var(--bus-muted);
    font-size: .78rem;
    line-height: 1.65;
}

.bus-section-heading-centered { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bus-section-heading-centered > p { width: min(620px, 100%); }

.bus-deal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bus-deal-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bus-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 45, 82, .08);
}

.bus-deal-media {
    position: relative;
    display: grid;
    height: 190px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #183f76, #1c78a2 70%, #23a7a5);
}

.bus-deal-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bus-deal-media > i { color: rgba(255, 255, 255, .55); font-size: 3.4rem; }

.bus-deal-media > span {
    position: absolute;
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 10px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(10, 32, 62, .76);
    font-size: .6rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.bus-deal-copy { padding: 20px; }
.bus-deal-copy > small { color: var(--bus-blue); font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.bus-deal-copy h3 { margin: 7px 0 6px; color: var(--bus-ink); font-size: 1rem; font-weight: 750; line-height: 1.35; }
.bus-deal-copy > p { display: flex; margin: 0; align-items: center; gap: 6px; color: var(--bus-muted); font-size: .65rem; line-height: 1.5; }
.bus-deal-copy > p i:first-child { color: var(--bus-warm); }

.bus-deal-copy > div {
    display: flex;
    margin-top: 18px;
    padding-top: 16px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf1f6;
}

.bus-deal-copy > div > span { display: flex; flex-direction: column; }
.bus-deal-copy > div > span small { color: var(--bus-muted); font-size: .56rem; }
.bus-deal-copy > div > span strong { margin-top: 2px; color: var(--bus-ink); font-size: 1rem; }

.bus-deal-copy a {
    display: inline-flex;
    min-height: 40px;
    padding: 0 13px;
    align-items: center;
    gap: 6px;
    color: #fff;
    border-radius: 10px;
    background: var(--bus-blue);
    font-size: .62rem;
    font-weight: 700;
    text-decoration: none;
}

.bus-rate-disclaimer { display: flex; margin: 16px 0 0; align-items: flex-start; gap: 7px; color: var(--bus-muted); font-size: .62rem; line-height: 1.5; }
.bus-rate-disclaimer i { color: var(--bus-blue); }

.bus-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.bus-route-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 138px;
    padding: 22px;
    align-items: center;
    gap: 16px;
    color: var(--bus-text);
    border: 1px solid var(--bus-line);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f7faff);
    box-shadow: 0 8px 24px rgba(18, 45, 82, .055);
    text-decoration: none;
}

.bus-route-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--bus-blue), #1a8cb8);
    font-size: 1.15rem;
}

.bus-route-tone-2 .bus-route-icon { background: linear-gradient(145deg, #0b7b6d, #28a584); }
.bus-route-tone-3 .bus-route-icon { background: linear-gradient(145deg, #934f23, #f38a2c); }
.bus-route-tone-4 .bus-route-icon { background: linear-gradient(145deg, #6c4bb0, #9a72dd); }
.bus-route-tone-5 .bus-route-icon { background: linear-gradient(145deg, #315f45, #5b9871); }
.bus-route-tone-6 .bus-route-icon { background: linear-gradient(145deg, #a3354c, #dc6073); }

.bus-route-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.bus-route-copy small { color: var(--bus-muted); font-size: .58rem; }
.bus-route-copy strong { display: flex; margin-top: 5px; align-items: center; gap: 7px; color: var(--bus-ink); font-size: .82rem; font-weight: 750; }
.bus-route-copy strong i { color: var(--bus-warm); font-size: .65rem; }
.bus-route-copy em { margin-top: 9px; color: var(--bus-blue); font-size: .59rem; font-style: normal; font-weight: 700; }
.bus-route-arrow { position: absolute; top: 18px; right: 18px; color: #91a3bc; font-size: .75rem; }

.bus-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.bus-type-grid > a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 166px;
    padding: 23px;
    flex-direction: column;
    color: var(--bus-text);
    border: 1px solid var(--bus-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 45, 82, .055);
    text-decoration: none;
}

.bus-type-grid > a > i { display: grid; width: 46px; height: 46px; place-items: center; color: var(--bus-blue); border-radius: 14px; background: #edf4ff; font-size: 1.08rem; }
.bus-type-grid > a > span { display: flex; margin-top: 18px; flex-direction: column; }
.bus-type-grid strong { color: var(--bus-ink); font-size: .82rem; }
.bus-type-grid small { margin-top: 5px; color: var(--bus-muted); font-size: .62rem; line-height: 1.5; }
.bus-type-grid > a > b { position: absolute; top: 22px; right: 22px; color: #8ba0bd; font-size: .8rem; }

.bus-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.bus-steps-grid article {
    position: relative;
    min-height: 225px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--bus-line);
    border-radius: 20px;
    background: linear-gradient(155deg, #fff, #f9fbfe);
    text-align: center;
}

.bus-steps-grid article > span { position: absolute; top: 18px; right: 20px; color: #e0e9f5; font-size: 1.5rem; font-weight: 800; }
.bus-steps-grid article > i { display: grid; width: 56px; height: 56px; margin: 8px auto 18px; place-items: center; color: var(--bus-blue); border-radius: 17px; background: #edf4ff; font-size: 1.25rem; }
.bus-steps-grid h3 { margin: 0; color: var(--bus-ink); font-size: .9rem; font-weight: 750; }
.bus-steps-grid p { margin: 8px auto 0; color: var(--bus-muted); font-size: .66rem; line-height: 1.6; }

.bus-faq-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(35px, 6vw, 90px); }
.bus-faq-intro h2 { max-width: 420px; }
.bus-faq-intro p { max-width: 430px; margin: 16px 0 22px; color: var(--bus-muted); font-size: .75rem; line-height: 1.7; }

.bus-faq-intro > a {
    display: inline-flex;
    min-height: 42px;
    padding: 0 13px;
    align-items: center;
    gap: 8px;
    color: var(--bus-blue);
    border: 1px solid #bdd0f3;
    border-radius: 10px;
    background: #fff;
    font-size: .66rem;
    font-weight: 700;
    text-decoration: none;
}

.bus-faq-list details { overflow: hidden; margin-bottom: 11px; border: 1px solid var(--bus-line); border-radius: 14px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.bus-faq-list details:last-child { margin-bottom: 0; }
.bus-faq-list details[open] { border-color: #b3c9f3; box-shadow: 0 9px 24px rgba(18, 45, 82, .07); }

.bus-faq-list summary { display: flex; min-height: 66px; padding: 17px 18px; align-items: center; justify-content: space-between; gap: 20px; color: var(--bus-ink); cursor: pointer; font-size: .74rem; font-weight: 700; list-style: none; }
.bus-faq-list summary::-webkit-details-marker { display: none; }
.bus-faq-list summary i { color: var(--bus-blue); transition: transform .18s ease; }
.bus-faq-list details[open] summary i { transform: rotate(45deg); }
.bus-faq-list details > p { margin: 0; padding: 0 18px 18px; color: var(--bus-muted); font-size: .68rem; line-height: 1.65; }

.bus-search-cta { padding: 0 0 72px; background: var(--bus-soft); }

.bus-search-cta .bus-landing-container {
    display: flex;
    min-height: 210px;
    padding: 38px 48px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(120deg, #0e2d5e, #155eef 65%, #f97316 145%);
    box-shadow: 0 22px 55px rgba(13, 56, 130, .2);
}

.bus-search-cta .bus-landing-container > div { max-width: 700px; }
.bus-search-cta span { color: #ffd2ae; font-size: .65rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.bus-search-cta h2 { margin-top: 7px; color: #fff; }
.bus-search-cta p { margin: 10px 0 0; color: rgba(255, 255, 255, .78); font-size: .72rem; line-height: 1.6; }

.bus-search-cta a { display: inline-flex; min-height: 48px; padding: 0 19px; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--bus-ink); border-radius: 12px; background: #fff; font-size: .7rem; font-weight: 750; text-decoration: none; }

@media (hover: hover) {
    .bus-deal-card:hover .bus-deal-media > img { transform: scale(1.045); }
    .bus-route-card:hover,
    .bus-type-grid > a:hover { transform: translateY(-3px); border-color: #b8ccf1; box-shadow: 0 15px 32px rgba(18, 45, 82, .1); }
    .bus-route-card,
    .bus-type-grid > a { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
}

@media (max-width: 991.98px) {
    .bus-confidence-strip .bus-landing-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bus-confidence-strip article:nth-child(2) { border-right: 0; }
    .bus-confidence-strip article:nth-child(-n+2) { border-bottom: 1px solid #e2e9f2; }
    .bus-confidence-strip article:first-child,
    .bus-confidence-strip article:nth-child(3) { padding-left: 0; }
    .bus-confidence-strip article:nth-child(2),
    .bus-confidence-strip article:last-child { padding-right: 0; }
    .bus-deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bus-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bus-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .homepage-v2 .booking-body {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    /* App-style live search controls, scoped to the dedicated bus page. */
    .homepage-v2 #busSearchForm.bus-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }
    .homepage-v2 #busSearchForm .bus-route-fields,
    .homepage-v2 #busSearchForm .bus-search-button,
    .homepage-v2 #busSearchForm .bus-preference-row {
        grid-column: 1 / -1;
    }
    .homepage-v2 #busSearchForm .bus-route-fields { grid-template-columns: 1fr; }
    .homepage-v2 #busSearchForm .bus-swap-button {
        right: 12px;
        width: 44px;
        height: 44px;
    }
    .homepage-v2 #busSearchForm .bus-traveller-control {
        height: 44px;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 0;
    }
    .homepage-v2 #busSearchForm .bus-traveller-field {
        height: 74px;
        min-height: 74px;
    }
    .homepage-v2 #busSearchForm .bus-traveller-control > button {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    .homepage-v2 #busSearchForm .bus-traveller-control > strong {
        overflow: hidden;
        font-size: .78rem;
        font-weight: 600;
        text-overflow: ellipsis;
    }
    .homepage-v2 #busSearchForm .bus-preference-row { padding: .65rem; }
    .homepage-v2 #busSearchForm .special-fare-options { gap: .4rem; }
    .homepage-v2 #busSearchForm .special-fare-option span {
        min-height: 44px;
        padding: .55rem .75rem;
        font-size: .72rem;
        font-weight: 600;
    }
    .homepage-v2 #busSearchForm .bus-preference-row > small {
        width: 100%;
        margin-left: 0;
        font-size: .7rem;
        line-height: 1.4;
        white-space: normal;
    }
    .homepage-v2 #busSearchForm .bus-city-picker.is-open .bus-city-suggestions {
        position: fixed;
        z-index: 1095;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-width: none;
        max-height: min(58dvh, 430px);
        margin: 0;
        padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 22px 22px 0 0;
        background: #fff;
        box-shadow:
            0 0 0 100vmax rgba(7, 20, 41, .68),
            0 -18px 50px rgba(7, 20, 41, .2);
    }
    .homepage-v2 #busSearchForm .bus-city-suggestion {
        min-height: 64px;
        padding: 10px 4px;
        grid-template-columns: 42px minmax(0, 1fr) minmax(64px, auto);
        gap: 9px;
        border-bottom: 1px solid #edf1f6;
        border-radius: 0;
    }
    .homepage-v2 #busSearchForm .bus-city-suggestion strong { font-size: .86rem; }
    .homepage-v2 #busSearchForm .bus-city-suggestion small,
    .homepage-v2 #busSearchForm .bus-city-state-name { font-size: .68rem; }

    .bus-landing-container { padding-right: var(--mobile-page-gutter, 14px); padding-left: var(--mobile-page-gutter, 14px); }
    .bus-confidence-strip { padding: 14px 0; }
    .bus-confidence-strip article { min-height: 72px; padding-top: 9px; padding-bottom: 9px; }
    .bus-confidence-strip article > i { width: 38px; height: 38px; flex-basis: 38px; font-size: .95rem; }
    .bus-confidence-strip strong { font-size: .78rem; }
    .bus-confidence-strip small { font-size: .66rem; font-weight: 500; }
    .bus-landing-section { padding: 42px 0; }
    .bus-section-heading { margin-bottom: 20px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .bus-section-heading-centered { align-items: flex-start; text-align: left; }
    .bus-section-heading > div > span,
    .bus-faq-intro > span { font-size: .7rem; }
    .bus-section-heading h2,
    .bus-faq-intro h2,
    .bus-search-cta h2 { font-size: clamp(1.48rem, 7vw, 1.9rem); }
    .bus-section-heading > p { width: 100%; font-size: .8rem; font-weight: 500; line-height: 1.55; }
    .bus-deal-grid { grid-template-columns: 1fr; }
    .bus-deal-media { height: 205px; }
    .bus-deal-media > span { font-size: .68rem; }
    .bus-deal-copy { padding: 18px; }
    .bus-deal-copy > small { font-size: .68rem; }
    .bus-deal-copy > p {
        min-width: 0;
        flex-wrap: wrap;
        font-size: .75rem;
        font-weight: 500;
        overflow-wrap: anywhere;
    }
    .bus-deal-copy > div > span small { font-size: .66rem; }
    .bus-deal-copy a { min-height: 44px; font-size: .75rem; }
    .bus-rate-disclaimer { font-size: .7rem; font-weight: 500; }
    .bus-route-grid { grid-template-columns: 1fr; gap: 11px; }
    .bus-route-card { min-height: 118px; padding: 18px; }
    .bus-route-copy small { font-size: .68rem; }
    .bus-route-copy strong { flex-wrap: wrap; font-size: .86rem; line-height: 1.4; }
    .bus-route-copy em { font-size: .7rem; }
    .bus-type-grid strong { font-size: .88rem; }
    .bus-type-grid small { font-size: .74rem; font-weight: 500; }
    .bus-steps-grid { grid-template-columns: 1fr; gap: 13px; }
    .bus-steps-grid article { min-height: 0; padding: 22px; text-align: left; }
    .bus-steps-grid article > i { width: 50px; height: 50px; margin: 0 0 15px; }
    .bus-steps-grid h3 { font-size: .92rem; }
    .bus-steps-grid p { margin-right: 0; margin-left: 0; font-size: .75rem; font-weight: 500; }
    .bus-faq-layout { grid-template-columns: 1fr; gap: 28px; }
    .bus-faq-intro p { margin-top: 12px; font-size: .8rem; font-weight: 500; }
    .bus-faq-intro > a {
        min-height: 44px;
        max-width: 100%;
        font-size: .75rem;
        overflow-wrap: anywhere;
    }
    .bus-faq-list summary { min-height: 66px; font-size: .82rem; line-height: 1.4; }
    .bus-faq-list details > p { font-size: .75rem; font-weight: 500; }
    .bus-search-cta { padding-bottom: 52px; }
    .bus-search-cta .bus-landing-container { min-height: 260px; padding: 30px 24px; align-items: flex-start; flex-direction: column; border-radius: 0; }
    .bus-search-cta span { font-size: .7rem; }
    .bus-search-cta p { font-size: .8rem; font-weight: 500; }
    .bus-search-cta a { width: 100%; min-height: 50px; justify-content: center; font-size: .8rem; }
}

@media (max-width: 575.98px) {
    .bus-confidence-strip article { padding-right: 8px; gap: 8px; }
    .bus-confidence-strip article:nth-child(2),
    .bus-confidence-strip article:last-child { padding-left: 8px; }
    .bus-route-card { min-height: 124px; padding: 18px; }
    .bus-route-icon { width: 44px; height: 44px; flex-basis: 44px; }
    .bus-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bus-type-grid > a { min-height: 150px; padding: 15px; }
    .bus-type-grid > a > i { width: 42px; height: 42px; }
    .bus-type-grid > a > b { top: 17px; right: 15px; }
    .bus-type-grid > a > span { margin-top: 14px; }
    .bus-deal-copy > div { align-items: stretch; flex-direction: column; }
    .bus-deal-copy a { justify-content: center; }
    .bus-faq-list summary { min-height: 62px; padding: 15px; font-size: .8rem; }
    .bus-faq-list details > p { padding: 0 15px 15px; font-size: .74rem; }
}

@media (max-width: 429.98px) {
    .homepage-v2 #busSearchForm .bus-date-field,
    .homepage-v2 #busSearchForm .bus-traveller-field { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .bus-landing-page *,
    .bus-landing-page *::before,
    .bus-landing-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
