
:root {
    --sc-cab-red: #e40538;
    --sc-cab-red-dark: #c90431;
    --sc-cab-ink: #142033;
    --sc-cab-muted: #788493;
    --sc-cab-border: #e1e5ea;
    --sc-cab-soft: #f6f7f9;
    --sc-cab-teal: #073f44;
}

.sc-cab-page {
    width: 100%;
    min-height: 660px;
    background: #f5f6f8;
    overflow: hidden;
}

.sc-cab-shell {
    width: 100%;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(430px, 42%) minmax(0, 58%);
    background: #fff;
}

.sc-cab-app {
    position: relative;
    min-width: 0;
    height: 660px;
    overflow: hidden;
    background: #f7f7f8;
    border-right: 1px solid #e2e5e8;
}

.sc-cab-main-panel,
.sc-cab-location-panel {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #bfc5cc transparent;
}

.sc-cab-main-panel {
    padding: 25px 28px 20px;
}

.sc-cab-main-head {
    margin-bottom: 17px;
}

.sc-cab-daily-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(228, 5, 56, .09);
    color: var(--sc-cab-red);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.sc-cab-daily-pill svg {
    width: 17px;
    height: 17px;
}

.sc-cab-main-head h1 {
    margin: 12px 0 5px;
    color: var(--sc-cab-ink);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.65px;
}

.sc-cab-main-head p {
    margin: 0;
    color: #788392;
    font-size: 12px;
    line-height: 1.5;
}

.sc-cab-route-card {
    position: relative;
    margin-bottom: 18px;
}

.sc-cab-route-row {
    position: relative;
    width: 100%;
    min-height: 55px;
    display: grid;
    grid-template-columns: 44px 20px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    margin-bottom: 8px;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.sc-cab-route-row:hover {
    border-color: #cdd4da;
    background: #fdfdfd;
}

.sc-cab-route-row:focus-visible {
    outline: none;
    border-color: rgba(228, 5, 56, .55);
    box-shadow: 0 0 0 4px rgba(228, 5, 56, .06);
}

.sc-cab-route-label {
    color: #84909b;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .03em;
}

.sc-cab-route-dot {
    width: 9px;
    height: 9px;
    justify-self: center;
    border-radius: 50%;
}

.sc-cab-route-dot-from {
    background: var(--sc-cab-red);
    box-shadow: 0 0 0 4px rgba(228, 5, 56, .08);
}

.sc-cab-route-pin,
.sc-cab-route-clock {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    justify-self: center;
    color: var(--sc-cab-red);
}

.sc-cab-route-pin svg,
.sc-cab-route-clock svg,
.sc-cab-route-action svg,
.sc-cab-route-chevron svg {
    width: 19px;
    height: 19px;
}

.sc-cab-route-value {
    min-width: 0;
    overflow: hidden;
    color: #1e2937;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-cab-route-value.is-placeholder {
    color: #919aa5;
    font-weight: 500;
}

.sc-cab-route-action,
.sc-cab-route-chevron {
    display: grid;
    place-items: center;
    justify-self: end;
    color: #87929d;
}

.sc-cab-route-chevron-down svg {
    width: 17px;
    height: 17px;
}

.sc-cab-when-menu {
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    padding: 7px;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 15px 32px rgba(26, 39, 55, .12);
}

.sc-cab-when-menu[hidden] {
    display: none !important;
}

.sc-cab-when-menu button {
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #283441;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.sc-cab-when-menu button:hover {
    background: #f5f6f8;
}

.sc-cab-section-label {
    margin: 0 0 8px 2px;
    color: #6f7a86;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
}

.sc-cab-rides-list {
    overflow: hidden;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    background: #fff;
}

.sc-cab-ride {
    width: 100%;
    min-height: 65px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 66px 24px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #e5e8eb;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}

.sc-cab-ride:last-child {
    border-bottom: 0;
}

.sc-cab-ride:hover {
    background: #fafbfc;
}

.sc-cab-ride.is-selected {
    position: relative;
    z-index: 1;
    background: #fff7f9;
    box-shadow: inset 3px 0 0 var(--sc-cab-red);
}

.sc-cab-ride-icon {
    width: 50px;
    display: grid;
    place-items: center;
}

.sc-cab-ride-icon svg {
    width: 45px;
    height: 30px;
}

.sc-cab-ride-copy {
    min-width: 0;
}

.sc-cab-ride-copy strong,
.sc-cab-ride-copy small,
.sc-cab-ride-eta strong,
.sc-cab-ride-eta small {
    display: block;
}

.sc-cab-ride-copy strong {
    color: #172230;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 750;
}

.sc-cab-ride-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: #7d8792;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-cab-ride-eta {
    text-align: right;
}

.sc-cab-ride-eta strong {
    color: #35404b;
    font-size: 10px;
    font-weight: 650;
}

.sc-cab-ride-eta small {
    margin-top: 2px;
    color: #98a1aa;
    font-size: 9px;
}

.sc-cab-ride-chevron {
    color: #a0a8b0;
}

.sc-cab-ride-chevron svg {
    width: 17px;
    height: 17px;
}

.sc-cab-book-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 13px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #eb0b3d, #cf002f);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(228, 5, 56, .17);
    transition: opacity .2s ease, transform .2s ease;
}

