/* Rent section */

.rent-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

/* ── Header ─────────────────────────────────────────── */
.rent-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(102, 102, 102, 0.25);
    height: 73px;
    width: 100%;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
}

.rent-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px 0 64px;
}

.rent-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.rent-header__logo-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #242731;
}

.rent-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rent-header__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: #F7F7F7;
    border: 1px solid rgba(102, 102, 102, 0.35);
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    color: rgba(102, 102, 102, 0.8);
    height: 34px;
    white-space: nowrap;
}

.rent-header__lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    height: 40px;
}

.rent-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 40px;
    background: #111111;
    border: 1px solid #111111;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.rent-header__btn:hover {
    background: #333333;
    color: #FFFFFF;
    text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────── */
.rent-page .rent-hero-wrap {
    background: #1F1F1F;
    flex: 1;
}

.rent-hero {
    display: flex;
    align-items: flex-start;
    padding: 64px 80px;
    gap: 80px;
    min-height: calc(100vh - 73px);
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.rent-hero__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 114px;
    min-width: 0;
}

.rent-hero__headline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 390px;
}

.rent-hero__headline h1 {
    font-weight: 600;
    font-size: 48px;
    line-height: 68px;
    color: #FFFFFF;
    margin: 0;
}

.rent-hero__headline p {
    font-weight: 400;
    font-size: 32px;
    line-height: 48px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.rent-hero__illustration {
    margin-top: 24px;
    width: 500px;
    max-width: 100%;
}

.rent-hero__illustration svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Card ────────────────────────────────────────────── */
.rent-hero__card {
    width: 772px;
    min-height: 872px;
    background: #DBEEFF;
    border: 1px solid rgba(102, 102, 102, 0.5);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px 111px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Rating badge */
.rent-hero__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #C7E2FE;
    border-radius: 12px;
    padding: 8px 12px 8px 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12.2px;
    letter-spacing: 0.72px;
    text-transform: uppercase;
    color: #1B1B1B;
}

.rent-hero__rating-score {
    font-weight: 500;
}

.rent-hero__rating-count {
    font-weight: 500;
}

.rent-hero__card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.18;
    letter-spacing: -0.28px;
    color: #1B1B1B;
    margin: 0;
    text-align: center;
    align-self: stretch;
}

.rent-hero__card-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17.9px;
    line-height: 29px;
    letter-spacing: -0.09px;
    color: #1B1B1B;
    margin: 0;
    text-align: center;
    max-width: 529px;
}

.rent-hero__btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 550px;
    height: 96px;
    background: #5570F1;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.2s;
    text-align: center;
    align-self: stretch;
}

.rent-hero__btn-primary:hover {
    background: #3d55d4;
    color: #FFFFFF;
    text-decoration: none;
}

.rent-hero__divider {
    display: flex;
    align-items: center;
    gap: 23px;
    width: 460px;
    align-self: center;
}

.rent-hero__divider-line {
    flex: 1;
    height: 2px;
    background: rgba(102, 102, 102, 0.25);
}

.rent-hero__divider-text {
    font-size: 16px;
    line-height: 24px;
    color: #666666;
    flex-shrink: 0;
}

.rent-hero__btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 550px;
    height: 96px;
    background: #FFFFFF;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    color: #0B9FE4;
    text-decoration: none;
    transition: background 0.2s;
    text-align: center;
    align-self: stretch;
}

.rent-hero__btn-phone:hover {
    background: #f0f8ff;
    color: #0B9FE4;
    text-decoration: none;
}

