/* ------------------------------------------------------------------
   Bus search engine (_Searchenginebus.cshtml)

   Deliberately mirrors hotel.css rule for rule so flight / hotel / bus
   look like one product: a single white pill with divider-separated
   fields, borderless bold inputs, and the site's orange submit.
   ------------------------------------------------------------------ */

/* Hero. custom.css already defines .Bus_top_banner, but its background url
   starts with "//" which the browser reads as protocol-relative (http://images/...)
   and fails to load, so the hero paints flat. Correct it here. */
.Bus_top_banner {
    background-image: linear-gradient(rgba(9, 16, 44, .55), rgba(9, 16, 44, .55)), url(/images/banner/Bus-banner.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: auto;
    padding: 200px 0 100px 0;
}

/* ---------------------------------------------------------------- intro */
.mtp-bus-search__intro {
    max-width: 720px;
    margin-bottom: 28px;
    color: #fff;
}

.mtp-bus-search__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(236, 74, 47, 0.18);
    color: #ffd8cf;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mtp-bus-search__title {
    margin: 16px 0 10px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.mtp-bus-search__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    max-width: 560px;
}

/* ---------------------------------------------------------------- card */
.mtp-bus-search__card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(14, 17, 59, 0.22);
    overflow: visible;
}

.mtp-bus-search__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 20px;
}

.mtp-bus-search__field {
    flex: 1 1 180px;
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid #eef1f6;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mtp-bus-search__row .mtp-bus-search__field:first-child {
    border-radius: 20px 0 0 20px;
}

.mtp-bus-search__field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa3b5;
}

.mtp-bus-search__field label i {
    color: #ec4a2f;
    margin-right: 6px;
}

.mtp-bus-search__input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0e113b;
    padding: 0;
}

.mtp-bus-search__input::placeholder {
    color: #b6bdcb;
    font-weight: 500;
}

/* The native date control needs the same borderless treatment. */
.mtp-bus-search__input[type="date"] {
    font-family: inherit;
    cursor: pointer;
    min-height: 27px;
}

.mtp-bus-search__sub {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #676977;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1rem;
}

/* --------------------------------------------------------------- swap */
.mtp-bus-search__field--swap {
    flex: 0 0 62px;
    align-items: center;
    padding: 18px 0;
}

.mtp-bus-search__swap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eef1f6;
    background: #fff;
    color: #ec4a2f;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(14, 17, 59, .08);
    transition: transform .15s ease;
}

.mtp-bus-search__swap:hover {
    transform: rotate(180deg);
}

