/* Tour popover styling */
.driver-popover.hsv-tour-popover {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    font-family: "National Park", sans-serif;
    /* font-family: "National Park", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; */
    max-width: 340px !important;
    padding: 0 !important;
}

/* Title styling */
.driver-popover.hsv-tour-popover .driver-popover-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    padding: 20px 20px 8px 20px !important;
    margin: 0 !important;
    border-bottom: none !important;
    letter-spacing: -0.3px;
}

/* Description styling */
.driver-popover.hsv-tour-popover .driver-popover-description {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    padding: 0 20px 16px 20px !important;
}

.driver-popover.hsv-tour-popover .driver-popover-description strong {
    color: #5b4a8a;
    font-weight: 600;
}

/* Progress bar */
.driver-popover.hsv-tour-popover .driver-popover-progress-text {
    font-size: 12px !important;
    color: #fff !important;
    padding: 0 20px !important;
    margin-bottom: 12px !important;
    font-weight: 500;
}

/* Footer with buttons */
.driver-popover.hsv-tour-popover .driver-popover-footer {
    background: linear-gradient(135deg, #5b4a8a, #5b4a8a);
    padding: 12px 20px 20px 20px !important;
    border-top: 1px solid #f0f0f0 !important;
    margin-top: 8px !important;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

/* Button base styles */
.driver-popover.hsv-tour-popover .driver-popover-footer button {
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    border: none !important;
}

/* Previous button */
.driver-popover.hsv-tour-popover .driver-popover-prev-btn {
    background: #f5f5f5 !important;
    color: #666 !important;
}

.driver-popover.hsv-tour-popover .driver-popover-prev-btn:hover {
    background: #dadada !important;
    color: #333 !important;
}

/* Next/Done button */
.driver-popover.hsv-tour-popover .driver-popover-next-btn {
    background: #f5f5f5 !important;
    color: #666 !important;
}

.driver-popover.hsv-tour-popover .driver-popover-next-btn:hover {
    background: #dadada !important;
    color: #333 !important;
}

/* Close button */
.driver-popover.hsv-tour-popover .driver-popover-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    background: #f5f5f5 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #888 !important;
    font-size: 18px !important;
    transition: all 0.2s ease !important;
}

.driver-popover.hsv-tour-popover .driver-popover-close-btn:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
}

/* Arrow styling */
.driver-popover.hsv-tour-popover .driver-popover-arrow {
    border: none !important;
}

.driver-popover.hsv-tour-popover .driver-popover-arrow-side-left {
    border-left-color: rgba(255, 255, 255, 0.98) !important;
}

.driver-popover.hsv-tour-popover .driver-popover-arrow-side-right {
    border-right-color: rgba(255, 255, 255, 0.98) !important;
}

.driver-popover.hsv-tour-popover .driver-popover-arrow-side-top {
    border-top-color: rgba(255, 255, 255, 0.98) !important;
}

.driver-popover.hsv-tour-popover .driver-popover-arrow-side-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.98) !important;
}

/* Highlighted element stage */
.driver-active-element {
    border-radius: 8px !important;
}



/* Help button responsive */
@media (max-width: 768px) {
    #tour-help-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        bottom: 15px !important;
        right: 15px !important;
    }

    #tour-help-btn span {
        display: none;
    }

    #tour-help-btn {
        padding: 12px !important;
        border-radius: 50% !important;
    }

    .driver-popover.hsv-tour-popover {
        max-width: 300px !important;
        margin: 10px !important;
    }
}

/* Animation for highlighted elements */
@keyframes pulse-highlight {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(49, 130, 189, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(49, 130, 189, 0.1);
    }
}

.driver-active-element {
    animation: pulse-highlight 2s ease-in-out infinite;
}