.rent-hero__card-note {
    width: 460px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #666666;
    text-align: center;
    margin: 0;
    align-self: center;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1300px) {
    .rent-hero__card {
        width: 620px;
        padding: 48px 60px;
    }
    .rent-hero__btn-primary,
    .rent-hero__btn-phone {
        width: 100%;
    }
    .rent-hero__divider,
    .rent-hero__card-note {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .rent-hero {
        padding: 40px;
        gap: 24px;
    }
    .rent-hero__card {
        width: 520px;
        padding: 40px 40px;
    }
    .rent-hero__card-title {
        font-size: 32px;
    }
    .rent-hero__btn-primary,
    .rent-hero__btn-phone {
        height: 72px;
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .rent-hero {
        flex-direction: column;
        align-items: center;
        padding: 40px 24px;
    }
    .rent-hero__left {
        padding-top: 0;
        align-items: center;
        text-align: center;
    }
    .rent-hero__headline { align-items: center; }
    .rent-hero__headline h1 { font-size: 36px; line-height: 48px; }
    .rent-hero__headline p { font-size: 22px; line-height: 32px; }
    .rent-hero__illustration { display: none; }
    .rent-hero__card {
        width: 100%;
        min-height: auto;
        padding: 40px 24px;
    }
    .rent-hero__rating { align-self: center; }
}

@media (max-width: 600px) {
    .rent-header__inner { padding: 0 20px; }
    .rent-header__search { display: none; }
    .rent-hero__card-title { font-size: 28px; }
    .rent-hero__btn-primary,
    .rent-hero__btn-phone { height: 64px; font-size: 18px; }
}


/* ════════════════════════════════════════════════════════
   BOOKING FORM — multi-step
   Mobile: design from mobile.html mockup
   Desktop: design from Figma (card layout)
   ════════════════════════════════════════════════════════ */

/* ─── Shared base ─────────────────────────────────────── */
.booking-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* ─────────────────────────────────────────────────────────
   MOBILE DESIGN  (< 768px)
───────────────────────────────────────────────────────── */

/* Topbar */
.booking-mobile-topbar {
    background: #FFFFFF;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 10;
}

.booking-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #111827;
    text-decoration: none;
    flex-shrink: 0;
}
.booking-back:active { background: #F4F5F7; }

.booking-topbar-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.booking-topbar-step {
    font-size: 11px;
    color: #4B5563;
    white-space: nowrap;
}

/* Progress dots */
.booking-mobile-dots {
    display: flex;
    gap: 5px;
    padding: 6px 12px 8px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.bm-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB;
}
.bm-dot--active { background: #4F6BED; }
.bm-dot--done   { background: #4F6BED; }

/* Content area */
.booking-content-wrap {
    flex: 1;
    background: #F4F5F7;
    padding: 24px 12px 100px;
}

/* Card (mobile = no card styling, just container) */
.booking-card {
    background: transparent;
}

/* Desktop card stepper — hidden on mobile */
.booking-card-stepper { display: none; }
.booking-card-footer  { display: none; }
.booking-desktop-header { display: none; }

/* Titles */
.booking-title {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.2;
    color: #111827;
}

.booking-sub {
    font-size: 12px;
    color: #4B5563;
    margin: 0 0 16px;
}

/* Choice list — vertical on mobile */
.booking-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    min-height: 44px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 11px;
    cursor: pointer;
    user-select: none;
}
.booking-choice:active { background: #F8F9FB; }

.booking-choice--sel {
    border: 2px solid #4F6BED;
    padding: 11px;
    background: #EEF1FD;
}

.booking-choice-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: #EEF0F4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
}
.booking-choice--sel .booking-choice-icon {
    background: #4F6BED;
    color: #FFFFFF;
}

.booking-choice-body { flex: 1; min-width: 0; }

.booking-choice-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.booking-choice-sub {
    font-size: 11px;
    color: #4B5563;
    margin-top: 1px;
}

.booking-choice-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.booking-choice--sel .booking-choice-radio { border-color: #4F6BED; }
.booking-choice--sel .booking-choice-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #4F6BED;
    border-radius: 50%;
}

/* Mobile bottom nav */
.booking-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    z-index: 20;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.booking-phone-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4B5563;
    padding: 0;
}
.booking-phone-btn:active { background: #F4F5F7; }

.booking-next-btn {
    flex: 1;
    height: 44px;
    background: #4F6BED;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.booking-next-btn:hover     { background: #3B57DC; }
.booking-next-btn:disabled  { opacity: 0.4; cursor: not-allowed; }

/* Bottom sheet */
.bsheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
}
.bsheet-backdrop.open { display: flex; }

.bsheet {
    background: #FFFFFF;
    border-radius: 18px 18px 0 0;
    padding: 16px 14px 24px;
    width: 100%;
    max-width: 600px;
}

/* Map modal - centered dialog, not bottom sheet */
#map-sheet.open { align-items: center; padding: 16px; }
#map-sheet .bsheet {
    border-radius: 12px;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
}
#map-sheet .bsheet-handle { display: none; }

/* Phone code selector */
.bphone-wrap { display: flex; gap: 6px; }
.bphone-code-sel {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #F9FAFB;
    font-size: 13px;
    color: #111827;
    cursor: pointer;
    min-width: 72px;
}
.bphone-code-sel:focus { outline: none; border-color: #4F6BED; }
.bphone-wrap .binput { flex: 1; }

/* Tariff tabs */
.btariff-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.btariff-tab {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #D1D5DB;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    background: #FFFFFF;
    transition: all .15s;
}
.btariff-tab--active {
    background: #4F6BED;
    border-color: #4F6BED;
    color: #FFFFFF;
}
.btariff-tab--ok {
    border-color: #2563EB;
    color: #2563EB;
}
.btariff-tab--ok.btariff-tab--active {
    background: #2563EB;
    color: #fff;
}
.btariff-tab--err {
    border-color: #DC2626;
    color: #DC2626;
}
.btariff-tab--err.btariff-tab--active {
    background: #DC2626;
    color: #fff;
}
.btariff-tab-pane { display: none; }
.btariff-tab-pane--active { display: block; }

/* Route calc summary in step 4 */
.broute-calc-bar {
    display: flex;
    gap: 12px;
    background: #F0F4FF;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #374151;
    flex-wrap: wrap;
}
.broute-calc-bar strong { color: #4F6BED; }

/* Arrival time badge on route point cards */
/* Timeline loader */
.broute-tl-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 8px;
    color: #6B7280;
    font-size: 13px;
}
.broute-tl-spinner {
    width: 18px; height: 18px;
    border: 2px solid #E5E7EB;
    border-top-color: #4F6BED;
    border-radius: 50%;
    animation: tl-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes tl-spin { to { transform: rotate(360deg); } }

.broute-arrival-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #EEF5FF;
    color: #1D4ED8;
    font-size: 11px;
    border-radius: 6px;
    padding: 3px 8px;
    margin-bottom: 8px;
}
.broute-arrival-badge strong { font-weight: 600; }
.broute-dep-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F0FDF4;
    color: #15803D;
    font-size: 11px;
    border-radius: 6px;
    padding: 3px 8px;
    margin-top: 4px;
    margin-bottom: 4px;
}
.broute-dep-badge strong { font-weight: 600; }

/* Address display under minimap */
.bmap-addr-display {
    font-size: 11px;
    color: #6B7280;
    margin-top: 4px;
    min-height: 16px;
    padding: 0 2px;
}
.bsheet-handle {
    width: 36px; height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    margin: 0 auto 12px;
}
.bsheet-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: #111827; }
.bsheet-sub   { font-size: 13px; color: #4B5563; margin: 0 0 12px; }

.bsheet-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    background: #4F6BED;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 8px;
}
.bsheet-call:hover { background: #3B57DC; color: #FFFFFF; text-decoration: none; }

.bsheet-close {
    width: 100%;
    min-height: 44px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    color: #4B5563;
    cursor: pointer;
}


/* ─────────────────────────────────────────────────────────
   DESKTOP DESIGN  (≥ 768px) — Figma card layout
───────────────────────────────────────────────────────── */
@media (min-width: 768px) {

    /* Mobile-only elements — hide */
    .booking-mobile-topbar  { display: none; }
    .booking-mobile-dots    { display: none; }
    .booking-mobile-nav     { display: none; }

    /* Page background */
    .booking-page {
        background: #FFFFFF;
    }

    /* Desktop header */
    .booking-desktop-header {
        display: block;
        background: #FFFFFF;
        border-bottom: 1px solid rgba(102,102,102,0.25);
        height: 73px;
    }

    .booking-desktop-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding: 0 40px 0 64px;
        max-width: 1440px;
        margin: 0 auto;
    }

    /* Content wrap — centered, with top padding */
    .booking-content-wrap {
        background: #FFFFFF;
        padding: 40px 64px 60px;
        display: flex;
        justify-content: center;
    }

    /* Card — Figma style */
    .booking-card {
        width: 100%;
        max-width: 1312px;
        background: #FFFFFF;
        border: 1px solid #DDE2E6;
        border-radius: 20px;
        padding: 37px 43px 40px;
        box-sizing: border-box;
    }

    /* Desktop stepper (inside card) */
    .booking-card-stepper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 16px;
        margin-bottom: 8px;
    }

    .booking-card-step-label {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        line-height: 17px;
        color: #83898C;
    }

    .booking-card-step-label strong { color: #5570F1; font-weight: 500; }

    .booking-card-bar {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .booking-card-bar-item {
        flex: 1;
        height: 8px;
        background: #E2E6F9;
        border: 1px solid #D8DBDF;
        border-radius: 4px;
    }

    .booking-card-bar-item--active {
        background: #A7B4F2;
        border-color: #A7B4F2;
    }

    /* Title */
    .booking-title {
        font-family: 'Poppins', sans-serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 36px;
        color: #2B2F32;
        text-align: center;
        margin: 24px 0 8px;
    }

    .booking-sub {
        font-size: 14px;
        color: #4B5563;
        text-align: center;
        margin: 0 0 32px;
    }

    /* Choices — 2-column grid */
    .booking-choices {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 780px;
        margin: 0 auto;
    }

    .booking-choice {
        padding: 16px;
        border-radius: 12px;
        min-height: 72px;
        align-items: flex-start;
    }

    .booking-choice--sel { padding: 15px; }

    .booking-choice-icon { width: 44px; height: 44px; }
    .booking-choice-title { font-size: 15px; }
    .booking-choice-sub   { font-size: 12px; }

    /* Desktop footer button (inside card) */
    .booking-card-footer {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }

    .booking-card-btn {
        width: 382px;
        height: 64px;
        background: #5570F1;
        border: none;
        border-radius: 40px;
        font-family: 'Inter', sans-serif;
        font-size: 20px;
        font-weight: 400;
        color: #FFFFFF;
        cursor: pointer;
        transition: background 0.2s;
    }
    .booking-card-btn:hover    { background: #3d55d4; }
    .booking-card-btn:disabled { background: #D9D9D9; cursor: not-allowed; }
}

/* Pane visibility */
.booking-pane              { display: none; }
.booking-pane--active      { display: block; }

/* ── Step 2: Car list ─────────────────────────────────── */

/* Done bar item */
.booking-card-bar-item--done {
    background: #5570F1;
    border-color: #5570F1;
}
.bm-dot--done { background: #4F6BED; }

/* Add car button */
.booking-add-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 1.5px dashed #D1D5DB;
    background: transparent;
    color: #4F6BED;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}
.booking-add-btn:active { background: #EEF1FD; }

/* Pax counter */
.booking-pax-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #EEF1FD;
    border-radius: 8px;
    color: #2D3FA8;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}
.booking-pax-counter strong {
    font-weight: 600;
    font-size: 15px;
}

/* Car row — mobile */
.bcar-row {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 11px;
    padding: 10px;
    margin-bottom: 8px;
}

.bcar-top {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.bcar-icon {
    width: 34px;
    height: 34px;
    background: #EEF0F4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4B5563;
}

.bcar-info { flex: 1; min-width: 0; }

.bcar-name {
    font-weight: 500;
    font-size: 13px;
    color: #111827;
}

.bcar-num {
    font-size: 10px;
    color: #9CA3AF;
}

.bcar-del {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    background: transparent;
    padding: 0;
}
.bcar-del:active { color: #DC2626; background: #FEF2F2; }

/* Car form row: select + seats */
.bcar-form {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 6px;
}

.bcar-type-sel {
    width: 100%;
    min-height: 44px;
    padding: 0 32px 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #111827;
    background: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    outline: none;
    cursor: pointer;
}
.bcar-type-sel:focus { border-color: #4F6BED; box-shadow: 0 0 0 3px #EEF1FD; }

.bcar-seats-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bcar-seats-inp {
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #111827;
    text-align: center;
    outline: none;
    background: #FFFFFF;
}
.bcar-seats-inp:focus { border-color: #4F6BED; box-shadow: 0 0 0 3px #EEF1FD; }

.bcar-seats-lbl {
    font-size: 9px;
    color: #9CA3AF;
    text-align: center;
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
}

/* ── Desktop overrides for step 2 ─────────────────────── */
@media (min-width: 768px) {

    .booking-add-btn {
        max-width: 780px;
        margin-left: auto;
        margin-right: auto;
    }

    .booking-pax-counter {
        max-width: 780px;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
    }

    /* Car list centered like choices */
    #car-list {
        max-width: 780px;
        margin: 0 auto;
    }

    .bcar-row {
        border-radius: 12px;
        padding: 14px;
    }

    .bcar-form {
        grid-template-columns: 1fr 100px;
        gap: 12px;
    }

    .bcar-type-sel, .bcar-seats-inp {
        font-size: 15px;
    }

    .bcar-seats-wrap { min-width: 100px; }
}

/* ── Desktop back button ──────────────────────────────── */
.booking-card-footer {
    display: none; /* shown via desktop media query */
}
@media (min-width: 768px) {
    .booking-card-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 40px;
    }
    .booking-card-btn-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 52px;
        padding: 0 28px;
        background: #FFFFFF;
        border: 1px solid #DDE2E6;
        border-radius: 40px;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 400;
        color: #4B5563;
        cursor: pointer;
        transition: background 0.2s;
    }
    .booking-card-btn-back:hover { background: #F4F5F7; }
}

/* ── Step 3: Route ────────────────────────────────────── */
.broute-point {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 11px;
    padding: 12px;
    margin-bottom: 8px;
}

.broute-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.broute-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4F6BED;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.broute-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.broute-actions {
    display: flex;
    gap: 4px;
}

.broute-act-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    color: #4B5563;
    padding: 0;
}
.broute-act-btn:active  { background: #F4F5F7; }
.broute-act-btn:disabled { opacity: 0.3; pointer-events: none; }
.broute-act-del { color: #DC2626; border-color: #FCA5A5; }
.broute-act-del:active { background: #FEF2F2; }

.broute-fld {
    margin-bottom: 10px;
}

.broute-lbl {
    display: block;
    font-size: 11px;
    color: #4B5563;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.broute-opt { color: #9CA3AF; font-size: 10px; }

.broute-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #111827;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}
.broute-input:focus { border-color: #4F6BED; box-shadow: 0 0 0 3px #EEF1FD; }
.broute-sel {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    cursor: pointer;
}

.broute-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 0;
}
.broute-grid2 .broute-fld { margin-bottom: 0; }

.broute-wait-toggle {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: #EEF0F4;
    border-radius: 8px;
    margin: 8px 0;
}
.broute-wait-toggle input[type=radio] { display: none; }
.broute-wait-toggle label {
    flex: 1;
    padding: 7px 4px;
    font-size: 11px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    color: #4B5563;
    font-family: 'Inter', sans-serif;
}
.broute-wait-toggle input:checked + label {
    background: #FFFFFF;
    color: #111827;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* "Куда едем?" prompt */
.broute-prompt {
    background: #EEF1FD;
    border: 1px dashed #4F6BED;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 8px;
    color: #2D3FA8;
}
.broute-prompt:active { background: #E0E7FF; }
.broute-prompt svg { display: block; margin: 0 auto 4px; color: #4F6BED; }
.broute-prompt-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.broute-prompt-sub   { font-size: 11px; opacity: 0.8; }

/* Insert between button */
.broute-insert-btn {
    width: 100%;
    padding: 6px;
    border: none;
    background: transparent;
    color: #4F6BED;
    cursor: pointer;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}
.broute-insert-btn:active { background: #EEF1FD; border-radius: 4px; }

/* ── Step 4: Tariffs ──────────────────────────────────── */
.btariff-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 11px;
    padding: 14px;
    margin-bottom: 10px;
}
.btariff-card--sel {
    border: 2px solid #4F6BED;
    padding: 13px;
}

.btariff-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.btariff-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.btariff-rating {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #F59E0B;
    margin-top: 2px;
}

.btariff-rev { color: #9CA3AF; }

.btariff-price-block { text-align: right; flex-shrink: 0; }

.btariff-price {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

.btariff-price-sub {
    font-size: 10px;
    color: #9CA3AF;
}

.btariff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.btariff-tag {
    padding: 3px 7px;
    background: #EEF0F4;
    border-radius: 4px;
    font-size: 10px;
    color: #4B5563;
    font-family: 'Inter', sans-serif;
}
.btariff-tag--green {
    background: #ECFDF5;
    color: #065F46;
}

.btariff-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px dashed #E5E7EB;
}

.btariff-pick-btn {
    padding: 8px 18px;
    border: 1px solid #4F6BED;
    border-radius: 8px;
    background: #FFFFFF;
    color: #4F6BED;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
}
.btariff-pick-btn:hover { background: #EEF1FD; }
.btariff-pick-btn--sel  { background: #4F6BED; color: #FFFFFF; }
.btariff-pick-btn--sel:hover { background: #3B57DC; }

/* ── Desktop overrides: steps 3 & 4 ──────────────────── */
@media (min-width: 768px) {
    #route-list, #route-add-zone { max-width: 780px; margin-left: auto; margin-right: auto; }
    #tariffs-list { max-width: 780px; margin-left: auto; margin-right: auto; }
    .broute-point { border-radius: 12px; padding: 16px; }
    .btariff-card { border-radius: 12px; }
    .btariff-name { font-size: 15px; }
    .btariff-price { font-size: 20px; }
}

/* ── Price card (steps 5 & 6) ─────────────────────────── */
.bprice-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 11px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.bprice-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: #111827;
}
.bprice-l { color: #4B5563; }
.bprice-row--total {
    border-top: 1px solid #E5E7EB;
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 600;
    font-size: 15px;
}

/* ── Step 5: Vehicles ─────────────────────────────────── */
.bsection-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.bvehicle-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.bvehicle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #F8F9FB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
}
.bvehicle-row:active { background: #EEF1FD; }
.bvehicle-row--sel {
    background: #EEF1FD;
    border-color: #4F6BED;
    border-width: 1.5px;
}

.bvehicle-photo {
    width: 64px;
    height: 48px;
    background: #E2E8F0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748B;
}

.bvehicle-info { flex: 1; min-width: 0; }
.bvehicle-name { font-size: 12px; font-weight: 500; color: #111827; }
.bvehicle-meta { font-size: 11px; color: #9CA3AF; margin-top: 2px; }

/* ── Step 5: per-vehicle extras (services + baggage) ──── */
.bveh-extras {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}
.bveh-extras-head {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    font-family: 'Inter', sans-serif;
}
.bveh-extras-head span { color: #6B7280; font-weight: 500; }

/* ── Step 5: Baggage ─────────────────────────────────── */
.bbaggage-list { display: flex; flex-direction: column; gap: 6px; }
.bbaggage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    min-height: 44px;
}
.bbaggage-info { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.bbaggage-name { font-size: 13px; color: #111827; font-family: 'Inter', sans-serif; }
.bbaggage-dim  { font-size: 11px; color: #9CA3AF; font-family: 'Inter', sans-serif; }
.bbaggage-tag  { font-size: 11px; color: #059669; background: #ECFDF5; border-radius: 4px; padding: 1px 6px; }
.bbaggage-tag--price { color: #D97706; background: #FFFBEB; }
.bbaggage-qty  { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bbaggage-btn  {
    width: 28px; height: 28px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: #F9FAFB;
    font-size: 16px; line-height: 1;
    color: #374151;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.bbaggage-btn:hover { background: #F3F4F6; border-color: #9CA3AF; }
.bbaggage-num  { min-width: 22px; text-align: center; font-size: 14px; font-family: 'Inter', sans-serif; color: #111827; }

/* ── Step 6: Route summary ────────────────────────────── */
.broute-summary {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 11px;
    padding: 12px;
    margin-bottom: 4px;
}

.brsm-row {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    align-items: flex-start;
}
.brsm-time {
    min-width: 50px;
    font-size: 11px;
    color: #4B5563;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}
.brsm-time strong { display: block; color: #111827; font-size: 12px; }
.brsm-mark { display: flex; flex-direction: column; align-items: center; padding-top: 4px; flex-shrink: 0; }
.brsm-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #4F6BED; background: #FFFFFF; }
.brsm-dot--filled { background: #4F6BED; }
.brsm-line { flex: 1; width: 2px; background: #D1D5DB; margin: 2px 0; min-height: 12px; }
.brsm-text { flex: 1; min-width: 0; font-size: 11px; font-family: 'Inter', sans-serif; }
.brsm-text strong { display: block; color: #111827; font-size: 12px; }
.brsm-addr { color: #4B5563; word-break: break-word; }

/* ── Step 6: Contact form ─────────────────────────────── */
.bform-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bfld { margin-bottom: 10px; }
.bfld-lbl { display: block; font-size: 11px; color: #4B5563; margin-bottom: 5px; font-family: 'Inter', sans-serif; }
.breq { color: #DC2626; }
.binput {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #111827;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}
.binput:focus { border-color: #4F6BED; box-shadow: 0 0 0 3px #EEF1FD; }

.binfo-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #EEF1FD;
    border-radius: 8px;
    font-size: 12px;
    color: #2D3FA8;
    font-family: 'Inter', sans-serif;
    margin: 10px 0;
}
.binfo-note svg { flex-shrink: 0; margin-top: 1px; }

.bconsent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #4B5563;
    margin: 10px 0;
    cursor: pointer;
    padding: 6px 0;
    font-family: 'Inter', sans-serif;
}
.bconsent-label input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: #4F6BED; }
.bconsent-label a { color: #4F6BED; }

/* ── Success screen ───────────────────────────────────── */
.bsuccess {
    text-align: center;
    padding: 24px 0;
}
.bsuccess-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ECFDF5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.bsuccess-title { font-size: 22px; font-weight: 600; margin: 0 0 6px; color: #111827; font-family: 'Inter', sans-serif; }
.bsuccess-sub   { font-size: 13px; color: #4B5563; margin: 0 0 24px; font-family: 'Inter', sans-serif; }

.bsuccess-steps { text-align: left; max-width: 360px; margin: 0 auto 24px; }
.bss-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.bss-num {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 500; flex-shrink: 0;
    background: #EEF1FD; color: #2D3FA8;
    font-family: 'Inter', sans-serif;
}
.bss-num--pend { background: #EEF0F4; color: #9CA3AF; }
.bss-t { margin: 0; font-size: 13px; font-weight: 500; color: #111827; font-family: 'Inter', sans-serif; }
.bss-s { margin: 3px 0 0; font-size: 11px; color: #9CA3AF; font-family: 'Inter', sans-serif; }

.bsuccess-home {
    display: inline-block;
    padding: 12px 32px;
    background: #4F6BED;
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.bsuccess-home:hover { background: #3B57DC; color: #FFFFFF; text-decoration: none; }

/* ── Desktop: steps 5-6 ───────────────────────────────── */
@media (min-width: 768px) {
    .bprice-card, .bform-grid2, #step5-list, .broute-summary,
    #contact-fields, #company-fields, .binfo-note, .bconsent-label {
        max-width: 780px;
        margin-left: auto;
        margin-right: auto;
    }
    .bprice-card { margin-bottom: 20px; }
    .bsection-title { max-width: 780px; margin-left: auto; margin-right: auto; }
    .bvehicle-photo { width: 80px; height: 56px; }
    .bvehicle-name  { font-size: 13px; }
    .bsuccess-title { font-size: 26px; }
}

/* ── Route view tabs (step 3) ─────────────────────────── */
.broute-view-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: #EEF0F4;
    border-radius: 8px;
    margin-bottom: 12px;
}
.broute-view-tab {
    flex: 1;
    padding: 8px 4px;
    font-size: 12px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
}
.broute-view-tab--active {
    background: #FFFFFF;
    color: #111827;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.broute-tab-pane            { display: none; }
.broute-tab-pane--active    { display: block; }

/* Map stub */
.broute-map-stub {
    background: linear-gradient(135deg, #e8f0e2 0%, #d4e5cf 100%);
    border-radius: 11px;
    height: 200px;
    position: relative;
    overflow: hidden;
}
.broute-map-lbl {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 10px;
    color: #64748B;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Timeline (step 3 График tab) */
/* ── График: timeline + map side by side ─────────────────── */
.broute-tl-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.broute-tl-side {
    flex: 1 1 0;
    min-width: 0;
}
.broute-tl-mapside {
    flex: 0 0 46%;
    min-height: 320px;
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 12px;
}
#route-tl-map {
    width: 100%;
    height: 100%;
    min-height: 320px;
}
@media (max-width: 640px) {
    .broute-tl-layout { flex-direction: column; }
    .broute-tl-side { min-width: 0; width: 100%; }
    .broute-tl-mapside { flex: 1 1 auto; width: 100%; min-height: 220px; position: static; }
    #route-tl-map { min-height: 220px; }
}

.broute-timeline {
    font-family: 'Inter', sans-serif;
}

/* Сводка по маршруту */
.btl-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 0 2px 12px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 14px;
}
.btl-sum-item { font-size: 12px; color: #6B7280; }
.btl-sum-item strong { color: #111827; font-weight: 600; margin-left: 4px; }

.btl-error {
    font-size: 12px;
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

/* Карточка остановки */
.btl-stop {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
}
.btl-stop-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}
.btl-stop-num {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #4F6BED;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btl-stop-titles { min-width: 0; }
.btl-stop-title { font-size: 13px; font-weight: 600; color: #111827; }
.btl-stop-addr { font-size: 11px; color: #6B7280; }
.btl-stop-body { display: flex; }
.btl-col {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    border-right: 1px solid #E5E7EB;
    min-width: 0;
}
.btl-col:last-child { border-right: none; }
.btl-col--wait { background: #FFFBEB; }
.btl-col-lbl {
    font-size: 10px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 3px;
}
.btl-col-time { font-size: 16px; font-weight: 600; color: #111827; }
.btl-col-date { display: block; font-size: 10px; color: #9CA3AF; font-weight: 400; }
.btl-col-dur { font-size: 14px; font-weight: 600; color: #D97706; }

/* Коннектор между остановками */
.btl-conn {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}
.btl-conn-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #C7D2FE;
}
.btl-conn-info {
    padding-left: 44px;
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* ── Filter chips (step 4) ────────────────────────────── */
.bfilter-chips {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.bfilter-chips::-webkit-scrollbar { display: none; }
.bchip {
    padding: 6px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 100px;
    background: #FFFFFF;
    font-size: 12px;
    cursor: pointer;
    color: #4B5563;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}
.bchip--active { background: #4F6BED; color: #FFFFFF; border-color: #4F6BED; }

/* Tariff expand button */
.btariff-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #E5E7EB;
}
.btariff-expand-btn {
    background: none;
    border: none;
    color: #4F6BED;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.btariff-cars { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.btariff-car-card {
    background: #F8F9FB;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.btariff-car-photo {
    width: 80px;
    height: 56px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btariff-car-name { font-size: 12px; font-weight: 500; color: #111827; font-family: 'Inter', sans-serif; }
.btariff-car-meta { font-size: 11px; color: #9CA3AF; margin-top: 2px; font-family: 'Inter', sans-serif; }

/* ── Step 5: vehicle plate ────────────────────────────── */
.bvehicle-plate { font-size: 10px; color: #4F6BED; margin-top: 2px; font-family: 'Inter', sans-serif; }

/* ── Step 6: route section ────────────────────────────── */
.broute-summary-wrap {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 11px;
    padding: 12px;
    margin-bottom: 14px;
}
.broute-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.broute-summary-label {
    font-size: 11px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}
.bedit-link {
    font-size: 11px;
    color: #4F6BED;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 8px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
}
.bedit-link:active { background: #EEF1FD; }
.bmap-btn {
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    background: #FFFFFF;
    border: 1px solid #4F6BED;
    color: #4F6BED;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.bmap-btn:active { background: #EEF1FD; }

.bcontact-heading {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 16px 0 10px;
    font-family: 'Inter', sans-serif;
}

/* Route summary meta */
.brsm-meta {
    padding-left: 60px;
    padding-bottom: 4px;
    font-size: 10px;
    color: #9CA3AF;
    font-family: 'Inter', sans-serif;
}

/* ── Desktop overrides for new elements ───────────────── */
@media (min-width: 768px) {
    .broute-view-tabs { max-width: 780px; margin-left: auto; margin-right: auto; margin-bottom: 16px; }
    .bfilter-chips    { max-width: 780px; margin-left: auto; margin-right: auto; }
    .broute-map-stub  { height: 280px; }
    .broute-summary-wrap, .bcontact-heading, .binfo-note, .bconsent-label { max-width: 780px; margin-left: auto; margin-right: auto; }
    .btariff-cars { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .btariff-car-card { flex: 0 0 calc(50% - 5px); }
}

/* ── Point type tabs (step 3) ─────────────────────────── */
.bptype-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: #EEF0F4;
    border-radius: 8px;
    margin-bottom: 10px;
}
.bptype-tab {
    flex: 1;
    padding: 7px 3px;
    font-size: 11px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: 'Inter', sans-serif;
    user-select: none;
}
.bptype-tab--active {
    background: #FFFFFF;
    color: #111827;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.bptype-tab:active { opacity: 0.7; }

/* Map pick placeholder */
.broute-map-pick {
    padding: 16px;
    text-align: center;
    background: #F8F9FB;
    border: 1px dashed #D1D5DB;
    border-radius: 8px;
    color: #4B5563;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}
.broute-map-pick:active { background: #EEF1FD; }

/* ── Desktop dispatcher button ────────────────────────── */
.booking-card-btn-phone { display: none; }

@media (min-width: 768px) {
    .booking-card-footer {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Left group: back */
    .booking-card-btn-back { order: 1; }

    /* Center: continue */
    .booking-card-btn { order: 2; }

    /* Right: dispatcher */
    .booking-card-btn-phone {
        order: 3;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 52px;
        padding: 0 20px;
        background: #FFFFFF;
        border: 1px solid #E5E7EB;
        border-radius: 40px;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #4B5563;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
    }
    .booking-card-btn-phone:hover {
        border-color: #4F6BED;
        color: #4F6BED;
    }
}

/* ═══════════════════════════════════════════════════
   POST-STEPS: Договор / Счёт / Способ оплаты
   ═══════════════════════════════════════════════════ */

.bdoc-preview {
    background: #F8F9FB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 14px;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 12px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 4px;
}
.bdoc-preview h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px;
}
.bdoc-preview p { margin: 0 0 8px; }
.bdoc-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.bdoc-btn {
    flex: 1;
    min-height: 44px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #6B7280;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.bdoc-btn:hover { background: #F8F9FB; border-color: #D1D5DB; }

.bpayment-method {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    margin-bottom: 8px;
    background: #FFFFFF;
    transition: border-color 0.15s;
}
.bpayment-method--sel {
    border-color: #4F6BED !important;
    border-width: 2px !important;
    padding: 11px !important;
    background: #EEF1FD;
}
.bpayment-method:hover:not(.bpayment-method--sel) { border-color: #D1D5DB; }
.bpm-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.bpm-title {
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
}
.bpm-title svg { color: #4F6BED; flex-shrink: 0; }
.bpm-amount {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    white-space: nowrap;
}
.bpm-meta {
    font-size: 11px;
    color: #6B7280;
    margin-top: 5px;
    line-height: 1.35;
}

.broute-input--readonly {
    background: #F9FAFB !important;
    color: #9CA3AF !important;
    cursor: default !important;
}
.broute-point-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid #E5E7EB;
}
.broute-map-coords {
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 6px;
    padding: 4px 0;
}

.broute-wait-hm {
    display: flex;
    align-items: center;
    gap: 6px;
}
.broute-wait-hm .broute-input {
    width: 72px;
    flex: none;
    text-align: center;
}
.broute-wait-unit {
    font-size: 13px;
    color: #6B7280;
    white-space: nowrap;
}

.broute-auto-note {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════
   VALIDATION (same approach as admin/rent/dom.js)
   ═══════════════════════════════════════════════════ */

.binput.is-invalid,
.broute-input.is-invalid,
.bcar-seats-inp.is-invalid,
.bcar-type-sel.is-invalid {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.invalid-feedback {
    display: none;
    font-size: 11px;
    color: #DC2626;
    margin-top: 3px;
    line-height: 1.3;
}
.invalid-feedback.d-block { display: block; }

/* ─── Car selection modal ─── */
#car-sheet.open { align-items: center; padding: 16px; }
#car-sheet .bsheet.bcars-sheet {
    border-radius: 14px;
    max-width: 640px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 16px;
}
.bcars-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bcars-x {
    border: none; background: transparent; font-size: 24px; line-height: 1;
    color: #9CA3AF; cursor: pointer; padding: 0 4px;
}
.bcars-x:hover { color: #4B5563; }
.bcars-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bcars-search { position: relative; flex: 1 1 220px; display: flex; align-items: center; }
.bcars-search svg { position: absolute; left: 10px; color: #9CA3AF; pointer-events: none; }
.bcars-search input {
    width: 100%; height: 38px; padding: 0 10px 0 30px;
    border: 1px solid #D1D5DB; border-radius: 8px; font-size: 13px; color: #111827;
    font-family: 'Inter', sans-serif; background: #F9FAFB;
}
.bcars-search input:focus { outline: none; border-color: #4F6BED; background: #fff; }
.bcars-sort { display: flex; align-items: center; gap: 6px; }
.bcars-sort-lbl { font-size: 12px; color: #6B7280; }
.bcars-sort-btn {
    height: 32px; padding: 0 10px; border: 1px solid #D1D5DB; border-radius: 8px;
    background: #fff; font-size: 12px; color: #374151; cursor: pointer; white-space: nowrap;
}
.bcars-sort-btn.-active { border-color: #4F6BED; color: #4F6BED; background: #EEF1FD; }
.bcars-dir { font-size: 10px; }
.bcars-cnt { font-size: 12px; color: #6B7280; margin: 10px 0 6px; }
.bcars-cnt strong { color: #111827; }
.bcars-list { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.bcars-empty { padding: 28px; text-align: center; color: #9CA3AF; font-size: 13px; }
.bcars-card {
    display: flex; gap: 10px; align-items: center; padding: 8px;
    border: 1px solid #E5E7EB; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.bcars-card:hover { border-color: #C7D0F6; }
.bcars-card.-sel { border-color: #4F6BED; background: #EEF1FD; }
.bcars-thumb {
    width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: #F3F4F6;
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #9CA3AF;
}
.bcars-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.bcars-info { flex: 1 1 auto; min-width: 0; }
.bcars-name { font-size: 14px; font-weight: 600; color: #111827; }
.bcars-meta { font-size: 12px; color: #6B7280; margin-top: 2px; }
.bcars-meta span + span::before { content: '·'; margin: 0 5px; color: #D1D5DB; }
.bcars-right { flex: 0 0 auto; text-align: right; }
.bcars-price { font-size: 14px; font-weight: 600; color: #111827; }
.bcars-price-sub { font-size: 11px; color: #9CA3AF; }
.bcars-radio { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #4F6BED; }
.bcars-pgn { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 10px 0 4px; }
.bcars-pgn button {
    min-width: 30px; height: 30px; border: 1px solid #D1D5DB; border-radius: 7px;
    background: #fff; font-size: 12px; color: #374151; cursor: pointer;
}
.bcars-pgn button.-active { border-color: #4F6BED; background: #4F6BED; color: #fff; }
.bcars-foot { display: flex; gap: 10px; margin-top: 12px; }
.bcars-lb {
    position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none;
    align-items: center; justify-content: center; z-index: 120; padding: 24px;
}
.bcars-lb.open { display: flex; }
.bcars-lb img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }

/* выбранное авто в карточке машины (шаг 5) */
.bveh-car-sel {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 6px 0 2px; padding: 8px 10px; border: 1px solid #C7D0F6; background: #EEF1FD; border-radius: 8px;
}
.bveh-car-name { font-size: 13px; font-weight: 600; color: #1F2937; display: flex; align-items: center; }
.bveh-car-name svg { color: #4F6BED; }
.bveh-car-change {
    flex: 0 0 auto; border: none; background: transparent; color: #4F6BED;
    font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0;
}
.bveh-car-btn { width: 100%; justify-content: center; }