/* ------------------------------------------------------------- submit */
.mtp-bus-search__field--submit {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background: linear-gradient(180deg, #fff 0%, #fffaf8 100%);
    border-right: none;
    border-radius: 0 20px 20px 0;
}

.mtp-bus-search__submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0;
    background: linear-gradient(135deg, #ec4a2f 0%, #d93d22 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.mtp-bus-search__submit:disabled { opacity: .6; cursor: not-allowed; }

/* ------------------------------------------------- city autocomplete */
.mtp-bus-city-panel {
    position: absolute;
    z-index: 60;
    left: 12px;
    right: 12px;
    top: 100%;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(14, 17, 59, .18);
    max-height: 300px;
    overflow: auto;
    display: none;
}

.mtp-bus-city-panel.is-open { display: block; }

.mtp-bus-city-panel ul { list-style: none; margin: 0; padding: 6px; }

.mtp-bus-city-panel li {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0e113b;
}

.mtp-bus-city-panel li:hover { background: #fff3f0; }
.mtp-bus-city-panel li small { color: #9aa3b5; font-weight: 500; margin-left: 6px; }
.mtp-bus-city-panel li.is-note { cursor: default; color: #9aa3b5; font-weight: 500; }
.mtp-bus-city-panel li.is-error { cursor: default; color: #b42318; font-weight: 500; }

/* ------------------------------------------------------------ compact */
.mtp-bus-search--compact {
    background: transparent;
    padding: 0;
}

.mtp-bus-search--compact .mtp-bus-search__card {
    box-shadow: 0 10px 26px rgba(14, 17, 59, .12);
    border-radius: 16px;
}

.mtp-bus-search--compact .mtp-bus-search__field { padding: 12px 16px; }
.mtp-bus-search--compact .mtp-bus-search__input { font-size: 1rem; }
.mtp-bus-search--compact .mtp-bus-search__submit { padding: 12px 16px; }

/* ------------------------------------------------------------ results */
.mtp-bus-results { padding: 30px 0 70px; }

.mtp-bus-sort { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }

.mtp-bus-sort__btn {
    border: 1px solid #e4e7ee;
    background: #fff;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #4a5163;
}

.mtp-bus-sort__btn.is-active {
    background: linear-gradient(135deg, #ec4a2f 0%, #d93d22 100%);
    border-color: transparent;
    color: #fff;
}

.mtp-bus-trip {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(14, 17, 59, .06);
}

.mtp-bus-trip__name { font-size: 1.05rem; font-weight: 700; margin: 0; color: #0e113b; }
.mtp-bus-trip__type { font-size: 0.85rem; color: #676977; }

.mtp-bus-trip__time {
    font-size: 1.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0e113b;
    margin-top: 8px;
}

.mtp-bus-trip__dur { font-size: 0.85rem; font-weight: 500; color: #9aa3b5; }

.mtp-bus-trip__nextday {
    font-size: 0.7rem; font-weight: 700; vertical-align: 3px;
    color: #d93d22; background: #fff3f0; border-radius: 6px; padding: 2px 6px;
}

.mtp-bus-trip__route { font-size: 0.8rem; color: #9aa3b5; margin-top: 2px; }

.mtp-bus-trip__tag {
    display: inline-block;
    background: #fff3f0;
    color: #d93d22;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 6px 5px 0 0;
}

.mtp-bus-trip__fare { font-size: 1.5rem; font-weight: 800; color: #0e113b; }
.mtp-bus-trip__seats { font-size: 0.85rem; color: #676977; }

.mtp-bus-trip__btn {
    margin-top: 10px;
    border: none;
    background: linear-gradient(135deg, #ec4a2f 0%, #d93d22 100%);
    color: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.mtp-bus-trip__btn:disabled { opacity: .6; cursor: not-allowed; }

/* --------------------------------------------------------- seat deck */
.mtp-bus-deck { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 16px; }

.mtp-bus-deck__grid {
    position: relative;
    background: #fafbfd;
    border: 1px solid #eef1f6;
    border-radius: 12px;
    padding: 10px;
}

.mtp-bus-seat {
    position: absolute;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5163;
}

.mtp-bus-seat.is-taken { background: #eceff4; color: #b6bdcb; }
.mtp-bus-seat.is-ladies { border-color: #d946ef; }

/* Window seat: a pane on the outer edge. A mark rather than a colour, so it can be read at the
   same time as the ladies-seat border instead of competing with it. */
.mtp-bus-seat.is-window::after {
    content: "";
    position: absolute;
    top: 3px; right: 2px; bottom: 3px;
    width: 3px;
    border-radius: 2px;
    background: #2b7fff;
}
.mtp-bus-seat.is-window.is-taken::after { background: #c3cbd8; }

.mtp-bus-legend { font-size: 0.85rem; color: #676977; }
.mtp-bus-legend b { color: #d946ef; font-weight: 600; }
.mtp-bus-legend b:last-of-type { color: #2b7fff; }

.mtp-bus-msg { border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-size: 0.92rem; font-weight: 500; }
.mtp-bus-msg--info { background: #fff3f0; color: #d93d22; }
.mtp-bus-msg--warn { background: #fff7e6; color: #8a5a00; }
.mtp-bus-msg--err { background: #fdecea; color: #b42318; }

/* -------------------------------------------------------- responsive */
@media (max-width: 991px) {
    .Bus_top_banner { padding: 120px 0 60px 0; }

    .mtp-bus-search__field {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid #eef1f6;
        border-radius: 0 !important;
    }

    .mtp-bus-search__field--swap { display: none; }

    .mtp-bus-search__field--submit {
        flex: 1 1 100%;
        border-bottom: none;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Panels injected by the product tabs. The tab bar stays put and only the
   engine below it changes, so panel heroes are slightly shorter than a full
   landing hero.
   -------------------------------------------------------------------------- */
#mtpEnginePanel { transition: opacity .15s ease; }

.mtp-visa-hero--panel,
.mtp-car-hero--panel { padding-top: 60px; padding-bottom: 60px; }

.mtp-visa-panel-popular { margin-top: 14px; font-size: .9rem; color: rgba(255,255,255,.85); }
.mtp-visa-panel-popular span { margin-right: 6px; }
.mtp-visa-panel-popular a {
    display: inline-block; margin: 4px 6px 0 0; padding: 4px 12px;
    border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; text-decoration: none;
}
.mtp-visa-panel-popular a:hover { background: rgba(255,255,255,.32); color: #fff; }

.mtp-car-panel-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.mtp-car-panel-field { flex: 1 1 190px; display: flex; flex-direction: column; }
.mtp-car-panel-field label {
    font-size: .78rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: #9aa3b5; margin-bottom: 6px;
}
.mtp-car-panel-field label i { color: #ec4a2f; margin-right: 6px; }
.mtp-car-panel-field input {
    border: 1px solid #e2e6ec; border-radius: 10px; padding: 11px 12px; font-size: 1rem; width: 100%;
}
.mtp-car-panel-field--submit { flex: 0 0 190px; }
.mtp-car-panel-note { margin: 10px 0 0; font-size: .82rem; color: #676977; }

/* --------------------------------------------------------------------------
   Seat selection → boarding points → passenger details → hold
   -------------------------------------------------------------------------- */
.mtp-bus-seat.is-free { cursor: pointer; }
.mtp-bus-seat.is-free:hover { border-color: #ec4a2f; background: #fff3f0; }

.mtp-bus-seat.is-selected {
    background: linear-gradient(135deg, #ec4a2f 0%, #d93d22 100%);
    border-color: #d93d22;
    color: #fff;
}

.mtp-bus-key {
    display: inline-block; width: 11px; height: 11px; border-radius: 3px;
    border: 1px solid #dfe3ea; vertical-align: -1px; margin-right: 2px;
}
.mtp-bus-key--free { background: #fff; }
.mtp-bus-key--sel { background: #ec4a2f; border-color: #d93d22; }

.mtp-bus-booking:empty { display: none; }
.mtp-bus-booking {
    margin-top: 16px; padding: 16px; border: 1px solid #eef1f6;
    border-radius: 14px; background: #fafbfd;
}

.mtp-bus-booking__bar {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
    align-items: center; font-size: .92rem; color: #0e113b; margin-bottom: 12px;
}
.mtp-bus-booking__total { font-size: 1.15rem; font-weight: 800; }

.mtp-bus-points { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.mtp-bus-points label {
    flex: 1 1 240px; display: flex; flex-direction: column;
    font-size: .78rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: #9aa3b5; gap: 6px;
}
.mtp-bus-points select {
    border: 1px solid #e2e6ec; border-radius: 10px; padding: 10px 12px;
    font-size: .95rem; font-weight: 500; color: #0e113b; background: #fff;
    text-transform: none; letter-spacing: 0;
}
.mtp-bus-points__hint {
    font-size: .72rem; font-weight: 500; color: #9aa3b5;
    text-transform: none; letter-spacing: 0; margin-top: 4px;
}

.mtp-bus-pax-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mtp-bus-pax {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    background: #fff; border: 1px solid #eef1f6; border-radius: 12px; padding: 10px 12px;
}
.mtp-bus-pax__seat { flex: 0 0 150px; font-size: .9rem; color: #0e113b; }
.mtp-bus-pax__seat span { color: #676977; }
.mtp-bus-pax__ladies { color: #d946ef; font-style: normal; font-size: .78rem; font-weight: 600; }
.mtp-bus-pax input, .mtp-bus-pax select {
    flex: 1 1 130px; min-width: 0; border: 1px solid #e2e6ec; border-radius: 9px;
    padding: 9px 11px; font-size: .95rem;
}
.mtp-bus-pax input[data-f="age"] { flex: 0 0 80px; }

.mtp-bus-hold { margin-top: 12px; }
.mtp-bus-hold__ok {
    background: #eaf7ef; color: #0f7b3e; border-radius: 10px;
    padding: 12px 14px; font-weight: 600; font-size: .95rem;
}
.mtp-bus-hold__ok code { background: rgba(15,123,62,.12); padding: 2px 7px; border-radius: 5px; }
.mtp-bus-hold__timer { margin-top: 8px; font-size: 1rem; color: #0e113b; }
.mtp-bus-hold__timer strong { font-variant-numeric: tabular-nums; color: #d93d22; font-size: 1.15rem; }
.mtp-bus-hold__next { margin: 10px 0 0; font-size: .85rem; color: #676977; }
