.driver-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: auto;
}

.driver-overlay-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.driver-overlay-background {
    fill: rgba(15, 23, 42, .58);
}

.driver-highlight {
    position: fixed;
    z-index: 100002;
    border: 3px solid var(--tblr-primary, #f4c20d);
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(244, 194, 13, .24), 0 12px 30px rgba(15, 23, 42, .22);
    pointer-events: none;
    transition: top 160ms ease, left 160ms ease, width 160ms ease, height 160ms ease;
}

.driver-active-element {
    scroll-margin: 24px;
}

.driver-popover {
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    z-index: 100003;
    padding: 20px;
    border: 1px solid rgba(98, 105, 118, .2);
    border-radius: 12px;
    background: var(--tblr-bg-surface, #fff);
    color: var(--tblr-body-color, #182433);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .3);
    pointer-events: auto;
}

.driver-popover-title {
    margin: 0 30px 8px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.driver-popover-description {
    color: var(--tblr-secondary-color, #667382);
    font-size: .875rem;
    line-height: 1.55;
    white-space: pre-line;
}

.driver-popover-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: currentColor;
    font-size: 1.5rem;
    line-height: 1;
    opacity: .6;
}

.driver-popover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.driver-popover-progress {
    color: var(--tblr-secondary-color, #667382);
    font-size: .75rem;
    white-space: nowrap;
}

.driver-popover-btn-group {
    display: flex;
    gap: 8px;
}

.driver-popover-btn {
    padding: 7px 12px;
    border: 1px solid var(--tblr-border-color, #dce1e7);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: .8125rem;
    font-weight: 600;
}

.driver-popover-next-btn {
    border-color: var(--tblr-primary, #206bc4);
    background: var(--tblr-primary, #206bc4);
    color: #fff;
}

.driver-popover-btn:focus-visible,
.driver-popover-close-btn:focus-visible {
    outline: 3px solid rgba(32, 107, 196, .35);
    outline-offset: 2px;
}

.tour-guide-card:last-child {
    margin-bottom: 0 !important;
}

[data-bs-theme="dark"] .driver-popover {
    border-color: rgba(255, 255, 255, .12);
    background: #182433;
    color: #f8fafc;
}

@media (max-width: 575.98px) {
    .driver-popover {
        width: calc(100vw - 24px);
        max-height: min(52dvh, calc(100vh - 24px));
        padding: 16px;
    }

    .driver-popover-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .driver-popover-btn-group,
    .driver-popover-btn {
        flex: 1;
    }

    .driver-popover-btn {
        min-height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .driver-highlight {
        transition: none;
    }
}