.sc-cab-book-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.sc-cab-book-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.sc-cab-book-btn svg {
    width: 18px;
    height: 18px;
}

.sc-cab-safe-note {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 7px;
    background: #fff;
    color: #6e7984;
    font-size: 9.5px;
    font-weight: 550;
}

.sc-cab-safe-note svg {
    width: 16px;
    height: 16px;
    color: var(--sc-cab-red);
}

.sc-cab-status {
    min-height: 0;
    margin: 6px 0 0;
    color: #66717d;
    font-size: 10px;
    text-align: center;
}

/* =========================================================
   LOCATION SEARCH MODE
========================================================= */

.sc-cab-location-panel[hidden] {
    display: none !important;
}

.sc-cab-location-panel {
    padding: 0 18px 24px;
    background: #f7f7f8;
}

.sc-cab-location-head {
    position: sticky;
    z-index: 5;
    top: 0;
    min-height: 62px;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    background: rgba(247,247,248,.97);
    backdrop-filter: blur(10px);
}

.sc-cab-location-head h2 {
    grid-column: 2;
    margin: 0;
    color: #141c27;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.sc-cab-back-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222d39;
    cursor: pointer;
}

.sc-cab-back-btn:hover {
    background: #eceef1;
}

.sc-cab-back-btn svg {
    width: 19px;
    height: 19px;
}

.sc-cab-location-search {
    min-height: 54px;
    display: flex;
    align-items: center;
    border: 1px solid #dfe3e7;
    border-radius: 6px;
    background: #fff;
}

.sc-cab-location-search > span {
    width: 52px;
    display: grid;
    place-items: center;
    color: #9aa3ac;
    flex: 0 0 auto;
}

.sc-cab-location-search svg {
    width: 21px;
    height: 21px;
}

.sc-cab-location-search input {
    width: 100%;
    height: 52px;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2a36;
    font: inherit;
    font-size: 13px;
}

.sc-cab-location-search input::placeholder {
    color: #989fa8;
}

.sc-cab-location-suggestions {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(27, 39, 53, .07);
}

.sc-cab-location-suggestions[hidden] {
    display: none !important;
}

.sc-cab-location-suggestion {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
    color: #26313c;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sc-cab-location-suggestion:last-child {
    border-bottom: 0;
}

.sc-cab-location-suggestion:hover {
    background: #f9fafb;
}

.sc-cab-location-suggestion svg {
    width: 18px;
    height: 18px;
    color: var(--sc-cab-red);
    flex: 0 0 auto;
}

.sc-cab-location-suggestion span {
    min-width: 0;
}

.sc-cab-location-suggestion strong,
.sc-cab-location-suggestion small {
    display: block;
}

.sc-cab-location-suggestion strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-cab-location-suggestion small {
    margin-top: 2px;
    color: #9099a2;
    font-size: 9.5px;
}

.sc-cab-map-block {
    margin-top: 10px;
}

.sc-cab-map-block[hidden],
.sc-cab-location-empty[hidden] {
    display: none !important;
}

.sc-cab-map {
    position: relative;
    height: 250px;
    overflow: hidden;
    border: 1px solid #dde2e7;
    border-radius: 6px;
    background:
        linear-gradient(30deg, transparent 38%, rgba(255,255,255,.95) 39%, rgba(255,255,255,.95) 45%, transparent 46%),
        linear-gradient(120deg, transparent 40%, rgba(255,255,255,.95) 41%, rgba(255,255,255,.95) 47%, transparent 48%),
        #edf1f7;
}

.sc-cab-map::before,
.sc-cab-map::after {
    content: '';
    position: absolute;
    border-radius: 3px;
    background: #dde4ef;
}

.sc-cab-map::before {
    width: 28%;
    height: 24%;
    left: 13%;
    top: 14%;
    transform: rotate(-8deg);
}

.sc-cab-map::after {
    width: 31%;
    height: 18%;
    right: 8%;
    bottom: 14%;
    transform: rotate(10deg);
}

.sc-cab-map-road {
    position: absolute;
    z-index: 2;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 0 0 1px rgba(215,222,232,.7);
}

.road-one {
    width: 110%;
    left: -5%;
    top: 35%;
    transform: rotate(15deg);
}

.road-two {
    width: 85%;
    left: 9%;
    top: 61%;
    transform: rotate(-16deg);
}

.road-three {
    width: 72%;
    left: -7%;
    top: 75%;
    transform: rotate(34deg);
}

