/* Client active-trip widget — EV-style layered panel (map + dark hero + light cards) */
#ml-client-trip-widget {
    --ml-trip-accent: #3b82f6;
    --ml-trip-accent-soft: rgba(59, 130, 246, 0.15);
    --ml-trip-dark: #0f1419;
    --ml-trip-dark-2: #1a222d;
    --ml-trip-light: #f3f5f8;
    --ml-trip-card: #ffffff;
    --ml-trip-text: #0f172a;
    --ml-trip-text-inv: #f8fafc;
    --ml-trip-muted: #64748b;
    --ml-trip-muted-inv: #94a3b8;
    --ml-trip-radius: 22px;
    --ml-trip-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    font-family: 'Inter', system-ui, sans-serif;
    pointer-events: none;
}

#ml-client-trip-widget * {
    box-sizing: border-box;
}

#ml-client-trip-widget .ml-trip-root {
    pointer-events: auto;
}

/* —— Collapsed bubble —— */
.ml-trip-bubble {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(5.75rem, calc(env(safe-area-inset-bottom) + 4.5rem));
    z-index: 11800;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    min-width: 4.5rem;
    max-width: 4.5rem;
    padding: 3px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: var(--ml-trip-dark);
    color: var(--ml-trip-text-inv);
    box-shadow: var(--ml-trip-shadow);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    text-align: left;
    overflow: hidden;
    transition:
        width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.ml-trip-bubble--placed {
    transition:
        width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease;
}

.ml-trip-bubble--dragging {
    cursor: grabbing;
    transition: none;
    box-shadow: 0 32px 72px rgba(15, 23, 42, 0.42);
    z-index: 11810;
}

.ml-trip-bubble__compact {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ml-trip-dark-2);
    flex-shrink: 0;
}

.ml-trip-bubble__compact--desktop {
    display: none;
}

.ml-trip-bubble__full {
    display: none;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.ml-trip-bubble__compact-img {
    width: 150px
}

@media (max-width: 767px) {
    .ml-trip-bubble {
        width: 4.25rem;
        height: 4.25rem;
        min-width: 4.25rem;
        max-width: 4.25rem;
        bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 4rem));
    }

    .ml-trip-bubble__compact--desktop {
        display: none !important;
    }

    .ml-trip-bubble__compact--mobile {
        display: flex;
    }

    .ml-trip-bubble__compact-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .ml-trip-bubble__compact-img--vehicle {
        object-fit: contain;
        padding: 0.15rem;
        background: #0a1020;
    }

    .ml-trip-bubble__compact-fallback {
        font-size: 1.35rem;
        color: var(--ml-trip-accent);
    }

    .ml-trip-bubble__pulse--compact {
        top: 6px;
        left: 6px;
        z-index: 2;
    }

    .ml-trip-bubble:not(.ml-trip-bubble--placed):not(.ml-trip-bubble--dragging):hover {
        transform: scale(1.04);
    }

    .ml-trip-bubble--phase-arrived {
        border-color: rgba(245, 158, 11, 0.55);
        box-shadow: 0 12px 32px rgba(245, 158, 11, 0.22);
    }

    .ml-trip-bubble--phase-in_progress {
        border-color: rgba(59, 130, 246, 0.55);
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.22);
    }
}

@media (min-width: 768px) {
    .ml-trip-bubble__compact--mobile {
        display: none !important;
    }

    .ml-trip-bubble__compact--desktop {
        display: flex;
    }

    .ml-trip-bubble--phase-arrived {
        border-color: rgba(245, 158, 11, 0.55);
        box-shadow: 0 12px 32px rgba(245, 158, 11, 0.22);
    }

    .ml-trip-bubble--phase-in_progress {
        border-color: rgba(59, 130, 246, 0.55);
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.22);
    }
}

/* Tablet/desktop: expand full bubble on hover (click still opens modal) */
@media (min-width: 768px) and (hover: hover) {
    .ml-trip-bubble:hover:not(.ml-trip-bubble--dragging),
    .ml-trip-bubble:focus-visible:not(.ml-trip-bubble--dragging) {
        width: min(92vw, 400px);
        height: auto;
        min-width: 0;
        max-width: min(92vw, 400px);
        min-height: 76px;
        border-radius: 999px;
        padding: 0;
        transform: translateY(-3px);
        box-shadow: 0 28px 64px rgba(15, 23, 42, 0.38);
    }

    .ml-trip-bubble:hover:not(.ml-trip-bubble--dragging) .ml-trip-bubble__compact,
    .ml-trip-bubble:focus-visible:not(.ml-trip-bubble--dragging) .ml-trip-bubble__compact {
        display: none !important;
    }

    .ml-trip-bubble:hover:not(.ml-trip-bubble--dragging) .ml-trip-bubble__full,
    .ml-trip-bubble:focus-visible:not(.ml-trip-bubble--dragging) .ml-trip-bubble__full {
        display: flex;
    }
}

.ml-trip-bubble__vehicle {
    position: relative;
    flex: 0 0 88px;
    min-height: 76px;
    overflow: hidden;
    border-radius: 999px 0 0 999px;
}

.ml-trip-bubble__vehicle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-trip-bubble__vehicle-fallback {
    width: 100%;
    height: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ml-trip-dark-2);
    color: var(--ml-trip-accent);
    font-size: 1.5rem;
}

.ml-trip-bubble__pulse {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    animation: ml-trip-pulse 1.8s ease-in-out infinite;
}

.ml-trip-bubble--phase-arrived .ml-trip-bubble__pulse {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28);
}

.ml-trip-bubble--phase-in_progress .ml-trip-bubble__pulse {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.28);
}

.ml-trip-bubble--phase-in_progress .ml-trip-bubble__status {
    color: #93c5fd;
}

@keyframes ml-trip-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.9); }
}

.ml-trip-bubble__body {
    flex: 1;
    padding: 0.7rem 0.5rem 0.7rem 0.65rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ml-trip-bubble__status {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 0.15rem;
}

.ml-trip-bubble__vehicle-name {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-trip-bubble__meta {
    font-size: 0.72rem;
    color: var(--ml-trip-muted-inv);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-trip-bubble__driver {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem 0.45rem 0.35rem;
    gap: 0.2rem;
}

.ml-trip-bubble__driver img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.ml-trip-bubble__chevron {
    color: var(--ml-trip-muted-inv);
    font-size: 0.7rem;
}

/* —— Full panel —— */
.ml-trip-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 11850;
    background: rgba(15, 20, 25, 0.55);
    backdrop-filter: blur(4px);
    animation: ml-trip-fade-in 0.2s ease;
}

@keyframes ml-trip-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ml-trip-sheet {
    position: fixed;
    inset: 0;
    z-index: 11860;
    display: flex;
    flex-direction: column;
    background: var(--ml-trip-light);
    color: var(--ml-trip-text);
    animation: ml-trip-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.ml-trip-sheet__layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.ml-trip-sheet__panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

@keyframes ml-trip-slide-up {
    from { transform: translateY(12%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

body.ml-trip-sheet-open {
    overflow: hidden;
}

/* Map stage (top) */
.ml-trip-map-stage {
    position: relative;
    flex: 0 0 min(42vh, 340px);
    min-height: 200px;
    background: #dbe4ef;
}

.ml-trip-map {
    width: 100%;
    height: 100%;
}

.ml-trip-map-stage__topbar {
    position: absolute;
    top: max(0.75rem, env(safe-area-inset-top));
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.ml-trip-map-stage__topbar > * {
    pointer-events: auto;
}

.ml-trip-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ml-trip-text);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
}

.ml-trip-icon-btn {
    width: 2.35rem;
    height: 2.35rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ml-trip-text);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ml-trip-map-hint {
    position: absolute;
    bottom: 0.65rem;
    left: 0.75rem;
    right: 0.75rem;
    margin: 0;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    color: var(--ml-trip-muted);
    z-index: 2;
}

/* Scrollable body */
.ml-trip-sheet__scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5.5rem;
}

/* Dark hero (like reference header card) */
.ml-trip-hero {
    position: relative;
    margin: 20px;
    padding: 1.1rem 1.15rem 4.5rem;
    border-radius: var(--ml-trip-radius);
    background: linear-gradient(145deg, var(--ml-trip-dark) 0%, var(--ml-trip-dark-2) 100%);
    color: var(--ml-trip-text-inv);
    box-shadow: var(--ml-trip-shadow);
    z-index: 1;
}

.ml-trip-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86efac;
    margin-bottom: 0.35rem;
}

.ml-trip-hero--arrived .ml-trip-hero__badge {
    color: #fcd34d;
}

.ml-trip-hero--in_progress .ml-trip-hero__badge {
    color: #93c5fd;
}

.ml-trip-hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: ml-trip-pulse 1.8s ease-in-out infinite;
}

.ml-trip-hero__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    line-height: 1.25;
}

.ml-trip-hero__sub {
    font-size: 0.8rem;
    color: var(--ml-trip-muted-inv);
    margin: 0 0 1rem;
}

.ml-trip-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.ml-trip-stat__label {
    font-size: 0.62rem;
    color: var(--ml-trip-muted-inv);
    margin: 0 0 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ml-trip-stat__value {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
}

.ml-trip-stat__value--sm {
    font-size: 0.82rem;
    font-weight: 700;
}

/* Vehicle floating overlap */
.ml-trip-vehicle-float {
    position: relative;
    z-index: 3;
    margin: -3.75rem auto 0.5rem;
    width: min(88%, 320px);
    text-align: center;
    pointer-events: none;
}

.ml-trip-vehicle-float img {
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.35));
}

.ml-trip-vehicle-float__fallback {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--ml-trip-muted);
}

/* Light overview section */
.ml-trip-overview {
    padding: 0 1rem 1rem;
}

.ml-trip-overview__title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: var(--ml-trip-text);
}

.ml-trip-tile {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    border-radius: 16px;
    background: var(--ml-trip-card);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.ml-trip-tile__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: var(--ml-trip-accent-soft);
    color: var(--ml-trip-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.ml-trip-tile__label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ml-trip-muted);
    margin: 0 0 0.2rem;
}