.road-four {
    width: 68%;
    right: -5%;
    top: 18%;
    transform: rotate(62deg);
}

.sc-cab-map-place {
    position: absolute;
    z-index: 3;
    color: #748294;
    font-size: 8.5px;
    font-weight: 650;
}

.place-one { left: 9%; top: 17%; }
.place-two { right: 10%; top: 28%; }
.place-three { left: 15%; bottom: 14%; }

.sc-cab-map-pin {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 49%;
    width: 29px;
    height: 38px;
    color: var(--sc-cab-red);
    transform: translate(-50%, -70%);
    filter: drop-shadow(0 5px 4px rgba(48, 59, 72, .22));
}

.sc-cab-map-pin svg {
    width: 100%;
    height: 100%;
}

.sc-cab-map-hint {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(28, 35, 43, .78);
    color: #fff;
    font-size: 9.5px;
    white-space: nowrap;
}

.sc-cab-current-location {
    width: 100%;
    min-height: 51px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 0 11px;
    border: 1px solid #dde2e7;
    border-radius: 6px;
    background: #fff;
    color: #172230;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sc-cab-current-location > span {
    display: grid;
    place-items: center;
    color: #9da5ae;
}

.sc-cab-current-location svg {
    width: 18px;
    height: 18px;
}

.sc-cab-current-location strong {
    font-size: 11px;
    font-weight: 700;
}

.sc-cab-current-location small {
    justify-self: end;
    color: var(--sc-cab-red);
    font-size: 9px;
    font-weight: 700;
}

.sc-cab-location-empty {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6d7885;
    text-align: center;
}

.sc-cab-location-empty-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #fff;
    color: #b2bac2;
    box-shadow: 0 8px 25px rgba(31, 43, 56, .06);
}

.sc-cab-location-empty-icon svg {
    width: 37px;
    height: 37px;
}

.sc-cab-location-empty strong {
    color: #394550;
    font-size: 13px;
}

.sc-cab-location-empty p {
    max-width: 280px;
    margin: 6px 0 0;
    font-size: 10.5px;
    line-height: 1.55;
}

.sc-cab-location-status {
    min-height: 16px;
    margin: 8px 0 0;
    color: #6c7782;
    font-size: 10px;
    text-align: center;
}

/* =========================================================
   RIGHT VISUAL
========================================================= */

.sc-cab-visual {
    position: relative;
    min-width: 0;
    min-height: 660px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.sc-cab-visual-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(11,21,33,.04), transparent 20%);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1020px) {
    .sc-cab-shell {
        grid-template-columns: minmax(390px, 48%) minmax(0, 52%);
    }

    .sc-cab-main-panel {
        padding-inline: 20px;
    }

    .sc-cab-main-head h1 {
        font-size: 23px;
    }
}

@media (max-width: 760px) {
    .sc-cab-page,
    .sc-cab-shell,
    .sc-cab-app {
        min-height: auto;
    }

    .sc-cab-shell {
        display: block;
    }

    .sc-cab-app {
        height: auto;
        min-height: calc(100vh - 80px);
        border-right: 0;
    }

    .sc-cab-main-panel,
    .sc-cab-location-panel {
        height: auto;
        min-height: calc(100vh - 80px);
        overflow-y: visible;
    }

    .sc-cab-main-panel {
        padding: 20px 13px 22px;
    }

    .sc-cab-visual {
        display: none;
    }

    .sc-cab-main-head {
        margin-bottom: 14px;
    }

    .sc-cab-main-head h1 {
        font-size: 22px;
    }

    .sc-cab-main-head p {
        font-size: 11px;
    }

    .sc-cab-route-row {
        min-height: 54px;
        grid-template-columns: 42px 18px minmax(0, 1fr) 26px;
    }

    .sc-cab-ride {
        min-height: 63px;
        grid-template-columns: 52px minmax(0, 1fr) 56px 20px;
        padding-inline: 8px;
    }

    .sc-cab-ride-copy small {
        max-width: 220px;
    }

    .sc-cab-location-panel {
        padding-inline: 10px;
        background: #f7f7f8;
    }

    .sc-cab-location-head {
        min-height: 58px;
    }

    .sc-cab-map {
        height: min(42vh, 310px);
    }

    .sc-cab-location-empty {
        min-height: 48vh;
    }
}

@media (max-width: 390px) {
    .sc-cab-main-panel {
        padding-inline: 8px;
    }

    .sc-cab-ride {
        grid-template-columns: 47px minmax(0, 1fr) 50px 16px;
    }

    .sc-cab-ride-icon {
        width: 44px;
    }

    .sc-cab-ride-icon svg {
        width: 41px;
    }

    .sc-cab-ride-copy strong {
        font-size: 11.5px;
    }

    .sc-cab-ride-copy small {
        max-width: 180px;
        font-size: 9.5px;
    }

    .sc-cab-safe-note {
        font-size: 9px;
    }
}