.ml-trip-tile__text {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.45;
    color: var(--ml-trip-text);
    word-break: break-word;
}

.ml-trip-tiles-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

@media (max-width: 400px) {
    .ml-trip-tiles-row {
        grid-template-columns: 1fr;
    }
}

.ml-trip-mini {
    padding: 0.75rem 0.65rem;
    border-radius: 16px;
    background: var(--ml-trip-card);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
    text-align: center;
}

.ml-trip-mini__icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.4rem;
    border-radius: 50%;
    background: var(--ml-trip-accent-soft);
    color: var(--ml-trip-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.ml-trip-mini__icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ml-trip-mini__label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ml-trip-muted);
    margin: 0 0 0.15rem;
}

.ml-trip-mini__value {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
    color: var(--ml-trip-text);
    line-height: 1.25;
}

.ml-trip-mini__value--pin {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    color: var(--ml-trip-accent);
}

.ml-trip-pin-banner {
    text-align: center;
    padding: 1rem;
    margin-bottom: 0.65rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ml-trip-pin-banner__code {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    margin: 0.25rem 0;
    color: var(--ml-trip-accent);
    font-variant-numeric: tabular-nums;
}

.ml-trip-pin-banner__hint {
    font-size: 0.78rem;
    color: var(--ml-trip-muted);
    margin: 0;
}

.ml-trip-status-banner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 16px;
    border: 1px solid transparent;
}

.ml-trip-status-banner__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ml-trip-status-banner__title {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: var(--ml-trip-text);
}

.ml-trip-status-banner__text {
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    color: var(--ml-trip-muted);
}

.ml-trip-status-banner--en_route {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.2);
}

.ml-trip-status-banner--en_route .ml-trip-status-banner__icon {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.ml-trip-status-banner--arrived {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.28);
}

.ml-trip-status-banner--arrived .ml-trip-status-banner__icon {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.ml-trip-status-banner--in_progress {
    background: #ecfdf5;
    border-color: rgba(34, 197, 94, 0.28);
}

.ml-trip-status-banner--in_progress .ml-trip-status-banner__icon {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.ml-trip-tile--highlight {
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.1);
}

.ml-trip-map-error {
    font-size: 0.78rem;
    color: #b45309;
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.75rem;
    background: #fffbeb;
    border-radius: 10px;
}

/* Bottom action bar */
.ml-trip-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11870;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem max(0.85rem, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}

.ml-trip-actionbar__price {
    flex: 1;
    min-width: 0;
}

.ml-trip-actionbar__amount {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: var(--ml-trip-text);
}

.ml-trip-actionbar__label {
    font-size: 0.68rem;
    color: var(--ml-trip-muted);
    margin: 0;
}

.ml-trip-actionbar__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ml-trip-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.1rem;
    border: none;
    border-radius: 999px;
    background: var(--ml-trip-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.ml-trip-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--ml-trip-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.ml-trip-btn-primary--call {
    background: #0f172a;
}

/* Tablet & desktop: split map | content, centered modal */
@media (min-width: 768px) {
    .ml-trip-sheet {
        inset: auto;
        top: 50%;
        left: 50%;
        width: min(94vw, 1040px);
        max-height: min(88vh, 760px);
        border-radius: 24px;
        box-shadow: 0 32px 80px rgba(15, 23, 42, 0.35);
        animation: ml-trip-modal-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
        transform: translate(-50%, -50%);
    }

    @keyframes ml-trip-modal-in {
        from {
            opacity: 0;
            transform: translate(-50%, -46%) scale(0.97);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }

    .ml-trip-sheet__layout {
        flex-direction: row;
    }

    .ml-trip-map-stage {
        flex: 0 0 42%;
        max-width: 440px;
        min-height: 0;
        height: auto;
        border-right: 1px solid rgba(15, 23, 42, 0.08);
    }

    .ml-trip-map-stage__topbar {
        top: 0.85rem;
        left: 0.85rem;
        right: 0.85rem;
    }

    .ml-trip-sheet__panel {
        flex: 1;
    }

    .ml-trip-sheet__scroll {
        padding-bottom: 0.5rem;
    }

    .ml-trip-hero {
        margin: 1rem 1rem 0;
        padding: 1rem 1.1rem 3.25rem;
    }

    .ml-trip-hero__title {
        font-size: 0.98rem;
    }

    .ml-trip-vehicle-float {
        margin: -2.75rem auto 0.35rem;
        width: min(72%, 220px);
    }

    .ml-trip-overview {
        padding: 0 1rem 0.75rem;
    }

    .ml-trip-actionbar {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 1;
        flex-shrink: 0;
        border-radius: 0 0 24px 0;
    }
}

@media (min-width: 1024px) {
    .ml-trip-sheet {
        width: min(92vw, 1120px);
        max-height: min(86vh, 800px);
    }

    .ml-trip-map-stage {
        flex: 0 0 46%;
        max-width: 520px;
    }

    .ml-trip-hero__stats {
        gap: 1rem;
    }

    .ml-trip-tiles-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
